/* Only what the Luxdone kit lacks (standard-luki.md): the passenger app in the look of mPOLREGIO, the phone frame,
   the start page, the panel "Makieta", charts and a few product layouts. Colors come from tokens.css. */

html.mk-alt, html.mk-alt body { background: #e9e9e9; }
dialog.mk-dialog:not([open]) { display: none; }
dialog.mk-dialog { padding: 1.5rem; border: 1px solid var(--border); }
dialog.mk-dialog::backdrop { background: rgb(0 0 0 / 0.35); }
.mk-logo { height: 1.75rem; width: auto; }
.mk-prose { display: grid; gap: 0.75rem; font-size: 0.875rem; }
.mk-prose ul { display: grid; gap: 0.5rem; padding-inline-start: 1.25rem; list-style: disc; }
.mk-toast:empty { display: none; }
.mk-toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 60; transform: translateX(-50%); max-width: min(32rem, calc(100% - 2rem)); padding: 0.75rem 1rem; border-radius: var(--radius-control); background: #141414; color: #fff; font-size: 0.875rem; box-shadow: 0 6px 24px rgb(0 0 0 / 0.25); }

/* ---------- Start page ---------- */
.mk-start { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; background: #fff; }
.mk-start-head { display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--border); }
.mk-start-head img { height: 2.25rem; width: auto; }
.mk-start-tag { padding-inline-start: 1rem; border-inline-start: 1px solid var(--border); color: var(--muted-foreground); font-size: 0.875rem; }
.mk-start-main { width: min(72rem, 100%); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem); display: grid; gap: 2rem; align-content: start; outline: none; }
.mk-start-title { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 300; color: #141414; }
.mk-start-title::first-line { font-weight: 300; }
.mk-start-lead { max-width: 46rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted-foreground); }
.mk-choices { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.mk-choice { display: grid; grid-template-rows: auto auto; height: 100%; border: 1px solid var(--border); border-radius: var(--radius-surface); overflow: hidden; color: inherit; text-decoration: none; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.mk-choice:hover { border-color: #141414; box-shadow: 0 8px 28px rgb(0 0 0 / 0.08); }
.mk-choice:focus-visible { outline: 3px solid #141414; outline-offset: 3px; }
.mk-choice-shot { position: relative; display: block; height: 16rem; overflow: hidden; background: #f5f5f5; border-bottom: 1px solid var(--border); }
.mk-choice-shot iframe { position: absolute; border: 0; pointer-events: none; transform-origin: 0 0; background: #fff; }
.mk-shot-phone iframe { width: 390px; height: 844px; left: calc(50% - 98px); top: 1.25rem; transform: scale(0.5); border-radius: 18px; box-shadow: 0 0 0 6px #141414; }
.mk-shot-laptop iframe { width: 1280px; height: 800px; left: 1.25rem; top: 1.25rem; transform: scale(0.42); box-shadow: 0 0 0 1px var(--border), 0 8px 24px rgb(0 0 0 / 0.12); }
.mk-choice-text { display: grid; gap: 0.375rem; padding: 1.25rem 1.5rem 1.5rem; }
.mk-choice-name { font-size: 1.375rem; font-weight: 700; color: #141414; }
.mk-choice:hover .mk-choice-name { color: #e50000; }
.mk-choice-sub { color: var(--muted-foreground); line-height: 1.5; }
.mk-check { display: grid; gap: 0.75rem; }
.mk-check-title { font-size: 1.25rem; font-weight: 700; }
.mk-scen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.mk-scen-card { display: grid; gap: 0.5rem; align-content: start; height: 100%; padding: 1rem 1.25rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-surface); color: inherit; text-decoration: none; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.mk-scen-card:hover { border-color: #141414; box-shadow: 0 8px 28px rgb(0 0 0 / 0.08); }
.mk-scen-card:focus-visible { outline: 3px solid #141414; outline-offset: 3px; }
.mk-scen-meta { display: flex; align-items: center; gap: 0.75rem; color: var(--muted-foreground); font-size: 0.875rem; }
.mk-scen-id { padding: 0.125rem 0.5rem; border-radius: 999px; background: #141414; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-scen-name { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 1.125rem; font-weight: 700; color: #141414; }
.mk-scen-name svg { flex: none; color: #e50000; transition: transform 0.15s; }
.mk-scen-card:hover .mk-scen-name { color: #e50000; }
.mk-scen-card:hover .mk-scen-name svg { transform: translateX(3px); }
.mk-scen-result { color: var(--muted-foreground); line-height: 1.5; }
.mk-assume { width: min(48rem, 100%); gap: 1.25rem; }
.mk-back { display: inline-flex; align-items: center; gap: 0.25rem; justify-self: start; color: var(--muted-foreground); font-weight: 600; text-decoration: none; }
.mk-back:hover { color: var(--foreground); text-decoration: underline; }
.mk-start-foot { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; padding: 1rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--border); }

/* ---------- Stage around the phone ---------- */
.mk-stage { min-height: calc(100dvh - var(--bar-h)); display: grid; justify-items: center; align-content: start; gap: 1rem; padding: 1.5rem 1rem 2rem; }
.mk-phone { width: 390px; height: min(844px, calc(100dvh - var(--bar-h) - 3.5rem)); min-height: 600px; border-radius: 36px; border: 10px solid #141414; background: #fff; overflow: hidden; box-shadow: 0 20px 50px rgb(0 0 0 / 0.18); position: relative; }
.mk-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.mk-phone-col { display: grid; gap: 0.5rem; justify-items: center; }
.mk-phone-label { font-size: 0.875rem; color: var(--muted-foreground); font-weight: 600; }
.mk-stage-two .mk-phone { height: min(760px, calc(100dvh - var(--bar-h) - 5.5rem)); }
@media (max-width: 30rem) {
  .mk-stage { padding: 0; }
  .mk-phone, .mk-stage-two .mk-phone { width: 100%; height: auto; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .mk-phone-label { margin-top: 1rem; }
}

/* ---------- The app: mPOLREGIO (marka.md) ---------- */
.mk-app { position: relative; display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 100%; background: var(--app-bg); color: #141414; font-size: 1rem; line-height: 1.5; }
.mk-preview-app { height: 100dvh; }
.mk-appbar { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; height: 3.5rem; padding: 0 0.25rem; background: #fff; border-bottom: 1px solid var(--border); }
.mk-appbar-logo { justify-self: center; display: flex; }
.mk-appbar-logo img { height: 1.5rem; width: auto; }
.mk-iconbtn { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 999px; background: transparent; color: #141414; cursor: pointer; }
.mk-iconbtn:hover { background: #f2f2f2; }
.mk-iconbtn:focus-visible { outline: 2px solid #141414; outline-offset: -2px; }
.mk-apptabs { background: #fff; border-bottom: 1px solid var(--border); }
.mk-apptabs ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.mk-apptabs a { display: grid; place-items: center; min-height: 3rem; padding: 0 0.25rem; color: var(--muted-foreground); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; border-bottom: 3px solid transparent; }
.mk-apptabs a[aria-current="page"] { color: #141414; border-bottom-color: #e50000; }
.mk-apptabs a:hover { color: #141414; }
.mk-apptabs a:focus-visible { outline: 2px solid #141414; outline-offset: -2px; }
.mk-appmain { overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1rem 2rem; display: grid; gap: 1rem; align-content: start; outline: none; scrollbar-width: thin; }
.mk-card { display: grid; gap: 0.75rem; padding: 1rem; background: #fff; border-radius: var(--radius-surface); border: 1px solid #e3e3e3; }
.mk-label { font-size: 0.875rem; color: var(--muted-foreground); font-weight: 600; }
.mk-big { font-size: 2.25rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mk-neg { color: #9e0000; }
.mk-h1 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
.mk-h2 { font-size: 1.125rem; line-height: 1.35; font-weight: 700; }
.mk-h3 { font-size: 1rem; line-height: 1.35; font-weight: 700; }
.mk-lead { color: var(--muted-foreground); }
.mk-muted { color: var(--muted-foreground); }
.mk-small { font-size: 0.875rem; }
.mk-center { text-align: center; }
.mk-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9375rem; letter-spacing: 0.04em; }
.mk-warnline, .mk-okline { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9375rem; }
.mk-warnline svg { color: #9e0000; flex: none; margin-top: 0.2rem; }
.mk-okline { color: #1e6b3a; font-weight: 600; }
.mk-okline svg { flex: none; margin-top: 0.2rem; }

/* Programme home: the level card on a red band, in the tone of the level (standard-luki.md). The wrapper keeps the
   card's height in the grid, since the card clips its entrance sheen. */
.mk-appmain-band { padding-top: 1.25rem; background: linear-gradient(160deg, #e50000 0%, #b30000 100%) top / 100% 11rem no-repeat, var(--app-bg); background-attachment: local; }
.mk-lcard { --tone-a: #f7f8f9; --tone-b: #e3e7ea; --tone-c: #c3c9cd; position: relative; display: grid; gap: 1.125rem; padding: 1.5rem 1.25rem 1.125rem; overflow: hidden; border-radius: 1rem; color: #141414;
  background: linear-gradient(135deg, var(--tone-a) 0%, var(--tone-b) 45%, var(--tone-c) 100%); box-shadow: 0 18px 36px rgb(60 0 0 / 0.28), inset 0 1px 0 #fff; }
.mk-lcard[data-tone="0"] { --tone-a: #ffffff; --tone-b: #f3f4f5; --tone-c: #e4e7e9; }
.mk-lcard[data-tone="1"] { --tone-a: #fbf3ec; --tone-b: #ecd2bb; --tone-c: #d9b08c; }
.mk-lcard[data-tone="3"] { --tone-a: #fffaea; --tone-b: #f2e2a8; --tone-c: #e0c36a; }
.mk-lcard[data-tone="4"] { --tone-a: #f8f8fb; --tone-b: #dcdee7; --tone-c: #b9bccb; }
.mk-lcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.mk-lcard-level { display: grid; font-size: 1.5rem; line-height: 1.15; font-weight: 800; }
.mk-lcard-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #3a434a; }
.mk-lcard-mult { display: grid; justify-items: end; font-size: 1.25rem; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-lcard-mult span, .mk-lcard-label { font-size: 0.75rem; font-weight: 600; color: #3a434a; }
.mk-lcard-label { font-size: 0.875rem; }
.mk-lcard-big { font-size: 3.5rem; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mk-lcard-last { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin-top: 0.625rem; font-size: 0.875rem; color: #2b3238; }
.mk-lcard-plus { padding: 0.125rem 0.5rem; border-radius: 999px; background: #141414; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-lcard-prog { display: grid; gap: 0.375rem; }
.mk-track, .mk-track-names { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.mk-seg { height: 0.625rem; border-radius: 4px; background: #a3abb1; overflow: hidden; }
.mk-seg i { display: block; width: var(--w); height: 100%; background: #9e0000; }
.mk-track-names { font-size: 0.75rem; color: #3a434a; }
.mk-track-names [aria-current="step"] { color: #141414; font-weight: 700; }
.mk-lcard-text { margin-top: 0.25rem; font-size: 0.875rem; color: #2b3238; }
.mk-lcard-text strong { color: #141414; }
.mk-lcard-pid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding-top: 0.75rem; border-top: 1px solid rgb(20 20 20 / 0.18); font-size: 0.875rem; font-weight: 600; color: #3a434a; }
.mk-lcard-pid .mk-mono { color: #141414; font-weight: 700; }
/* Entrance, once per account and screen: the passed levels fill one after another and one light pass crosses the card. */
.mk-lcard[data-enter] .mk-seg i { animation: mk-fill 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mk-lcard[data-enter] .mk-seg:nth-child(2) i { animation-delay: 0.2s; }
.mk-lcard[data-enter] .mk-seg:nth-child(3) i { animation-delay: 0.4s; }
.mk-lcard[data-enter] .mk-seg:nth-child(4) i { animation-delay: 0.6s; }
.mk-lcard[data-enter] .mk-seg:nth-child(5) i { animation-delay: 0.8s; }
.mk-lcard[data-enter]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.45) 50%, transparent 65%); transform: translateX(-100%); animation: mk-sheen 1.4s 0.3s ease-out both; pointer-events: none; }
@keyframes mk-fill { from { width: 0; } }
@keyframes mk-sheen { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .mk-lcard[data-enter] .mk-seg i { animation: none; }
  .mk-lcard[data-enter]::after { display: none; }
}
.mk-rowhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.75rem; }
.mk-chip { padding: 0.125rem 0.625rem; border-radius: 999px; background: #f2f2f2; font-size: 0.875rem; font-weight: 600; }
.mk-link { color: #9e0000; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: 0.9375rem; }
.mk-link:hover { color: #141414; }
.mk-progress { height: 0.5rem !important; background: #ececec !important; }
.mk-progress-text { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.mk-stack { display: grid; gap: 1.25rem; }
.mk-stack-s { display: grid; gap: 0.75rem; }
.mk-wide { width: 100%; }
.mk-roundicon { display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: #fdecec; color: #9e0000; }
.mk-roundicon[data-kind="zwrot"], .mk-roundicon[data-kind="wygasniecie"], .mk-roundicon[data-kind="korekta-misji"], .mk-roundicon[data-kind="wylaczone"] { background: #eef0f1; color: #57636b; }
.mk-roundicon-lg { width: 3.5rem; height: 3.5rem; }
.mk-roundicon.mk-ok { background: #e6f4ea; color: #1e6b3a; }
.mk-mission-top { display: flex; align-items: flex-start; gap: 0.75rem; }
.mk-mission-text { flex: 1; min-width: 0; display: grid; gap: 0.125rem; }
.mk-reward { flex: none; font-weight: 700; color: #9e0000; font-variant-numeric: tabular-nums; }
.mk-month { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--muted-foreground); letter-spacing: 0.04em; text-transform: uppercase; }
.mk-list { display: grid; background: #fff; border-radius: var(--radius-surface); border: 1px solid #e3e3e3; }
.mk-list > li + li { border-top: 1px solid #ececec; }
.mk-li { display: flex; align-items: center; gap: 0.75rem; min-height: 4rem; padding: 0.75rem 1rem; color: inherit; text-decoration: none; }
a.mk-li:hover { background: #fafafa; }
a.mk-li:focus-visible, .mk-reward-card:focus-visible { outline: 2px solid #141414; outline-offset: -2px; }
.mk-li-text { flex: 1; min-width: 0; display: grid; gap: 0.0625rem; }
.mk-li-title { font-weight: 600; overflow-wrap: anywhere; }
.mk-li-note { font-size: 0.875rem; font-weight: 600; color: #9e0000; }
.mk-li-pts { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-li-static { min-height: 0; }
.mk-balance-line { display: flex; justify-content: space-between; align-items: baseline; padding: 0.75rem 1rem; background: #fff; border-radius: var(--radius-surface); border: 1px solid #e3e3e3; }
.mk-balance-line strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.mk-entry-head { display: grid; justify-items: center; gap: 0.25rem; padding: 0.5rem 0; text-align: center; }
.mk-subtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.25rem; border-radius: var(--radius-surface); background: #e6e6e6; }
.mk-subtabs a { display: flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 2.75rem; border-radius: calc(var(--radius-surface) - 2px); color: #141414; font-weight: 600; text-decoration: none; }
.mk-subtabs a[aria-current="page"] { background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.mk-subtabs a:focus-visible { outline: 2px solid #141414; outline-offset: 1px; }
.mk-count { min-width: 1.5rem; padding: 0 0.375rem; border-radius: 999px; background: #141414; color: #fff; font-size: 0.75rem; line-height: 1.5rem; text-align: center; }
.mk-rewards { display: grid; gap: 0.5rem; }
.mk-reward-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 0.75rem 0.875rem 1rem; background: #fff; border: 1px solid #e3e3e3; border-radius: var(--radius-surface); color: inherit; text-decoration: none; }
.mk-reward-card:hover { border-color: #8a939a; }
.mk-reward-cost { font-weight: 700; color: #9e0000; font-variant-numeric: tabular-nums; }
.mk-chev { color: #8a939a; flex: none; }
.mk-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 0.06em; }
.mk-code-lg { font-size: 1.375rem; padding: 0.75rem; border: 2px dashed #e50000; border-radius: var(--radius-control); text-align: center; overflow-wrap: anywhere; }
.mk-codecard { border-color: #b9dcc4; }
.mk-conn { gap: 0.375rem; }
.mk-conn-row { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0.5rem; font-size: 1.0625rem; }
.mk-regio { font-weight: 800; color: #9e0000; letter-spacing: 0.02em; }
.mk-ticket { gap: 0.5rem; }
.mk-paybar { display: grid; gap: 0.75rem; padding: 1rem; background: #fff; border-radius: var(--radius-surface); border: 1px solid #e3e3e3; }
.mk-paybar p { display: flex; justify-content: space-between; align-items: baseline; }
.mk-paybar strong { font-size: 1.25rem; }
.mk-login { background: #fff; grid-template-rows: minmax(0, 1fr); }
.mk-login .mk-appmain { padding: 2.5rem 1.5rem; gap: 1.25rem; }
.mk-login-logo { display: flex; justify-content: center; padding-bottom: 0.5rem; }
.mk-login-logo img { height: 2.5rem; width: auto; }
.mk-app [data-slot="button"][data-variant="default"] { font-weight: 700; }
.mk-app [data-slot="button"][aria-disabled="true"] { background: #d6d6d6; color: #3d464c; cursor: not-allowed; }
.mk-app [data-slot="error-summary"] a { text-decoration: underline; }

/* Menu of mPOLREGIO, sliding from the left over the app */
.mk-drawer { position: absolute; inset: 0; z-index: 20; display: grid; grid-template-columns: min(19rem, 85%) 1fr; }
.mk-drawer-panel { display: grid; align-content: start; gap: 0.5rem; padding: 0.5rem 0 1rem; background: #fff; box-shadow: 4px 0 24px rgb(0 0 0 / 0.2); animation: mk-slide 0.18s ease-out; }
.mk-drawer-scrim { border: 0; background: rgb(0 0 0 / 0.35); cursor: pointer; }
.mk-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0.25rem 0 1rem; }
.mk-drawer-head img { height: 1.375rem; width: auto; }
.mk-drawer-who { display: grid; padding: 0.75rem 1rem; border-block: 1px solid #ececec; font-weight: 700; }
.mk-drawer-who span { font-weight: 400; font-size: 0.875rem; color: var(--muted-foreground); overflow-wrap: anywhere; }
.mk-drawer-list a, .mk-drawer-list button { display: flex; align-items: center; gap: 0.875rem; width: 100%; min-height: 3rem; padding: 0 1rem; border: 0; background: none; color: #141414; font: inherit; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.mk-drawer-list svg { color: #e50000; }
.mk-drawer-list a[aria-current="page"] { background: #fdecec; box-shadow: inset 4px 0 0 #e50000; }
.mk-drawer-list a:hover, .mk-drawer-list button:hover { background: #f5f5f5; }
.mk-drawer-list a:focus-visible, .mk-drawer-list button:focus-visible { outline: 2px solid #141414; outline-offset: -2px; }
@keyframes mk-slide { from { transform: translateX(-100%); } to { transform: none; } }

/* ---------- Panel "Makieta" ---------- */
/* ---------- Mockup bar ----------
   The mockup's own tools sit in one dark bar above the product, so nothing of the mockup stands inside POLREGIO's
   screens. On a wide screen it is fixed and the product's fixed and sticky parts start below it; on a phone it
   scrolls away with the page. */
:root { --bar-h: 0px; }
.mk-tools { position: relative; z-index: 45; display: flex; align-items: center; gap: 0.25rem; height: 2.75rem; padding: 0 0.75rem; background: #141414; color: #fff; font-size: 0.875rem; }
.mk-tools-name { color: #fff; text-decoration: none; display: flex; align-items: center; height: 1.5rem; padding-inline-end: 0.75rem; margin-inline-end: 0.25rem; border-inline-end: 1px solid #57636b; font-weight: 700; }
.mk-tools-views { display: flex; gap: 0.125rem; }
.mk-tools-views a, .mk-tools-menu > summary, .mk-tools-acc, .mk-tools-btn { display: flex; align-items: center; gap: 0.375rem; height: 2rem; padding: 0 0.625rem; border-radius: var(--radius-control); color: #d5dadd; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mk-tools-views a:hover, .mk-tools-menu > summary:hover, .mk-tools-btn:hover { background: #2b3238; color: #fff; }
.mk-tools-views a[aria-current="page"] { background: #2b3238; color: #fff; box-shadow: inset 0 -2px 0 #ff4d4d; }
.mk-tools-sp { flex: 1; }
.mk-tools-acc { padding-inline-end: 0.25rem; }
.mk-tools-acc:hover { background: #2b3238; }
.mk-tools-btn { border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.mk-tools-div { width: 1px; height: 1.5rem; margin-inline: 0.375rem; background: #57636b; }
.mk-tools-acc span { color: #a3abb1; font-weight: 500; }
.mk-tools-acc { flex: none; }
.mk-tools-acc select { field-sizing: content; height: 100%; max-width: 18rem; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 600; text-overflow: ellipsis; cursor: pointer; }
.mk-tools-acc select option { color: #141414; }
.mk-tools-name:hover { text-decoration: underline; }
.mk-tools-acc:focus-within, .mk-tools-name:focus-visible, .mk-tools-views a:focus-visible, .mk-tools-menu > summary:focus-visible, .mk-tools-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.mk-tools-acc select:focus { outline: none; }
.mk-tools-menu { position: relative; }
.mk-tools-menu > summary { list-style: none; cursor: pointer; }
/* The running scenario is the one lit control in the bar: its name and how many steps are done. */
.mk-tools-scen > summary { gap: 0.5rem; background: #2b3238; color: #fff; box-shadow: inset 3px 0 0 #ff4d4d; }
.mk-tools-count { padding: 0 0.375rem; border-radius: 999px; background: #141414; color: #d5dadd; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.mk-tools-menu[open] .mk-tools-count { background: #e3e7ea; color: #141414; }
.mk-tools-menu > summary::-webkit-details-marker { display: none; }
.mk-tools-menu > summary::after { content: ""; width: 0.375rem; height: 0.375rem; margin-inline-start: 0.125rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.mk-tools-menu[open] > summary { background: #fff; color: #141414; box-shadow: none; }
.mk-tools-menu[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.mk-tools-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 0.5rem); display: grid; gap: 1rem; width: max-content; max-width: min(24rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 4rem); overflow-y: auto; padding: 1rem; border: 1px solid #141414; border-radius: var(--radius-surface); background: #fff; color: #141414; box-shadow: 0 12px 32px rgb(0 0 0 / 0.2); }
/* The scenario stays open beside the phone, so it stands at the right edge, not under its button. */
.mk-tools-scen { position: static; }
.mk-tools-scen .mk-tools-pop { position: fixed; inset-inline-end: 0.75rem; top: calc(var(--bar-h) + 0.5rem); width: 22rem; }
.mk-tools-all { margin-inline-start: auto; position: static; }
.mk-tools-all .mk-tools-pop { inset-inline: 0.5rem; top: calc(100% + 0.25rem); width: auto; max-width: none; max-height: 75dvh; }
@media (min-width: 48rem) {
  .mk-has-bar { --bar-h: 2.75rem; }
  .mk-has-bar body { padding-top: var(--bar-h); }
  .mk-has-bar .mk-tools { position: fixed; inset: 0 0 auto 0; }
  .mk-has-bar [data-slot="sidebar-container"] { top: var(--bar-h); height: calc(100svh - var(--bar-h)); }
  .mk-has-bar [data-slot="top-bar"] { top: var(--bar-h); }
  /* With room beside the phone, the one menu opens at the right edge instead of across the screen. */
  .mk-tools-all .mk-tools-pop { inset-inline: auto 0.75rem; width: 24rem; }
}
.mk-demo-group { display: grid; gap: 0.5rem; }
.mk-demo-label { font-weight: 700; }
.mk-demo-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mk-demo-row [aria-current="page"] { border-color: #141414; box-shadow: inset 0 -3px 0 #e50000; }
.mk-steps { display: grid; gap: 0.5rem; counter-reset: s; }
.mk-steps li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.25rem 0.5rem; align-items: start; }
.mk-steps li > :nth-child(3) { grid-column: 2; justify-self: start; }
.mk-step-mark { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-top: 0.0625rem; border-radius: 999px; border: 2px solid #8a939a; }
.mk-steps li[data-done="true"] .mk-step-mark { border-color: #1e6b3a; background: #1e6b3a; color: #fff; }

/* ---------- Marketing panel layouts ---------- */
[data-slot="page-content"] > *, [data-slot="page-content"] section > * { min-width: 0; }
.mk-dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.125rem 1.5rem; margin: 0; }
.mk-dl dt { margin-top: 0.625rem; }
.mk-dl dt:first-child { margin-top: 0; }
.mk-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 40rem) {
  .mk-dl { grid-template-columns: 11rem minmax(0, 1fr); gap: 0.625rem 1.5rem; align-items: baseline; }
  .mk-dl dt { margin-top: 0; }
}
.mk-app .mk-dl { grid-template-columns: minmax(0, 1fr); gap: 0.125rem; }
.mk-app .mk-dl dt { margin-top: 0.75rem; font-size: 0.875rem; }
.mk-app .mk-dl dt:first-child { margin-top: 0; }
.mk-record-body { display: grid; gap: 2.5rem; }
.mk-wide-section { max-width: 48rem; }
.mk-grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); max-width: 48rem; align-items: start; }
.mk-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 1rem; }
.mk-cellfield label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mk-cellfield input { max-width: 9rem; }
.mk-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; max-width: 48rem; }
.mk-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.mk-simform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; }
.mk-simform [data-slot="field"] { min-width: 16rem; }
.mk-simsrc { flex-basis: 100%; order: 3; }
.mk-meter { display: inline-block; vertical-align: middle; width: 6rem; height: 0.5rem; margin-inline-end: 0.5rem; border-radius: 999px; background: #ececec; overflow: hidden; }
.mk-meter span { display: block; height: 100%; background: #57636b; }
.mk-meter span[data-high="true"] { background: #e50000; }
.mk-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.mk-tile { display: grid; gap: 0.25rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-surface); }
.mk-tile-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.mk-charts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr)); }
.mk-chart { display: grid; gap: 0.75rem; align-content: start; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-surface); }
.mk-svg { width: 100%; height: auto; overflow: visible; }
.mk-grid { stroke: #e6e6e6; stroke-width: 1; }
.mk-axis { font-size: 11px; fill: #57636b; font-variant-numeric: tabular-nums; }
.mk-endlabel { font-size: 12px; font-weight: 700; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.mk-legend-item { display: inline-flex; align-items: center; gap: 0.375rem; }
.mk-swatch { width: 1.25rem; height: 0; border-top: 3px solid var(--c); }
.mk-swatch[data-dashed="true"] { border-top-style: dashed; }
.mk-bars { display: grid; gap: 0.5rem; }
.mk-bars li { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr 5.5rem; gap: 0.75rem; align-items: center; font-size: 0.875rem; }
.mk-bar-track { height: 0.875rem; border-radius: 2px; background: #f2f2f2; overflow: hidden; }
.mk-bar { display: block; height: 100%; background: var(--chart-1); border-radius: 2px; }
.mk-bar[data-alt="true"] { background: var(--chart-2); }
.mk-bar-value { text-align: right; }
@media (max-width: 40rem) { .mk-charts { grid-template-columns: 1fr; } .mk-bars li { grid-template-columns: 7rem 1fr 4.5rem; } }
@media (prefers-reduced-motion: reduce) { .mk-drawer-panel { animation: none; } }
.mk-gap-xl { display: grid; gap: 2.5rem; }
.mk-indent { padding-inline-start: 1.75rem; }
[data-slot="register-toolbar"] [data-slot="field"] { width: min(18rem, 100%); }
.mk-simform [data-slot="field"] { width: min(22rem, 100%); }
@media (min-width: 60rem) {
}
.mk-tall { min-height: 3rem; font-weight: 700; }
.mk-chart { position: relative; }

/* Reward codes: the validity line, and the simulator before its first run. */
.mk-valid { font-weight: 600; color: #1d6b38; }
.mk-empty { padding: 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius-surface); color: var(--muted-foreground); }

/* Panel on a phone: the actions of a record header stack at full width, the primary on top. */
@media (max-width: 40rem) {
  [data-slot="record-header-actions"] { width: 100%; flex: 1 1 100%; margin-inline-start: 0; }
  [data-slot="record-header-actions"] > div { width: 100%; flex-direction: column-reverse; align-items: stretch; }
  [data-slot="record-header-actions"] [data-slot="button"] { width: 100%; justify-content: center; }
  [data-slot="register-actions"] { width: 100%; flex-direction: column; align-items: stretch; }
  [data-slot="register-actions"] [data-slot="button"] { width: 100%; justify-content: center; }
}

/* Panel tables on a phone: each row is a card, the first cell its title, the others labelled by their column.
   The kit's phone table layout positions each column by its own classes, which a generated table lacks. */
@media (max-width: 47.99rem) {
  #page [data-slot="table"] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #page [data-slot="table"] [data-slot="table-row"] { display: block; padding: 0.75rem; }
  #page [data-slot="table"] [data-slot="table-cell"] { position: static; display: grid; grid-template-columns: minmax(6.5rem, 38%) 1fr; gap: 0.75rem; align-items: baseline; height: auto; padding: 0.1875rem 0 !important; white-space: normal; overflow-wrap: anywhere; }
  #page [data-slot="table"] [data-slot="table-cell"]::before { content: attr(data-label); color: var(--muted-foreground); font-size: 0.875rem; }
  #page [data-slot="table"] [data-slot="table-cell"] > * { grid-column: 2; }
  #page [data-slot="table"] [data-slot="table-cell"]:first-child { display: block; padding-bottom: 0.375rem !important; font-weight: 600; }
  #page [data-slot="table"] [data-slot="table-cell"]:first-child .text-muted-foreground { font-weight: 400; }
  #page [data-slot="table"] [data-slot="table-cell"]:first-child::before { content: none; }
}

/* Records: on a wide screen the header with its actions stays under the top bar while a long form scrolls. */
@media (min-width: 60rem) {
  #page [data-slot="record-header"] { position: sticky; top: calc(3.5rem + var(--bar-h)); z-index: 5; margin-block-start: -0.75rem; padding-block: 0.75rem; background: var(--background); border-bottom: 1px solid var(--border); }
}
/* Register rows open their record: the title is underlined like a link, not only on hover. */
#page [data-row-link] { text-decoration-line: underline; text-decoration-color: #9e0000; text-decoration-thickness: 1px; }
#page [data-row-link]:hover { text-decoration-thickness: 2px; }
/* T07 on a wide screen: the two phones leave room on the right for the open scenario, so "Wymień na obu naraz" is in view. */
@media (min-width: 80rem) { .mk-has-bar .mk-stage-two { padding-right: 24rem; } }
/* Focus and anchors land below the sticky record header. */
@media (min-width: 60rem) { #page { --scroll-margin-top: calc(9rem + var(--bar-h)); } }

/* Panel dashboard */
.mk-dash { display: grid; gap: 2.5rem; }
.mk-dash-top { display: grid; gap: 2rem; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); align-items: start; }
.mk-dash-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; margin-inline-start: 0.375rem; padding: 0 0.375rem; border-radius: 999px; background: #f1f1f1; color: #141414; font-size: 0.8125rem; font-variant-numeric: tabular-nums; vertical-align: 0.0625rem; }
.mk-att { border: 1px solid var(--border); border-radius: var(--radius-surface); }
.mk-att li { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) auto; gap: 0.5rem 1rem; align-items: center; padding: 0.875rem 1rem; }
.mk-att li + li { border-top: 1px solid var(--border); }
.mk-now { display: grid; border: 1px solid var(--border); border-radius: var(--radius-surface); }
.mk-now > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; }
.mk-now > div + div { border-top: 1px solid var(--border); }
.mk-now dt { color: var(--muted-foreground); }
.mk-now dd { text-align: end; }
.mk-now-link { color: #141414; font-weight: 600; text-decoration: underline; text-decoration-color: #e50000; text-underline-offset: 3px; }
.mk-now-link:hover { color: #9e0000; }
.mk-goals { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.mk-goal-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.mk-goal .mk-tile-value { font-size: 1.75rem; }
.mk-spark { width: 7rem; height: 2.25rem; flex: none; overflow: visible; }
.mk-spark polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-budgets { columns: 2 24rem; column-gap: 3rem; }
.mk-budgets li { display: grid; grid-template-columns: 9.5rem minmax(3rem, 1fr) 2.75rem 9.5rem; gap: 0.75rem; align-items: center; padding: 0.3125rem 0; break-inside: avoid; font-size: 0.875rem; }
.mk-budgets li > span:nth-child(3), .mk-budget-amount { text-align: end; }
.mk-budget-track { height: 0.5rem; border-radius: 999px; background: #ececec; overflow: hidden; }
.mk-budget-track span { display: block; height: 100%; border-radius: 999px; background: #57636b; }
.mk-budget-track span[data-high="true"] { background: #e50000; }
@media (max-width: 64rem) { .mk-dash-top { grid-template-columns: 1fr; } }
@media (max-width: 40rem) {
  .mk-att li { grid-template-columns: 1fr; }
  .mk-att-action { justify-self: start; }
  .mk-budgets li { grid-template-columns: 10.5rem minmax(2rem, 1fr) 2.5rem; }
  .mk-budget-amount { display: none; }
}

/* Step-by-step show, after the PSE mockup */
.mk-start-tour { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; color: var(--muted-foreground); }
.mk-start-tour [data-slot="button"] { gap: 0.5rem; }
.mk-tour-ring { position: fixed; z-index: 70; border-radius: calc(var(--radius-surface) + 4px); pointer-events: none; box-shadow: 0 0 0 2px var(--primary), 0 0 0 6px rgb(229 0 0 / 0.16), 0 0 0 100vmax rgb(20 20 20 / 0.08); transition: top 0.2s, left 0.2s, width 0.2s, height 0.2s; }
.mk-tour { position: fixed; right: 1rem; bottom: 1rem; z-index: 71; display: grid; gap: 0.625rem; width: min(22rem, calc(100vw - 2rem)); padding: 1rem 1.125rem; border: 1px solid var(--border); border-radius: var(--radius-surface); background: #fff; box-shadow: 0 12px 32px rgb(20 20 20 / 0.18), 0 2px 6px rgb(20 20 20 / 0.08); }
.mk-tour:focus-visible { outline: 2px solid #141414; outline-offset: 2px; }
.mk-tour-in { position: static; width: auto; margin-block: 0.75rem 0; box-shadow: none; border-color: #e50000; background: #fff7f7; }
.mk-tour-step { display: flex; align-items: center; gap: 0.625rem; font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.mk-tour-bar { flex: 1; height: 0.1875rem; border-radius: 999px; background: #ececec; overflow: hidden; }
.mk-tour-bar span { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width 0.25s; }
.mk-tour-who { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; line-height: 1.25; padding-block-end: 0.625rem; border-block-end: 1px solid var(--border); }
.mk-tour-avatar { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 999px; background: #141414; color: #fff; font-size: 0.75rem; font-weight: 600; }
.mk-tour-text { font-size: 0.9375rem; line-height: 1.45; color: #141414; }
.mk-tour-act { width: 100%; border: 0; text-align: start; font: inherit; cursor: pointer; display: flex; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-control); background: #fde8e8; color: #9e0000; font-size: 0.875rem; font-weight: 600; line-height: 1.35; }
.mk-tour-act::before { content: "\2192"; flex: none; }
.mk-tour-act:hover { background: #fbd5d5; }
.mk-tour-act:focus-visible { outline: 2px solid #141414; outline-offset: 2px; }
.mk-tour-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin-inline-start: -0.625rem; }
.mk-tour-actions:has(> :only-child) { justify-content: flex-end; }
.mk-tour-nav { display: flex; gap: 0.5rem; margin-inline-start: auto; }
.mk-tour-nav:empty { display: none; }
[data-tour-target] { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 47.99rem) { .mk-tour { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; padding: 0.875rem 1rem; gap: 0.5rem; } .mk-tour-in { margin-inline: 0; } }
@media (prefers-reduced-motion: reduce) { .mk-tour-ring, .mk-tour-bar span { transition: none; } }
/* Between 80rem and 90rem the bar keeps its tabs; the show button and the account lose their long words. */
@media (max-width: 89.99rem) {
  .mk-tools-long { display: none; }
  .mk-tools-views a, .mk-tools-menu > summary, .mk-tools-acc, .mk-tools-btn { padding-inline: 0.5rem; }
  .mk-tools-acc > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
