/* The Mako app kit (mako-kit/kit/app). Every suite takes this file byte for byte; nothing here belongs to one suite.
   Load order: mk.css, then brands/<suite>.css (the seven brand tokens), then the suite's own file.
   Sizes, rhythm, glass and motion come from the directory toolkit. */
:root {
    --mk-model-claude: #d97757;        /* the model providers' own mark colours (model-avatar) */
    --mk-model-gemini: #8e75b2;
    /* Brand tokens. These neutral greys only show if a suite forgot its brands/<suite>.css. */
    --mk-light: #8fa3ad;
    --mk-deep: #4a5a63;
    --mk-button-day: #4a5a63;
    --mk-button-night: #8fa3ad;
    --mk-tint-day: #e6ecef;
    --mk-tint-night: #1d323d;
    --mk-dot: #f0a23a;
    --mk-day-canvas: #f7f9fa;
    --mk-day-surface: #ffffff;
    --mk-day-ink: #0f2a3a;
    --mk-day-muted: #5b6b75;
    --mk-day-line: #d5e0e5;
    --mk-night-canvas: #0b1a22;
    --mk-night-surface: #122733;
    --mk-night-ink: #e8f1f5;
    --mk-night-muted: #a3b4bd;
    --mk-night-line: #244250;
    --mk-night-tile: #05090c;
    --mk-night-button-ink: #06141a;
    /* Family red marks a fall. All other colour is Watch's own palette. */
    --mk-red-day: #b3261e;
    --mk-red-night: #f26b66;
    --mk-canvas: light-dark(var(--mk-day-canvas), var(--mk-night-canvas));
    --mk-surface: light-dark(var(--mk-day-surface), var(--mk-night-surface));
    --mk-ink: light-dark(var(--mk-day-ink), var(--mk-night-ink));
    --mk-muted: light-dark(var(--mk-day-muted), var(--mk-night-muted));
    --mk-line: light-dark(var(--mk-day-line), var(--mk-night-line));
    --mk-brand: light-dark(var(--mk-button-day), var(--mk-button-night));
    --mk-on-brand: light-dark(var(--mk-day-surface), var(--mk-night-button-ink));
    --mk-tint: light-dark(var(--mk-tint-day), var(--mk-tint-night));
    /* Brand fills (owner, November 17, 2026): never a flat colour. The ribbon's own shading (brand/<product>.svg runs
       deep, light, deep) as a soft 155° gradient, a glossy top band and a gentle shade at the bottom, so a filled control
       reads as a rounded gel. The light end stays subtle in the light theme so the words on it keep AA. Generated for
       Kotlin by kit/native/gen-tokens.ts (MkBrandFills); keep the numbers here the source. */
    --mk-fill-angle: 155deg;
    --mk-fill-hi: light-dark(color-mix(in srgb, var(--mk-button-day) 94%, var(--mk-light)), color-mix(in srgb, var(--mk-button-night) 86%, #fff));
    --mk-fill-lo: light-dark(color-mix(in srgb, var(--mk-button-day) 80%, #000), color-mix(in srgb, var(--mk-button-night) 80%, var(--mk-deep)));
    --mk-brand-gloss: linear-gradient(180deg, color-mix(in srgb, #fff 30%, transparent) 0%, color-mix(in srgb, #fff 8%, transparent) 22%, transparent 32%, transparent 62%, color-mix(in srgb, #000 12%, transparent) 100%);
    --mk-brand-gloss-press: linear-gradient(180deg, color-mix(in srgb, #fff 18%, transparent) 0%, color-mix(in srgb, #fff 4%, transparent) 22%, transparent 32%, transparent 62%, color-mix(in srgb, #000 8%, transparent) 100%);
    --mk-brand-fill-base: linear-gradient(var(--mk-fill-angle), var(--mk-fill-hi) 0%, var(--mk-brand) 50%, var(--mk-fill-lo) 100%);
    --mk-brand-fill: var(--mk-brand-gloss), var(--mk-brand-fill-base);
    --mk-brand-fill-press: var(--mk-brand-gloss-press), var(--mk-brand-fill-base);
    --mk-brand-ink: color-mix(in srgb, var(--mk-brand) 72%, var(--mk-ink)); /* brand words on the tint: AA in both themes */
    --mk-mark-tile: light-dark(var(--mk-day-surface), var(--mk-night-tile));
    --mk-negative: light-dark(var(--mk-red-day), var(--mk-red-night));
    /* Amber: a warning that is not yet a fall (storage at 95 percent). */
    --mk-amber-day: #9a5800;
    --mk-amber-night: #f2b450;
    --mk-warn: light-dark(var(--mk-amber-day), var(--mk-amber-night));
    --mk-glass: color-mix(in srgb, var(--mk-surface) 74%, transparent);
    --mk-glass-2: color-mix(in srgb, var(--mk-surface) 94%, transparent);
    --mk-edge: color-mix(in srgb, var(--mk-line) 75%, transparent);
    --mk-hi: color-mix(in srgb, var(--mk-day-surface) 18%, transparent);
    --mk-shadow: 0 10px 28px color-mix(in srgb, var(--mk-night-tile) 9%, transparent);
    --mk-scrim: color-mix(in srgb, var(--mk-night-canvas) 68%, transparent);
    /* A sheet's surface is opaque (owner, November 16, 2026: nothing behind a sheet may be readable): the surface with a
       hint of the brand for depth. The page behind is dimmed by the scrim and blurred (--mk-scrim-blur). */
    --mk-sheet-surface: color-mix(in srgb, var(--mk-surface) 96%, var(--mk-brand));
    --mk-scrim-blur: 8px;
    --mk-s-1: 4px;
    --mk-s-2: 8px;
    --mk-s-3: 12px;
    --mk-s-4: 16px;
    --mk-s-5: 20px;
    --mk-s-6: 24px;
    --mk-s-8: 32px;
    --mk-s-10: 40px;
    --mk-s-12: 48px;
    --mk-s-16: 64px;
    --mk-s-24: 96px;
    /* Which step goes where (KIT.md, "Layout"). These grow at 900px and 1800px; nothing else picks a spacing. */
    --mk-gap-in: var(--mk-s-2);        /* between the parts of one card or control */
    --mk-pad-card: var(--mk-s-4);      /* inside a card, to its edge */
    --mk-gap-card: var(--mk-s-3);      /* between cards */
    --mk-gap-section: var(--mk-s-6);   /* between sections of a page */
    --mk-gutter: var(--mk-s-5);        /* the page's side edge: the app bar, the content and the footer all start here */
    --mk-sp-card: var(--mk-gap-card);
    --mk-sp-section: var(--mk-gap-section);
    /* Page widths, by kind of page (.mk-layout-reading, -list, -dashboard on <body>); dashboard is the default. */
    --mk-w-reading: 46rem;
    --mk-w-list: var(--mk-frame-w);
    --mk-w-dashboard: var(--mk-frame-w);
    /* The frame and the workspace (owner, Nov 18): the app bar, the content, the footer and the bottom bar share one
       max width on every page at every screen width, centred. Only pictures (backdrop) go wider. ui-check fails
       (frame) on a bar wider than this, and (edges) on content whose edges are not the app bar's. */
    --mk-frame-w: 1320px;
    --mk-page-w: var(--mk-frame-w);
    --mk-satin-shadow: #b8bfcd; /* the light mark's deepest fold (tools/light-marks.ts SHADOW) */
    --mk-col-min: 300px;               /* a board column never gets narrower than this */
    --mk-cols-max: 4;                  /* nor more numerous than this */
    --mk-side-w: minmax(260px, 20rem); /* the filters or list column beside the main one (.mk-split) */
    --mk-rail-w: minmax(300px, 24rem); /* the context rail on the right (.mk-split-rail) */
    --mk-r-tile: 18px;
    --mk-r-card: 24px;
    --mk-r-field: 18px;
    --mk-r-sheet: 32px;
    --mk-ib: 44px;
    --mk-bar-h: 60px;
    --mk-tabbar-h: 64px;
    --mk-blur: 22px;
    --mk-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
    --mk-m-press: 90ms;
    --mk-m-quick: 160ms;
    --mk-m-base: 240ms;
    --mk-m-gentle: 420ms;
    --mk-m-screen: 560ms;
    --mk-m-stagger: 45ms;
    --mk-e-out: cubic-bezier(.2, .8, .2, 1);
    --mk-e-spring: cubic-bezier(.34, 1.56, .64, 1);
    --mk-rise: 12px;
    --mk-press: .94;
    --mk-safe-top: env(safe-area-inset-top, 0px);
    --mk-safe-bottom: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
    background: var(--mk-canvas);
    color: var(--mk-ink);
    font: 400 15px/1.45 var(--mk-font);
    -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
/* Page background, after the directory's "Dawn": three soft glows (brand, light, warm) over the canvas. Two layers drift and breathe very slowly.
   Every glow fades out inside its layer, and the root is the same canvas, so a long page (a full-page screenshot, the
   bounce past the end) never shows an edge where the fixed layers stop. */
body::before { content: ""; position: fixed; inset: -12%; z-index: -2; pointer-events: none; background: radial-gradient(120% 55% at 0% 0%, color-mix(in srgb, var(--mk-brand) 16%, transparent), transparent 62%), radial-gradient(85% 45% at 100% 38%, color-mix(in srgb, var(--mk-light) 18%, transparent), transparent 62%), var(--mk-canvas); animation: mk-bg-drift 38s ease-in-out infinite alternate; will-change: transform; }
body::after { content: ""; position: fixed; inset: -12%; z-index: -1; pointer-events: none; background: radial-gradient(110% 32% at 30% 80%, color-mix(in srgb, var(--mk-dot) 15%, transparent), transparent 62%), radial-gradient(60% 34% at 88% 14%, color-mix(in srgb, var(--mk-dot) 10%, transparent), transparent 66%); animation: mk-bg-breathe 16s ease-in-out infinite, mk-bg-drift-2 46s ease-in-out infinite alternate; will-change: transform, opacity; }
@keyframes mk-bg-drift { from { transform: translate3d(-2%, -1.5%, 0) scale(1); } to { transform: translate3d(2.5%, 2%, 0) scale(1.06); } }
@keyframes mk-bg-drift-2 { from { transform: translate3d(2%, 1%, 0) scale(1.04); } to { transform: translate3d(-2.5%, -2%, 0) scale(1); } }
@keyframes mk-bg-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }
button, input { font: inherit; }
a { color: var(--mk-brand); text-underline-offset: 3px; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2.5px solid var(--mk-brand); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 760; }
h2, figcaption { font-size: 15px; font-weight: 700; line-height: 1.3; }
/* A part inside a card or section: one step under h2, never the browser's larger default. */
h3 { font-size: 14px; font-weight: 700; line-height: 1.3; }
/* A group of fields (a license, an address) reads as one unit with its legend, without the browser's frame. */
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; font-size: 14px; font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
.mk-sr, .mk-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The page container takes focus only so focus has somewhere to go (the skip link, a closed explainer): it never wears a ring. */
main[tabindex="-1"]:focus, #mk-main:focus { outline: none; }
.mk-skip:focus { position: fixed; top: var(--mk-s-3); inset-inline-start: var(--mk-s-3); z-index: 100; padding: var(--mk-s-3); background: var(--mk-surface); }
.mk-js-only { display: none !important; }
.mk-js .mk-js-only { display: flex !important; }
.mk-shell { width: 100%; max-width: 480px; min-height: 100dvh; margin: 0 auto; padding-bottom: calc(var(--mk-tabbar-h) + var(--mk-s-8) + var(--mk-safe-bottom)); }
.mk-main { padding: var(--mk-s-3) var(--mk-gutter) var(--mk-s-6); overflow-wrap: anywhere; }
.mk-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mk-sp-card); }
.mk-muted, .mk-eyebrow { color: var(--mk-muted); }
.mk-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.mk-brand { color: var(--mk-brand); }
.mk-header, .mk-appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--mk-s-2); min-height: calc(var(--mk-bar-h) + var(--mk-safe-top)); padding: calc(var(--mk-s-2) + var(--mk-safe-top)) var(--mk-gutter) var(--mk-s-2); transition: background var(--mk-m-base) var(--mk-e-out); }
.mk-scrolled .mk-header, .mk-scrolled .mk-appbar { background: var(--mk-glass-2); backdrop-filter: blur(var(--mk-blur)); -webkit-backdrop-filter: blur(var(--mk-blur)); box-shadow: 0 1px 0 var(--mk-edge); }
.mk-logo { display: flex; align-items: center; flex: 1; gap: var(--mk-s-3); min-width: 0; min-height: var(--mk-ib); color: var(--mk-ink); text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.mk-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: var(--mk-s-1); border-radius: 12px; background: var(--mk-mark-tile); box-shadow: 0 1px 3px var(--mk-edge); }
.mk-mark svg { display: block; width: 100%; height: 100%; }
/* The light mark (brand/mako-<product>-light.svg, tools/light-marks.ts): white, one colour, for brand-colour surfaces. */
.mk-mark-light { --mk-deep: var(--mk-satin-shadow); --mk-light: var(--mk-day-surface); --mk-dot: var(--mk-day-surface); } /* the satin ribbon (tools/light-marks.ts): folds a cool shadow, highlights white */
.mk-mark-large { width: 80px; height: 80px; padding: var(--mk-s-3); border-radius: var(--mk-r-card); }
.mk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-2); flex: 0 1 auto; min-width: 0; max-width: 100%; }
.mk-ib { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--mk-ib); height: var(--mk-ib); min-width: var(--mk-ib); min-height: var(--mk-ib); padding: 0; margin: 0; border: 1px solid var(--mk-edge); border-radius: 50%; background: var(--mk-glass); color: var(--mk-ink); box-shadow: 0 1px 3px var(--mk-edge), inset 0 1px 0 var(--mk-hi); backdrop-filter: blur(var(--mk-blur)); -webkit-backdrop-filter: blur(var(--mk-blur)); text-decoration: none; cursor: pointer; transition: transform var(--mk-m-quick) var(--mk-e-spring), background var(--mk-m-quick) var(--mk-e-out); -webkit-touch-callout: none; }
.mk-ib:hover { background: var(--mk-tint); }
.mk-ib:active { transform: scale(var(--mk-press)); transition-duration: var(--mk-m-press); }
.mk-ib-brand, .mk-ib[aria-pressed="true"], .mk-ib[aria-current="page"] { background: var(--mk-brand-fill); color: var(--mk-on-brand); border-color: var(--mk-brand); }
.mk-ib-brand:hover { background: var(--mk-brand-fill); }
.mk-icon { display: block; width: 22px; height: 22px; flex: none; }
.mk-page-head { display: grid; gap: var(--mk-s-1); margin-bottom: var(--mk-s-4); }
.mk-page-head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.mk-appbar-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(in oklch var(--mk-icon-angle, 150deg), var(--mk-dot) 0%, var(--mk-dot) 14%, var(--mk-light) 58%, var(--mk-deep) 100%); color: var(--mk-day-surface); box-shadow: 0 3px 8px color-mix(in srgb, var(--mk-deep) 24%, transparent), inset 0 1px 0 var(--mk-hi); }
.mk-appbar-icon .mk-icon { width: 20px; height: 20px; }
.mk-appbar :is(h1, .mk-appbar-heading) { flex: 1; min-width: 0; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
/* A phone has no room for the app's icon beside the sponsor pill and three buttons: the title keeps it. */
@media (max-width: 430px) { .mk-appbar:has(.mk-sponsor) .mk-appbar-icon { display: none; } }
/* A 320px phone: the title keeps whole words (Overview never splits); the page icon steps aside. */
@media (max-width: 359.98px) { .mk-appbar-icon { display: none; } }
.mk-info { position: relative; flex: none; }
.mk-info > summary { list-style: none; }
/* Passive (the default, owner Nov 16): a small muted i on the text's baseline after a heading or label. No fill, border
   or shadow; the padding makes the 44px tap target and the negative margin keeps it from moving the line. */
.mk-info-passive { display: inline-block; vertical-align: baseline; }
/* A heading or label with its passive (i): the glyph follows the words, not the row's far end. */
/* A heading or label with its (i): the words run inline and the (i) follows the last word, also when they wrap. */
.mk-with-info { display: block; min-width: 0; }
.mk-with-info > :not(.mk-info) { display: inline; margin: 0; }
.mk-with-info > .mk-info { display: inline-block; margin-inline-start: var(--mk-s-1); vertical-align: baseline; }
.mk-info-glyph { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; min-height: 44px; margin: calc(var(--mk-s-3) * -1); padding: 0; border-radius: 50%; color: var(--mk-muted); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color var(--mk-m-quick) var(--mk-e-out); }
.mk-info-glyph .mk-icon { width: .95em; height: .95em; min-width: 14px; min-height: 14px; max-width: 18px; max-height: 18px; transform: translateY(.08em); stroke-width: 2; }
.mk-info-glyph:hover, [data-mk-state="hover"] > .mk-info-passive > .mk-info-glyph { color: var(--mk-brand-ink); }
.mk-info-glyph:active, [data-mk-state="press"] > .mk-info-passive > .mk-info-glyph { color: var(--mk-brand); }
.mk-info-glyph:focus-visible, [data-mk-state="focus"] > .mk-info-passive > .mk-info-glyph { outline: 2px solid var(--mk-brand); outline-offset: -8px; }
[data-mk-state="hover"] > .mk-info-active > .mk-ib { background: linear-gradient(155deg, color-mix(in srgb, var(--mk-brand) 28%, transparent), color-mix(in srgb, var(--mk-brand) 10%, transparent)); }
[data-mk-state="press"] > .mk-info-active > .mk-ib { transform: scale(var(--mk-press)); }
[data-mk-state="focus"] > .mk-info-active > .mk-ib { outline: 2.5px solid var(--mk-brand); outline-offset: 3px; }
.mk-catalog-state.mk-catalog-wide { grid-column: 1 / -1; justify-items: stretch; text-align: start; }
.mk-info > summary::-webkit-details-marker { display: none; }
.mk-info-body { font-size: 14px; line-height: 1.55; }
.mk-info-body p + p { margin-top: var(--mk-s-3); }
.mk-info[open] > .mk-info-body { position: absolute; z-index: 50; top: calc(100% + var(--mk-s-2)); inset-inline-end: 0; width: min(280px, 80vw); max-height: 65dvh; overflow: auto; padding: var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-surface); box-shadow: var(--mk-shadow); }
.mk-card, .mk-search { position: relative; border: 1px solid var(--mk-edge); background: var(--mk-glass); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); backdrop-filter: blur(var(--mk-blur)) saturate(170%); -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(170%); }
.mk-card { display: grid; align-content: start; gap: var(--mk-gap-in); padding: var(--mk-pad-card); border-radius: var(--mk-r-card); animation: mk-rise var(--mk-m-gentle) var(--mk-e-out) both; }
/* A picture placed straight in a card (a cover, a sample page) fills the card's width at its own proportions, never wider than the screen. */
.mk-card > img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--mk-r-field); }
.mk-search { display: flex; align-items: center; gap: var(--mk-s-3); min-height: 52px; margin-bottom: var(--mk-sp-section); padding: 0 var(--mk-s-4); border-radius: var(--mk-r-field); }
.mk-search input { width: 100%; min-width: 0; min-height: 50px; border: 0; outline: 0; background: transparent; color: var(--mk-ink); font-size: 16px; }
.mk-search:focus-within { outline: 2px solid var(--mk-brand); }
/* The kit's clear button (field-clear) stands in for the browser's own: an icon, named, a 44px target. */
.mk-search input::-webkit-search-cancel-button, .mk-records-find input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; appearance: none; }
.mk-search .mk-search-clear, .mk-records-find .mk-search-clear { --mk-ib: 44px; margin-inline-end: calc(-1 * var(--mk-s-3)); border-color: transparent; background: transparent; color: var(--mk-muted); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mk-family + .mk-family { margin-top: var(--mk-sp-section); }
.mk-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); margin-bottom: var(--mk-s-3); }
.mk-section-head h2 { font-size: 13.5px; }
.mk-family-count { font-size: 12px; color: var(--mk-muted); font-variant-numeric: tabular-nums; }
.mk-grid > ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--mk-s-3) 0; padding: 0; margin: 0; list-style: none; }
.mk-grid li { min-width: 0; }
.mk-tile { display: flex; flex-direction: column; align-items: center; gap: var(--mk-s-2); min-width: 0; min-height: 104px; padding: var(--mk-s-1) 2px 0; color: var(--mk-ink); text-decoration: none; -webkit-touch-callout: none; user-select: none; touch-action: manipulation; animation: mk-rise var(--mk-m-gentle) var(--mk-e-out) both; }
.mk-grid li:nth-child(4n + 2) .mk-tile { animation-delay: var(--mk-m-stagger); }
.mk-grid li:nth-child(4n + 3) .mk-tile { animation-delay: calc(2 * var(--mk-m-stagger)); }
.mk-grid li:nth-child(4n + 4) .mk-tile { animation-delay: calc(3 * var(--mk-m-stagger)); }
.mk-tile-icon { position: relative; display: grid; place-items: center; width: 62px; height: 62px; flex: none; border-radius: var(--mk-r-tile); background: linear-gradient(in oklch var(--mk-icon-angle, 150deg), var(--mk-dot) 0%, var(--mk-dot) 14%, var(--mk-light) 58%, var(--mk-deep) 100%); color: var(--mk-day-surface); box-shadow: 0 6px 16px color-mix(in srgb, var(--mk-deep) 24%, transparent), inset 0 1px 0 var(--mk-hi); transition: transform var(--mk-m-quick) var(--mk-e-spring); }
.mk-tile-icon::before { content: ""; position: absolute; inset-inline-start: 6%; inset-inline-end: 6%; top: 3%; height: 42%; border-radius: 14px 14px 40% 40%; background: linear-gradient(180deg, var(--mk-hi), transparent); pointer-events: none; }
.mk-tile-icon .mk-icon { width: 28px; height: 28px; }
.mk-tile:active .mk-tile-icon { transform: scale(var(--mk-press)); }
.mk-tile.mk-holding .mk-tile-icon { transform: scale(1.08); transition-duration: var(--mk-m-gentle); }
.mk-tile-label { display: block; max-width: 100%; font-size: 11px; font-weight: 650; line-height: 1.25; text-align: center; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* one line on phones: a step smaller, then an ellipsis */
.mk-tile-soon { color: var(--mk-muted); }
.mk-tile-soon .mk-tile-icon { background: var(--mk-tint); color: var(--mk-muted); box-shadow: inset 0 1px 0 var(--mk-hi); opacity: .65; }
.mk-soon { position: absolute; inset-inline-end: -4px; bottom: -5px; padding: 2px var(--mk-s-1); border: 1px solid var(--mk-edge); border-radius: 6px; background: var(--mk-surface); color: var(--mk-muted); font-size: 9px; line-height: 1.2; font-weight: 700; }
.mk-home-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mk-s-3); margin-top: var(--mk-s-8); font-size: 12px; }
.mk-tabbar { position: fixed; z-index: 40; left: 50%; bottom: calc(var(--mk-s-4) + var(--mk-safe-bottom)); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; justify-items: center; width: calc(100% - 28px); max-width: 452px; height: var(--mk-tabbar-h); padding: var(--mk-s-1); border: 1px solid var(--mk-edge); border-radius: 26px; background: var(--mk-glass-2); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); backdrop-filter: blur(var(--mk-blur)) saturate(170%); -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(170%); transform: translateX(-50%); }
.mk-tabbar .mk-ib { box-shadow: none; border-color: transparent; background: transparent; }
.mk-tabbar .mk-ib[aria-current="page"] { background: var(--mk-brand-fill); color: var(--mk-on-brand); }
.mk-headline { gap: var(--mk-s-3); padding: var(--mk-s-6); }
.mk-headline-label { color: var(--mk-muted); font-size: 13.5px; font-weight: 650; }
.mk-headline-number { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--mk-s-2); }
.mk-headline-number strong { min-width: 0; font-size: clamp(28px, 8vw, 40px); font-weight: 760; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.mk-headline-number > span, .mk-headline time { color: var(--mk-muted); font-size: 12px; }
/* Chips wrap onto the next line, so none is cut off and the page never scrolls sideways. A deliberate scroller (the
   booking days) says so with .mk-chips-scroll: one line that scrolls, its far edge fading so the next chip shows. */
.mk-chips { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); min-width: 0; margin: 0; padding: var(--mk-s-1) 0 var(--mk-s-1); list-style: none; }
.mk-chips-scroll { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-inline-end: var(--mk-s-6); -webkit-mask-image: linear-gradient(to left, transparent, #000 var(--mk-s-6)); mask-image: linear-gradient(to left, transparent, #000 var(--mk-s-6)); }
.mk-chips-scroll::-webkit-scrollbar { display: none; }
.mk-chip { display: inline-flex; align-items: center; justify-content: center; gap: var(--mk-s-1); min-width: 44px; min-height: 44px; flex: 0 0 auto; padding: 0 var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-glass); color: var(--mk-muted); text-decoration: none; font-size: 12px; font-weight: 650; transition: transform var(--mk-m-quick) var(--mk-e-spring); }
.mk-chip-on { background: var(--mk-tint); color: var(--mk-brand-ink); border-color: var(--mk-brand); }
.mk-chip:active { transform: scale(var(--mk-press)); }
/* Pick chips: pick several from a set (service states, concerns, plans). A .mk-chips list of label.mk-chip-pick, each
   holding a checkbox and its words (and a check icon shown when picked). The box itself is hidden; the chip shows the
   on look and the focus ring. Inside an autosave form each tap saves at once. */
.mk-chip-pick { position: relative; flex: 0 1 auto; cursor: pointer; }
.mk-chip-pick input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.mk-chip-pick:has(input:checked) { background: var(--mk-tint); color: var(--mk-brand-ink); border-color: var(--mk-brand); }
.mk-chip-pick:has(input:focus-visible) { outline: 2.5px solid var(--mk-brand); outline-offset: 2px; }
.mk-chip-pick .mk-icon { display: none; flex: none; width: 16px; height: 16px; }
.mk-chip-pick:has(input:checked) .mk-icon { display: inline-block; }
.mk-options { gap: var(--mk-s-3); }
.mk-option-switch { display: grid; grid-template-columns: 1fr 1fr; gap: var(--mk-s-1); padding: var(--mk-s-1); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-glass); }
.mk-option-switch label { position: relative; cursor: pointer; }
.mk-option-switch span { display: grid; place-items: center; min-height: 44px; border-radius: calc(var(--mk-r-field) - var(--mk-s-1)); font-weight: 650; }
.mk-option-switch input:checked + span { background: var(--mk-brand-fill); color: var(--mk-on-brand); }
.mk-option-switch input:focus-visible + span { outline: 2.5px solid var(--mk-brand); outline-offset: 2px; }
.mk-option-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mk-s-3); align-items: end; }
.mk-option-field { display: grid; gap: var(--mk-s-1); min-width: 0; color: var(--mk-muted); font-size: 12px; }
.mk-option-field input { width: 100%; min-width: 0; min-height: 44px; padding: var(--mk-s-2) var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-glass); color: var(--mk-ink); font-size: 16px; }
.mk-option-submit { justify-self: end; }
.mk-mini-result { display: flex; justify-content: space-between; gap: var(--mk-s-3); padding-block: var(--mk-s-2); font-size: 13px; }
.mk-mini-result strong { text-align: end; font-variant-numeric: tabular-nums; }
.mk-econ-scroll { overflow-x: auto; }
.mk-econ-table { width: 100%; min-width: 660px; border-collapse: separate; border-spacing: 4px; font-size: 12px; }
.mk-econ-table th { padding: var(--mk-s-2); text-align: start; color: var(--mk-muted); }
.mk-econ-table td { padding: var(--mk-s-3); border-radius: var(--mk-r-field); background: var(--mk-line); vertical-align: top; }
.mk-econ-table td > * { display: block; }
.mk-econ-table strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.mk-econ-table time, .mk-econ-table td > span { margin-top: var(--mk-s-1); font-size: 11px; }
.mk-econ-table .mk-econ-up { background: color-mix(in srgb, var(--mk-brand) 12%, var(--mk-surface)); }
.mk-econ-table .mk-econ-down { background: color-mix(in srgb, var(--mk-negative) 12%, var(--mk-surface)); }
.mk-option-more > summary { margin-inline-start: auto; list-style: none; }
.mk-option-more > summary::-webkit-details-marker { display: none; }
.mk-option-more[open] .mk-icon { transform: rotate(180deg); }
.mk-option-more .mk-option-field { margin-top: var(--mk-s-2); }
.mk-heatmap { gap: var(--mk-s-4); }
.mk-heatmap-group h3 { margin: 0 0 var(--mk-s-2); font-size: 12px; font-weight: 650; color: var(--mk-muted); }
.mk-heatmap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--mk-s-2); }
.mk-heat-tile { display: grid; place-content: center; gap: var(--mk-s-1); min-width: 0; min-height: 76px; border-radius: var(--mk-s-3); text-align: center; font-size: 12px; background: var(--mk-line); color: var(--mk-ink); }
.mk-heat-1, .mk-heat-2, .mk-heat-3, .mk-heat-4, .mk-heat-5 { --mk-heat-colour: var(--mk-brand); }
.mk-heat--1, .mk-heat--2, .mk-heat--3, .mk-heat--4, .mk-heat--5 { --mk-heat-colour: var(--mk-negative); }
.mk-heat-1, .mk-heat--1 { background: color-mix(in srgb, var(--mk-heat-colour) 12%, var(--mk-surface)); }
.mk-heat-2, .mk-heat--2 { background: color-mix(in srgb, var(--mk-heat-colour) 22%, var(--mk-surface)); }
.mk-heat-3, .mk-heat--3 { background: color-mix(in srgb, var(--mk-heat-colour) 32%, var(--mk-surface)); }
.mk-heat-4, .mk-heat--4 { background: color-mix(in srgb, var(--mk-heat-colour) 42%, var(--mk-surface)); }
.mk-heat-5, .mk-heat--5 { background: var(--mk-heat-colour); color: var(--mk-on-brand); }
.mk-chain-row { display: grid; grid-template-columns: minmax(0, .7fr) repeat(2, minmax(0, 1fr)); gap: var(--mk-s-2); align-items: center; min-height: 44px; border-bottom: 1px solid var(--mk-edge); font-size: 12px; font-variant-numeric: tabular-nums; }
.mk-chain-row > :not(:first-child) { text-align: center; }
.mk-chain-row a { display: grid; align-content: center; min-height: 44px; }
.mk-chain-heading { color: var(--mk-muted); }
.mk-chain-selected { background: var(--mk-tint); }
.mk-chain-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mk-s-3); padding: var(--mk-s-3) 0; }
.mk-chain-comparison p { display: grid; gap: var(--mk-s-1); }
.mk-chain-comparison span { color: var(--mk-muted); font-size: 12px; }
.mk-data-section { gap: var(--mk-s-3); }
.mk-data-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 48px; align-items: center; gap: var(--mk-s-2); min-height: 52px; border-bottom: 1px solid var(--mk-edge); font-size: 12px; }
.mk-data-row:last-child { border: 0; }
.mk-row-label { min-width: 0; font-weight: 550; }
.mk-row-label a { display: flex; align-items: center; min-height: 52px; color: inherit; text-decoration: none; }
.mk-row-label a::after { content: ""; position: absolute; inset: 0; }
.mk-row-value { min-width: 0; max-width: 140px; font-weight: 650; text-align: end; font-variant-numeric: tabular-nums; }
.mk-row-value small { margin-inline-start: var(--mk-s-1); color: var(--mk-muted); font-size: 10px; font-weight: 400; }
.mk-row-value small:not(:empty) { display: inline-block; }
.mk-row-selected { background: var(--mk-tint); border-radius: 8px; }
.mk-change { color: var(--mk-muted); text-align: end; font-size: 11px; font-variant-numeric: tabular-nums; }
.mk-positive { color: var(--mk-brand); }
.mk-negative, .mk-error { color: var(--mk-negative); }
.mk-js .mk-row-extra { display: none; }
.mk-js .mk-expanded .mk-row-extra { display: grid; }
.mk-more { justify-content: center; }
.mk-more [aria-expanded="true"] .mk-icon { transform: rotate(180deg); }
.mk-leads { display: grid; gap: var(--mk-s-4); margin-top: var(--mk-sp-section); }
.mk-empty { justify-items: center; gap: var(--mk-s-5); padding: var(--mk-s-8) var(--mk-s-4); text-align: center; }
.mk-empty > .mk-icon { width: 32px; height: 32px; color: var(--mk-muted); }
/* A sheet attached to an edge is square on that edge (owner, Nov 16: notes #20, #26): on phones the bottom sheet (and the
   info sheet, which is one) rises from the screen's bottom edge, rounded on top only; a modal dialog (from 900px) is
   rounded all round; the top sheet hangs from the bar, rounded at the bottom only. */
.mk-sheet { width: 100%; max-width: 480px; max-height: calc(100dvh - 64px); margin: auto auto 0; padding: var(--mk-s-2) 0 0; border: 1px solid var(--mk-edge); border-bottom: 0; border-radius: var(--mk-r-sheet) var(--mk-r-sheet) 0 0; background: var(--mk-sheet-surface); color: var(--mk-ink); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); overscroll-behavior: contain; }
.mk-sheet[open] { animation: mk-sheet-in var(--mk-m-screen) var(--mk-e-out) both; }
.mk-sheet::before { content: ""; display: block; width: 40px; height: 5px; margin: 0 auto var(--mk-s-2); border-radius: 3px; background: color-mix(in srgb, var(--mk-muted) 45%, transparent); }
.mk-sheet::backdrop { background: var(--mk-scrim); backdrop-filter: blur(var(--mk-scrim-blur)); -webkit-backdrop-filter: blur(var(--mk-scrim-blur)); }
.mk-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); padding: 0 var(--mk-s-3) 0 var(--mk-s-5); touch-action: pan-x; }
.mk-sheet-head h2 { font-size: 17px; }
.mk-sheet-body { padding: var(--mk-s-3) var(--mk-s-5) calc(var(--mk-s-6) + var(--mk-safe-bottom)); overflow-wrap: anywhere; }
.mk-sheet-body a:not(.mk-ib) { display: inline-flex; align-items: center; min-height: 44px; }
.mk-sheet-top { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: hidden; }
.mk-sheet-top[open] { animation: none; }
.mk-sheet-top::before { display: none; }
.mk-sheet-top::backdrop { background: linear-gradient(to bottom, transparent calc(var(--mk-bar-h) + var(--mk-safe-top)), var(--mk-scrim) calc(var(--mk-bar-h) + var(--mk-safe-top))); backdrop-filter: none; -webkit-backdrop-filter: none; }
.mk-sheet-top .mk-sheet-panel { width: calc(100% - 16px); max-width: 464px; max-height: calc(100dvh - var(--mk-bar-h) - var(--mk-safe-top) - var(--mk-s-2)); margin: calc(var(--mk-bar-h) + var(--mk-safe-top)) auto 0; padding-top: var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 0 0 var(--mk-r-sheet) var(--mk-r-sheet); background: var(--mk-sheet-surface); box-shadow: var(--mk-shadow); overflow-y: auto; }
.mk-sheet-top[open] .mk-sheet-panel { transform-origin: 100% 0; animation: mk-sheet-grow var(--mk-m-screen) var(--mk-e-out) both; }
[dir="rtl"] .mk-sheet-top[open] .mk-sheet-panel { transform-origin: 0 0; }
.mk-sheet-toggle { position: fixed; z-index: 1; }
.mk-notifications { padding-bottom: var(--mk-s-3); margin-bottom: var(--mk-s-4); border-bottom: 1px solid var(--mk-edge); }
.mk-sheet-body .mk-notification { display: grid; gap: var(--mk-s-2); color: var(--mk-ink); text-decoration: none; }
.mk-notification time { font-size: 12px; }
/* The account drawer grows out of the account icon at the bar's end (owner, Nov 17), never drops from the middle. */
@keyframes mk-sheet-grow { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk-sheet-top[open] .mk-sheet-panel { animation: none; } }
.mk-setting { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-3); min-height: 52px; }
.mk-setting-choice { flex-wrap: wrap; padding-block: var(--mk-s-2); }
/* A choice keeps its own size at the row's end, also when it wraps under a long label (ui-ux-guidelines §2: buttons are
   sized to their words; rows with long and short labels then line their choices up the same way). */
.mk-setting-choice > .mk-seg { flex: 0 0 auto; margin-inline-start: auto; }
/* An On/Off pair beside its label keeps its words: the label wraps instead of squeezing the choices. */
.mk-setting > span:first-child { min-width: 0; }
.mk-setting:not(.mk-setting-choice) > .mk-seg { flex: none; }
/* A tag, status or tick beside a setting's words keeps its size and one line; the words wrap instead. */
.mk-setting > :is(.mk-tag, .mk-status) { flex: none; white-space: nowrap; }
/* The row's words take the free space, so a tag, an (i) and an icon button sit together at the end (not spread out). */
.mk-setting > :first-child:not(.mk-tag, .mk-status), .mk-setting > input[type="hidden"] + :not(input, .mk-tag, .mk-status) { flex: 1 1 auto; }
.mk-setting > input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--mk-brand); }
.mk-status { margin-inline-start: auto; padding: var(--mk-s-1) var(--mk-s-2); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-tint); color: var(--mk-muted); font-size: 11px; text-align: center; }
.mk-entry { display: flex; align-items: center; gap: var(--mk-s-2); min-height: 52px; padding: var(--mk-s-1); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-glass); }
.mk-entry:focus-within { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
.mk-entry input { flex: 1; min-width: 0; width: 100%; min-height: 44px; padding: 0 var(--mk-s-2); border: 0; outline: 0; background: transparent; color: var(--mk-ink); font-size: 16px; }
.mk-entry input::placeholder { color: var(--mk-muted); opacity: 1; }
.mk-js .mk-sheet [data-etrade-pending="false"] .mk-etrade-code { display: none; }
.mk-quote-row { grid-template-columns: minmax(0, 1fr) auto 64px 44px; }
.mk-connect-page .mk-shell { padding-bottom: 0; }
.mk-connect-card { margin-top: var(--mk-s-8); gap: var(--mk-s-4); }
.mk-connect-card .mk-section-head { margin: 0; }
.mk-connect-card h1 { font-size: 22px; }
.mk-theme-choices { display: flex; justify-content: space-between; gap: var(--mk-s-3); padding: var(--mk-s-3) 0 var(--mk-s-5); border-bottom: 1px solid var(--mk-edge); }
.mk-theme-choices > div { display: grid; justify-items: center; gap: var(--mk-s-2); font-size: 12px; color: var(--mk-muted); }
.mk-toast { position: fixed; z-index: 90; left: 50%; bottom: max(calc(var(--mk-tabbar-h) + 36px + var(--mk-safe-bottom)), var(--mk-toast-floor, 0px)); max-width: calc(100% - 40px); padding: var(--mk-s-3) var(--mk-s-5); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-surface); color: var(--mk-ink); box-shadow: var(--mk-shadow); transform: translateX(-50%); font-size: 13.5px; font-weight: 650; text-align: center; }
.mk-tip { position: fixed; inset: auto; z-index: 100; max-width: calc(100vw - 24px); margin: 0; padding: var(--mk-s-1) var(--mk-s-3); border: 0; border-radius: 10px; background: var(--mk-ink); color: var(--mk-canvas); font-size: 12px; font-weight: 650; pointer-events: none; transform: translate(-50%, -100%); white-space: nowrap; }
/* Explainer cards */
.mk-explain-open { overflow: hidden; }
.mk-explain { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--mk-canvas); color: var(--mk-ink); overflow: hidden; overscroll-behavior: contain; touch-action: pan-y; }
.mk-explain::backdrop { background: var(--mk-canvas); }
.mk-explain-frame { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; max-width: 480px; height: 100%; margin: 0 auto; padding: calc(var(--mk-s-3) + var(--mk-safe-top)) var(--mk-gutter) calc(var(--mk-s-6) + var(--mk-safe-bottom)); }
.mk-explain-head { display: flex; align-items: center; gap: var(--mk-s-3); }
.mk-explain-head button:disabled { opacity: .35; cursor: default; }
.mk-explain-progress { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--mk-s-2); flex: 1; min-width: 0; color: var(--mk-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.mk-explain-progress p:first-child { min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.mk-explain-progress progress { display: block; grid-column: 1 / -1; width: 100%; height: 3px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: var(--mk-line); color: var(--mk-brand); }
.mk-explain-progress progress::-webkit-progress-bar { background: var(--mk-line); }
.mk-explain-progress progress::-webkit-progress-value { background: var(--mk-brand); transition: width var(--mk-m-base) var(--mk-e-out); }
.mk-explain-progress progress::-moz-progress-bar { background: var(--mk-brand); }
.mk-explain-body { display: flex; min-height: 0; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.mk-explain-card { display: grid; justify-items: center; align-content: center; gap: var(--mk-s-6); width: 100%; margin: auto 0; padding: var(--mk-s-8) 0; text-align: center; animation: mk-explain-in var(--mk-m-gentle) var(--mk-e-out) both; }
.mk-explain-card h2 { font-size: clamp(24px, 7vw, 32px); line-height: 1.15; letter-spacing: -.02em; font-weight: 750; }
.mk-explain-card > p { max-width: 34ch; color: var(--mk-muted); font-size: 18px; line-height: 1.55; }
.mk-explain-tile { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: var(--mk-r-sheet); color: var(--mk-day-surface); background: linear-gradient(in oklch var(--mk-icon-angle, 150deg), var(--mk-dot) 0%, var(--mk-dot) 14%, var(--mk-light) 58%, var(--mk-deep) 100%); box-shadow: 0 10px 28px color-mix(in srgb, var(--mk-deep) 24%, transparent), inset 0 1px 0 var(--mk-hi); }
.mk-explain-tile::before { content: ""; position: absolute; inset: 4px 6px 54%; border-radius: 28px 28px 40% 40%; background: linear-gradient(180deg, var(--mk-hi), transparent); pointer-events: none; }
.mk-explain-tile .mk-icon { width: 48px; height: 48px; }
/* The countdown to the next card, under the progress (note #27): it empties over the card's reading time. */
.mk-explain-timer { display: block; grid-column: 1 / -1; height: 2px; border-radius: 999px; background: color-mix(in srgb, var(--mk-line) 60%, transparent); overflow: hidden; }
.mk-explain-timer > span { display: block; width: 100%; height: 100%; background: color-mix(in srgb, var(--mk-brand) 55%, transparent); transform-origin: left center; }
:dir(rtl) .mk-explain-timer > span { transform-origin: right center; }
.mk-explain-timer.mk-running > span { animation: mk-explain-timer var(--mk-explain-time, 7s) linear forwards; }
.mk-explain-timer.mk-paused > span { animation-play-state: paused; }
@keyframes mk-explain-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.mk-explain-foot { display: flex; justify-content: center; padding-top: var(--mk-s-2); }
.mk-explain-skip { min-width: 44px; min-height: 44px; padding: 0 var(--mk-s-3); border: 0; background: transparent; color: var(--mk-muted); font: inherit; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mk-explain-skip:hover { color: var(--mk-ink); }
.mk-toast:has(.mk-toast-word) { display: flex; align-items: center; gap: var(--mk-s-1); padding: 0 0 0 var(--mk-s-4); }
.mk-toast-word { white-space: nowrap; }
.mk-explain-sources { justify-items: start; text-align: start; }
.mk-explain-sources .mk-explain-tile { width: 64px; height: 64px; border-radius: var(--mk-r-tile); }
.mk-explain-sources .mk-explain-tile .mk-icon { width: 30px; height: 30px; }
.mk-explain-notes { display: grid; gap: var(--mk-s-3); font-size: 14px; line-height: 1.55; }
.mk-explain-notes a { display: inline-flex; align-items: center; min-height: 44px; }
.mk-explain-help dl { display: grid; gap: var(--mk-s-2); width: 100%; font-size: 15px; line-height: 1.5; }
.mk-explain-help dt { margin-top: var(--mk-s-3); font-weight: 650; }
.mk-explain-help dd { margin: 0; color: var(--mk-muted); }
.mk-explain-fallback { padding: var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); }
.mk-explain-fallback summary { min-height: 44px; cursor: pointer; font-weight: 650; }
.mk-explain-fallback section { display: grid; gap: var(--mk-s-2); margin-top: var(--mk-s-5); }
@keyframes mk-explain-in { from { opacity: 0; transform: translateY(var(--mk-rise)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk-explain-card { animation: none; } .mk-explain-progress progress::-webkit-progress-value { transition: none; } .mk-explain-timer { display: none; } }
/* End explainer cards */

/* Sign in */
.mk-auth-page .mk-shell { padding-bottom: 0; }
.mk-auth-screen { display: flex; flex-direction: column; min-height: 100dvh; padding: var(--mk-safe-top) var(--mk-gutter) calc(20px + var(--mk-safe-bottom)); }
.mk-auth-content { flex: 1; }
.mk-auth-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); height: 60px; } /* Back at the start, Help (auth-header help) at the end */
.mk-auth-hero { display: grid; justify-items: center; gap: var(--mk-s-3); padding-top: var(--mk-s-2); } /* no fade: the mark and name are the page's largest paint */
/* Sign-in and splash: the product's transparent mark, large (about 120px), no tile, in both themes (ui-ux-guidelines section 4). */
.mk-auth-hero .mk-auth-mark { --u: 1.2px; width: 120px; height: 120px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.mk-auth-hero .mk-auth-mark svg { width: 100%; }
.mk-auth-name { font-size: 24px; font-weight: 750; letter-spacing: -.015em; white-space: nowrap; }
.mk-auth-bar .mk-auth-help { margin-inline-start: auto; } /* Help stays at the end with or without Back (note #37) */
/* The code screen's mark half as large again (note #35). */
.mk-auth-screen:has(.mk-auth-code-actions, [data-auth-code]) .mk-auth-hero .mk-auth-mark { --u: 1.8px; width: 180px; height: 180px; }
/* Signing in (not creating): one short line with the Terms and Privacy links (note #33). */
.mk-auth-terms-line { margin: var(--mk-s-3) 0 0; color: var(--mk-muted); font-size: 13px; line-height: 1.5; }
.mk-auth-screen[data-auth-mode="create"] .mk-auth-terms-line { display: none; }
.mk-auth-legal-toggle { margin-bottom: var(--mk-s-4); }
.mk-auth-glass { position: relative; border: 1px solid var(--mk-edge); background: var(--mk-glass); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); backdrop-filter: blur(var(--mk-blur)) saturate(170%); -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(170%); }
.mk-auth-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--mk-hi), transparent 42%); pointer-events: none; }
.mk-auth-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 60px; padding: var(--mk-s-1); margin-top: var(--mk-s-5); border-radius: 24px; animation: mk-auth-rise var(--mk-m-gentle) var(--mk-e-out) var(--mk-m-stagger) both; }
.mk-auth-indicator { position: absolute; top: 6px; bottom: 6px; inset-inline-start: 6px; width: calc((100% - 12px) / 2); border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--mk-brand) 90%, var(--mk-light)), var(--mk-brand)); box-shadow: 0 6px 16px color-mix(in srgb, var(--mk-brand) 30%, transparent), inset 0 1px 0 var(--mk-hi); transition: transform var(--mk-m-base) var(--mk-e-spring); }
.mk-auth-screen[data-auth-mode="create"] .mk-auth-indicator { transform: translateX(100%); }
.mk-auth-switch a { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; border-radius: 18px; color: var(--mk-ink); font-size: 15px; font-weight: 700; text-decoration: none; transition: color var(--mk-m-quick) var(--mk-e-out), transform var(--mk-m-quick) var(--mk-e-spring); }
.mk-auth-switch a[aria-checked="true"] { color: var(--mk-on-brand); }
.mk-auth-switch a:active { transform: scale(var(--mk-press)); }
.mk-auth-providers { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--mk-s-3); margin-top: var(--mk-s-4); animation: mk-auth-rise var(--mk-m-gentle) var(--mk-e-out) calc(2 * var(--mk-m-stagger)) both; }
.mk-auth-provider { position: relative; display: grid; place-items: center; overflow: hidden; height: 58px; padding: 0; border-radius: var(--mk-r-field); cursor: pointer; }
.mk-auth-provider:active { transform: scale(.97); }
.mk-auth-provider svg { width: 28px; height: 28px; }
/* Sign in with Mako: the one sign-in every Mako app shares, so it takes words and twice a provider's width. */
.mk-auth-provider-mako { grid-column: span 2; display: flex; align-items: center; justify-content: center; gap: var(--mk-s-2); padding: 0 var(--mk-s-4); color: var(--mk-ink); font: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.mk-auth-provider-mako .mk-auth-provider-mark { display: inline-flex; }
.mk-auth-provider-mako .mk-auth-provider-mark svg { width: 34px; height: auto; }
.mk-auth-or { display: flex; align-items: center; gap: var(--mk-s-3); margin-top: var(--mk-s-4); color: var(--mk-muted); font-size: 13.5px; font-weight: 600; animation: mk-auth-rise var(--mk-m-gentle) var(--mk-e-out) calc(3 * var(--mk-m-stagger)) both; }
.mk-auth-or::before, .mk-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--mk-line); }
.mk-auth-email { display: flex; align-items: center; gap: var(--mk-s-2); height: 52px; margin-top: var(--mk-s-4); padding: 0 var(--mk-s-1) 0 var(--mk-s-4); border-radius: var(--mk-r-field); animation: mk-auth-rise var(--mk-m-gentle) var(--mk-e-out) calc(4 * var(--mk-m-stagger)) both; }
.mk-auth-email > .mk-icon { width: 22px; height: 22px; color: var(--mk-muted); }
.mk-auth-email input { position: relative; flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--mk-ink); font-size: 16px; }
.mk-auth-email input::placeholder { color: var(--mk-muted); opacity: 1; }
.mk-auth-email:focus-within { box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi), 0 0 0 2px var(--mk-brand); }
.mk-auth-consent-wrap { margin: var(--mk-s-3) calc(-1 * var(--mk-s-2)) 0; animation: mk-auth-rise var(--mk-m-gentle) var(--mk-e-out) both; }
.mk-auth-consent { container-type: inline-size; display: flex; align-items: center; justify-content: center; gap: var(--mk-s-2); min-height: 44px; color: var(--mk-muted); }
.mk-auth-checkbox { position: relative; display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.mk-auth-checkbox input { position: absolute; z-index: 1; inset-inline-start: -11px; top: -11px; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.mk-auth-check { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 2px solid var(--mk-muted); border-radius: 50%; transition: background-color var(--mk-m-base) var(--mk-e-out), border-color var(--mk-m-base) var(--mk-e-out), transform var(--mk-m-base) var(--mk-e-spring); }
.mk-auth-check .mk-icon { width: 13px; height: 13px; color: var(--mk-on-brand); stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset var(--mk-m-base) var(--mk-e-out) 60ms; }
.mk-auth-checkbox input:checked + .mk-auth-check, .mk-auth-agree[aria-checked="true"] .mk-auth-check { border-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--mk-brand) 90%, var(--mk-light)), var(--mk-brand)); }
.mk-auth-checkbox input:checked + .mk-auth-check .mk-icon, .mk-auth-agree[aria-checked="true"] .mk-icon { stroke-dashoffset: 0; }
.mk-auth-checkbox input:focus-visible + .mk-auth-check { outline: 2.5px solid var(--mk-brand); outline-offset: 3px; }
.mk-auth-checkbox input:active + .mk-auth-check { transform: scale(var(--mk-press)); }
.mk-auth-consent-text { flex: 0 1 auto; min-width: 0; white-space: nowrap; letter-spacing: -.01em; line-height: 1.5; cursor: pointer; font-size: clamp(7px, calc((100cqi - 66px) / 25.8), 12px); }
.mk-auth-link { position: relative; display: inline; padding: 0 1px; border: 0; background: none; color: var(--mk-brand); font: inherit; font-weight: 700; letter-spacing: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mk-auth-link::after { content: ""; position: absolute; inset-inline-start: -6px; inset-inline-end: -6px; top: 50%; height: 44px; transform: translateY(-50%); }
.mk-auth-why { margin: calc(-1 * var(--mk-s-3)) calc(-1 * var(--mk-s-3)) calc(-1 * var(--mk-s-3)) calc(-1 * var(--mk-s-1)); }
.mk-auth-consent.mk-auth-shake .mk-auth-checkbox { animation: mk-auth-shake var(--mk-m-screen) var(--mk-e-out); }
.mk-auth-consent.mk-auth-shake .mk-auth-check { border-color: var(--mk-brand); }
.mk-auth-screen [data-auth-gated], .mk-auth-resend { transition: transform var(--mk-m-quick) var(--mk-e-spring), opacity var(--mk-m-gentle) var(--mk-e-out), box-shadow var(--mk-m-gentle) var(--mk-e-out), filter var(--mk-m-gentle) var(--mk-e-out); }
.mk-auth-screen [aria-disabled="true"] { opacity: .42; filter: saturate(.5); box-shadow: none; cursor: not-allowed; }
.mk-auth-screen [aria-disabled="true"]:active { transform: none; }
.mk-auth-error { margin-top: var(--mk-s-3); color: var(--mk-negative); font-size: 13.5px; }
.mk-auth-foot { display: flex; justify-content: center; padding-top: var(--mk-s-10); }
.mk-auth-theme { --mk-auth-choice: 0; position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: var(--mk-s-1); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-glass); box-shadow: inset 0 1px 0 var(--mk-hi); }
.mk-auth-theme::before { content: ""; position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc((100% - 8px) / 4); border-radius: 999px; background: linear-gradient(180deg, color-mix(in srgb, var(--mk-brand) 90%, var(--mk-light)), var(--mk-brand)); box-shadow: 0 1px 3px var(--mk-edge); transform: translateX(calc(var(--mk-auth-choice) * 100%)); transition: transform var(--mk-m-base) var(--mk-e-spring); }
.mk-auth-theme:has([data-theme-choice="light"][aria-pressed="true"]) { --mk-auth-choice: 1; }
.mk-auth-theme:has([data-theme-choice="dark"][aria-pressed="true"]) { --mk-auth-choice: 2; }
.mk-auth-theme:has([data-theme-choice="sun"][aria-pressed="true"]) { --mk-auth-choice: 3; }
.mk-auth-theme-choice { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--mk-s-1); min-width: 44px; min-height: 44px; padding: 0 var(--mk-s-2); border: 0; border-radius: 999px; background: transparent; color: var(--mk-muted); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: color var(--mk-m-quick) var(--mk-e-out), background var(--mk-m-base) var(--mk-e-out); }
.mk-auth-theme-choice .mk-icon { width: 18px; height: 18px; }
.mk-auth-theme-choice { white-space: nowrap; }
/* Tight phones: the theme switch shows icons only (each keeps its name for touch hold and screen readers), so no word wraps. */
@media (max-width: 399.98px) { .mk-auth-theme-choice span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.mk-theme-extra { margin-top: var(--mk-s-2); }
.mk-theme-extra[hidden] { display: none; }
.mk-auth-theme-choice[aria-pressed="true"] { color: var(--mk-on-brand); }
.mk-auth-legal-sheet { padding: var(--mk-s-2) var(--mk-s-4) var(--mk-s-5); overflow-y: auto; scrollbar-width: none; }
.mk-auth-legal-sheet[open] { animation: mk-auth-sheet-in var(--mk-m-screen) var(--mk-e-out) both; }
.mk-auth-legal-sheet[open]::backdrop { animation: mk-auth-scrim-in var(--mk-m-screen) var(--mk-e-out) both; }
.mk-auth-legal-sheet.mk-auth-closing::backdrop { animation: mk-auth-scrim-out var(--mk-m-base) cubic-bezier(.4, 0, 1, 1) both; }
.mk-auth-legal-sheet .mk-sheet-head, .mk-auth-legal-sheet .mk-sheet-body { padding: 0; }
.mk-auth-legal-sheet .mk-sheet-head h2 { font-size: 17px; }
.mk-auth-summary { margin: var(--mk-s-2) 0 0; font-size: 15px; }
.mk-auth-contents-label { margin-top: var(--mk-s-4); min-height: 22px; color: var(--mk-muted); font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.mk-auth-contents { margin: var(--mk-s-1) 0 0; padding: 0; list-style: none; }
.mk-auth-contents details { border-bottom: 1px solid var(--mk-line); }
.mk-auth-contents summary { display: flex; align-items: center; gap: var(--mk-s-2); min-height: 48px; font-weight: 650; cursor: pointer; list-style: none; }
.mk-auth-contents summary::-webkit-details-marker { display: none; }
.mk-auth-contents summary .mk-icon { width: 18px; height: 18px; margin-inline-start: auto; color: var(--mk-muted); transition: transform var(--mk-m-base) var(--mk-e-out); }
.mk-auth-contents details[open] summary .mk-icon { transform: rotate(90deg); }
.mk-auth-contents p { margin: 0 0 var(--mk-s-3); color: var(--mk-muted); font-size: 13.5px; }
.mk-auth-agree { display: flex; align-items: center; gap: var(--mk-s-3); min-height: 48px; width: 100%; margin-top: var(--mk-s-2); padding: 0; border: 0; background: none; color: var(--mk-ink); font-size: 15px; font-weight: 700; text-align: start; cursor: pointer; }
.mk-auth-agree .mk-auth-check { width: 28px; height: 28px; }
.mk-auth-agree .mk-icon { width: 16px; height: 16px; }
.mk-auth-agree[aria-checked="true"] > span:last-child { color: var(--mk-muted); text-decoration: line-through; }
.mk-auth-code-copy { display: grid; gap: var(--mk-s-2); margin: var(--mk-s-6) 0 var(--mk-s-6); text-align: center; }
.mk-auth-code-copy p { color: var(--mk-muted); overflow-wrap: anywhere; }
.mk-auth-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--mk-s-2); }
.mk-auth-digit { width: 100%; min-width: 0; height: 58px; padding: 0; border-radius: var(--mk-r-field); color: var(--mk-ink); font-size: 24px; font-variant-numeric: tabular-nums; text-align: center; }
.mk-auth-code-submit { display: block; min-height: 44px; margin: var(--mk-s-3) auto 0; }
.mk-js .mk-auth-code-submit { display: none; }
.mk-auth-code-actions { display: grid; justify-items: center; gap: var(--mk-gap-in); margin-top: var(--mk-s-6); text-align: center; }
.mk-auth-resend-note { margin-top: var(--mk-s-2); color: var(--mk-muted); font-size: 12px; }
.mk-auth-change { display: inline-flex; align-items: center; min-height: 44px; font-size: 13.5px; }
.mk-auth-account-email { margin-bottom: var(--mk-s-3); overflow-wrap: anywhere; }
/* The signed-out account menu's Sign in: a full-width kit brand button (.mk-btn .mk-btn-brand, 48px tall, padded). */
.mk-auth-account-signin { width: 100%; margin-bottom: var(--mk-s-3); }
.mk-auth-gate { width: 100%; max-width: 480px; height: 100dvh; max-height: 100dvh; padding: 0; margin: 0 auto; border: 0; background: var(--mk-canvas); color: var(--mk-ink); overscroll-behavior: contain; }
.mk-auth-gate::backdrop { background: var(--mk-scrim); }
.mk-auth-gate[open] { animation: mk-auth-rise var(--mk-m-gentle) var(--mk-e-out) both; }
.mk-auth-limit { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--mk-s-6); min-height: 100dvh; padding: var(--mk-s-8) var(--mk-gutter); text-align: center; }
@keyframes mk-auth-rise { from { opacity: 0; transform: translateY(var(--mk-rise)); } to { opacity: 1; transform: none; } }
@keyframes mk-auth-sheet-in { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: none; } }
@keyframes mk-auth-scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mk-auth-scrim-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes mk-auth-shake { 0%, 100% { transform: none; } 20% { transform: translateX(calc(var(--mk-rise) * -.5)); } 40% { transform: translateX(calc(var(--mk-rise) * .5)); } 60% { transform: translateX(calc(var(--mk-rise) * -.3)); } 80% { transform: translateX(calc(var(--mk-rise) * .2)); } }
/* End sign in */
@keyframes mk-rise { from { opacity: 0; transform: translateY(var(--mk-rise)); } to { opacity: 1; transform: none; } }
@keyframes mk-sheet-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    :root { --mk-rise: 0px; --mk-press: 1; }
    *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
    .mk-sheet[open] { animation-name: mk-rise; }
    .mk-tile.mk-holding .mk-tile-icon { transform: none; }
}

/* Content protection, opt-in for products that sell their content: <html data-mk-protect>. No text selection, no
   long-press callout, no dragging, nothing prints. Fields stay usable. mk.js blocks copy and the context menu too. */
:root[data-mk-protect] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:root[data-mk-protect] :is(input, textarea, [contenteditable="true"]) { -webkit-user-select: text; user-select: text; }
:root[data-mk-protect] :is(img, svg, a) { -webkit-user-drag: none; user-drag: none; }
@media print { :root[data-mk-protect] body { display: none !important; } }
/* Print one part (data-mk-print="<id>" in mk.js): only that element shows on the page. */
@media print { :root[data-mk-printing] body * { visibility: hidden; } :root[data-mk-printing] [data-mk-printing], :root[data-mk-printing] [data-mk-printing] * { visibility: visible; } :root[data-mk-printing] [data-mk-printing] { position: absolute; inset: 0 0 auto; margin: 0; border: 0; box-shadow: none; } }

/* Each family of apps sits in its own glass container, so the grouping is visible (owner, kit polish). */
.mk-family { padding: var(--mk-s-3) var(--mk-s-2) var(--mk-s-4); border: 1px solid color-mix(in srgb, var(--mk-surface) 55%, transparent); border-radius: var(--mk-r-card); background: linear-gradient(155deg, color-mix(in srgb, var(--mk-surface) 42%, transparent), color-mix(in srgb, var(--mk-surface) 14%, transparent)); box-shadow: 0 10px 30px color-mix(in srgb, var(--mk-night-tile) 7%, transparent), inset 0 1px 0 color-mix(in srgb, var(--mk-day-surface) 55%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--mk-night-tile) 5%, transparent); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); }
.mk-family + .mk-family { margin-top: var(--mk-s-3); }
.mk-family .mk-section-head { padding: 0 var(--mk-s-2); margin-bottom: var(--mk-s-4); }
.mk-family .mk-section-head h2 { font-size: 15px; }
.mk-family .mk-family-count { min-width: 24px; padding: 2px var(--mk-s-2); border-radius: 999px; background: var(--mk-tint); color: var(--mk-brand-ink); font-weight: 650; text-align: center; }

/* Round icon buttons: tinted glass (owner's choice "3B", kit polish). No border. See-through and frosted, a thin ring that catches light at the top, and a halo that spreads on press. */
:root { --mk-rim: color-mix(in srgb, #fff 70%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mk-rim: color-mix(in srgb, #fff 28%, transparent); } }
:root[data-theme="dark"] { --mk-rim: color-mix(in srgb, #fff 28%, transparent); }
.mk-ib { border: 0; color: var(--mk-brand); background: linear-gradient(155deg, color-mix(in srgb, var(--mk-brand) 20%, transparent), color-mix(in srgb, var(--mk-brand) 6%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk-brand) 22%, transparent), inset 0 1.5px 0 var(--mk-rim); backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%); }
.mk-ib:hover { background: linear-gradient(155deg, color-mix(in srgb, var(--mk-brand) 28%, transparent), color-mix(in srgb, var(--mk-brand) 10%, transparent)); }
.mk-ib::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: 0 0 0 0 color-mix(in srgb, var(--mk-brand) 45%, transparent); transition: box-shadow .5s ease-out, opacity .5s ease-out; }
.mk-ib:active::after { opacity: 1; box-shadow: 0 0 0 12px color-mix(in srgb, var(--mk-brand) 0%, transparent); transition: none; }
.mk-tabbar .mk-ib { color: var(--mk-ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.mk-tabbar .mk-ib[aria-current="page"] { color: var(--mk-on-brand); } /* on the brand fill, as the bottom bar's current tab */
.mk-tabbar .mk-ib::after { display: none; }
@media (prefers-reduced-motion: reduce) { .mk-ib::after { transition: none; } }
/* The main action on a screen keeps a full fill, so it stands out from the glass buttons around it. */
.mk-ib.mk-ib-brand, .mk-ib[aria-pressed="true"] { color: var(--mk-on-brand); background: linear-gradient(180deg, color-mix(in srgb, var(--mk-brand) 84%, #fff), var(--mk-brand)); box-shadow: inset 0 1.5px 0 var(--mk-rim), 0 8px 18px color-mix(in srgb, var(--mk-brand) 34%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.mk-ib:disabled, .mk-ib[aria-disabled="true"] { opacity: .45; }

/* Logo - the owner's choice (Nov 13, 2026): no tile, raised m, 90% of the box wide, 3% left, 1.8% down. --u is one hundredth of the box. */
.mk-mark { --u: .4px; padding: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
.mk-mark svg { width: 90%; height: auto; transform: translate(calc(var(--u) * -3), calc(var(--u) * 1.8)); filter: drop-shadow(0 calc(var(--u) * -1) 0 rgba(255, 255, 255, .45)) drop-shadow(0 calc(var(--u) * 3) calc(var(--u) * 2) rgba(0, 0, 0, .35)) drop-shadow(0 calc(var(--u) * 9) calc(var(--u) * 9) rgba(0, 0, 0, .22)); }
.mk-mark-large { --u: .8px; padding: 0; border-radius: 0; }
/* A product's own mark (config kit.mark): its picture, never a tile; colour on light, dark in the dark theme, white on a
   brand-colour panel (.mk-mark-light). */
.mk-mark-own { background: none; box-shadow: none; }
.mk-mark-own img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mk-mark-own .mk-mark-night, .mk-mark-own .mk-mark-white { display: none; }
:root[data-theme="dark"] .mk-mark-own:not(.mk-mark-light) .mk-mark-day { display: none; }
:root[data-theme="dark"] .mk-mark-own:not(.mk-mark-light) .mk-mark-night { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-mark-own:not(.mk-mark-light) .mk-mark-day { display: none; } :root:not([data-theme="light"]) .mk-mark-own:not(.mk-mark-light) .mk-mark-night { display: block; } }
.mk-mark-own.mk-mark-light .mk-mark-day { display: none; }
.mk-mark-own.mk-mark-light .mk-mark-white { display: block; }

/* A chart note has a soft glow when there is something to read. */
@keyframes mk-note-pulse {
    0%, 100% { box-shadow: 0 0 4px 0 color-mix(in srgb, var(--mk-brand) 12%, transparent); }
    50% { box-shadow: 0 0 18px 5px color-mix(in srgb, var(--mk-brand) 32%, transparent); }
}

/* Daily notes - a quiet button, with a glow only for notable changes. */
.mk-headline:has(.mk-ib-note) .mk-headline-label { min-height: var(--mk-ib); padding-inline-end: calc(var(--mk-ib) + var(--mk-s-3)); display: flex; align-items: center; }
.mk-headline .mk-ib-note { position: absolute; top: var(--mk-s-6); inset-inline-end: var(--mk-s-6); }
.mk-headline .mk-note-pulse, .mk-tile-signal { animation: mk-note-pulse 3s ease-in-out infinite; }
.mk-chart-note .mk-sheet-body > section { margin-block: var(--mk-s-6); }
.mk-chart-note h3 { margin: 0 0 var(--mk-s-2); font-size: 14px; }
.mk-chart-note p, .mk-chart-note dl { margin: 0; }
.mk-note-signals { flex-wrap: wrap; overflow: visible; }
.mk-note-signals .mk-chip { flex: 0 1 auto; min-height: 28px; padding-block: var(--mk-s-1); font-size: 11px; }
.mk-chart-note dt { font-weight: 700; }
.mk-chart-note dd { margin: var(--mk-s-1) 0 var(--mk-s-3); }
.mk-tile-signal { position: absolute; top: -2px; inset-inline-end: -2px; width: 10px; height: 10px; border: 2px solid var(--mk-canvas); border-radius: 50%; background: var(--mk-brand); }
@media (prefers-reduced-motion: reduce) { .mk-headline .mk-note-pulse, .mk-tile-signal { animation: none; } }

/* Smart note - the visuals: where it sits, and cause-and-effect chains. */
.mk-chart-note section { margin-block: var(--mk-s-5); }
.mk-chart-note section > h3 { margin-bottom: var(--mk-s-2); }
.mk-note-range { display: grid; gap: var(--mk-s-1); margin-block: var(--mk-s-3); }
.mk-note-range-name { font-size: 13px; font-weight: 650; }
.mk-note-range-bar { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--mk-brand) 12%, transparent), color-mix(in srgb, var(--mk-brand) 45%, transparent)); }
.mk-note-range-bar i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--mk-brand); border: 3px solid var(--mk-canvas); transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.mk-note-range-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--mk-muted); }
.mk-note-range-ends span:nth-child(2) { color: var(--mk-ink); font-weight: 650; }
.mk-note-chain { margin-block: var(--mk-s-3); }
.mk-note-chain-label { display: block; margin-bottom: var(--mk-s-1); font-size: 12px; font-weight: 700; }
.mk-note-chain ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-1) 0; margin: 0; padding: 0; list-style: none; }
.mk-note-chain li { padding: var(--mk-s-1) var(--mk-s-2); border-radius: 10px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--mk-chain) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk-chain) 30%, transparent); }
.mk-note-chain li + li { margin-inline-start: var(--mk-s-5); position: relative; }
.mk-note-chain li + li::before { content: "\2192"; position: absolute; inset-inline-start: -18px; top: 50%; transform: translateY(-50%); color: var(--mk-chain); font-weight: 700; }
.mk-note-chain-up { --mk-chain: light-dark(#1f8a4c, #5fd08a); }
.mk-note-chain-down { --mk-chain: light-dark(#c0392b, #ff8a7a); }
.mk-note-chain-up .mk-note-chain-label, .mk-note-chain-down .mk-note-chain-label { color: var(--mk-chain); }

/* Top bar - one glass piece that mirrors the bottom bar: same width, height, corners and glass. Buttons sit inside it, flat, like the bottom bar's. Order is always: where you are (logo, or back and title), then actions, with the bell or account button last. */
.mk-header, .mk-appbar { top: calc(var(--mk-s-3) + var(--mk-safe-top)); width: calc(100% - 28px); max-width: 452px; min-height: 0; height: var(--mk-tabbar-h); margin: calc(var(--mk-s-3) + var(--mk-safe-top)) auto var(--mk-s-3); padding: var(--mk-s-1) var(--mk-s-1) var(--mk-s-1) var(--mk-s-4); gap: var(--mk-s-1); border: 1px solid var(--mk-edge); border-radius: 26px; background: var(--mk-glass-2); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(170%); backdrop-filter: blur(var(--mk-blur)) saturate(170%); }
.mk-scrolled .mk-header, .mk-scrolled .mk-appbar { background: var(--mk-glass-2); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); }
.mk-appbar { padding-inline-start: var(--mk-s-1); }
.mk-header .mk-actions, .mk-appbar .mk-actions { gap: 0; flex: none; flex-wrap: nowrap; }
.mk-header .mk-ib, .mk-appbar .mk-ib { box-shadow: none; border-color: transparent; background: transparent; color: var(--mk-ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.mk-header .mk-ib::after, .mk-appbar .mk-ib::after { display: none; }
.mk-header .mk-ib[aria-expanded="true"], .mk-appbar .mk-ib[aria-expanded="true"], .mk-header .mk-ib[data-account-unread="true"], .mk-appbar .mk-ib[data-account-unread="true"] { background: var(--mk-tint); color: var(--mk-brand-ink); }
.mk-appbar :is(h1, .mk-appbar-heading) { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
/* The app icon sits close to the back arrow (the arrow button has its own inner space) and a clear step away from the title, so it reads centred between them. */
.mk-appbar > .mk-ib:first-child + .mk-appbar-icon { margin-inline-start: calc(-1 * var(--mk-s-1)); margin-inline-end: var(--mk-s-2); }
.mk-logo { font-size: 18px; }
.mk-sheet-top .mk-sheet-panel { width: calc(100% - 28px); max-width: 452px; margin-top: calc(var(--mk-s-3) + var(--mk-safe-top) + var(--mk-tabbar-h) + var(--mk-s-2)); max-height: calc(100dvh - var(--mk-tabbar-h) - var(--mk-safe-top) - var(--mk-s-8)); border-radius: 26px; }
.mk-sheet-top::backdrop { background: linear-gradient(to bottom, transparent calc(var(--mk-s-3) + var(--mk-safe-top) + var(--mk-tabbar-h)), var(--mk-scrim) calc(var(--mk-s-3) + var(--mk-safe-top) + var(--mk-tabbar-h) + var(--mk-s-2))); }

/* The open (x) state of the account button is quiet: no fill, muted, a little smaller. */
.mk-header .mk-ib[data-account-toggle][aria-expanded="true"], .mk-appbar .mk-ib[data-account-toggle][aria-expanded="true"] { background: transparent; color: var(--mk-muted); outline: none; box-shadow: none; }
.mk-header .mk-ib[data-account-toggle][aria-expanded="true"] .mk-icon, .mk-appbar .mk-ib[data-account-toggle][aria-expanded="true"] .mk-icon { width: 18px; height: 18px; }
.mk-header .mk-ib[data-account-toggle][aria-expanded="true"]:focus-visible, .mk-appbar .mk-ib[data-account-toggle][aria-expanded="true"]:focus-visible { box-shadow: inset 0 0 0 1.5px var(--mk-edge); }
/* The page script lifts the button above the sheet while it is open, so the quiet look is set on the button itself. */
.mk-ib[data-account-toggle][aria-expanded="true"] { border-color: transparent; background: transparent; color: var(--mk-muted); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mk-ib[data-account-toggle][aria-expanded="true"]::after { display: none; }
.mk-ib[data-account-toggle][aria-expanded="true"] .mk-icon { width: 18px; height: 18px; }
/* v2 */
/* v3 */

/* Account drawer - it grows out of the top bar: the bar squares its bottom corners and the drawer hangs from it with no gap, same width and surface, so the two read as one piece. */
body:has(.mk-sheet-top[open]) .mk-header, body:has(.mk-sheet-top[open]) .mk-appbar { border-radius: 26px 26px 0 0; border-bottom-color: transparent; background: var(--mk-surface); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mk-sheet-top .mk-sheet-panel { margin-top: calc(var(--mk-s-3) + var(--mk-safe-top) + var(--mk-tabbar-h) - 1px); max-height: calc(100dvh - var(--mk-tabbar-h) - var(--mk-safe-top) - var(--mk-s-8)); padding-top: var(--mk-s-2); border-top: 0; border-radius: 0 0 26px 26px; background: var(--mk-surface); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); -webkit-backdrop-filter: none; backdrop-filter: none; }
.mk-sheet-top::backdrop { background: linear-gradient(to bottom, transparent calc(var(--mk-s-3) + var(--mk-safe-top) + var(--mk-tabbar-h)), var(--mk-scrim) calc(var(--mk-s-3) + var(--mk-safe-top) + var(--mk-tabbar-h))); }
/* Notifications get their own card inside the drawer. */
.mk-notifications { margin-bottom: var(--mk-s-5); padding: var(--mk-s-4); border: 0; border-radius: 18px; background: linear-gradient(155deg, color-mix(in srgb, var(--mk-brand) 14%, transparent), color-mix(in srgb, var(--mk-brand) 4%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk-brand) 20%, transparent), inset 0 1.5px 0 var(--mk-rim); }
.mk-notifications .mk-notification strong { font-size: 16px; line-height: 1.3; }
.mk-notifications .mk-notification > span:not(.mk-eyebrow) { font-size: 14px; line-height: 1.45; color: var(--mk-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-notifications .mk-eyebrow { color: var(--mk-brand); }
.mk-notifications .mk-ib { --mk-ib: 44px; box-shadow: none; border-color: transparent; background: color-mix(in srgb, var(--mk-brand) 10%, transparent); }
.mk-notifications .mk-ib .mk-icon { width: 18px; height: 18px; }

/* The bell takes the amber of the dot on the m: amber line, soft amber fill and glow, and one gentle ring when the page opens. */
.mk-ib[data-account-unread="true"]:not([aria-expanded="true"]) { color: var(--mk-dot); background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--mk-dot) 26%, transparent), color-mix(in srgb, var(--mk-dot) 8%, transparent) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk-dot) 34%, transparent), 0 0 14px color-mix(in srgb, var(--mk-dot) 30%, transparent); }
.mk-ib[data-account-unread="true"]:not([aria-expanded="true"]) .mk-icon { fill: color-mix(in srgb, var(--mk-dot) 30%, transparent); stroke-width: 2; transform-origin: 50% 10%; animation: mk-bell-ring 1.2s var(--mk-e-out) .6s 1 both; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }
@keyframes mk-bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-11deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .mk-ib[data-account-unread="true"] .mk-icon { animation: none; } }

/* Bottom bar pages: Today, Words to know, Saved. */
.mk-today { display: grid; gap: var(--mk-s-2); color: var(--mk-ink); text-decoration: none; }
.mk-today strong { font-size: 17px; line-height: 1.3; }
.mk-today > span:not(.mk-eyebrow) { color: var(--mk-muted); font-size: 14px; line-height: 1.5; }
.mk-today time { font-size: 12px; }
.mk-today-signal { box-shadow: inset 3px 0 0 var(--mk-dot), var(--mk-shadow); }
.mk-today-dot { display: inline-block; width: 8px; height: 8px; margin-inline-start: var(--mk-s-1); border-radius: 50%; background: var(--mk-dot); vertical-align: middle; }
.mk-words { display: grid; gap: var(--mk-s-5); margin: 0; }
.mk-words dt { font-weight: 700; }
.mk-words dd { margin: var(--mk-s-1) 0 0; line-height: 1.5; }
.mk-words dd a { font-size: 12px; }
.mk-tabbar form { display: contents; }
.mk-tabbar .mk-ib[aria-pressed="true"] { color: var(--mk-brand); }
.mk-tabbar .mk-ib:disabled { opacity: .35; }

/* Alerts sheet: the same four choices for every app. */
.mk-alert-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--mk-s-2); margin-block: var(--mk-s-4); }
.mk-alert-choices .mk-chip { justify-content: center; min-height: 44px; cursor: pointer; }
.mk-alert-choices .mk-chip[aria-pressed="true"] { background: var(--mk-brand-fill); color: #fff; border-color: transparent; }
.mk-alert-help { display: grid; gap: var(--mk-s-3); margin: 0 0 var(--mk-s-5); font-size: 13px; }
.mk-alert-help dt { font-weight: 700; }
.mk-alert-help dd { margin: 2px 0 0; color: var(--mk-muted); }
.mk-alert-list { display: grid; gap: var(--mk-s-3); margin: var(--mk-s-2) 0 0; padding: 0; list-style: none; }
.mk-alert-list li { display: flex; justify-content: space-between; gap: var(--mk-s-3); font-size: 14px; }
.mk-alert-list time { flex: none; font-size: 12px; }

/* AI Outlook - public model opinions, split and confidence. */
.mk-outlook { min-width: 0; }
.mk-outlook > h2 { font-size: 18px; }
.mk-outlook > p, .mk-outlook-model p { font-size: 14px; line-height: 1.5; }
.mk-outlook-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mk-s-3); }
.mk-outlook-model { min-width: 0; align-content: start; gap: var(--mk-s-3); }
.mk-outlook-model h3 { font-size: 16px; overflow-wrap: anywhere; }
.mk-outlook-bull { --mk-outlook-colour: var(--mk-brand); }
.mk-outlook-neutral { --mk-outlook-colour: var(--mk-muted); }
.mk-outlook-bear { --mk-outlook-colour: var(--mk-negative); }
.mk-outlook-chip { justify-self: start; padding: var(--mk-s-1) var(--mk-s-2); border-radius: 999px; color: var(--mk-outlook-colour); background: color-mix(in srgb, var(--mk-outlook-colour) 12%, transparent); font-size: 12px; font-weight: 750; }
.mk-outlook-bar { display: flex; height: 8px; overflow: hidden; border-radius: 999px; background: var(--mk-line); }
.mk-outlook-bar > span { flex: none; background: var(--mk-outlook-colour); }
.mk-outlook-split h3 { font-size: 14px; }
.mk-outlook-split p { font-size: 13px; }
.mk-outlook-confidence { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-2); color: var(--mk-muted); font-size: 12px; }
.mk-outlook-dots { display: inline-flex; gap: var(--mk-s-1); }
.mk-outlook-dot { width: 7px; height: 7px; border: 1px solid var(--mk-muted); border-radius: 50%; }
.mk-outlook-dot-on { background: var(--mk-brand); border-color: var(--mk-brand); }
.mk-outlook-risk { color: var(--mk-muted); }
.mk-outlook-risk strong { color: var(--mk-ink); font-weight: 650; }
body[data-app-slug="ai-outlook"] .mk-data-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); padding: var(--mk-s-2) 0; }
body[data-app-slug="ai-outlook"] .mk-row-value { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
body[data-app-slug="ai-outlook"] .mk-change { display: none; }
@media (min-width: 420px) { .mk-outlook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Smart note: the join card visitors see in place of the deeper layers. */
.mk-note-join { padding: var(--mk-s-4); border-radius: 18px; background: linear-gradient(155deg, color-mix(in srgb, var(--mk-brand) 14%, transparent), color-mix(in srgb, var(--mk-brand) 4%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk-brand) 20%, transparent); }
.mk-note-join p { color: var(--mk-muted); font-size: 14px; line-height: 1.5; margin: var(--mk-s-2) 0 var(--mk-s-4); }
.mk-note-join-go { display: inline-flex; background: var(--mk-brand-fill); color: #fff; border-color: transparent; font-weight: 700; text-decoration: none; min-height: 44px; align-items: center; padding-inline: var(--mk-s-5); }

/* ===== Responsive kit: phone first, never phone only (owner, Nov 14) =====
   Phone (< 900px): unchanged - one column, icon grid, bottom bar.
   Tablet and desktop (>= 900px): wide shell; home gets a family list and app cards with the question and today's note;
   app pages put the answer on the left and its data sections on the right; explainers become a centred card.
   Ultra-wide (>= 1800px): a "Notable today" column on home; data sections in two columns. */
.mk-home-nav, .mk-today-rail, .mk-tile-more { display: none; }
.mk-tile-text { display: contents; }
.mk-app-cols, .mk-app-primary, .mk-app-side { display: contents; }

@media (min-width: 900px) {
  /* The top and bottom bars mirror each other at every width (kit rule). */
  .mk-header, .mk-appbar { width: 100%; max-width: none; }
  .mk-tabbar { max-width: none; }

  /* Home */
  .mk-home { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: var(--mk-s-8); align-items: start; }
  .mk-home > * { grid-column: 2; min-width: 0; }
  .mk-home > .mk-home-nav { display: grid; gap: var(--mk-s-4); grid-column: 1; grid-row: 1 / span 60; position: sticky; top: calc(var(--mk-bar-h) + var(--mk-safe-top) + 12px); }
  .mk-home-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .mk-home-nav a { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); min-height: 44px; padding: 0 var(--mk-s-3); border-radius: 14px; color: var(--mk-ink); text-decoration: none; font-weight: 650; font-size: 14.5px; }
  .mk-home-nav a:hover { background: var(--mk-tint); }
  .mk-home-places { padding-top: var(--mk-s-3) !important; border-top: 1px solid var(--mk-edge); }
  .mk-home-places a { justify-content: flex-start; color: var(--mk-muted); }
  .mk-home-places .mk-icon { width: 20px; height: 20px; }
  .mk-family { scroll-margin-top: calc(var(--mk-bar-h) + 24px); }
  .mk-grid > ul { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--mk-s-3); }
  .mk-grid .mk-tile { flex-direction: row; align-items: flex-start; gap: var(--mk-s-3); min-height: 96px; padding: var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 20px; background: var(--mk-glass); text-align: start; transition: transform var(--mk-m-quick) var(--mk-e-spring), border-color var(--mk-m-quick) var(--mk-e-out); }
  .mk-grid a.mk-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--mk-brand) 45%, var(--mk-edge)); }
  .mk-grid .mk-tile-icon { width: 52px; height: 52px; }
  .mk-tile-text { display: grid; gap: var(--mk-s-1); min-width: 0; }
  .mk-grid .mk-tile-label { font-size: 15px; text-align: start; white-space: normal; }
  .mk-tile-more { display: grid; gap: var(--mk-s-1); }
  .mk-tile-note { color: var(--mk-brand); font-size: 13px; font-weight: 650; line-height: 1.3; }
  .mk-tile-question { color: var(--mk-muted); font-size: 13px; font-weight: 450; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* App pages */
  .mk-app-cols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--mk-sp-card) var(--mk-s-6); align-items: start; }
  .mk-app-primary, .mk-app-side { display: grid; gap: var(--mk-sp-card); min-width: 0; align-content: start; }
  .mk-app-side { position: sticky; top: calc(var(--mk-bar-h) + var(--mk-safe-top) + 12px); max-height: calc(100dvh - var(--mk-bar-h) - var(--mk-tabbar-h) - 64px); overflow-y: auto; overscroll-behavior: contain; padding-inline-end: var(--mk-s-1); }
  .mk-leads .mk-grid > ul { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

  /* Explainers: a centred card instead of a full-screen phone frame */
  .mk-explain { background: color-mix(in srgb, var(--mk-canvas) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .mk-explain-frame { max-width: 560px; height: min(760px, calc(100dvh - 64px)); margin: max(32px, calc((100dvh - 760px) / 2)) auto 0; padding: var(--mk-s-5) var(--mk-s-6) var(--mk-s-6); border: 1px solid var(--mk-edge); border-radius: 32px; background: var(--mk-surface); box-shadow: var(--mk-shadow); }
}

@media (min-width: 1800px) {
  .mk-home { grid-template-columns: 240px minmax(0, 1fr) 360px; }
  .mk-home > .mk-today-rail { display: grid; gap: var(--mk-s-2); grid-column: 3; grid-row: 1 / span 60; position: sticky; top: calc(var(--mk-bar-h) + var(--mk-safe-top) + 12px); max-height: calc(100dvh - 120px); overflow-y: auto; }
  .mk-today-rail h2 { margin: 0 0 var(--mk-s-1); font-size: 17px; }
  .mk-today-item { display: grid; gap: var(--mk-s-2); padding: var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 18px; background: var(--mk-glass); color: var(--mk-ink); text-decoration: none; }
  .mk-today-item:hover { border-color: color-mix(in srgb, var(--mk-brand) 45%, var(--mk-edge)); }
  .mk-today-head { display: flex; align-items: center; gap: var(--mk-s-2); font-size: 14.5px; }
  .mk-today-head .mk-appbar-icon { width: 30px; height: 30px; border-radius: 9px; }
  .mk-today-head .mk-icon { width: 17px; height: 17px; }
  .mk-today-note { color: var(--mk-muted); font-size: 13.5px; line-height: 1.35; }
  .mk-today-chips { display: flex; flex-wrap: wrap; gap: var(--mk-s-1); }
  .mk-grid > ul { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .mk-app-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .mk-app-side { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; position: static; overflow: visible; }
}
@media (min-width: 2400px) {
  html { font-size: 112%; }
}

/* Account card and menu (account sheet) */
.mk-account-card { display: flex; align-items: center; gap: var(--mk-s-3); margin: 0 0 var(--mk-s-4); padding: var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 20px; background: var(--mk-surface); box-shadow: inset 0 1px 0 var(--mk-hi); }
.mk-account-avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--mk-brand-fill); color: var(--mk-on-brand); font-size: 20px; font-weight: 750; box-shadow: 0 4px 10px color-mix(in srgb, var(--mk-deep) 25%, transparent); }
.mk-account-avatar > .mk-icon { width: 24px; height: 24px; }
.mk-account-id { display: grid; gap: var(--mk-s-1); min-width: 0; }
.mk-account-id strong { font-size: 15.5px; overflow-wrap: anywhere; }
.mk-account-method { display: inline-flex; align-items: center; gap: var(--mk-s-1); color: var(--mk-muted); font-size: 13px; font-weight: 550; }
.mk-account-method svg { width: 16px; height: 16px; flex: none; }
.mk-account-role { justify-self: start; padding: 2px var(--mk-s-2); border-radius: 999px; background: color-mix(in srgb, var(--mk-brand) 14%, transparent); color: var(--mk-brand); font-size: 12px; font-weight: 700; }
.mk-menu { margin: 0 0 var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 20px; background: var(--mk-surface); overflow: hidden; }
.mk-menu > * + *, .mk-menu > form + *, .mk-menu > * + form { border-top: 1px solid var(--mk-edge); }
.mk-menu-item, .mk-menu .mk-setting { display: flex; align-items: center; gap: var(--mk-s-3); width: 100%; min-height: 56px; margin: 0; padding: 0 var(--mk-s-3) 0 var(--mk-s-4); border: 0; background: transparent; color: var(--mk-ink); font: inherit; font-size: 15px; font-weight: 600; text-align: start; }
.mk-menu-item > .mk-icon { width: 20px; height: 20px; color: var(--mk-muted); }
.mk-menu-label { flex: 1; min-width: 0; }
/* A short label beside a muted note (Profile, Name, photo, language) keeps its words whole; the note wraps instead. */
.mk-menu-label:has(+ .mk-muted) { min-width: min-content; overflow-wrap: normal; }
.mk-menu-label + .mk-muted { min-width: 0; text-align: end; }
.mk-menu-button { cursor: pointer; transition: background var(--mk-m-quick) var(--mk-e-out); }
a.mk-menu-item { text-decoration: none; }
.mk-menu-button:hover, .mk-menu-button:focus-visible { background: var(--mk-tint); }
.mk-menu-button > .mk-icon:last-child { width: 18px; height: 18px; }
.mk-menu-danger, .mk-menu-danger > .mk-icon { color: color-mix(in srgb, #d64545 80%, var(--mk-ink)); }
.mk-menu-sub { border-top: 0 !important; padding: 0 var(--mk-s-3) var(--mk-s-3); }
.mk-menu-sub .mk-auth-theme { display: grid; width: 100%; }
.mk-menu-sub .mk-auth-theme-choice { gap: var(--mk-s-1); padding: 0 var(--mk-s-1); white-space: nowrap; font-size: 13px; }
.mk-menu-sub .mk-auth-theme-choice .mk-icon { width: 16px; height: 16px; }
.mk-menu-sub { padding: 0 var(--mk-s-2) var(--mk-s-3); }
.mk-menu-etrade .mk-setting > .mk-icon { width: 20px; height: 20px; color: var(--mk-muted); }
.mk-menu-etrade .mk-status { color: var(--mk-muted); font-size: 13px; font-weight: 550; }
.mk-menu-etrade .mk-ib { --mk-ib: 36px; }
.mk-menu-etrade .mk-ib .mk-icon { width: 18px; height: 18px; }
.mk-menu-etrade .mk-setting { padding-inline-start: var(--mk-s-4); }
.mk-menu-etrade .mk-etrade-code { padding: 0 var(--mk-s-3) var(--mk-s-3); }
.mk-menu form { margin: 0; }

/* Round icon buttons and the (i) panels grow with the layout */
@media (min-width: 900px) {
  :root { --mk-ib: 48px; }
  .mk-ib .mk-icon { width: 23px; height: 23px; }
  .mk-sheet:not(.mk-sheet-top) { width: calc(100% - 48px); max-width: 600px; margin: auto; border-bottom: 1px solid var(--mk-edge); border-radius: var(--mk-r-sheet); }
  .mk-sheet:not(.mk-sheet-top) .mk-info-body { font-size: 15.5px; }
  /* The drawer hangs from the bar under the account button, end edges aligned: both top corners square (it hangs from
     the top edge, owner, Nov 17), rounded at the corners away from it; the bar squares only its bottom end to meet it. */
  .mk-sheet-top .mk-sheet-panel { max-width: 440px; margin-inline-end: max(var(--mk-gutter), calc((100% - var(--mk-frame-w)) / 2)); margin-inline-start: auto; border-top: 1px solid var(--mk-edge); border-radius: 0 0 var(--mk-r-sheet) var(--mk-r-sheet); }
  body:has(.mk-sheet-top[open]) :is(.mk-header, .mk-appbar) { border-radius: 26px; border-end-end-radius: 0; border-bottom-color: var(--mk-edge); }
}
@media (min-width: 1800px) {
  :root { --mk-ib: 52px; }
  .mk-ib .mk-icon { width: 25px; height: 25px; }
  .mk-sheet:not(.mk-sheet-top) { max-width: 720px; }
  .mk-sheet-top .mk-sheet-panel { max-width: 480px; }
}

/* Context column: today's note, how to read it, sources */
.mk-app-context { display: none; }
@media (min-width: 900px) {
  .mk-app-context { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--mk-sp-card); align-content: start; }
  .mk-context-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-2); margin: 0 0 var(--mk-s-2); color: var(--mk-brand); font-size: 12.5px; font-weight: 750; }
  .mk-context-kicker .mk-icon { width: 18px; height: 18px; }
  .mk-context-kicker span { margin-inline-start: auto; color: var(--mk-muted); font-weight: 600; }
  .mk-app-context h2 { margin: 0 0 var(--mk-s-2); font-size: 19px; line-height: 1.25; }
  .mk-app-context h3 { margin: var(--mk-s-3) 0 var(--mk-s-1); font-size: 13.5px; }
  .mk-app-context p { margin: 0; line-height: 1.55; }
  .mk-app-context ul { display: grid; gap: var(--mk-s-2); margin: 0; padding-inline-start: var(--mk-s-4); line-height: 1.5; font-size: 14px; }
  .mk-context-sources ul { padding: 0; list-style: none; }
  .mk-context-sources li { display: grid; gap: 2px; }
  .mk-context-sources li span { color: var(--mk-muted); font-size: 12.5px; }
  .mk-context-sources li a { display: flex; align-items: center; min-height: 44px; } /* a tap target, not a link in a sentence */
  .mk-context-words { display: grid; gap: var(--mk-s-2); margin: 0; }
  .mk-context-words dt { font-weight: 750; font-size: 13.5px; }
  .mk-context-words dd { margin: 0; color: var(--mk-muted); font-size: 13.5px; }
}
@media (min-width: 1800px) {
  .mk-app-cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(300px, .62fr); }
  .mk-app-side { grid-template-columns: 1fr; }
  .mk-app-context { grid-column: 3; grid-row: 1; grid-template-columns: 1fr; position: sticky; top: calc(var(--mk-bar-h) + var(--mk-safe-top) + 12px); }
}

/* AI Outlook: consensus gauge, model cards, history grid */
.mk-outlook-none { --mk-outlook-colour: var(--mk-line); }
.mk-outlook-chip.mk-outlook-none { color: var(--mk-muted); } /* the line colour marks the edge; the words need text contrast */
.mk-oc-consensus { display: grid; gap: var(--mk-s-4); }
.mk-oc-gauge { display: grid; justify-items: center; gap: 2px; text-align: center; }
.mk-oc-gauge svg { width: min(100%, 260px); height: auto; }
.mk-oc-arc { fill: none; stroke-width: 16; stroke-linecap: round; }
.mk-oc-stop-bear { stop-color: var(--mk-negative); }
.mk-oc-stop-neutral { stop-color: var(--mk-muted); }
.mk-oc-stop-bull { stop-color: var(--mk-brand); }
.mk-oc-needle { stroke: var(--mk-ink); stroke-width: 4; stroke-linecap: round; transition: transform var(--mk-m-gentle) var(--mk-e-out); }
.mk-oc-hub { fill: var(--mk-ink); }
.mk-oc-end { fill: var(--mk-muted); font-size: 12px; font-weight: 650; }
.mk-oc-gauge strong { font-size: 20px; letter-spacing: -.01em; }
.mk-oc-split { display: grid; gap: var(--mk-s-2); align-content: start; }
.mk-oc-bar { height: 26px; border-radius: 10px; }
.mk-oc-bar > span { display: grid; place-items: center; color: var(--mk-day-surface); font-size: 12px; font-weight: 750; }
.mk-oc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mk-s-2) var(--mk-s-4); margin: var(--mk-s-2) 0 0; }
.mk-oc-facts dt { color: var(--mk-muted); font-size: 12px; font-weight: 650; }
.mk-oc-facts dd { display: flex; align-items: baseline; gap: var(--mk-s-1); margin: 2px 0 0; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.mk-oc-facts dd small { color: var(--mk-muted); font-size: 12px; font-weight: 550; }
.mk-oc-models .mk-outlook-model { border-top: 4px solid var(--mk-outlook-colour); }
.mk-oc-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--mk-s-2); }
.mk-oc-head .mk-muted { font-size: 12px; }
.mk-oc-stance { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-2); }
.mk-oc-was { color: var(--mk-muted); font-size: 12px; font-weight: 650; }
.mk-oc-probs { display: grid; gap: var(--mk-s-1); }
.mk-oc-probbar { display: flex; height: 10px; overflow: hidden; border-radius: 999px; background: var(--mk-line); }
.mk-oc-probbar > span { background: var(--mk-outlook-colour); }
.mk-oc-problabels { display: flex; justify-content: space-between; color: var(--mk-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mk-oc-move { display: grid; gap: var(--mk-s-1); }
.mk-oc-move-label { color: var(--mk-muted); font-size: 11.5px; font-weight: 650; }
.mk-oc-move-track { position: relative; height: 12px; border-radius: 999px; background: var(--mk-tint); }
.mk-oc-move-zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--mk-muted); }
.mk-oc-move-range { position: absolute; top: 2px; bottom: 2px; border-radius: 999px; background: var(--mk-outlook-colour); }
.mk-oc-move-ends { display: flex; justify-content: space-between; color: var(--mk-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mk-oc-move-ends strong { color: var(--mk-ink); }
.mk-oc-drivers { display: grid; gap: var(--mk-s-1); margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.mk-oc-drivers li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--mk-s-1); align-items: baseline; }
.mk-oc-up > span { color: var(--mk-brand); }
.mk-oc-down > span { color: var(--mk-negative); }
.mk-oc-mixed > span { color: var(--mk-muted); }
.mk-oc-record { font-size: 12.5px; font-weight: 650; }
.mk-oc-history { display: grid; gap: var(--mk-s-2); }
.mk-oc-history h3 { font-size: 15px; }
.mk-oc-history-scroll { overflow-x: auto; }
.mk-oc-history table { border-collapse: separate; border-spacing: 4px; font-size: 12px; }
.mk-oc-history th { color: var(--mk-muted); font-weight: 650; text-align: start; white-space: nowrap; }
.mk-oc-history thead th { text-align: center; font-size: 11px; }
.mk-oc-cell { display: block; width: 30px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--mk-outlook-colour) calc(var(--mk-oc-strength, .6) * 100%), transparent); }
.mk-oc-empty { background: transparent; border: 1px dashed var(--mk-line); }
.mk-oc-legend { display: flex; flex-wrap: wrap; gap: var(--mk-s-3); color: var(--mk-muted); font-size: 12px; }
.mk-oc-legend i { display: inline-block; width: 12px; height: 12px; margin-inline-end: var(--mk-s-1); border-radius: 3px; vertical-align: -1px; background: var(--mk-outlook-colour); }
@media (min-width: 900px) {
  .mk-oc-consensus { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); align-items: center; }
  .mk-oc-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk-oc-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1800px) {
  .mk-oc-models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-oc-cell { width: 40px; height: 26px; }
}

/* AI Outlook is a showcase page: its main column takes the room on wide screens */
@media (min-width: 900px) {
  [data-app-slug="ai-outlook"] .mk-app-primary { grid-column: 1 / -1; }
}
@media (min-width: 1800px) {
  [data-app-slug="ai-outlook"] .mk-app-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, .55fr); }
  [data-app-slug="ai-outlook"] .mk-app-primary { grid-column: 1 / 3; grid-row: 1 / span 2; }
  [data-app-slug="ai-outlook"] .mk-app-side { grid-column: 3; grid-row: 1; position: static; max-height: none; overflow: visible; }
  [data-app-slug="ai-outlook"] .mk-app-context { grid-column: 3; grid-row: 2; position: static; }
  [data-app-slug="ai-outlook"] .mk-oc-models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== App layouts: banks-risk (designed per app for tablet, desktop and ultra-wide) ===== */
/* ===== Wide layouts: central banks, risk and liquidity, signal engine, calendar =====
   Phone (< 900px) is untouched: every rule below sits inside a min-width query and is scoped to these apps.
   Three shapes:
   - Chart pages (single banks, all-banks, dollar-pulse, liquidity, futures-positioning, yen-carry): answer and chart on
     the left; short data sections become stat tiles, long ones a readable list that splits into columns when wide.
   - Boards (policy-summary, credit-stress, futures-risk, volatility, signal-engine, calendar, cross-asset-map): headline and
     context share the top row; the data spans the full width below as a comparison table, an agenda or a card grid.
   - futures-positioning: the full market list leaves the side column and becomes a multi-column table below the chart. */

/* The comparison table exists only on wide screens */
.mk-compare { display: none; }

@media (min-width: 900px) {
  /* --- Every app in this group: no "more rows" button on wide screens, just the rows --- */
  .mk-js :is([data-app-slug="all-banks"], [data-app-slug="banxico"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="futures-positioning"], [data-app-slug="liquidity-radar"], [data-app-slug="yen-carry"], [data-app-slug="calendar"], [data-app-slug="signal-engine"]) .mk-row-extra { display: grid; }
  .mk-js :is([data-app-slug="all-banks"], [data-app-slug="banxico"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="futures-positioning"], [data-app-slug="liquidity-radar"], [data-app-slug="yen-carry"], [data-app-slug="calendar"], [data-app-slug="signal-engine"]) .mk-more.mk-js-only { display: none !important; }

  /* --- Readable list rows: bigger type, value and change in fixed columns so numbers line up --- */
  :is([data-app-slug="all-banks"], [data-app-slug="banxico"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="futures-positioning"], [data-app-slug="liquidity-radar"], [data-app-slug="signal-engine"]) .mk-data-row {
    grid-template-columns: minmax(0, 1fr) minmax(96px, auto) 64px; gap: var(--mk-s-3); min-height: 48px; font-size: 13.5px;
  }
  :is([data-app-slug="all-banks"], [data-app-slug="banxico"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="futures-positioning"], [data-app-slug="liquidity-radar"], [data-app-slug="signal-engine"], [data-app-slug="calendar"]) :is(.mk-row-label a) { min-height: 48px; }
  :is([data-app-slug="all-banks"], [data-app-slug="banxico"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="futures-positioning"], [data-app-slug="liquidity-radar"], [data-app-slug="signal-engine"]) .mk-row-value { max-width: none; font-size: 15px; }
  :is([data-app-slug="all-banks"], [data-app-slug="banxico"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="futures-positioning"], [data-app-slug="liquidity-radar"], [data-app-slug="signal-engine"]) .mk-row-value small { font-size: 11.5px; }
  :is([data-app-slug="all-banks"], [data-app-slug="banxico"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="futures-positioning"], [data-app-slug="liquidity-radar"], [data-app-slug="signal-engine"]) .mk-change { font-size: 12.5px; font-weight: 650; }
  :is([data-app-slug="all-banks"], [data-app-slug="banxico"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="futures-positioning"], [data-app-slug="liquidity-radar"], [data-app-slug="signal-engine"], [data-app-slug="calendar"]) .mk-data-section h2 { font-size: 16px; }

  /* --- Stat tiles: on chart pages, a section of six rows or fewer reads as a row of tiles --- */
  :is([data-app-slug="banxico"], [data-app-slug="yen-carry"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="liquidity-radar"]) .mk-data-section:not(:has(.mk-data-row:nth-child(7))) .mk-data-rows {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--mk-s-2);
  }
  :is([data-app-slug="banxico"], [data-app-slug="yen-carry"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="liquidity-radar"]) .mk-data-section:not(:has(.mk-data-row:nth-child(7))) .mk-data-row {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "value change"; align-content: space-between; align-items: baseline;
    gap: var(--mk-s-2); min-height: 84px; padding: var(--mk-s-3) var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 16px;
    background: linear-gradient(160deg, var(--mk-tint), var(--mk-surface) 75%);
    transition: border-color var(--mk-m-quick) var(--mk-e-out);
  }
  :is([data-app-slug="banxico"], [data-app-slug="yen-carry"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="liquidity-radar"]) .mk-data-section:not(:has(.mk-data-row:nth-child(7))) .mk-row-label {
    grid-area: label; color: var(--mk-muted); font-size: 12.5px; font-weight: 650; line-height: 1.3;
  }
  :is([data-app-slug="banxico"], [data-app-slug="yen-carry"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="liquidity-radar"]) .mk-data-section:not(:has(.mk-data-row:nth-child(7))) .mk-row-value {
    grid-area: value; text-align: start; font-size: 22px; font-weight: 750; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap;
  }
  :is([data-app-slug="banxico"], [data-app-slug="yen-carry"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="liquidity-radar"]) .mk-data-section:not(:has(.mk-data-row:nth-child(7))) .mk-change {
    grid-area: change;
  }

  /* Long lists inside a section get a light header rule so they read as a table */
  :is([data-app-slug="all-banks"], [data-app-slug="fed"], [data-app-slug="dollar-pulse"], [data-app-slug="liquidity-radar"], [data-app-slug="futures-positioning"]) .mk-data-section:has(.mk-data-row:nth-child(7)) .mk-data-rows { border-top: 1px solid var(--mk-edge); }

  /* --- Boards: headline and context on top, the data across the full width below --- */
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-app-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch;
  }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-app-primary { display: contents; }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-app-primary > * { grid-column: 1 / -1; min-width: 0; }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-app-primary > .mk-headline {
    grid-column: 1; grid-row: 1; align-content: center;
    background: linear-gradient(150deg, color-mix(in srgb, var(--mk-brand) 10%, var(--mk-surface)), var(--mk-surface) 70%);
  }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-headline-number strong { font-size: 52px; }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-app-context { display: contents; }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-app-context > .mk-card { align-content: start; min-width: 0; }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-context-note { grid-column: 2; grid-row: 1; }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-context-how { grid-column: 3 / -1; grid-row: 1; }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-app-cols:not(:has(.mk-context-note)) .mk-context-how { grid-column: 2 / -1; }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-context-sources { grid-column: 1 / -1; }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-context-sources ul { display: block; columns: 3 260px; column-gap: var(--mk-s-8); }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-context-sources li { break-inside: avoid; margin-bottom: var(--mk-s-2); }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-app-side {
    grid-column: 1 / -1; position: static; max-height: none; overflow: visible; padding-inline-end: 0;
  }
  [data-app-slug="cross-asset-map"] .mk-app-side:not(:has(*)) { display: none; }
  /* An app with no answer shows its empty card across the page instead of in a narrow column */
  :is([data-app-slug="banxico"], [data-app-slug="yen-carry"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"]) .mk-app-primary:has(> .mk-empty) { grid-column: 1 / -1; }
  :is([data-app-slug="banxico"], [data-app-slug="yen-carry"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"]) .mk-app-primary > .mk-empty { min-height: 320px; align-content: center; justify-items: center; }

  /* Comparison table (policy-summary, credit-stress, futures-risk, volatility, yen-carry) replaces the stacked cards */
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="yen-carry"]) .mk-app-side > .mk-data-section { display: none; }
  .mk-compare { display: block; padding: var(--mk-s-1) var(--mk-s-2) var(--mk-s-2); overflow-x: auto; }
  .mk-compare:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
  .mk-compare table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .mk-compare th, .mk-compare td { padding: var(--mk-s-3) var(--mk-s-3); border-bottom: 1px solid var(--mk-edge); text-align: end; vertical-align: top; }
  .mk-compare tbody tr:last-child > * { border-bottom: 0; }
  .mk-compare thead th { position: sticky; top: 0; z-index: 1; padding-top: var(--mk-s-3); color: var(--mk-muted); font-size: 12px; font-weight: 700; line-height: 1.25; background: var(--mk-surface); vertical-align: bottom; }
  .mk-compare th:first-child { position: sticky; inset-inline-start: 0; z-index: 2; text-align: start; background: var(--mk-surface); }
  .mk-compare tbody th { min-width: 150px; font-size: 14px; font-weight: 700; line-height: 1.3; }
  .mk-compare tbody th small, .mk-compare-at { display: block; margin-top: 2px; color: var(--mk-muted); font-size: 11.5px; font-weight: 550; white-space: nowrap; }
  .mk-compare tbody tr:hover > * { background: var(--mk-tint); }
  .mk-compare td { min-width: 104px; }
  .mk-compare-value { font-size: 16px; font-weight: 750; white-space: nowrap; }
  .mk-compare-value small { margin-inline-start: var(--mk-s-1); color: var(--mk-muted); font-size: 11.5px; font-weight: 550; }
  .mk-compare .mk-change { display: block; font-size: 12px; }
  .mk-compare-bar { position: relative; display: block; height: 6px; margin: var(--mk-s-2) 0 2px auto; max-width: 160px; border-radius: 999px; background: var(--mk-line); overflow: hidden; }
  .mk-compare-bar i { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; border-radius: 999px; background: var(--mk-brand); }
  .mk-compare-diverging::after { content: ""; position: absolute; top: -2px; bottom: -2px; left: 50%; width: 2px; background: var(--mk-muted); }
  .mk-compare-diverging.mk-negative i { background: var(--mk-negative); }

  /* --- Signal engine: the four signal kinds side by side --- */
  [data-app-slug="signal-engine"] .mk-app-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-app-slug="signal-engine"] .mk-data-section { align-content: start; min-height: 160px; }

  /* --- Calendar: an agenda; the date leads each line, every row shown, sections side by side --- */
  [data-app-slug="calendar"] .mk-app-primary > section.mk-card:not(.mk-headline):not(.mk-graph) { display: none; }
  [data-app-slug="calendar"] .mk-app-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: start; }
  [data-app-slug="calendar"] .mk-data-rows { border-top: 1px solid var(--mk-edge); }
  [data-app-slug="calendar"] .mk-data-row { grid-template-columns: 92px minmax(0, 1fr); gap: var(--mk-s-3); min-height: 48px; padding: var(--mk-s-1) 0; font-size: 13.5px; }
  [data-app-slug="calendar"] .mk-row-value { order: -1; max-width: none; color: var(--mk-brand); font-size: 12.5px; font-weight: 750; text-align: start; white-space: nowrap; }
  [data-app-slug="calendar"] .mk-change { display: none; }
  [data-app-slug="calendar"] .mk-row-label { font-weight: 600; line-height: 1.35; }
  [data-app-slug="calendar"] .mk-row-label a { min-height: 36px; }
  [data-app-slug="calendar"] .mk-data-row:hover { background: var(--mk-tint); }

  /* --- futures-positioning: the full market list moves under the chart as a multi-column table --- */
  [data-app-slug="futures-positioning"] .mk-app-cols { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  [data-app-slug="futures-positioning"] .mk-app-side { display: contents; }
  [data-app-slug="futures-positioning"] .mk-app-primary { grid-column: 1; grid-row: 1; }
  [data-app-slug="futures-positioning"] .mk-app-side > .mk-data-section:first-child { grid-column: 2; grid-row: 1; align-self: start; }
  [data-app-slug="futures-positioning"] .mk-app-side > .mk-data-section:nth-child(n + 2) { grid-column: 1 / -1; }
  [data-app-slug="futures-positioning"] .mk-app-side > .mk-data-section:nth-child(n + 2) .mk-data-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); column-gap: var(--mk-s-8); border-top: 0; }
  [data-app-slug="futures-positioning"] .mk-app-side > .mk-data-section:nth-child(n + 2) .mk-data-row:last-child { border-bottom: 1px solid var(--mk-edge); }

  /* yen-carry: the three spreads as a compact table in the side column */
  [data-app-slug="yen-carry"] .mk-compare td { min-width: 0; }
}

@media (min-width: 1400px) {
  [data-app-slug="calendar"] .mk-app-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-app-slug="signal-engine"] .mk-app-side { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1800px) {
  /* Chart pages: lists of seven rows or more split into two columns in the wider side column */
  :is([data-app-slug="all-banks"], [data-app-slug="fed"], [data-app-slug="boj"], [data-app-slug="dollar-pulse"], [data-app-slug="liquidity-radar"]) .mk-data-section:has(.mk-data-row:nth-child(7)) .mk-data-rows {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--mk-s-6);
  }
  :is([data-app-slug="all-banks"], [data-app-slug="fed"], [data-app-slug="boj"], [data-app-slug="dollar-pulse"], [data-app-slug="liquidity-radar"]) .mk-data-section:has(.mk-data-row:nth-child(7)) .mk-data-row:last-child { border-bottom: 1px solid var(--mk-edge); }

  /* Boards: four columns; the reading notes split into two columns, sources into five */
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-app-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-app-side { grid-column: 1 / -1; }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-context-how ul { display: block; columns: 2; column-gap: var(--mk-s-10); }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-context-how li { break-inside: avoid; margin-bottom: var(--mk-s-2); }
  :is([data-app-slug="policy-summary"], [data-app-slug="credit-stress"], [data-app-slug="futures-risk"], [data-app-slug="volatility"], [data-app-slug="signal-engine"], [data-app-slug="calendar"], [data-app-slug="cross-asset-map"]) .mk-context-sources ul { columns: 5 260px; }
  .mk-compare th, .mk-compare td { padding: var(--mk-s-3) var(--mk-s-5); }
  .mk-compare-value { font-size: 18px; }
  .mk-compare-bar { max-width: 220px; }
  [data-app-slug="calendar"] .mk-app-side { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* futures-positioning: chart, crowded list and context in three columns; all markets below */
  [data-app-slug="futures-positioning"] .mk-app-cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(300px, .62fr); }
  [data-app-slug="futures-positioning"] .mk-app-context { grid-column: 3; grid-row: 1; }
  [data-app-slug="futures-positioning"] .mk-app-side > .mk-data-section:first-child .mk-data-rows { display: grid; grid-template-columns: 1fr; }
}

/* Chart pages with one or two data sections: the reading notes and sources fill the right column under them
   instead of leaving it empty beside the chart (tablet and desktop; ultra-wide already has a context column). */
@media (min-width: 900px) and (max-width: 1799.98px) {
  :is([data-app-slug="all-banks"], [data-app-slug="bcb"], [data-app-slug="boc"], [data-app-slug="boe"], [data-app-slug="boj"], [data-app-slug="ecb"], [data-app-slug="fed"], [data-app-slug="fed-net-liquidity"], [data-app-slug="norges-bank"], [data-app-slug="rba"], [data-app-slug="rbnz"], [data-app-slug="riksbank"], [data-app-slug="dollar-pulse"], [data-app-slug="liquidity-radar"], [data-app-slug="yen-carry"]) .mk-app-cols:has(> .mk-app-side):not(:has(.mk-data-section:nth-of-type(3))) {
    grid-template-rows: auto 1fr;
    & > .mk-app-primary { grid-column: 1; grid-row: 1 / span 2; }
    & > .mk-app-side { grid-column: 2; grid-row: 1; position: static; max-height: none; overflow: visible; }
    & > .mk-app-context { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; align-self: start; }
  }
}
@media (min-width: 900px) and (max-width: 1799.98px) {
  [data-app-slug="yen-carry"] .mk-app-cols:has(> .mk-app-side) {
    grid-template-rows: auto 1fr;
    & > .mk-app-primary { grid-column: 1; grid-row: 1 / span 2; }
    & > .mk-app-side { grid-column: 2; grid-row: 1; position: static; max-height: none; overflow: visible; }
    & > .mk-app-context { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; align-self: start; }
  }
  [data-app-slug="yen-carry"] .mk-compare :is(th, td) { padding: var(--mk-s-3) var(--mk-s-2); }
}
/* yen-carry on tablets: the side column is too narrow for the table, so the phone cards stay */
@media (min-width: 900px) and (max-width: 1279.98px) {
  [data-app-slug="yen-carry"] .mk-compare { display: none; }
  [data-app-slug="yen-carry"] .mk-app-side > .mk-data-section { display: grid; }
}

/* ===== App layouts: bonds-fx-economy (designed per app for tablet, desktop and ultra-wide) ===== */
/* Layouts for bonds and credit, FX, economy and commodity apps (owner, Nov 14).
   Phone (< 900px) keeps the original design. Only the new yield-curve and global-yield controls are styled there,
   and the wide-only tables below are hidden on phones.
   >= 900px: comparison tables replace long card lists, side-heavy apps get a narrow answer rail, single-column apps go full width.
   >= 1800px: the context column sits to the right; tables sit side by side. */

/* ---------- Phone and up ---------- */
.mk-mini-grid { display: contents; }
.mk-ta-board, .mk-sa-tables, .mk-gy-tables { display: none; }

/* Yield curves: country chips and a compare date */
.mk-yc-controls, .mk-gy-controls { gap: var(--mk-s-3); }
.mk-yc-controls .mk-chips, .mk-gy-controls .mk-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; overflow: visible; }
.mk-yc-date { display: flex; align-items: flex-end; gap: var(--mk-s-2); margin: 0; }
.mk-yc-date .mk-option-field { flex: 1 1 auto; }
.mk-yc-date .mk-ib { flex: none; }
.mk-yc-date input[type="date"] { font-family: inherit; }

/* Global yields: market chips, shock shape and size */
.mk-gy-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--mk-s-3); align-items: end; margin: 0; }
.mk-gy-shift { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk-gy-shift span { font-size: 13px; }

/* ---------- Tablet, desktop and wider ---------- */
@media (min-width: 900px) {
  /* Rows: readable type, every row shown, numbers next to their labels */
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-data-section h2 { font-size: 15.5px; }
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-app-side > .mk-data-section { align-content: start; }
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-data-row { grid-template-columns: minmax(0, 1fr) auto 76px; gap: var(--mk-s-3); min-height: 46px; font-size: 13.5px; }
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-row-value { max-width: none; font-size: 14.5px; }
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-row-value small { font-size: 11.5px; }
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-change { font-size: 12.5px; font-weight: 650; }
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-data-row:hover { background: linear-gradient(90deg, transparent, var(--mk-tint) 12%, var(--mk-tint) 88%, transparent); }
  .mk-js :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-row-extra { display: grid; }
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-data-section .mk-more.mk-js-only { display: none !important; }
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-chips { flex-wrap: wrap; }

  /* Range stats: keep Low and High on one line */
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-stat-ends > span:first-child, :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-stat-ends > span:last-child { flex: none; white-space: nowrap; }
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-stat-ends > span:nth-child(2) { min-width: 0; text-align: center; }

  /* Controls get room on wide screens */
  .mk-yc-controls { grid-template-columns: minmax(0, 1fr); }
  .mk-yc-controls .mk-chips, .mk-gy-controls .mk-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mk-yc-date .mk-option-field { flex: 0 1 300px; }
  .mk-gy-form { grid-template-columns: minmax(0, 1.4fr) minmax(160px, 1fr) auto; }
  .mk-gy-shift { grid-column: auto; }

  /* Shared table look */
  .mk-ta-table, .mk-sa-table, .mk-gy-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  :is(.mk-ta-table, .mk-sa-table, .mk-gy-table) thead th { padding: 0 var(--mk-s-2) var(--mk-s-2); border-bottom: 1px solid var(--mk-edge); color: var(--mk-muted); font-size: 12px; font-weight: 700; text-align: start; white-space: nowrap; }
  :is(.mk-ta-table, .mk-sa-table, .mk-gy-table) tbody :is(th, td) { padding: var(--mk-s-2); border-bottom: 1px solid var(--mk-edge); vertical-align: middle; }
  :is(.mk-ta-table, .mk-sa-table, .mk-gy-table) tbody tr:last-child :is(th, td) { border-bottom: 0; }
  :is(.mk-ta-table, .mk-sa-table, .mk-gy-table) tbody tr:hover { background: var(--mk-tint); }
  :is(.mk-ta-table, .mk-sa-table, .mk-gy-table) tbody th { font-size: 14px; font-weight: 700; text-align: start; }
  :is(.mk-ta-table, .mk-gy-table) td strong, .mk-sa-num strong { display: block; font-size: 15px; font-weight: 750; }
  :is(.mk-ta-table, .mk-gy-table) td > span, .mk-sa-num span { display: block; margin-top: 2px; color: var(--mk-muted); font-size: 12px; font-weight: 600; }
  :is(.mk-ta-table, .mk-gy-table) td > span.mk-positive, .mk-sa-num span.mk-positive { color: var(--mk-brand); }
  :is(.mk-ta-table, .mk-gy-table) td > span.mk-negative, .mk-sa-num span.mk-negative { color: var(--mk-negative); }
  :is(.mk-ta-board, .mk-sa-group, .mk-gy-tables .mk-card) h2 small { margin-inline-start: var(--mk-s-2); color: var(--mk-muted); font-size: 12.5px; font-weight: 600; }
  .mk-ta-scroll, .mk-sa-scroll, .mk-gy-scroll { overflow-x: auto; }

  /* ----- Rail: a narrow answer column, the data takes the room ----- */
  :is([data-app-slug="macro-drivers"], [data-app-slug="fair-value"], [data-app-slug="spread-atlas"]) .mk-app-cols { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
  :is([data-app-slug="macro-drivers"], [data-app-slug="fair-value"], [data-app-slug="spread-atlas"]) .mk-app-primary { grid-column: 1; grid-row: 1; }
  :is([data-app-slug="macro-drivers"], [data-app-slug="fair-value"], [data-app-slug="spread-atlas"]) .mk-app-side { grid-column: 2; grid-row: 1 / span 2; }
  :is([data-app-slug="macro-drivers"], [data-app-slug="fair-value"], [data-app-slug="spread-atlas"]) .mk-app-context { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); }
  :is([data-app-slug="macro-drivers"], [data-app-slug="fair-value"], [data-app-slug="spread-atlas"]) .mk-app-side { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); position: static; max-height: none; overflow: visible; padding-inline-end: 0; }

  /* Macro drivers: four driver cards, then the correlations across the row */
  [data-app-slug="macro-drivers"] .mk-app-side > .mk-data-section:last-child { grid-column: 1 / -1; }
  [data-app-slug="macro-drivers"] .mk-app-side > .mk-data-section:last-child .mk-data-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--mk-s-6); }
  [data-app-slug="macro-drivers"] .mk-app-side > .mk-data-section:last-child .mk-data-row:nth-last-child(2) { border-bottom: 0; }

  /* Spread atlas: comparison tables replace the four lists */
  [data-app-slug="spread-atlas"] .mk-app-side { grid-template-columns: minmax(0, 1fr); }
  [data-app-slug="spread-atlas"] .mk-app-side > .mk-data-section { display: none; }
  .mk-sa-tables { display: grid; gap: var(--mk-sp-card); align-items: start; }
  .mk-sa-table thead th[colspan] { text-align: center; }
  .mk-sa-table tbody th { white-space: nowrap; }
  .mk-sa-table tbody th time { display: block; color: var(--mk-muted); font-size: 11.5px; font-weight: 550; }
  .mk-sa-bar-cell { width: 34%; min-width: 120px; }
  .mk-sa-num { width: 1%; text-align: end; white-space: nowrap; }
  .mk-sa-track { position: relative; display: block; height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--mk-line) 70%, transparent); }
  .mk-sa-track::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1.5px; background: var(--mk-muted); opacity: .6; }
  .mk-sa-bar { position: absolute; top: 1px; bottom: 1px; border-radius: 999px; background: var(--mk-brand); }
  .mk-sa-bar.mk-sa-neg { background: var(--mk-negative); }

  /* ----- Full width: single-column apps use the whole page ----- */
  :is([data-app-slug="treasury-auctions"], [data-app-slug="econ-map"], [data-app-slug="mini-apps"]) .mk-app-cols { grid-template-columns: minmax(0, 1fr); }
  :is([data-app-slug="treasury-auctions"], [data-app-slug="econ-map"], [data-app-slug="mini-apps"]) .mk-app-side { position: static; max-height: none; overflow: visible; padding-inline-end: 0; }
  :is([data-app-slug="treasury-auctions"], [data-app-slug="econ-map"], [data-app-slug="mini-apps"]) .mk-app-side:not(:has(.mk-data-section, .mk-ta-board)) { display: none; }

  /* Treasury auctions: answer beside its chart, then every auction in one table */
  [data-app-slug="treasury-auctions"] .mk-app-primary { grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); align-items: start; }
  [data-app-slug="treasury-auctions"] .mk-app-primary > * { grid-column: 1; }
  [data-app-slug="treasury-auctions"] .mk-app-primary > :not(.mk-headline, .mk-chips) { grid-column: 2; grid-row: 1 / span 4; }
  [data-app-slug="treasury-auctions"] .mk-app-primary > .mk-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-app-slug="treasury-auctions"] .mk-app-side > .mk-data-section { display: none; }
  .mk-ta-board { display: grid; gap: var(--mk-s-3); }
  .mk-ta-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mk-s-2) var(--mk-s-5); }
  .mk-ta-legend { display: flex; gap: var(--mk-s-4); margin: 0; color: var(--mk-muted); font-size: 12.5px; font-weight: 650; }
  .mk-ta-legend span { display: inline-flex; align-items: center; gap: var(--mk-s-1); }
  .mk-ta-legend i { width: 12px; height: 12px; border-radius: 4px; }
  .mk-ta-table tbody th strong { display: block; font-size: 14.5px; }
  .mk-ta-table tbody th span { display: block; margin-top: 2px; color: var(--mk-muted); font-size: 11.5px; font-weight: 550; white-space: nowrap; }
  .mk-ta-num { text-align: end; white-space: nowrap; }
  .mk-ta-table thead .mk-ta-num { text-align: end; }
  .mk-ta-table td > span b { margin-inline-start: var(--mk-s-1); font-weight: 750; }
  .mk-ta-mix { width: 28%; min-width: 160px; }
  .mk-ta-bar { display: flex; gap: 2px; height: 12px; overflow: hidden; border-radius: 999px; background: var(--mk-line); }
  .mk-ta-bar + .mk-ta-bar { height: 6px; margin-top: var(--mk-s-1); opacity: .55; }
  .mk-ta-bar span { flex-basis: 0; min-width: 2px; }
  .mk-ta-direct { background: color-mix(in srgb, var(--mk-ink) 72%, var(--mk-brand)); }
  .mk-ta-indirect { background: var(--mk-brand); }
  .mk-ta-dealers { background: color-mix(in srgb, var(--mk-brand) 32%, var(--mk-line)); }

  /* Econ map: the country table at full width, no scrolling */
  [data-app-slug="econ-map"] .mk-app-primary { grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); align-items: stretch; }
  [data-app-slug="econ-map"] .mk-app-primary > .mk-econ { grid-column: 1 / -1; }
  [data-app-slug="econ-map"] .mk-econ-table { min-width: 0; table-layout: fixed; border-spacing: 8px; font-size: 13px; }
  [data-app-slug="econ-map"] .mk-econ-table thead th { font-size: 13px; }
  [data-app-slug="econ-map"] .mk-econ-table thead th:first-child { width: 130px; }
  [data-app-slug="econ-map"] .mk-econ-table tbody th { color: var(--mk-ink); font-size: 15px; vertical-align: middle; }
  [data-app-slug="econ-map"] .mk-econ-table td { padding: var(--mk-s-3) var(--mk-s-4); }
  [data-app-slug="econ-map"] .mk-econ-table strong { font-size: 24px; letter-spacing: -.02em; }
  [data-app-slug="econ-map"] .mk-econ-table time, [data-app-slug="econ-map"] .mk-econ-table td > span { font-size: 12.5px; }
  [data-app-slug="econ-map"] .mk-econ-scroll-hint { display: none; }

  /* Mini-apps: the three calculators side by side */
  .mk-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--mk-sp-card); align-items: stretch; }
  .mk-mini-grid > .mk-options { grid-template-rows: auto auto 1fr; align-content: start; }
  .mk-mini-grid .mk-option-fields { grid-template-columns: minmax(0, 1fr); }
  .mk-mini-grid .mk-data-rows { align-self: end; padding: var(--mk-s-2) var(--mk-s-3); border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--mk-brand) 9%, var(--mk-surface)), var(--mk-surface) 70%); border: 1px solid var(--mk-edge); }
  .mk-mini-grid .mk-mini-result { align-items: baseline; font-size: 13.5px; }
  .mk-mini-grid .mk-mini-result + .mk-mini-result { border-top: 1px solid var(--mk-edge); }
  .mk-mini-grid .mk-mini-result strong { font-size: 16px; }
  .mk-mini-grid .mk-mini-result:first-child strong { font-size: 22px; letter-spacing: -.02em; }

  /* Global yields: tables replace the seven lists; the two columns share the width */
  [data-app-slug="global-yields"] .mk-app-cols { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  [data-app-slug="global-yields"] .mk-app-side { position: static; max-height: none; overflow: visible; padding-inline-end: 0; }
  [data-app-slug="global-yields"] .mk-app-side > .mk-data-section { display: none; }
  .mk-gy-tables { display: grid; gap: var(--mk-sp-card); align-content: start; }
  .mk-gy-num { text-align: end; white-space: nowrap; }
  .mk-gy-table thead .mk-gy-num { text-align: end; }
  .mk-gy-barcol { width: 22%; min-width: 70px; }
  .mk-gy-track { display: block; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--mk-line) 70%, transparent); }
  .mk-gy-bar { display: block; height: 100%; border-radius: inherit; background: var(--mk-brand); }
  .mk-gy-picked th { color: var(--mk-brand); }
  .mk-gy-picked th::after { content: "shocked"; margin-inline-start: var(--mk-s-2); padding: 1px var(--mk-s-2); border-radius: 999px; background: var(--mk-tint); color: var(--mk-brand-ink); font-size: 11px; font-weight: 700; }
  .mk-gy-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--mk-s-2); margin: 0; }
  .mk-gy-facts div { padding: var(--mk-s-2) var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 14px; background: var(--mk-glass); }
  .mk-gy-facts dt { color: var(--mk-muted); font-size: 11.5px; font-weight: 650; }
  .mk-gy-facts dd { margin: var(--mk-s-1) 0 0; font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
  .mk-gy-facts dd small { margin-inline-start: var(--mk-s-1); color: var(--mk-muted); font-size: 11.5px; font-weight: 550; }
}

@media (min-width: 1300px) and (max-width: 1799px) {
  .mk-mini-grid .mk-option-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-mini-grid .mk-option-submit { grid-column: 1 / -1; }
}

@media (min-width: 900px) and (max-width: 1299px) {
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-data-row { grid-template-columns: minmax(0, 1fr) auto 60px; gap: var(--mk-s-2); font-size: 13px; }
  [data-app-slug="indicators"] .mk-app-cols { grid-template-columns: minmax(0, 1fr); }
  [data-app-slug="indicators"] .mk-app-side { grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; max-height: none; overflow: visible; }
  .mk-ta-bidder { display: none; }
  [data-app-slug="global-yields"] .mk-app-cols { grid-template-columns: minmax(0, 1fr); }
  [data-app-slug="global-yields"] .mk-app-primary { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  [data-app-slug="global-yields"] .mk-app-primary > * { grid-column: 1 / -1; }
  [data-app-slug="global-yields"] .mk-app-primary > .mk-headline { grid-column: 1; }
  [data-app-slug="global-yields"] .mk-app-primary > .mk-gy-controls { grid-column: 2; }
}

/* ---------- Ultra-wide ---------- */
@media (min-width: 1800px) {
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-data-row { min-height: 48px; font-size: 14px; }
  :is([data-app-slug="curve-compare"], [data-app-slug="global-yields"], [data-app-slug="private-credit"], [data-app-slug="spread-atlas"], [data-app-slug="term-premium"], [data-app-slug="treasury-auctions"], [data-app-slug="us-debt"], [data-app-slug="yield-curves"], [data-app-slug="carry-monitor"], [data-app-slug="fair-value"], [data-app-slug="fx-dashboard"], [data-app-slug="breakeven-inflation"], [data-app-slug="correlation"], [data-app-slug="econ-map"], [data-app-slug="indicators"], [data-app-slug="mini-apps"], [data-app-slug="commodity-dashboard"], [data-app-slug="macro-drivers"]) .mk-row-value { font-size: 15.5px; }

  :is([data-app-slug="macro-drivers"], [data-app-slug="fair-value"], [data-app-slug="spread-atlas"]) .mk-app-cols { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr) minmax(320px, 420px); }
  :is([data-app-slug="macro-drivers"], [data-app-slug="fair-value"], [data-app-slug="spread-atlas"]) .mk-app-side { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); grid-row: 1; }
  :is([data-app-slug="macro-drivers"], [data-app-slug="fair-value"], [data-app-slug="spread-atlas"]) .mk-app-context { grid-column: 3; grid-row: 1; }
  [data-app-slug="spread-atlas"] .mk-app-side { grid-template-columns: minmax(0, 1fr); }
  [data-app-slug="macro-drivers"] .mk-app-side { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk-sa-tables { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }

  :is([data-app-slug="treasury-auctions"], [data-app-slug="econ-map"], [data-app-slug="mini-apps"]) .mk-app-cols { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); }
  :is([data-app-slug="treasury-auctions"], [data-app-slug="econ-map"], [data-app-slug="mini-apps"]) .mk-app-primary { grid-column: 1; grid-row: 1; }
  :is([data-app-slug="treasury-auctions"], [data-app-slug="econ-map"], [data-app-slug="mini-apps"]) .mk-app-side { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  :is([data-app-slug="treasury-auctions"], [data-app-slug="econ-map"], [data-app-slug="mini-apps"]) .mk-app-context { grid-column: 2; grid-row: 1; }
  [data-app-slug="treasury-auctions"] .mk-app-primary { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
  [data-app-slug="econ-map"] .mk-econ-table strong { font-size: 28px; }
  .mk-mini-grid .mk-option-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-mini-grid .mk-option-submit { grid-column: 1 / -1; }

  [data-app-slug="global-yields"] .mk-app-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(300px, .55fr); }

  /* Chart apps: data cards in two columns so values stay near their labels */
  :is([data-app-slug="fx-dashboard"], [data-app-slug="yield-curves"], [data-app-slug="breakeven-inflation"], [data-app-slug="term-premium"], [data-app-slug="us-debt"], [data-app-slug="carry-monitor"], [data-app-slug="commodity-dashboard"], [data-app-slug="correlation"], [data-app-slug="private-credit"], [data-app-slug="curve-compare"]) .mk-app-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ===== App layouts: tools-pages (designed per app for tablet, desktop and ultra-wide) ===== */
/* Wide layouts for the stocks and tools apps and the pages around them (owner, Nov 14).
   Phone (< 900px) stays as designed: the only base rules here hide pieces that exist for wide screens,
   and give the native strategy menu the same field look as the inputs next to it. */

/* ---------- Pieces that exist only on wide screens ---------- */
.mk-wrap-head, .mk-wrap-label, .mk-wrap-icon, .mk-wrap-words,
.mk-glossary-head, .mk-legal-head, .mk-404-lede, .mk-404-places,
/* The brand panel draws on its own too (the kit catalog, a product's splash); beside the sign-in form it shows from 900px
   only (note #34). */
.mk-auth-brand { position: relative; display: flex; flex-direction: column; gap: var(--mk-s-6); padding: var(--mk-s-10) var(--mk-s-10) var(--mk-s-10); overflow: hidden; color: var(--mk-day-surface); background: radial-gradient(120% 80% at 0% 0%, light-dark(color-mix(in srgb, var(--mk-light) 45%, transparent), color-mix(in srgb, var(--mk-light) 16%, transparent)), transparent 60%), linear-gradient(160deg, light-dark(color-mix(in srgb, var(--mk-deep) 82%, var(--mk-day-surface)), color-mix(in srgb, var(--mk-deep) 70%, var(--mk-night-tile))), var(--mk-deep) 45%, light-dark(color-mix(in srgb, var(--mk-deep) 70%, var(--mk-night-tile)), color-mix(in srgb, var(--mk-deep) 35%, var(--mk-night-tile)))); }
.mk-auth-brand::after { content: ""; position: absolute; inset-inline-end: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid color-mix(in srgb, var(--mk-day-surface) 7%, transparent); pointer-events: none; }
.mk-auth-brand-top { display: flex; flex-direction: column; align-items: flex-start; gap: var(--mk-s-3); }
.mk-auth-brand-mark { --u: 1.2px; width: 120px; height: 120px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.mk-auth-brand-mark svg { width: 100%; }
.mk-auth-brand-name { font-size: 24px; font-weight: 760; letter-spacing: -.015em; }
.mk-auth-brand-name span { color: color-mix(in srgb, var(--mk-light) 55%, var(--mk-day-surface)); }
.mk-auth-brand-lede { margin: var(--mk-s-1) 0 0; font-size: clamp(28px, 2.6vw, 38px); font-weight: 760; line-height: 1.15; letter-spacing: -.025em; }
.mk-auth-brand-points { display: grid; gap: var(--mk-s-4); margin: 0; padding: 0; list-style: none; }
.mk-auth-brand-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--mk-s-3); align-items: start; font-size: 14px; line-height: 1.45; color: color-mix(in srgb, var(--mk-day-surface) 82%, transparent); }
.mk-auth-brand-points strong { display: block; color: var(--mk-day-surface); font-size: 15px; }
.mk-auth-brand-points .mk-appbar-icon { width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--mk-day-surface) 16%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--mk-day-surface) 25%, transparent); }
.mk-auth-brand-foot { margin-top: auto; font-size: 13.5px; color: color-mix(in srgb, var(--mk-day-surface) 78%, transparent); }
.mk-auth-screen .mk-auth-brand { display: none; }
.mk-auth-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mk-auth-title-create, [data-auth-mode="create"] .mk-auth-title-signin { display: none; }
[data-auth-mode="create"] .mk-auth-title-create { display: inline; }
.mk-wrap-group, .mk-auth-panel { display: contents; }

/* The strategy menu looked like a bare browser control next to the styled inputs (a phone bug too). */
.mk-option-field select { width: 100%; min-width: 0; min-height: 44px; padding: var(--mk-s-2) var(--mk-s-10) var(--mk-s-2) var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; color: var(--mk-ink); font: inherit; font-size: 16px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; }
.mk-option-field select:focus-visible { outline: 2.5px solid var(--mk-brand); outline-offset: 2px; }

@media (min-width: 900px) {

  /* ---------- Options Calculator and FX Options: inputs and result side by side ---------- */
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-app-cols { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-app-primary { grid-template-columns: minmax(0, 1fr); }
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-app-primary > * { grid-column: 1 / -1; }
  /* FX Options before a volatility is typed has no data sections: the inputs take the whole row. */
  [data-app-slug="fx-options"] .mk-app-cols:not(:has(> .mk-app-side > *)) > .mk-app-primary { grid-column: 1 / -1; }
  [data-app-slug="fx-options"] .mk-app-side:not(:has(*)) { display: none; }
  .mk-options { gap: var(--mk-s-3); padding: var(--mk-s-5) var(--mk-s-5) var(--mk-s-5); }
  .mk-option-field { gap: var(--mk-s-1); font-size: 13px; font-weight: 600; }
  .mk-option-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mk-s-3); }
  .mk-option-submit { grid-column: -2; justify-self: end; }
  .mk-option-switch span { min-height: 46px; font-size: 15px; }
  .mk-options .mk-option-more > summary { margin-inline-start: 0; }
  [data-app-slug="fx-options"] .mk-chips { flex-wrap: wrap; overflow: visible; }
  [data-app-slug="fx-options"] .mk-chips .mk-chip { flex: 0 0 auto; padding: 0 var(--mk-s-4); font-size: 13px; }
  [data-app-slug="fx-options"] .mk-app-primary > p.mk-muted { max-width: 75ch; font-size: 14px; }

  /* The result reads as a panel: the price large, on a soft brand wash. */
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-headline { align-content: center; gap: var(--mk-s-2); padding: var(--mk-s-6) var(--mk-s-8); background: linear-gradient(150deg, color-mix(in srgb, var(--mk-brand) 13%, var(--mk-surface)), var(--mk-glass) 65%); }
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-headline-label { font-size: 15px; }
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-headline-number strong { font-size: clamp(44px, 4.4vw, 72px); }
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-headline-number > span { font-size: 15px; font-weight: 650; }
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-headline time { font-size: 13px; }

  /* Greeks and value: no empty change column; larger numbers. */
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-app-side .mk-data-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 48px; font-size: 14px; }
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-app-side .mk-change { display: none; }
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-app-side .mk-row-value { font-size: 15px; font-variant-numeric: tabular-nums; }

  /* Option chain: a real table with a sticky head, calls and puts in their own columns. */
  .mk-chain { gap: var(--mk-s-2); padding: var(--mk-s-5) var(--mk-s-5); }
  .mk-chain .mk-chips { flex-wrap: wrap; overflow: visible; }
  .mk-chain .mk-chips .mk-chip { flex: 0 0 auto; padding: 0 var(--mk-s-3); }
  .mk-chain-row { grid-template-columns: minmax(90px, .8fr) repeat(2, minmax(0, 1fr)); gap: var(--mk-s-3); padding: 0 var(--mk-s-2); border-radius: 12px; font-size: 14px; }
  .mk-chain-row > :not(:first-child) { text-align: end; }
  .mk-chain-row a { border-radius: 10px; padding: 0 var(--mk-s-2); margin-inline-end: calc(-1 * var(--mk-s-2)); }
  .mk-chain-row a:hover { background: var(--mk-tint); color: var(--mk-brand-ink); }
  .mk-chain-heading { min-height: 36px; border-bottom: 1px solid var(--mk-line); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
  .mk-chain-selected { box-shadow: inset 3px 0 0 var(--mk-brand); }
  .mk-chain-comparison { grid-template-columns: repeat(2, minmax(0, 220px)); }
  .mk-chain-comparison strong { font-size: 18px; font-variant-numeric: tabular-nums; }

  /* ---------- Heatmap: the map beside the best and worst five; sectors flow as blocks ---------- */
  [data-app-slug="heatmap"] .mk-app-cols { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
  [data-app-slug="heatmap"] .mk-app-side { align-items: start; }
  .mk-heatmap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--mk-s-5) var(--mk-s-6); padding: var(--mk-s-5) var(--mk-s-5); }
  .mk-heatmap > h2, .mk-heatmap > p { flex: 0 0 100%; }
  .mk-heatmap-group { flex: 1 1 auto; min-width: 0; }
  .mk-heatmap-group h3 { font-size: 13px; }
  .mk-heatmap-grid { grid-template-columns: repeat(var(--mk-heat-n, 3), minmax(92px, 1fr)); gap: var(--mk-s-2); }
  .mk-heat-tile { min-height: 84px; gap: var(--mk-s-1); border-radius: 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
  .mk-heat-tile strong { font-size: 15px; letter-spacing: .01em; }

  /* ---------- Market Overview: the headline as a lead tile beside a 2 x 2 board of sections ---------- */
  [data-app-slug="market-overview"] .mk-app-cols { grid-template-columns: minmax(240px, .8fr) minmax(0, 2.6fr); }
  [data-app-slug="market-overview"] .mk-app-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; position: static; max-height: none; overflow: visible; }
  [data-app-slug="market-overview"] .mk-headline { min-height: 260px; align-content: center; background: linear-gradient(160deg, color-mix(in srgb, var(--mk-brand) 12%, var(--mk-surface)), var(--mk-glass) 70%); }
  [data-app-slug="market-overview"] .mk-headline-number strong { font-size: clamp(44px, 4vw, 64px); }
  :is([data-app-slug="stocks-dashboard"], [data-app-slug="market-overview"], [data-app-slug="heatmap"], [data-app-slug="quotes"], [data-app-slug="options-calculator"], [data-app-slug="fx-options"]) :is(.mk-app-side, .mk-app-context) { align-items: start; }

  /* ---------- Stocks Dashboard and Quotes: larger rows ---------- */
  :is([data-app-slug="stocks-dashboard"], [data-app-slug="market-overview"], [data-app-slug="heatmap"], [data-app-slug="quotes"]) .mk-data-row { min-height: 48px; font-size: 14px; }
  [data-app-slug="quotes"] .mk-quote-row { grid-template-columns: minmax(0, 1fr) auto 80px 44px; }
  [data-app-slug="quotes"] .mk-entry { max-width: 520px; }

  /* ---------- Today (Daily Wrap) ---------- */
  .mk-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--mk-s-4); }
  .mk-wrap > .mk-eyebrow { display: none; }
  .mk-wrap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--mk-s-6); padding: var(--mk-s-2) var(--mk-s-1) var(--mk-s-1); }
  .mk-wrap-kicker { display: flex; align-items: center; gap: var(--mk-s-2); margin: 0 0 var(--mk-s-2); color: var(--mk-brand); font-size: 13px; font-weight: 750; }
  .mk-wrap-kicker .mk-icon { width: 18px; height: 18px; }
  .mk-wrap-kicker time { color: var(--mk-muted); font-weight: 600; }
  .mk-wrap-head h2 { font-size: clamp(26px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 760; }
  .mk-wrap-stats { display: flex; gap: var(--mk-s-2); margin: 0; }
  .mk-wrap-stats > div { display: grid; gap: 2px; min-width: 120px; padding: var(--mk-s-2) var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 16px; background: var(--mk-glass); }
  .mk-wrap-stats dt { color: var(--mk-muted); font-size: 12px; font-weight: 650; }
  .mk-wrap-stats dd { margin: 0; font-size: 24px; font-weight: 760; font-variant-numeric: tabular-nums; }
  .mk-wrap-stat-notable dd { color: color-mix(in srgb, var(--mk-dot) 75%, var(--mk-ink)); }
  .mk-wrap-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--mk-s-3); align-items: stretch; }
  .mk-wrap-label { display: block; grid-column: 1 / -1; margin: var(--mk-s-1) var(--mk-s-1) 0; color: var(--mk-muted); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
  .mk-wrap-notable { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
  .mk-wrap .mk-today { align-content: start; gap: var(--mk-s-2); padding: var(--mk-s-4) var(--mk-s-5); transition: transform var(--mk-m-quick) var(--mk-e-spring), border-color var(--mk-m-quick) var(--mk-e-out); }
  .mk-wrap .mk-today:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--mk-brand) 45%, var(--mk-edge)); }
  .mk-wrap .mk-today > .mk-eyebrow { display: flex; align-items: center; gap: var(--mk-s-2); font-size: 13px; }
  .mk-wrap-icon { display: grid; width: 32px; height: 32px; border-radius: 10px; }
  .mk-wrap-icon .mk-icon { width: 18px; height: 18px; }
  .mk-wrap .mk-today > span:not(.mk-eyebrow) { font-size: 14.5px; }
  .mk-wrap .mk-today time { margin-top: auto; }
  .mk-wrap-notable .mk-today { padding: var(--mk-s-5) var(--mk-s-6); background: linear-gradient(160deg, color-mix(in srgb, var(--mk-dot) 10%, var(--mk-surface)), var(--mk-glass) 60%); }
  .mk-wrap-notable .mk-today strong { font-size: 20px; letter-spacing: -.01em; }
  .mk-wrap-foot { padding: 0 var(--mk-s-1); }

  /* ---------- Words to know: a glossary in columns ---------- */
  .mk-page-words .mk-main > .mk-eyebrow { display: none; }
  .mk-glossary-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--mk-s-4) var(--mk-s-6); padding: var(--mk-s-2) var(--mk-s-1) var(--mk-s-1); }
  .mk-glossary-head h2 { margin-bottom: var(--mk-s-1); font-size: clamp(26px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 760; }
  .mk-glossary-head p { font-size: 14.5px; }
  .mk-glossary-index { display: flex; flex-wrap: wrap; gap: var(--mk-s-1); }
  .mk-glossary-index a { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--mk-edge); border-radius: 12px; background: var(--mk-glass); color: var(--mk-ink); font-weight: 700; text-decoration: none; }
  .mk-glossary-index a:hover { border-color: var(--mk-brand); color: var(--mk-brand); }
  .mk-glossary { padding: var(--mk-s-6) var(--mk-s-6); }
  .mk-glossary .mk-words { display: block; columns: 320px auto; column-gap: var(--mk-s-10); }
  .mk-glossary .mk-words > div { position: relative; break-inside: avoid; margin: 0 0 var(--mk-s-5); padding-inline-start: var(--mk-s-12); scroll-margin-top: calc(var(--mk-bar-h) + 24px); }
  .mk-glossary .mk-words > div::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--mk-tint); }
  .mk-glossary .mk-words-first::before { content: attr(data-initial) !important; display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--mk-deep) 80%, var(--mk-day-surface)), var(--mk-deep)) !important; color: var(--mk-day-surface); font-size: 16px; font-weight: 760; }
  .mk-glossary .mk-words > div:not(.mk-words-first)::before { opacity: 0; }
  .mk-glossary .mk-words dt { font-size: 16px; line-height: 1.3; }
  .mk-glossary .mk-words dd { font-size: 14.5px; color: var(--mk-muted); }
  .mk-glossary .mk-words dd a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--mk-s-3); margin-top: var(--mk-s-1); border: 1px solid var(--mk-edge); border-radius: 999px; font-size: 12.5px; font-weight: 650; text-decoration: none; }
  .mk-glossary .mk-words dd a:hover { border-color: var(--mk-brand); color: var(--mk-brand); }

  /* ---------- Empty states and the 404 page: a centred card, not a full-width strip ---------- */
  :is(.mk-page-today, .mk-page-words, .mk-page-saved, .mk-page-404) .mk-empty { width: min(100%, 620px); justify-self: center; margin: 6vh auto 0; padding: var(--mk-s-12) var(--mk-s-10); }
  :is(.mk-page-today, .mk-page-words, .mk-page-saved, .mk-page-404) .mk-empty > .mk-icon { width: 40px; height: 40px; }
  :is(.mk-page-today, .mk-page-words, .mk-page-saved, .mk-page-404) .mk-empty h2 { font-size: 22px; }
  .mk-page-404 .mk-empty .mk-mark { width: 72px; height: 72px; padding: var(--mk-s-2); border-radius: 20px; }
  .mk-page-404 .mk-empty h1 { font-size: 28px; }
  .mk-404-lede { display: block; margin-top: calc(-1 * var(--mk-s-2)); }
  .mk-page-404 .mk-empty > .mk-ib { display: none; }
  .mk-404-places { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mk-s-2); }
  .mk-404-places a { display: inline-flex; align-items: center; gap: var(--mk-s-2); min-height: 48px; padding: 0 var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-glass); color: var(--mk-ink); font-weight: 650; text-decoration: none; }
  .mk-404-places a:first-child { background: var(--mk-brand-fill); border-color: transparent; color: var(--mk-on-brand); }
  .mk-404-places a:hover { border-color: var(--mk-brand); }
  .mk-404-places .mk-icon { width: 19px; height: 19px; }

  /* ---------- Saved: a short page head over the card tiles ---------- */
  .mk-page-saved .mk-family { padding-top: var(--mk-s-1); }

  /* ---------- Sign in, join and the code screen: a centred card with a brand side ---------- */
  .mk-auth-page .mk-shell { max-width: none; padding: 0; }
  .mk-auth-screen:has(.mk-auth-panel) { display: grid; grid-template-rows: auto auto; align-content: center; justify-items: center; gap: var(--mk-s-6); padding: var(--mk-s-10) var(--mk-s-6) var(--mk-s-6); }
  .mk-auth-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); width: min(100%, 1040px); min-height: 600px; overflow: hidden; border: 1px solid var(--mk-edge); border-radius: 36px; background: var(--mk-glass-2); box-shadow: var(--mk-shadow), 0 30px 80px color-mix(in srgb, var(--mk-night-tile) 12%, transparent), inset 0 1px 0 var(--mk-hi); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%); }
  .mk-auth-screen .mk-auth-brand { display: flex; }
  .mk-auth-brand { position: relative; display: flex; flex-direction: column; gap: var(--mk-s-6); padding: var(--mk-s-10) var(--mk-s-10) var(--mk-s-10); overflow: hidden; color: var(--mk-day-surface); background: radial-gradient(120% 80% at 0% 0%, light-dark(color-mix(in srgb, var(--mk-light) 45%, transparent), color-mix(in srgb, var(--mk-light) 16%, transparent)), transparent 60%), linear-gradient(160deg, light-dark(color-mix(in srgb, var(--mk-deep) 82%, var(--mk-day-surface)), color-mix(in srgb, var(--mk-deep) 70%, var(--mk-night-tile))), var(--mk-deep) 45%, light-dark(color-mix(in srgb, var(--mk-deep) 70%, var(--mk-night-tile)), color-mix(in srgb, var(--mk-deep) 35%, var(--mk-night-tile)))); }
  .mk-auth-brand::after { content: ""; position: absolute; inset-inline-end: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid color-mix(in srgb, var(--mk-day-surface) 7%, transparent); pointer-events: none; }
  .mk-auth-brand-top { display: flex; flex-direction: column; align-items: flex-start; gap: var(--mk-s-3); }
  /* The light mark on the brand panel: large, no tile (colour mark on light surfaces, light mark on brand colour). */
  .mk-auth-brand-mark { --u: 1.2px; width: 120px; height: 120px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .mk-auth-brand-mark svg { width: 100%; }
  .mk-auth-brand-name { font-size: 24px; font-weight: 760; letter-spacing: -.015em; }
  .mk-auth-brand-name span { color: color-mix(in srgb, var(--mk-light) 55%, var(--mk-day-surface)); }
  .mk-auth-brand-lede { margin: var(--mk-s-1) 0 0; font-size: clamp(28px, 2.6vw, 38px); font-weight: 760; line-height: 1.15; letter-spacing: -.025em; }
  .mk-auth-brand-points { display: grid; gap: var(--mk-s-4); margin: 0; padding: 0; list-style: none; }
  .mk-auth-brand-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--mk-s-3); align-items: start; font-size: 14px; line-height: 1.45; color: color-mix(in srgb, var(--mk-day-surface) 82%, transparent); }
  .mk-auth-brand-points strong { display: block; color: var(--mk-day-surface); font-size: 15px; }
  .mk-auth-brand-points .mk-appbar-icon { width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--mk-day-surface) 16%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--mk-day-surface) 25%, transparent); }
  .mk-auth-brand-foot { margin-top: auto; font-size: 13.5px; color: color-mix(in srgb, var(--mk-day-surface) 78%, transparent); }
  .mk-auth-panel .mk-auth-content { display: flex; flex-direction: column; justify-content: center; padding: var(--mk-s-6) var(--mk-s-10) var(--mk-s-10); }
  .mk-auth-panel .mk-auth-bar { position: absolute; top: 20px; inset-inline-end: 24px; height: auto; }
  .mk-auth-panel { position: relative; }
  .mk-auth-panel:not(:has(> .mk-auth-brand)) { grid-template-columns: minmax(0, 1fr); width: min(100%, 520px); min-height: 0; } /* no brand side: one narrow card */
  .mk-auth-panel .mk-auth-hero { display: none; }
  .mk-auth-title { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: block; margin: 0 0 var(--mk-s-4); font-size: 28px; font-weight: 760; letter-spacing: -.02em; }
  .mk-auth-title-create, [data-auth-mode="create"] .mk-auth-title-signin { display: none; }
  [data-auth-mode="create"] .mk-auth-title-create { display: inline; }
  .mk-auth-panel .mk-auth-code-copy { margin-top: 0; text-align: start; }
  .mk-auth-panel .mk-auth-code-copy h1 { font-size: 28px; }
  .mk-auth-panel .mk-auth-code-actions { justify-items: start; text-align: start; }
  .mk-auth-panel .mk-auth-code-submit { margin-inline-start: 0; }
  .mk-auth-screen:has(.mk-auth-panel) .mk-auth-foot { padding-top: 0; }
  /* The sign-in sheet over an app page shows the same card on the blurred page. */
  .mk-auth-gate { max-width: none; width: 100%; background: transparent; }
  .mk-auth-gate::backdrop { background: color-mix(in srgb, var(--mk-canvas) 70%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .mk-auth-legal-sheet { max-width: 640px; }

  /* ---------- Daily limit ---------- */
  .mk-auth-limit { width: min(calc(100% - 48px), 560px); min-height: 0; margin: max(48px, calc((100dvh - 480px) / 2)) auto 0; padding: var(--mk-s-12) var(--mk-s-12); border: 1px solid var(--mk-edge); border-radius: 36px; background: var(--mk-glass-2); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%); }
  .mk-auth-limit h1 { font-size: 32px; }
  .mk-auth-limit p { color: var(--mk-muted); font-size: 16px; }

  /* ---------- Terms and Privacy: a side column and one readable page ---------- */
  /* The frame keeps its one width (the shell rules below); the legal text sits centred inside it. */
  .mk-page-legal .mk-shell { padding: 0 var(--mk-gutter); }
  .mk-auth-legal-page { display: grid; grid-template-columns: 300px minmax(0, 760px); justify-content: center; gap: var(--mk-s-12); padding-top: var(--mk-s-6); }
  .mk-legal-head { display: grid; gap: var(--mk-s-3); align-content: start; justify-items: start; position: sticky; top: calc(var(--mk-bar-h) + var(--mk-safe-top) + 24px); }
  .mk-legal-head h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 760; }
  .mk-legal-head p { font-size: 14px; line-height: 1.5; }
  .mk-legal-other { display: inline-flex; align-items: center; gap: var(--mk-s-2); min-height: 44px; color: var(--mk-brand); font-weight: 700; text-decoration: none; }
  .mk-legal-other .mk-icon { width: 18px; height: 18px; }
  .mk-legal-body { padding: var(--mk-s-8) var(--mk-s-10); border: 1px solid var(--mk-edge); border-radius: 28px; background: var(--mk-glass); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); }
  .mk-legal-body .mk-auth-summary:first-child { font-size: 18px; line-height: 1.55; }
  .mk-legal-body .mk-auth-contents-label { display: none; }
  .mk-legal-body .mk-auth-contents details { padding: var(--mk-s-1) 0 var(--mk-s-1); }
  .mk-legal-body .mk-auth-contents summary { min-height: 52px; font-size: 17px; pointer-events: none; }
  .mk-legal-body .mk-auth-contents summary .mk-icon { display: none; }
  .mk-legal-body .mk-auth-contents details::details-content { content-visibility: visible; block-size: auto; }
  .mk-legal-body .mk-auth-contents p { color: var(--mk-ink); font-size: 15.5px; line-height: 1.65; }
  .mk-legal-body > .mk-auth-summary:last-child { margin-top: var(--mk-s-5); color: var(--mk-muted); font-size: 14px; }

  /* ---------- Sheets: account, alerts, (i) panels ---------- */
  #mk-alerts .mk-sheet-body { padding: var(--mk-s-2) var(--mk-s-6) var(--mk-s-8); }
  #mk-alerts .mk-alert-choices .mk-chip { min-height: 52px; font-size: 14px; }
  #mk-alerts .mk-alert-help { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mk-s-4) var(--mk-s-6); font-size: 14px; }
}

@media (min-width: 1200px) {
  /* Options: the form and its answer share the top row. */
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-app-primary { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-app-primary > .mk-options { grid-column: 1; }
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-app-primary > .mk-headline { grid-column: 2; align-self: stretch; }
  .mk-auth-legal-page { grid-template-columns: 320px minmax(0, 780px); }
}

@media (min-width: 1800px) {
  :is([data-app-slug="options-calculator"], [data-app-slug="fx-options"]) .mk-app-cols { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(320px, .72fr); }
  .mk-option-fields { gap: var(--mk-s-4); }

  [data-app-slug="heatmap"] .mk-app-cols { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px) minmax(300px, 380px); }
  [data-app-slug="market-overview"] .mk-app-cols { grid-template-columns: minmax(280px, .7fr) minmax(0, 2.6fr) minmax(300px, .8fr); }


  [data-app-slug="stocks-dashboard"] .mk-app-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-heatmap-grid { grid-template-columns: repeat(var(--mk-heat-n, 3), minmax(104px, 1fr)); }
  .mk-heat-tile { min-height: 96px; }

  /* Today: the notes on the left, the words from them in a column on the right. */
  .mk-wrap { grid-template-columns: minmax(0, 1fr) 380px; column-gap: var(--mk-s-6); align-items: start; }
  .mk-wrap > :not(.mk-wrap-words) { grid-column: 1; }
  .mk-wrap-words { display: grid; gap: var(--mk-s-3); grid-column: 2; grid-row: 1 / span 4; position: sticky; top: calc(var(--mk-bar-h) + var(--mk-safe-top) + 12px); padding: var(--mk-s-5) var(--mk-s-5); }
  .mk-wrap-words .mk-wrap-kicker { margin: 0; }
  .mk-wrap-words dl { display: grid; gap: var(--mk-s-3); margin: 0; }
  .mk-wrap-words dt { font-size: 14.5px; font-weight: 750; }
  .mk-wrap-words dd { margin: 2px 0 0; color: var(--mk-muted); font-size: 13.5px; line-height: 1.5; }
  .mk-wrap-more { display: inline-flex; align-items: center; gap: var(--mk-s-1); min-height: 44px; color: var(--mk-brand); font-weight: 700; text-decoration: none; }
  .mk-wrap-more .mk-icon { width: 18px; height: 18px; }
  .mk-wrap-group { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
  .mk-wrap-notable { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }

  .mk-glossary .mk-words { columns: 380px auto; column-gap: var(--mk-s-12); }
  .mk-auth-panel { width: min(100%, 1180px); min-height: 680px; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
  .mk-auth-brand { padding: var(--mk-s-12) var(--mk-s-12) var(--mk-s-12); }
  .mk-auth-legal-page { grid-template-columns: 360px minmax(0, 820px); gap: var(--mk-s-16); }
}

/* Phones: the account sheet's theme switch shows icons only (each still has its name for touch hold and screen readers) */
@media (max-width: 599px) {
  .mk-menu-sub .mk-auth-theme-choice span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mk-menu-sub .mk-auth-theme-choice { min-height: 44px; }
  .mk-menu-sub .mk-auth-theme-choice .mk-icon { width: 20px; height: 20px; }
}

/* Alerts sheet: choices as cards, this device's push state, recent alerts */
.mk-alerts { display: grid; gap: var(--mk-s-4); }
.mk-alerts > p { margin: 0; }
.mk-alert-choices.mk-alert-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mk-s-2); margin-block: 0; }
.mk-alert-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: center; gap: var(--mk-s-3); width: 100%; padding: var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 18px; background: var(--mk-surface); color: var(--mk-ink); font: inherit; text-align: start; cursor: pointer; transition: border-color var(--mk-m-quick) var(--mk-e-out), background var(--mk-m-quick) var(--mk-e-out); }
.mk-alert-card:hover { border-color: color-mix(in srgb, var(--mk-brand) 40%, var(--mk-edge)); }
.mk-alert-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mk-tint); color: var(--mk-muted); }
.mk-alert-card-icon .mk-icon { width: 22px; height: 22px; }
.mk-alert-card-text { display: grid; gap: 2px; min-width: 0; }
.mk-alert-card-text strong { font-size: 15px; }
.mk-alert-card-text span { color: var(--mk-muted); font-size: 13px; line-height: 1.35; }
.mk-alert-card-check { visibility: hidden; color: var(--mk-brand); }
.mk-alert-card[aria-pressed="true"] { border-color: var(--mk-brand); background: color-mix(in srgb, var(--mk-brand) 8%, var(--mk-surface)); }
.mk-alert-card[aria-pressed="true"] .mk-alert-card-icon { background: var(--mk-brand-fill); color: var(--mk-on-brand); }
.mk-alert-card[aria-pressed="true"] .mk-alert-card-check { visibility: visible; }
.mk-push-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: var(--mk-s-1) var(--mk-s-3); padding: var(--mk-s-3); border-radius: 18px; background: linear-gradient(155deg, color-mix(in srgb, var(--mk-brand) 12%, transparent), color-mix(in srgb, var(--mk-brand) 4%, transparent)); border: 1px solid var(--mk-edge); }
.mk-push-card[hidden] { display: none; }
.mk-push-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mk-surface); color: var(--mk-muted); }
.mk-push-card[data-push-on="true"] .mk-push-icon { background: var(--mk-brand-fill); color: var(--mk-on-brand); }
.mk-push-card[data-push-on="blocked"] .mk-push-icon { background: color-mix(in srgb, var(--mk-negative) 18%, var(--mk-surface)); color: var(--mk-negative); }
.mk-push-text { display: grid; gap: 2px; font-size: 13.5px; }
.mk-push-text strong { font-size: 14.5px; }
.mk-push-card [data-push-enable] { grid-column: 1 / -1; justify-self: start; margin-top: var(--mk-s-1); }
.mk-alerts h3 { margin: var(--mk-s-2) 0 0; font-size: 14px; }
.mk-alert-list { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-alert-list a { display: grid; gap: var(--mk-s-1); padding: var(--mk-s-3) var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 16px; background: var(--mk-surface); color: var(--mk-ink); text-decoration: none; min-height: 0; }
.mk-alert-list a span { color: var(--mk-muted); font-size: 13px; line-height: 1.4; }
.mk-alert-list time { font-size: 12px; }
@media (min-width: 900px) {
  .mk-alert-choices.mk-alert-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* E*TRADE connected: one grouped control - countdown | disconnect */
.mk-etrade-group { display: inline-flex; align-items: stretch; margin: 0; border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-surface); overflow: hidden; box-shadow: inset 0 1px 0 var(--mk-hi); }
.mk-etrade-clock { display: inline-flex; align-items: center; padding: 0 var(--mk-s-3); color: var(--mk-brand); font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mk-etrade-clock-low { color: var(--mk-negative); }
.mk-etrade-off { display: grid; place-items: center; width: 40px; min-height: 36px; border: 0; border-inline-start: 1px solid var(--mk-edge); background: var(--mk-tint); color: var(--mk-ink); cursor: pointer; }
.mk-etrade-off:hover { background: color-mix(in srgb, var(--mk-negative) 14%, var(--mk-tint)); color: var(--mk-negative); }
.mk-etrade-off .mk-icon { width: 18px; height: 18px; }
.mk-menu-etrade .mk-etrade-group { margin-inline-start: auto; }

/* Owner's E*TRADE ticker: a marquee of quote chips under the top bar. Pauses on hover, focus or touch.
   Reduced motion: a still row that scrolls sideways. Wider screens: bigger chips, more of them in view. */
.mk-ticker { display: flex; align-items: stretch; width: calc(100% - 28px); max-width: 452px; margin: 0 auto var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 18px; background: var(--mk-glass); box-shadow: inset 0 1px 0 var(--mk-hi); overflow: hidden; }
.mk-ticker-cap { display: grid; align-content: center; gap: 2px; flex: none; padding: var(--mk-s-1) var(--mk-s-2); border-inline-end: 1px solid var(--mk-edge); background: var(--mk-tint); }
.mk-ticker-tag { color: var(--mk-brand); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.mk-ticker-time { color: var(--mk-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-ticker-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
.mk-ticker-track { display: flex; width: max-content; animation: mk-ticker calc(var(--mk-ticker-n, 20) * 2.6s) linear infinite; }
.mk-ticker:hover .mk-ticker-track, .mk-ticker:focus-within .mk-ticker-track, .mk-ticker[data-paused] .mk-ticker-track { animation-play-state: paused; }
.mk-ticker-list { display: flex; align-items: center; margin: 0; padding: 0 var(--mk-s-2) 0 0; list-style: none; }
.mk-ticker-list li { display: flex; }
.mk-ticker-group { align-items: center; padding: 0 var(--mk-s-1) 0 var(--mk-s-2); color: var(--mk-muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.mk-tick { display: inline-flex; align-items: center; gap: var(--mk-s-1); min-height: 44px; padding: 0 var(--mk-s-2); border-radius: 12px; color: var(--mk-ink); text-decoration: none; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-tick:hover, .mk-tick:focus-visible { background: var(--mk-tint); }
.mk-tick b { font-weight: 750; }
.mk-tick-last { color: var(--mk-muted); }
.mk-tick-move { display: inline-flex; align-items: center; gap: var(--mk-s-1); color: var(--mk-muted); font-weight: 650; }
.mk-tick-move i { font-size: .7em; font-style: normal; }
.mk-tick-up .mk-tick-move { color: var(--mk-brand); }
.mk-tick-down .mk-tick-move { color: var(--mk-negative); }
@keyframes mk-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mk-ticker-view { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .mk-ticker-track { animation: none; }
  .mk-ticker-list[data-ticker-copy] { display: none; }
}
@media (min-width: 600px) {
  .mk-tick { font-size: 14px; padding: 0 var(--mk-s-2); }
}
@media (min-width: 900px) {
  .mk-ticker { width: 100%; max-width: none; border-radius: 20px; }
  .mk-ticker-cap { padding: var(--mk-s-1) var(--mk-s-3); }
  .mk-ticker-tag { font-size: 11px; }
  .mk-ticker-time { font-size: 12px; }
  .mk-ticker-track { animation-duration: calc(var(--mk-ticker-n, 20) * 3.2s); }
  .mk-tick { gap: var(--mk-s-2); font-size: 15px; }
}
@media (min-width: 1800px) {
  .mk-tick { min-height: 52px; padding: 0 var(--mk-s-3); font-size: 16px; }
  .mk-ticker-group { font-size: 11px; }
}

/* Breadcrumb on app pages: Apps > family (replaces the plain family label) */
.mk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-1); font-size: 12.5px; font-weight: 650; }
.mk-crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-glass); color: var(--mk-muted); text-decoration: none; }
.mk-crumbs a[aria-current] { color: var(--mk-brand); border-color: color-mix(in srgb, var(--mk-brand) 35%, var(--mk-edge)); }
.mk-crumbs > span { color: var(--mk-muted); }

/* AI Outlook headline: the panel of models */
.mk-oh { display: grid; gap: var(--mk-s-4); }
.mk-oh-copy { display: grid; gap: var(--mk-s-1); }
.mk-oh-sub { margin: 0; color: var(--mk-muted); font-size: 14px; }
.mk-oh-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mk-s-3) var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-oh-panel li { display: grid; justify-items: center; gap: var(--mk-s-1); text-align: center; min-width: 0; }
.mk-oh-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--mk-outlook-colour) var(--mk-oh-fill), var(--mk-line) 0); }
.mk-oh-avatar > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mk-surface); color: var(--mk-outlook-colour); font-size: 20px; font-weight: 800; }
.mk-outlook-none .mk-oh-avatar > span { color: var(--mk-muted); }
.mk-oh-name { font-size: 12.5px; font-weight: 700; overflow-wrap: anywhere; }
.mk-oh-stance { color: var(--mk-outlook-colour); font-size: 12px; font-weight: 750; }
.mk-outlook-none .mk-oh-stance { color: var(--mk-muted); }
.mk-oh-stance small { color: var(--mk-muted); font-weight: 600; }
.mk-oh-donut { justify-self: center; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--mk-brand) 0 var(--mk-oh-a), var(--mk-muted) var(--mk-oh-a) var(--mk-oh-b), var(--mk-negative) var(--mk-oh-b) 360deg); }
.mk-oh-donut[style*="--mk-oh-a: 0deg; --mk-oh-b: 0deg"] { background: var(--mk-line); }
.mk-oh-donut > span { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--mk-surface); color: var(--mk-muted); font-size: 11px; font-weight: 650; text-align: center; line-height: 1.2; }
.mk-oh-donut strong { color: var(--mk-ink); font-size: 24px; }
@media (min-width: 900px) {
  .mk-oh { grid-template-columns: minmax(200px, .8fr) minmax(0, 2fr) auto; align-items: center; gap: var(--mk-s-6); }
  .mk-oh-panel { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mk-oh-avatar { width: 66px; height: 66px; }
  .mk-oh-avatar > span { width: 52px; height: 52px; font-size: 22px; }
  .mk-oh-donut { width: 140px; height: 140px; }
  .mk-oh-donut > span { width: 104px; height: 104px; }
}

/* App AI outlook: each outlook app's own panel. Reuses the AI Outlook gauge, bar, chips and history grid.
   Phones: one compact card in place of the context column, each model behind a tap.
   Wide: the panel lays itself out by its own width (container queries), so it fits the full-width context row,
   the board apps' grid and the ultra-wide third column alike. */
.mk-ao { container-type: inline-size; min-width: 0; }
.mk-ao-grid { display: grid; gap: var(--mk-s-3); min-width: 0; }
.mk-ao-head { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.mk-ao .mk-ao-kicker { display: flex; align-items: center; gap: var(--mk-s-2); margin: 0; color: var(--mk-brand); font-size: 15px; font-weight: 750; }
.mk-ao-kicker .mk-icon { width: 20px; height: 20px; }
.mk-ao .mk-ao-question { margin: 0; color: var(--mk-muted); font-size: 14px; line-height: 1.45; }
.mk-ao-top { display: grid; gap: var(--mk-s-3); align-items: center; }
.mk-ao-gauge svg { width: min(100%, 230px); }
.mk-ao-gauge strong { font-size: 18px; }
.mk-ao-gauge .mk-muted { font-size: 12.5px; }
.mk-ao .mk-ao-legend { display: flex; margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.3; }
.mk-ao .mk-ao-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.mk-ao-facts dd { font-size: 16px; }
.mk-ao-models { display: grid; gap: var(--mk-s-2); align-items: start; }
.mk-ao-model { min-width: 0; border: 1px solid var(--mk-edge); border-inline-start: 4px solid var(--mk-outlook-colour); border-radius: 16px; background: var(--mk-surface); }
.mk-ao-model > summary { display: flex; align-items: center; gap: var(--mk-s-2); min-height: 48px; padding: 0 var(--mk-s-3); cursor: pointer; list-style: none; }
.mk-ao-model > summary::-webkit-details-marker { display: none; }
.mk-ao-model > summary:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: 2px; border-radius: 12px; }
.mk-ao-model-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; }
.mk-ao-model .mk-outlook-chip { flex: none; }
.mk-ao-chevron { width: 18px !important; height: 18px !important; color: var(--mk-muted); transition: transform var(--mk-m-base) var(--mk-e-out); }
.mk-ao-model[open] .mk-ao-chevron { transform: rotate(180deg); }
.mk-ao-model-body { display: grid; gap: var(--mk-s-2); padding: 0 var(--mk-s-3) var(--mk-s-3); }
.mk-ao .mk-ao-model-body p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.mk-ao .mk-ao-drivers { display: grid; gap: var(--mk-s-1); margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; }
.mk-ao-drivers li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: var(--mk-s-2); align-items: baseline; }
.mk-ao-drivers i { width: 8px; height: 8px; border-radius: 50%; background: var(--mk-outlook-colour); }
.mk-ao .mk-ao-record h3, .mk-ao .mk-ao-history h3 { margin: 0 0 var(--mk-s-1); font-size: 14px; }
.mk-ao .mk-ao-record p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.mk-ao-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mk-ao-table th, .mk-ao-table td { padding: var(--mk-s-2) var(--mk-s-1); border-bottom: 1px solid var(--mk-edge); text-align: end; }
.mk-ao-table th:first-child { text-align: start; }
.mk-ao-table thead th { color: var(--mk-muted); font-size: 12px; font-weight: 650; }
.mk-ao-table tbody tr:last-child > * { border-bottom: 0; }
.mk-ao-history { display: none; }
.mk-ao .mk-ao-note { margin: 0; font-size: 12px; }
@media (max-width: 899.98px) {
  .mk-app-context:has(> .mk-ao) { display: grid; }
  .mk-app-context:has(> .mk-ao) > :not(.mk-ao) { display: none; }
}
@container (min-width: 440px) {
  .mk-ao-top { grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); }
}
@container (min-width: 560px) {
  .mk-ao-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 820px) {
  .mk-ao-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "head head" "question question" "top record" "models models" "history history" "note note"; column-gap: var(--mk-s-6); }
  .mk-ao-head { grid-area: head; }
  .mk-ao-question { grid-area: question; }
  .mk-ao-top { grid-area: top; }
  .mk-ao-record { grid-area: record; align-self: center; }
  .mk-ao-models { grid-area: models; }
  .mk-ao-history { grid-area: history; }
  .mk-ao-note { grid-area: note; }
  .mk-ao-models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .mk-ao { grid-column: 1 / -1; padding: var(--mk-s-5); }
  .mk-ao-history { display: grid; }
}
@media (min-width: 1800px) {
  /* In the third column the panel is taller than the screen, so it scrolls with the page. */
  .mk-app-context:has(> .mk-ao) { position: static; }
}

/* Home: the AI outlook board, each app's latest consensus */
.mk-ao-board { margin-bottom: var(--mk-sp-section); }
.mk-ao-board ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-ao-board-item { display: flex; align-items: center; gap: var(--mk-s-2); min-height: 64px; height: 100%; padding: var(--mk-s-2) var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 18px; background: var(--mk-glass); color: var(--mk-ink); text-decoration: none; transition: border-color var(--mk-m-quick) var(--mk-e-out); }
.mk-ao-board-item:hover { border-color: color-mix(in srgb, var(--mk-brand) 45%, var(--mk-edge)); }
.mk-ao-board-item .mk-appbar-icon { width: 32px; height: 32px; border-radius: 10px; }
.mk-ao-board-item .mk-appbar-icon .mk-icon { width: 17px; height: 17px; }
.mk-ao-board-text { display: grid; gap: var(--mk-s-1); flex: 1; min-width: 0; }
.mk-ao-board-name { color: var(--mk-muted); font-size: 12px; font-weight: 650; }
.mk-ao-board-text strong { color: var(--mk-ink); font-size: 13.5px; line-height: 1.25; }
.mk-ao-board-meter { position: relative; display: block; height: 4px; margin-top: var(--mk-s-1); border-radius: 999px; background: var(--mk-line); }
.mk-ao-board-meter::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--mk-muted); }
.mk-ao-board-meter i { position: absolute; top: 50%; width: 10px; height: 10px; border: 2px solid var(--mk-surface); border-radius: 50%; background: var(--mk-outlook-colour); transform: translate(-50%, -50%); }
.mk-ao-board-count { display: none; }
@media (min-width: 900px) {
  .mk-ao-board ul { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--mk-s-2); }
  .mk-ao-board-item { min-height: 76px; padding: var(--mk-s-3) var(--mk-s-3); }
  .mk-ao-board-item .mk-appbar-icon { width: 36px; height: 36px; }
  .mk-ao-board-text strong { font-size: 14.5px; }
  .mk-ao-board-count { display: grid; justify-items: end; flex: none; font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
  .mk-ao-board-count small { color: var(--mk-muted); font-size: 11px; font-weight: 600; }
}
@media (min-width: 1800px) { .mk-ao-board ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


/* App icons, every suite: two-colour gradient tile, white glyph lifted by a soft shadow, a lit top edge and a shaded base. */
.mk-tile-icon, .mk-appbar-icon, .mk-explain-tile { box-shadow: 0 6px 16px color-mix(in srgb, var(--mk-deep) 28%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent), inset 0 0 0 1px color-mix(in srgb, #fff 10%, transparent), inset 0 -10px 16px color-mix(in srgb, var(--mk-deep) 55%, transparent); }
.mk-appbar-icon { box-shadow: 0 3px 8px color-mix(in srgb, var(--mk-deep) 26%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent), inset 0 0 0 1px color-mix(in srgb, #fff 10%, transparent), inset 0 -10px 16px color-mix(in srgb, var(--mk-deep) 55%, transparent); }
.mk-tile-icon .mk-icon, .mk-appbar-icon .mk-icon, .mk-explain-tile .mk-icon { filter: drop-shadow(0 1px 1.5px color-mix(in srgb, var(--mk-deep) 80%, #000)); stroke-width: 2; }
.mk-tile-icon::before { inset-inline-start: 10%; inset-inline-end: 10%; top: 4%; height: 34%; opacity: .35; }
.mk-tile-soon .mk-tile-icon { background: var(--mk-tint); box-shadow: inset 0 1px 0 var(--mk-hi); }
.mk-tile-soon .mk-tile-icon .mk-icon { filter: none; }

/* app icons: brand colour with the amber or sky dot, November 15, 2026 */

/* Each app tile turns the two-colour blend a little, so the grid stays vivid instead of uniform. */
.mk-tile:nth-child(4n+2) .mk-tile-icon { --mk-icon-angle: 200deg; }
.mk-tile:nth-child(4n+3) .mk-tile-icon { --mk-icon-angle: 120deg; }
.mk-tile:nth-child(4n+4) .mk-tile-icon { --mk-icon-angle: 170deg; }
/* vivid two-colour blend */

/* ===== Home as a landing page (after mako.community): hero, what it is, the apps, pricing, questions, footer.
   Visitors get every section. Members get a short hero and no introduction, so the app grid stays near the top.
   Phone (< 900px): one column, icons first. >= 900px: hero beside the app icon, sections in columns. */
.mk-landing { display: grid; gap: var(--mk-s-8); }
.mk-landing > * { min-width: 0; }
.mk-landing h3 { margin: 0; }
.mk-landing ul { margin: 0; padding: 0; list-style: none; }
.mk-hero { display: grid; gap: var(--mk-s-4); padding-top: var(--mk-s-2); animation: mk-rise var(--mk-m-gentle) var(--mk-e-out) both; }
.mk-hero-copy { display: grid; justify-items: start; gap: var(--mk-s-4); min-width: 0; }
.mk-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--mk-s-3); border-radius: 999px; background: var(--mk-tint); color: var(--mk-brand-ink); font-size: 13px; font-weight: 700; }
.mk-hero h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.mk-stop { color: var(--mk-dot); }
.mk-hero-lead { max-width: 34em; color: var(--mk-muted); font-size: 16px; line-height: 1.55; }
.mk-hero-actions { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); }
.mk-hero-tile { display: none; }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--mk-s-2); min-height: 48px; padding: 0 var(--mk-s-5); border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform var(--mk-m-quick) var(--mk-e-spring), background var(--mk-m-quick) var(--mk-e-out); }
.mk-btn .mk-icon { width: 20px; height: 20px; }
.mk-btn:active { transform: scale(var(--mk-press)); transition-duration: var(--mk-m-press); }
.mk-btn:disabled, .mk-btn[aria-disabled="true"] { opacity: .5; cursor: default; transform: none; }
.mk-btn-brand { background: var(--mk-brand-fill); color: var(--mk-on-brand); box-shadow: 0 6px 16px color-mix(in srgb, var(--mk-deep) 24%, transparent); }
.mk-btn-quiet { border-color: var(--mk-edge); background: var(--mk-glass); color: var(--mk-ink); box-shadow: inset 0 1px 0 var(--mk-hi); }
/* Buttons are sized to their words (UI/UX guidelines, section 2): a button directly in a stack or a card never stretches
   to the column's width. A full-width button is the phone sheet's primary action only. */
:is(.mk-stack, .mk-card) > .mk-btn { justify-self: start; }
.mk-btn-quiet:hover { background: var(--mk-tint); }
.mk-block { display: grid; gap: var(--mk-s-4); scroll-margin-top: calc(var(--mk-bar-h) + var(--mk-safe-top) + 24px); }
.mk-block-head { display: grid; gap: var(--mk-s-2); }
.mk-block-head :is(h1, h2) { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }
.mk-block-head p { max-width: 40em; color: var(--mk-muted); font-size: 15px; line-height: 1.5; }
.mk-points { display: grid; gap: var(--mk-s-3); margin: 0; padding: 0; list-style: none; }
.mk-points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--mk-s-3); align-items: start; }
.mk-point-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mk-tint); color: var(--mk-brand); }
.mk-point-icon .mk-icon { width: 22px; height: 22px; }
.mk-points h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.mk-points p { margin-top: 2px; color: var(--mk-muted); font-size: 14px; line-height: 1.5; }
.mk-home { scroll-margin-top: calc(var(--mk-bar-h) + var(--mk-safe-top) + 12px); }
.mk-apps-head { margin-bottom: var(--mk-s-4); }
.mk-apps-head p { font-size: 14px; }
.mk-plans { display: grid; gap: var(--mk-s-3); margin: 0; padding: 0; list-style: none; }
.mk-plan { display: grid; align-content: start; gap: var(--mk-s-3); padding: var(--mk-s-5); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); background: var(--mk-glass); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); }
.mk-plan h3 { font-size: 17px; }
.mk-plan-pick { border-color: color-mix(in srgb, var(--mk-brand) 55%, var(--mk-edge)); background: linear-gradient(160deg, color-mix(in srgb, var(--mk-brand) 10%, var(--mk-surface)), var(--mk-glass) 70%); }
.mk-plan-price { display: grid; gap: 2px; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mk-plan-soon { font-size: 26px; }
.mk-plan-price small { color: var(--mk-muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.mk-plan ul { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.4; }
.mk-plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--mk-s-2); align-items: start; }
.mk-plan li .mk-icon, .mk-plan-yours .mk-icon { width: 18px; height: 18px; margin-top: 1px; color: var(--mk-brand); }
.mk-plan > p.mk-muted { font-size: 14px; line-height: 1.5; }
.mk-plan .mk-btn { justify-self: start; margin-top: var(--mk-s-1); }
.mk-plan-yours { display: inline-flex; align-items: center; gap: var(--mk-s-2); min-height: 44px; color: var(--mk-brand); font-weight: 700; }
.mk-plans-note { font-size: 13px; }
.mk-upgrade .mk-sheet-body { display: grid; gap: var(--mk-s-4); }
.mk-upgrade .mk-plans { grid-template-columns: minmax(0, 1fr); }
.mk-upgrade-form { display: grid; gap: var(--mk-s-3); }
.mk-upgrade-addon { min-height: 44px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.mk-upgrade-addon .mk-muted { font-weight: 500; }
.mk-upgrade-addon input { flex: none; width: 22px; height: 22px; margin: var(--mk-s-3); accent-color: var(--mk-brand); }
.mk-upgrade .mk-btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.mk-mail { display: inline-flex; align-items: center; justify-self: start; gap: var(--mk-s-3); min-height: 52px; padding: 0 var(--mk-s-5); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-glass); color: var(--mk-brand); font-size: 17px; font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }
.mk-mail:hover { background: var(--mk-tint); }
.mk-site-foot { display: grid; gap: var(--mk-s-2); margin: var(--mk-s-2) var(--mk-gutter) 0; padding: var(--mk-s-5) 0 0; border-top: 1px solid var(--mk-edge); color: var(--mk-muted); font-size: 13px; line-height: 1.5; }
/* The footer's company line (owner, Nov 17): every line stacked in one cell, so the box keeps the tallest (a wrapped
   one too) and nothing moves; one shows at a time, crossfading on the kit's gentle motion. Hidden lines are only
   transparent (never visibility or display), so a screen reader reads every line once; they take no taps, and a line
   that holds keyboard focus shows while it does. The first (the copyright) shows without script and with reduced motion. */
.mk-site-foot-catalog { margin: 0; color: var(--mk-muted); font-size: 13px; }
.mk-foot-lines { display: inline-grid; vertical-align: top; max-width: 100%; }
/* Phones: the company line under the product's name, not wrapped after a dangling dot. */
@media (max-width: 599px) { .mk-site-foot > p > .mk-foot-lines { display: grid; } .mk-foot-sep { display: none; } }
.mk-foot-line { grid-area: 1 / 1; min-width: 0; opacity: 0; pointer-events: none; transition: opacity var(--mk-m-gentle) var(--mk-e-out); }
.mk-foot-lines:not([data-mk-at]) > .mk-foot-line:first-child, .mk-foot-line[data-on] { opacity: 1; pointer-events: auto; }
.mk-foot-lines:focus-within > .mk-foot-line:not(:focus-within) { opacity: 0; pointer-events: none; }
.mk-foot-lines > .mk-foot-line:focus-within { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .mk-foot-line, .mk-foot-line[data-on] { opacity: 0; pointer-events: none; transition: none; }
  .mk-foot-lines > .mk-foot-line:first-child, .mk-foot-lines > .mk-foot-line:focus-within { opacity: 1; pointer-events: auto; }
}
.mk-site-foot strong { color: var(--mk-ink); }
.mk-site-foot nav { display: flex; gap: var(--mk-s-2); margin-inline-start: calc(-1 * var(--mk-s-3)); }
.mk-site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--mk-s-3); border-radius: 12px; color: var(--mk-ink); font-weight: 650; text-decoration: none; }
.mk-site-foot nav a:hover { background: var(--mk-tint); }
.mk-site-foot nav { flex-wrap: wrap; }
/* The status line (kit.site.status), from mako.support/status. */
.mk-site-status { margin: 0; margin-inline-start: calc(-1 * var(--mk-s-3)); }
.mk-site-status a { display: inline-flex; align-items: center; gap: var(--mk-s-2); min-height: 44px; padding: 0 var(--mk-s-3); border-radius: 12px; color: var(--mk-ink); font-weight: 600; text-decoration: none; }
.mk-site-status a:hover { background: var(--mk-tint); }
.mk-site-status-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mk-brand); }
.mk-site-status[data-state="degraded"] .mk-site-status-dot { background: var(--mk-warn); }
.mk-site-status[data-state="down"] .mk-site-status-dot { background: var(--mk-negative); }
.mk-site-status-text { overflow-wrap: anywhere; }
.mk-site-foot-locales a[aria-current] { color: var(--mk-brand-ink); background: var(--mk-tint); }
/* On app screens: the same links, tighter, at the end of the scrolling content (.mk-shell already clears the tab bar). */
.mk-site-foot-compact { gap: 0; margin-top: var(--mk-s-6); padding-top: var(--mk-s-3); font-size: 12px; }
.mk-site-foot-compact nav { gap: 0; }
.mk-site-foot-compact nav a { font-weight: 600; }
/* Minimal (mako.config.json footer.style): one quiet line, the name and the chosen links side by side, at any width. */
.mk-site-foot.mk-site-foot-minimal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--mk-s-4); margin-top: var(--mk-s-6); padding-top: var(--mk-s-2); font-size: 12px; }
.mk-site-foot.mk-site-foot-minimal nav { gap: 0; }
.mk-site-foot-minimal nav a { font-weight: 600; }
/* Columns (footer.style "columns"): a paragraph about the product, titled link columns (one fold on phones), then the
   company line with Privacy and Terms, and an optional note. The directory's footer, on kit tokens. */
.mk-site-foot-columns { display: grid; gap: var(--mk-s-5); margin-top: var(--mk-gap-section); padding-top: var(--mk-s-8); }
.mk-site-foot-intro p { margin: 0; max-width: 68ch; }
.mk-site-foot-intro p + p { margin-top: var(--mk-s-3); font-size: 14px; line-height: 1.55; }
.mk-site-foot-intro strong { font-size: 17px; }
/* The columns are a grid even though they are a nav (the footer's navs are flex rows): they spread across the frame. */
.mk-site-foot nav.mk-site-foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mk-s-5); margin: 0; }
.mk-site-foot-cols h2 { margin: 0 0 var(--mk-s-2); color: var(--mk-ink); font-size: 14px; }
.mk-site-foot-cols ul { display: grid; margin: 0; padding: 0; list-style: none; }
.mk-site-foot nav.mk-site-foot-cols a { min-height: 44px; padding: 0; font-weight: 500; color: var(--mk-muted); }
.mk-site-foot nav.mk-site-foot-cols a:hover { background: none; color: var(--mk-ink); text-decoration: underline; }
.mk-site-foot-wide { display: none; }
.mk-site-foot-fold { border-block: 1px solid var(--mk-edge); }
.mk-site-foot-fold summary { display: flex; align-items: center; min-height: 44px; color: var(--mk-ink); font-weight: 700; cursor: pointer; }
.mk-site-foot-fold .mk-site-foot-cols { padding: var(--mk-s-2) 0 var(--mk-s-5); }
.mk-site-foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--mk-s-8); }
.mk-site-foot-base p { margin: 0; }
.mk-site-foot-note { margin: 0; font-size: 12px; }
/* The crisis line inside a sentence (crisis-help inline: a footer's intro): its numbers as plain, bold links. */
.mk-crisis-inline a { color: var(--mk-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.mk-site-foot-base .mk-site-status { margin-inline-start: 0; }
/* Footer extras (note #19): social marks (the networks' one-colour marks), a place with Directions, a one-field newsletter. */
.mk-site-foot-social { display: flex; flex-wrap: wrap; gap: var(--mk-s-1); margin-inline-start: calc(-1 * var(--mk-s-3)); }
.mk-site-foot nav.mk-site-foot-social a { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border-radius: 50%; color: var(--mk-ink); }
.mk-site-foot nav.mk-site-foot-social a:hover { background: var(--mk-tint); color: var(--mk-brand-ink); }
.mk-site-foot-social .mk-icon { width: 20px; height: 20px; }
.mk-site-foot-place { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-1) var(--mk-s-2); margin: 0; font-style: normal; }
.mk-site-foot-place > .mk-icon { width: 18px; height: 18px; color: var(--mk-brand); }
.mk-site-foot-place a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mk-brand-ink); font-weight: 650; }
.mk-site-foot-news { flex: 1 1 18rem; max-width: 26rem; margin: 0; }
.mk-site-foot-news .mk-field-action > span:first-child { font-size: 12px; font-weight: 650; color: var(--mk-ink); }
.mk-site-foot-news .mk-field-action-box { min-height: 44px; }
.mk-site-foot-news .mk-field-action-input { min-height: 42px; font-size: 15px; }
.mk-site-foot-news .mk-field-action-go { --mk-ib: 44px; }
@media (min-width: 900px) {
  .mk-site-foot.mk-site-foot-columns { display: grid; align-items: stretch; justify-content: stretch; }
  .mk-site-foot-wide { display: block; }
  .mk-site-foot-fold { display: none; }
  /* Up to six columns, spaced across the whole frame (never packed at its start on wide screens). */
  .mk-site-foot nav.mk-site-foot-cols { grid-template-columns: repeat(auto-fit, minmax(max(10rem, calc((100% - 5 * var(--mk-s-8)) / 6)), 1fr)); gap: var(--mk-s-6) var(--mk-s-8); }
  .mk-site-foot-base { padding-top: var(--mk-s-5); border-top: 1px solid var(--mk-edge); }
}
/* ===== The kit catalog (KitCatalogController, mako.design/kit): every component framed at a chosen width, beside the
   native kits' screenshots. ===== */
.mk-catalog-controls { display: grid; gap: var(--mk-gap-in); }
.mk-catalog-control { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-2) var(--mk-s-4); }
.mk-catalog-label { margin: 0; color: var(--mk-muted); font-size: 13px; font-weight: 650; }
/* The width switch has five sizes: each keeps one line on a tight phone. */
.mk-catalog-control .mk-seg-choice { white-space: nowrap; }

.mk-catalog-toc .mk-chip { min-height: 44px; text-decoration: none; }
.mk-catalog-group { display: grid; gap: var(--mk-gap-card); scroll-margin-top: var(--mk-s-4); }
.mk-catalog-group > h2 { margin: 0; }
.mk-catalog-item { display: grid; gap: var(--mk-gap-in); min-width: 0; scroll-margin-top: var(--mk-s-4); }
.mk-catalog-head { display: grid; gap: var(--mk-s-1); }
.mk-catalog-head :is(h2, h3) { margin: 0; font-size: 17px; }
.mk-catalog-head a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--mk-ink); text-decoration: none; }
.mk-catalog-head a:hover { text-decoration: underline; }
.mk-catalog-head p { margin: 0; max-width: 80ch; font-size: 14px; line-height: 1.5; }
.mk-catalog-props { display: flex; flex-wrap: wrap; gap: var(--mk-s-1) var(--mk-s-4); margin: 0; font-size: 13px; }
.mk-catalog-props div { display: flex; gap: var(--mk-s-1); min-width: 0; }
.mk-catalog-props dt { font-weight: 700; }
.mk-catalog-props dd { margin: 0; color: var(--mk-muted); overflow-wrap: anywhere; }
.mk-catalog-row { display: grid; gap: var(--mk-gap-card); min-width: 0; }
.mk-catalog-web, .mk-catalog-shot { display: grid; gap: var(--mk-s-2); min-width: 0; margin: 0; }
.mk-catalog-box { position: relative; overflow: hidden; min-height: var(--mk-s-24); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); }
.mk-catalog-frame { display: block; border: 0; transform-origin: 0 0; }
.mk-catalog-native { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 22rem)); gap: var(--mk-gap-in); align-content: start; }
.mk-catalog-img { display: block; width: 100%; height: auto; border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); }
.mk-catalog-img-dark { display: none; }
:root[data-theme="dark"] .mk-catalog-img-light { display: none; }
:root[data-theme="dark"] .mk-catalog-img-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-catalog-img-light { display: none; } :root:not([data-theme="light"]) .mk-catalog-img-dark { display: block; } }
.mk-catalog-none { margin: 0; font-size: 13px; }
.mk-catalog-case { display: grid; gap: var(--mk-gap-in); min-width: 0; padding-bottom: var(--mk-gap-section); border-bottom: 1px dashed var(--mk-edge); }
.mk-catalog-case-head { display: flex; align-items: center; gap: var(--mk-s-3); }
/* The frame's own control (not part of the component): a small text link beside the case's name. */
.mk-catalog-open { min-height: 44px; padding: 0; border: 0; background: none; color: var(--mk-brand-ink); font: inherit; font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mk-catalog-line { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); margin: 0; }
.mk-catalog-frame-body .mk-shell { min-height: 0; padding-bottom: var(--mk-s-6); }
/* The Kotlin screenshot sits beside the web preview only where the middle column has room (beside the parts list and
   the notes rail it is narrow until 1800px); below that it follows under it. */
@media (min-width: 1800px) {
  .mk-catalog-row { grid-template-columns: minmax(0, 1fr) minmax(280px, 26rem); }
  /* A component the Kotlin kit lacks says so under the preview, so the preview keeps the whole row. */
  .mk-catalog-row:not(:has(.mk-catalog-img)) { grid-template-columns: minmax(0, 1fr); }
}
.mk-catalog-part { margin: 0; font-size: 14px; }
/* One worded button per phone screen (ui-check): a hero's second way in is a text link (Pricing). */
.mk-hero-link { display: inline-flex; align-items: center; gap: var(--mk-s-2); min-height: 48px; padding: 0 var(--mk-s-2); color: var(--mk-brand-ink); font-weight: 700; text-underline-offset: 3px; }
.mk-hero-link .mk-icon { width: 18px; height: 18px; }
/* Your data: deleting folds until asked for. */
.mk-yd-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); min-height: 44px; list-style: none; cursor: pointer; }
.mk-yd-fold > summary::-webkit-details-marker { display: none; }
.mk-yd-fold > summary h2 { margin: 0; }
.mk-yd-fold > summary .mk-icon { transition: transform var(--mk-m-quick) var(--mk-e-out); }
.mk-yd-fold[open] > summary .mk-icon { transform: rotate(90deg); }
.mk-catalog-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--mk-gap-card); align-items: start; }
.mk-catalog-state { display: grid; justify-items: center; gap: var(--mk-s-2); min-width: 0; text-align: center; }
.mk-catalog-state.mk-grid { justify-items: stretch; }
.mk-catalog-compact { display: flex; gap: var(--mk-s-1); }
/* A state drawn without the pointer (data-mk-state), the same looks as :hover, :active and :focus-visible above. */
[data-mk-state="hover"] > .mk-ib { background: linear-gradient(155deg, color-mix(in srgb, var(--mk-brand) 28%, transparent), color-mix(in srgb, var(--mk-brand) 10%, transparent)); }
[data-mk-state="press"] > .mk-ib { transform: scale(var(--mk-press)); }
[data-mk-state="press"] > .mk-ib::after { opacity: 1; box-shadow: 0 0 0 6px color-mix(in srgb, var(--mk-brand) 25%, transparent); }
[data-mk-state="focus"] > :is(.mk-ib, .mk-tile) { outline: 2.5px solid var(--mk-brand); outline-offset: 3px; }
[data-mk-state="hover"] > .mk-tile { border-color: color-mix(in srgb, var(--mk-brand) 45%, var(--mk-edge)); transform: translateY(-2px); }
[data-mk-state="press"] > .mk-tile .mk-tile-icon { transform: scale(var(--mk-press)); }
.mk-catalog-side, .mk-catalog-rail { display: none; }
.mk-catalog-parts { display: grid; gap: var(--mk-s-1); margin: 0; padding: 0; list-style: none; }
.mk-catalog-parts a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--mk-s-3); border-radius: var(--mk-r-field); color: var(--mk-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.mk-catalog-parts a:hover { background: var(--mk-tint); }
.mk-catalog-notes { display: grid; gap: var(--mk-gap-in); }
.mk-catalog-notes .mk-seg-choice span { display: inline-block; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.mk-catalog-note { min-height: calc(var(--mk-s-24) * 2); resize: vertical; }
.mk-catalog-notes-hint { margin: 0; font-size: 13px; }
.mk-catalog-note-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-1) var(--mk-s-2); margin: var(--mk-s-2) 0 0; font-size: 13px; }
.mk-catalog-note-status[hidden] { display: none; }
.mk-catalog-parts .mk-tag { margin-inline-start: auto; font-size: 11px; }
.mk-catalog-head .mk-tag { vertical-align: middle; font-size: 12px; }
@media (min-width: 1200px) {
  .mk-catalog-side { display: block; }
  .mk-catalog-toc { display: none; }
  /* Inside the one workspace (owner, November 18, 2026) the parts list keeps to its words' width, so the previews keep
     the room; every column starts on the same line under the bar. */
  .mk-catalog-layout { --mk-side-w: minmax(180px, 14rem); --mk-rail-w: minmax(280px, 22rem); }
  .mk-catalog-layout > .mk-catalog { padding-block-start: 0; }
}
@media (min-width: 1400px) {
  .mk-catalog-rail { display: block; position: sticky; top: calc(var(--mk-bar-h) + var(--mk-safe-top) + var(--mk-s-6)); }
}
.mk-shell:not(:has(.mk-tabbar)) > .mk-site-foot:last-child, .mk-auth-page .mk-site-foot { padding-bottom: calc(var(--mk-s-5) + var(--mk-safe-bottom)); }
/* Members: a short hero, the apps right after it. */
.mk-landing-member { gap: var(--mk-s-6); }
.mk-landing-member .mk-hero { gap: var(--mk-s-3); }
.mk-landing-member .mk-hero-copy { gap: var(--mk-s-3); }
.mk-landing-member .mk-hero h1 { font-size: 22px; letter-spacing: -.02em; }
.mk-landing-member .mk-pill { display: none; }
.mk-landing-member .mk-btn { min-height: 44px; padding: 0 var(--mk-s-4); font-size: 14px; }
/* The suite site (the kit's KitSiteController): a notice under the points, the contact card, the footer's room, and
   Privacy and Terms as one readable card. */
.mk-notice { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--mk-s-3); align-items: start; padding: var(--mk-s-4); }
.mk-notice h3 { font-size: 16px; line-height: 1.3; }
.mk-notice p { max-width: 70ch; margin-top: 2px; color: var(--mk-muted); font-size: 14px; line-height: 1.5; }
/* Inside the Google Play app (data-mk-app, mk.js; Plan::inApp): no price or checkout, the "managed on the web" note instead. */
:root[data-mk-app="android"] [data-mk-web-only] { display: none !important; }
:root:not([data-mk-app="android"]) [data-mk-app-only] { display: none !important; }
.mk-plans-web .mk-btn { margin-top: var(--mk-s-3); }
.mk-site #contact .mk-card { padding: var(--mk-s-5); }
.mk-plan a:not(.mk-btn), .mk-legal-body a:not(.mk-btn) { color: var(--mk-brand); }
.mk-site .mk-site-foot { padding-bottom: calc(var(--mk-s-6) + var(--mk-safe-bottom)); }
.mk-site .mk-site-foot nav { flex-wrap: wrap; }
.mk-legal { display: grid; gap: var(--mk-s-4); max-width: 860px; }
.mk-legal-lede { color: var(--mk-muted); font-size: 16px; line-height: 1.55; }
.mk-legal-body { gap: var(--mk-s-3); padding: var(--mk-s-5); line-height: 1.6; -webkit-user-select: text; user-select: text; }
.mk-legal-body h2 { margin-top: var(--mk-s-3); font-size: 19px; letter-spacing: -.01em; }
.mk-legal-body ul { margin: 0; padding-inline-start: var(--mk-s-5); }
.mk-legal-body .version { color: var(--mk-muted); font-size: 13px; }
@media (min-width: 900px) {
  .mk-site #contact .mk-card { padding: var(--mk-s-6); }
  .mk-legal { margin-inline: auto; width: 100%; }
}

@media (min-width: 600px) {
  .mk-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-plan { padding: var(--mk-s-4); }
}
@media (min-width: 900px) {
  .mk-landing { gap: var(--mk-s-16); padding-top: var(--mk-s-4); }
  .mk-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: var(--mk-s-12); padding: var(--mk-s-8) var(--mk-s-2) var(--mk-s-2); }
  .mk-hero-copy { gap: var(--mk-s-5); }
  .mk-pill { min-height: 32px; padding: 0 var(--mk-s-3); font-size: 14px; }
  .mk-hero h1 { font-size: clamp(48px, 5.4vw, 72px); letter-spacing: -.045em; }
  .mk-hero-lead { font-size: 18px; }
  .mk-hero-actions { gap: var(--mk-s-3); padding-top: var(--mk-s-1); }
  .mk-btn { min-height: 52px; padding: 0 var(--mk-s-6); font-size: 16px; }
  /* The transparent mark, large, with no background tile, in both themes (ui-ux-guidelines §4, owner, November 16, 2026). */
  .mk-hero-tile { display: grid; place-items: center; justify-self: end; width: min(100%, 400px); aspect-ratio: 1; }
  .mk-hero-tile .mk-mark { --u: 2.2px; width: 62%; height: auto; }
  .mk-hero-tile .mk-mark svg { width: 100%; }
  .mk-block { gap: var(--mk-s-6); padding: 0 var(--mk-s-2); }
  .mk-block-head :is(h1, h2) { font-size: 40px; letter-spacing: -.04em; }
  .mk-block-head p { font-size: 17px; }
  .mk-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mk-s-8); }
  .mk-points li { grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--mk-s-3); padding-top: var(--mk-s-5); border-top: 2px solid var(--mk-brand); }
  .mk-points h3 { font-size: 18px; }
  .mk-points p { font-size: 15px; line-height: 1.6; }
  .mk-apps-head { margin-bottom: var(--mk-s-5); }
  .mk-apps-head h2 { font-size: 32px; }
  .mk-apps-head p { font-size: 15px; }
  .mk-ao-board + .mk-apps-head { margin-top: var(--mk-s-6); }
  .mk-plans { gap: var(--mk-s-4); }
  .mk-plan { gap: var(--mk-s-4); padding: var(--mk-s-6); }
  .mk-plan h3 { font-size: 19px; }
  .mk-plan-price { font-size: 40px; }
  .mk-plan-soon { font-size: 30px; padding-top: var(--mk-s-1); }
  .mk-plan ul { font-size: 15px; }
  .mk-site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 0 calc(var(--mk-gutter) + 8px); padding-top: var(--mk-s-4); font-size: 14px; }
  .mk-site-foot nav { margin: 0; }
  .mk-landing-member .mk-hero { grid-template-columns: minmax(0, 1fr) auto; gap: var(--mk-s-6); padding: var(--mk-s-2); }
  .mk-landing-member .mk-hero-copy { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: stretch; gap: var(--mk-s-6); }
  .mk-landing-member .mk-hero h1 { font-size: 28px; }
  .mk-landing-member .mk-hero-tile { display: none; }
}
@media (min-width: 1800px) {
  .mk-hero { padding-top: var(--mk-s-12); }
  .mk-hero h1 { font-size: 88px; }
  .mk-hero-lead { font-size: 20px; }
  .mk-hero-tile { width: min(100%, 480px); }
  .mk-block-head :is(h1, h2) { font-size: 48px; }
  .mk-points { gap: var(--mk-s-12); }
  .mk-points p { font-size: 16px; }
  .mk-plans { gap: var(--mk-s-6); }
}
@media (min-width: 2400px) {
  .mk-hero h1 { font-size: 104px; }
  .mk-hero-tile { width: min(100%, 560px); }
}

/* ===== App audit (Nov 15, 2026): no empty boxes. Missing values, sections and headlines say so in words.
   Owned by the app-audit pass; other blocks stay as they are. ===== */
.mk-row-missing { color: var(--mk-muted); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.mk-section-missing { margin: 0; line-height: 1.45; }
.mk-headline-missing { margin: 0; color: var(--mk-muted); font-size: 15px; font-weight: 550; line-height: 1.4; }
.mk-chart-missing p { margin: 0; }
/* A section with no change readings drops the empty change column instead of a row of dashes. */
body:not([data-app-slug="calendar"]):not([data-app-slug="ai-outlook"]) .mk-data-section .mk-rows-no-change > .mk-data-row { grid-template-columns: minmax(0, 1fr) auto; }

/* ===== Statement Diff: the latest FOMC statement against the one before, changes marked inline ===== */
.mk-sd-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--mk-s-2); margin: 0; }
.mk-sd-steps { display: flex; gap: var(--mk-s-2); }
.mk-sd-steps:empty { display: none; }
.mk-sd-form select { font-size: 15px; }
.mk-sd-form .mk-option-field { justify-self: stretch; width: 100%; text-align: start; }
.mk-sd-form .mk-sd-submit { grid-column: 1 / -1; justify-self: end; }
.mk-js .mk-sd-form .mk-sd-submit { display: none; }
.mk-sd-key h2, .mk-sd-text h2, .mk-sd-sources h2, .mk-sd-counts h2 { margin: 0; font-size: 16px; line-height: 1.3; }
.mk-sd-key ul { display: grid; gap: var(--mk-s-2); margin: 0; padding-inline-start: var(--mk-s-4); font-size: 14.5px; line-height: 1.45; -webkit-user-select: text; user-select: text; }
.mk-sd-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--mk-s-2); }
.mk-sd-head h2 span { color: var(--mk-muted); font-size: 13.5px; font-weight: 600; }
.mk-sd-legend { display: flex; gap: var(--mk-s-2); margin: 0; font-size: 12px; font-weight: 650; }
.mk-sd-legend ins, .mk-sd-legend del { padding: 2px var(--mk-s-2); border-radius: 999px; }
.mk-sd-text { gap: var(--mk-s-3); }
.mk-sd-text p { margin: 0; font-size: 15.5px; line-height: 1.7; -webkit-user-select: text; user-select: text; }
.mk-sd-text ins { padding: 1px 2px; border-radius: 4px; background: var(--mk-tint); color: var(--mk-ink); text-decoration: underline 2px var(--mk-brand); text-underline-offset: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mk-sd-text del { padding: 1px 2px; border-radius: 4px; background: color-mix(in srgb, var(--mk-negative) 11%, transparent); color: var(--mk-muted); text-decoration: line-through 1.5px var(--mk-negative); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mk-sd-text .mk-sd-credit { color: var(--mk-muted); font-size: 12px; line-height: 1.4; }
.mk-sd-sources ul { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-sd-sources a { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-3); min-height: 52px; padding: var(--mk-s-2) var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-glass); color: var(--mk-ink); text-decoration: none; transition: border-color var(--mk-m-quick) var(--mk-e-out); }
.mk-sd-sources a:hover { border-color: color-mix(in srgb, var(--mk-brand) 45%, var(--mk-edge)); }
.mk-sd-sources a > span:first-child { display: grid; gap: 1px; }
.mk-sd-sources small { color: var(--mk-muted); font-size: 12px; font-weight: 600; }
.mk-sd-sources .mk-icon { width: 18px; height: 18px; color: var(--mk-brand); }
.mk-sd-sources p { margin: 0; font-size: 12.5px; }
.mk-sd-counts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mk-s-2); margin: 0; }
.mk-sd-counts dl > div { display: grid; gap: 2px; padding: var(--mk-s-2) var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 14px; }
.mk-sd-counts dt { color: var(--mk-muted); font-size: 12px; font-weight: 600; }
.mk-sd-counts dd { margin: 0; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) {
  .mk-sd-counts dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .mk-sd-text { padding: var(--mk-s-6); }
  .mk-sd-text p { font-size: 16px; }
  .mk-sd-key { padding: var(--mk-s-5) var(--mk-s-6); }
}
@media (min-width: 1800px) {
  .mk-sd-text p { max-width: 78ch; }
}

/* ===== Kit header: #1, #2, My account (header-actions) and the Settings sheet ===== */
.mk-header-actions .mk-ib, .mk-header-actions .mk-info > summary { --mk-ib: 44px; min-width: 44px; min-height: 44px; }
.mk-settings a.mk-menu-item { text-decoration: none; }
.mk-settings .mk-menu-item { min-height: 56px; padding-block: var(--mk-s-2); line-height: 1.3; }
.mk-settings form { margin: 0; }
.mk-settings .mk-menu-item .mk-muted { font-size: 13px; font-weight: 550; }
.mk-settings-push { padding-top: 0; }
.mk-settings-push > p { margin: var(--mk-s-2) var(--mk-s-1) 0; font-size: 13px; }

/* 500 Companies - ranked list, company results and filings. No prices anywhere. */
.mk-co-search { margin-bottom: 0; padding-inline-end: var(--mk-s-1); }
.mk-co-search > .mk-icon { flex: none; width: 20px; height: 20px; color: var(--mk-muted); }
.mk-co-search .mk-ib { flex: none; }
.mk-co-board h2, .mk-co-list-head h2 { display: flex; align-items: center; gap: var(--mk-s-2); margin: 0; font-size: 16px; line-height: 1.3; }
.mk-co-board h2 .mk-icon { width: 18px; height: 18px; color: var(--mk-brand); }
.mk-co-board p { margin: 0; font-size: 13px; }
.mk-co-bar { height: 10px; }
.mk-co-list-head { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.mk-co-list-head h2 small { color: var(--mk-muted); font-size: 13px; font-weight: 600; }
.mk-co-cols { display: none; }
.mk-co-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.mk-co-rows > li + li { border-top: 1px solid var(--mk-edge); }
.mk-co-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "rank name stance" "rank revenue stance"; align-items: center; column-gap: var(--mk-s-3); min-height: 56px; padding: var(--mk-s-2) var(--mk-s-1); border-radius: 12px; color: var(--mk-ink); text-decoration: none; }
.mk-co-row:hover { background: var(--mk-tint); }
.mk-co-row:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: -2px; }
.mk-co-rank { grid-area: rank; color: var(--mk-muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }
.mk-co-name { grid-area: name; display: flex; align-items: baseline; gap: var(--mk-s-2); min-width: 0; }
.mk-co-name strong { overflow: hidden; font-size: 14.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.mk-co-name small { flex: none; color: var(--mk-muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.mk-co-revenue { grid-area: revenue; color: var(--mk-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mk-co-stance { grid-area: stance; justify-self: end; }
.mk-co-stance .mk-outlook-chip { display: inline-block; white-space: nowrap; }
.mk-co-stance .mk-outlook-none { color: var(--mk-muted); }
.mk-co-credit { margin: 0; font-size: 12px; }
.mk-co-credit a { color: var(--mk-brand); }
.mk-co-back { display: flex; }
.mk-co-back .mk-chip { flex: none; gap: var(--mk-s-1); padding: 0 var(--mk-s-4) 0 var(--mk-s-3); color: var(--mk-ink); font-size: 13px; }
.mk-co-back .mk-icon { width: 16px; height: 16px; }
.mk-co-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mk-s-2); }
.mk-co-fact { display: grid; gap: var(--mk-s-2); padding: var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 16px; }
.mk-co-fact h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--mk-muted); }
.mk-co-fact dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mk-s-3); margin: 0; }
.mk-co-fact dt { color: var(--mk-muted); font-size: 11.5px; font-weight: 650; }
.mk-co-fact dd { display: grid; gap: 2px; margin: 0; }
.mk-co-fact dd strong { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.mk-co-fact dd small { color: var(--mk-muted); font-size: 12px; line-height: 1.35; }
.mk-co-insider { display: flex; align-items: center; gap: var(--mk-s-3); padding: var(--mk-s-3); border-radius: 16px; background: var(--mk-tint); }
.mk-co-insider > span:last-child { display: grid; gap: 2px; font-size: 13px; }
.mk-co-insider-count { display: grid; justify-items: center; min-width: 56px; }
.mk-co-insider-count strong { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.mk-co-insider-count small { color: var(--mk-muted); font-size: 11px; font-weight: 700; }
.mk-co-filing-list { display: grid; margin: 0; padding: 0; list-style: none; }
.mk-co-filing { display: grid; grid-template-columns: 56px minmax(0, 1fr) var(--mk-ib); align-items: start; gap: var(--mk-s-3); padding: var(--mk-s-3) 0; }
.mk-co-filing + .mk-co-filing { border-top: 1px solid var(--mk-edge); }
.mk-co-form { justify-self: start; margin-top: 2px; padding: var(--mk-s-1) var(--mk-s-2); border: 1px solid var(--mk-edge); border-radius: 8px; font-size: 11.5px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk-co-filing-text { display: grid; gap: var(--mk-s-1); min-width: 0; }
.mk-co-filing-text strong { font-size: 14.5px; font-weight: 650; }
.mk-co-filing-text small { color: var(--mk-muted); font-size: 12px; }
.mk-co-items { display: flex; flex-wrap: wrap; gap: var(--mk-s-1); }
.mk-co-item { padding: var(--mk-s-1) var(--mk-s-2); border-radius: 999px; background: var(--mk-tint); color: var(--mk-ink); font-size: 12px; font-weight: 650; }
.mk-co-filing .mk-ib { color: var(--mk-brand); }
.mk-co-other summary { display: flex; align-items: center; gap: var(--mk-s-2); min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 650; }
.mk-co-legend { margin: 0; padding: 0; list-style: none; }
.mk-co-name small { display: none; }
.mk-co-tk-phone { font-weight: 700; }
@media (min-width: 900px) {
  .mk-co-cols { display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px 170px; gap: var(--mk-s-3); padding: 0 var(--mk-s-2) var(--mk-s-1); color: var(--mk-muted); font-size: 11.5px; font-weight: 700; }
  .mk-co-cols > span:first-child { text-align: end; }
  .mk-co-row { grid-template-columns: 44px minmax(0, 1fr) 150px 170px; grid-template-areas: "rank name revenue stance"; min-height: 48px; padding: var(--mk-s-1) var(--mk-s-2); }
  .mk-co-revenue { font-size: 13.5px; }
  .mk-co-name small { display: inline; }
  .mk-co-tk-phone { display: none; }
  .mk-co-stance { justify-self: start; }
  .mk-co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* No data sections here: the outlook panel, how to read it and sources sit beside the list or the company. */
  [data-app-slug="500-companies"] .mk-app-context { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1800px) {
  .mk-co-name strong { font-size: 15px; }
  [data-app-slug="500-companies"] .mk-app-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(300px, .62fr); }
  [data-app-slug="500-companies"] .mk-app-context { grid-column: 2 / -1; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
  [data-app-slug="500-companies"] .mk-app-context > .mk-ao { grid-row: 1 / span 3; }
}
@media (min-width: 2400px) {
  .mk-co-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) and (max-width: 1799.98px) {
  [data-app-slug="500-companies"] .mk-ao-top { grid-template-columns: minmax(0, 1fr); }
  [data-app-slug="500-companies"] .mk-ao-gauge { justify-self: center; width: min(100%, 280px); }
}

/* App icons, owner rule Nov 15 2026: the two colours colour the glyph itself, not the tile. Calm tile, colourful icon. */
.mk-tile-icon, .mk-appbar-icon, .mk-explain-tile { background: linear-gradient(160deg, var(--mk-surface), color-mix(in srgb, var(--mk-tint) 70%, var(--mk-surface))) !important; box-shadow: 0 4px 12px color-mix(in srgb, var(--mk-deep) 14%, transparent), inset 0 0 0 1px var(--mk-edge), inset 0 1px 0 var(--mk-hi) !important; }
.mk-tile-icon::before { display: none; }
.mk-tile-icon .mk-icon, .mk-appbar-icon .mk-icon, .mk-explain-tile .mk-icon { stroke: url(#mk-ico-grad); stroke-width: 2.3; filter: none; }
.mk-tile-icon .mk-icon { width: 30px; height: 30px; }
.mk-tile-soon .mk-tile-icon .mk-icon { stroke: currentColor; }

/* ---- Shared parts added in mako-kit (November 15, 2026) ---- */

/* Page-once defs (the glyph gradient) take no room. */
.mk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Sponsor: the payer's last name, when a seat is on someone else's plan. It slides in once on load. */
.mk-sponsor { flex: none; max-width: 34%; margin-inline-start: auto; padding: var(--mk-s-1) var(--mk-s-2); overflow: hidden; border-radius: 999px; background: var(--mk-tint); color: var(--mk-brand-ink); font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; animation: mk-sponsor-in var(--mk-m-screen) var(--mk-e-out) .35s both; }
/* On a phone the sponsor's name takes the suite name's place beside the mark. */
.mk-appbar :is(h1, .mk-appbar-heading):has(+ .mk-sponsor) { flex: 1 1 auto; }
@keyframes mk-sponsor-in { from { opacity: 0; transform: translateX(10px); clip-path: inset(0 0 0 100% round 999px); } to { opacity: 1; transform: none; clip-path: inset(0 round 999px); } }

/* Tile states (mako-community docs/gamification.md section 10). The badges sit on the icon's corners. */
.mk-tile-count { position: absolute; top: -6px; inset-inline-end: -6px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 var(--mk-s-1); border: 2px solid var(--mk-canvas); border-radius: 999px; background: var(--mk-dot); color: var(--mk-night-button-ink); font-size: 11px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.mk-tile-lock { position: absolute; top: -6px; inset-inline-end: -6px; display: grid; place-items: center; padding: var(--mk-s-1); border: 2px solid var(--mk-canvas); border-radius: 999px; background: var(--mk-surface); color: var(--mk-muted); box-shadow: inset 0 0 0 1px var(--mk-edge); }
.mk-tile-unlock { background: var(--mk-brand-fill); color: var(--mk-on-brand); box-shadow: none; }
.mk-tile-icon .mk-tile-lock .mk-icon { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.25; }
/* An open tile's icon has a very faint 1px edge, so it stands out a little from the page (note #21). */
.mk-tile:not(.mk-tile-soon) .mk-tile-icon { box-shadow: 0 6px 16px color-mix(in srgb, var(--mk-deep) 28%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent), inset 0 -10px 16px color-mix(in srgb, var(--mk-deep) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--mk-ink) 10%, transparent); }
.mk-tile-locked, .mk-tile-locked .mk-tile-note { color: var(--mk-muted); }
@media (prefers-reduced-motion: reduce) { .mk-sponsor { animation: none; } }

/* Notifications: the full list (the Notifications app); the drawer shows the newest with arrows. */
.mk-notification-list ul { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-notification-row { position: relative; display: grid; gap: var(--mk-s-1); min-height: 44px; padding: var(--mk-s-3) var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 18px; background: var(--mk-glass); color: var(--mk-ink); text-decoration: none; }
.mk-notification-row > span:not(.mk-eyebrow):not(.mk-sr) { color: var(--mk-muted); font-size: 14px; }
.mk-notification-row time { font-size: 12px; }
.mk-notification-row .mk-eyebrow { color: var(--mk-brand); }
.mk-notification-row.mk-unread { border-color: color-mix(in srgb, var(--mk-dot) 45%, var(--mk-edge)); background: linear-gradient(155deg, color-mix(in srgb, var(--mk-dot) 10%, transparent), var(--mk-glass)); }
.mk-notification-row.mk-unread::after { content: ""; position: absolute; top: 14px; inset-inline-end: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--mk-dot); }
@media (min-width: 900px) { .mk-notification-list ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1800px) { .mk-notification-list ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 2400px) { .mk-notification-list ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sign out sits with who is signed in. */
.mk-account-signout { margin: 0; }

/* Contact form: posts to mako.support's intake. Visible labels, 50px fields, 48px send button. */
.mk-contact { display: grid; gap: var(--mk-s-4); }
.mk-contact-row { display: grid; gap: var(--mk-s-4); }
.mk-field { display: grid; gap: var(--mk-s-1); min-width: 0; font-size: 14px; font-weight: 650; }
.mk-field :is(input, select, textarea) { width: 100%; min-height: 50px; padding: var(--mk-s-3) var(--mk-s-3); border: 1px solid var(--mk-line); border-radius: 14px; background: var(--mk-surface); color: var(--mk-ink); font: 400 16px/1.4 var(--mk-font); }
.mk-field textarea { min-height: 140px; resize: vertical; }
.mk-field :is(input, select, textarea):focus { outline: 2px solid var(--mk-brand); outline-offset: 1px; border-color: transparent; }
/* A plain file field (a form that posts its files, such as the Site generator's) wears the quiet button. */
.mk-field input[type="file"] { padding: var(--mk-s-2); font-size: 15px; color: var(--mk-muted); }
.mk-field input[type="file"]::file-selector-button { min-height: 44px; margin-inline-end: var(--mk-s-3); padding: 0 var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-glass); color: var(--mk-ink); font: 700 15px/1 var(--mk-font); cursor: pointer; box-shadow: inset 0 1px 0 var(--mk-hi); }
.mk-field input[type="file"]::file-selector-button:hover { background: var(--mk-tint); }
/* A file field takes dropped files too (mk.js): a dashed edge says so; tapping still opens the picker. */
.mk-field-drop input[type="file"] { border-style: dashed; border-width: 1.5px; transition: border-color var(--mk-m-quick) var(--mk-e-out), background-color var(--mk-m-quick) var(--mk-e-out); }
.mk-field-drop.mk-drop-over input[type="file"] { border-color: var(--mk-brand); background: var(--mk-tint); }
.mk-field-hint { color: var(--mk-muted); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.mk-field-hint.mk-error { color: var(--mk-negative); }
/* A progress bar for work that runs on its own (the Site generator's progress card). */
.mk-progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: var(--mk-line); color: var(--mk-brand); }
.mk-progress::-webkit-progress-bar { background: var(--mk-line); }
.mk-progress::-webkit-progress-value { border-radius: 999px; background: var(--mk-brand); transition: width var(--mk-m-base) var(--mk-e-out); }
.mk-progress::-moz-progress-bar { border-radius: 999px; background: var(--mk-brand); }
@media (prefers-reduced-motion: reduce) { .mk-progress::-webkit-progress-value { transition: none; } }
.mk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mk-contact-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-3); }
.mk-contact-note { margin: 0; color: var(--mk-muted); }
.mk-contact-note[data-kind="good"] { color: var(--mk-brand); font-weight: 650; }
.mk-contact-note[data-kind="bad"] { color: var(--mk-negative); font-weight: 650; }
.mk-contact-fine { margin: 0; color: var(--mk-muted); font-size: 13px; }
@media (min-width: 600px) { .mk-contact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sponsor-branded wordmark: on a home page whose seat is on someone else's plan, "mako.<suite>" gives way to the sponsor's name, set in the wordmark's own type and colour. */
.mk-wordmark { display: grid; min-width: 0; }
.mk-wordmark > span { grid-area: 1 / 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mk-wm-name { color: var(--mk-brand); animation: mk-wm-in var(--mk-m-screen) var(--mk-e-out) .6s both; }
.mk-wm-suite { animation: mk-wm-out var(--mk-m-screen) var(--mk-e-out) .6s both; }
/* The sponsor's name flips in where the product's name was (note #31). */
@keyframes mk-wm-in { from { opacity: 0; transform: perspective(400px) rotateX(-90deg); } to { opacity: 1; transform: none; } }
@keyframes mk-wm-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: perspective(400px) rotateX(90deg); visibility: hidden; } }
/* A long name on a phone (app_bar.long_name; mako.community): mako, then its letters pushed out one at a time until only the
   brand-colour suite name is left; a sponsor's name flips in after (note #31). */
.mk-wm-go { display: inline-block; max-width: 1em; overflow: hidden; vertical-align: bottom; }
@media (max-width: 599.98px) {
  .mk-logo-long .mk-wm-go { animation: mk-wm-go var(--mk-m-base) var(--mk-e-out) both; }
  .mk-logo-long .mk-wm-go:nth-child(1) { animation-delay: .5s; }
  .mk-logo-long .mk-wm-go:nth-child(2) { animation-delay: .65s; }
  .mk-logo-long .mk-wm-go:nth-child(3) { animation-delay: .8s; }
  .mk-logo-long .mk-wm-go:nth-child(4) { animation-delay: .95s; }
  .mk-logo-long .mk-wm-go:nth-child(5) { animation-delay: 1.1s; }
  .mk-logo-long :is(.mk-wm-name, .mk-wm-suite) { animation-delay: 1.9s; }
}
@keyframes mk-wm-go { to { max-width: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mk-wm-name, .mk-wm-suite, .mk-logo-long .mk-wm-go { animation-duration: 0s; animation-delay: 0s; } }

/* App bar subline: one short line under an app page's title ("23 of 30 places"). */
.mk-appbar-title { flex: 1; min-width: 0; display: grid; gap: 1px; }
/* With a subline the title still gets two lines, a step smaller, so all three fit the bar's fixed height (64px). */
.mk-appbar .mk-appbar-title :is(h1, .mk-appbar-heading) { font-size: 15px; line-height: 1.1; }
.mk-appbar-sub { color: var(--mk-muted); font-size: 12px; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Question card: one question per screen, big answers, the recommended one marked. */
.mk-qcard { display: grid; grid-template-rows: auto 1fr; align-content: start; gap: var(--mk-s-4); width: 100%; max-width: 560px; min-height: min(640px, calc(100dvh - var(--mk-tabbar-h) - var(--mk-s-8) - var(--mk-safe-top))); margin-inline: auto; padding: var(--mk-s-3) var(--mk-gutter) calc(var(--mk-s-6) + var(--mk-safe-bottom)); box-sizing: border-box; }
.mk-qcard-head { display: flex; align-items: center; gap: var(--mk-s-3); }
.mk-qcard-gap { flex: none; width: var(--mk-ib); height: var(--mk-ib); }
.mk-qcard-progress { display: grid; gap: var(--mk-s-1); flex: 1; min-width: 0; color: var(--mk-muted); font-size: 12px; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; }
.mk-qcard-progress p { margin: 0; }
.mk-qcard-progress progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: var(--mk-line); color: var(--mk-brand); }
.mk-qcard-progress progress::-webkit-progress-bar { background: var(--mk-line); }
.mk-qcard-progress progress::-webkit-progress-value { background: var(--mk-brand); transition: width var(--mk-m-base) var(--mk-e-out); }
.mk-qcard-progress progress::-moz-progress-bar { background: var(--mk-brand); }
/* The card itself (Headlight's Review card): one raised surface, the question first, answers left-aligned under it. */
.mk-qcard-body { display: flex; flex-direction: column; align-items: stretch; align-self: start; gap: var(--mk-s-4); min-width: 0; padding: var(--mk-s-5); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); background: var(--mk-glass-2); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); text-align: start; animation: mk-qcard-in var(--mk-m-screen) var(--mk-e-out) both; }
.mk-qcard-badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--mk-r-field); color: var(--mk-brand); background: var(--mk-tint); }
.mk-qcard-badge .mk-icon { width: 24px; height: 24px; }
.mk-qcard-body h2 { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; text-wrap: pretty; overflow-wrap: anywhere; }
.mk-qcard-body h2:focus { outline: none; }
.mk-qcard-text { margin: 0; color: var(--mk-muted); max-width: 60ch; }
.mk-qcard-form { display: contents; }
.mk-qcard-answers { display: grid; gap: var(--mk-s-2); width: 100%; }
.mk-qcard-answer { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: var(--mk-s-1) var(--mk-s-2); min-height: 56px; padding: var(--mk-s-3) var(--mk-s-4); border: 1px solid var(--mk-line); border-radius: var(--mk-r-field); background: var(--mk-surface); color: var(--mk-ink); font: inherit; font-size: 16px; font-weight: 650; text-align: start; cursor: pointer; transition: transform var(--mk-m-quick) var(--mk-e-out), border-color var(--mk-m-quick) var(--mk-e-out), background var(--mk-m-quick) var(--mk-e-out); }
.mk-qcard-answer .mk-icon { width: 22px; height: 22px; color: var(--mk-brand); }
.mk-qcard-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.mk-qcard-answer:hover { border-color: var(--mk-brand); }
.mk-qcard-answer:active { transform: scale(var(--mk-press)); background: var(--mk-tint); }
.mk-qcard-answer:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
.mk-qcard-answer:disabled { opacity: .5; cursor: default; transform: none; }
.mk-qcard-answer[data-chosen] { border-color: var(--mk-brand); background: var(--mk-tint); box-shadow: inset 0 0 0 1px var(--mk-brand); }
.mk-qcard-rec { border: 2px solid var(--mk-brand); background: var(--mk-tint); }
.mk-qcard-note { flex-basis: 100%; order: 3; color: var(--mk-muted); font-size: 13px; font-weight: 500; }
.mk-qcard-chip { display: inline-flex; flex: none; align-items: center; gap: var(--mk-s-1); padding: 2px var(--mk-s-2); border-radius: 999px; background: var(--mk-brand); color: var(--mk-on-brand); font-size: 11.5px; font-weight: 700; }
.mk-qcard-chip .mk-icon { width: 13px; height: 13px; color: inherit; }
.mk-qcard-why { margin: 0; max-width: 60ch; color: var(--mk-muted); font-size: 14px; }
.mk-qcard-why strong { color: var(--mk-ink); }
/* An answer in your own words: a quiet row that opens the box, or the box itself when there are no answers. */
.mk-qcard-own { display: block; }
.mk-qcard-own > .mk-qcard-field, .mk-qcard-own > .mk-qcard-send { margin-top: var(--mk-s-3); }
.mk-qcard-own > summary { display: flex; align-items: center; gap: var(--mk-s-2); min-height: 44px; width: fit-content; padding-inline-end: var(--mk-s-2); border-radius: var(--mk-r-field); color: var(--mk-muted); font-size: 15px; font-weight: 650; cursor: pointer; list-style: none; }
.mk-qcard-own > summary::-webkit-details-marker { display: none; }
.mk-qcard-own > summary .mk-icon { width: 20px; height: 20px; color: var(--mk-brand); }
.mk-qcard-own > summary:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
.mk-qcard-own[open] > summary { color: var(--mk-ink); }
.mk-qcard-field { display: flex; align-items: center; gap: var(--mk-s-2); min-width: 0; font-size: 18px; font-weight: 650; }
.mk-qcard-prefix { color: var(--mk-muted); }
.mk-qcard-input { flex: 1; width: 100%; min-width: 0; min-height: 52px; padding: var(--mk-s-3) var(--mk-s-3); border: 1px solid var(--mk-line); border-radius: var(--mk-r-field); background: var(--mk-surface); color: var(--mk-ink); font: 400 16px/1.4 var(--mk-font); box-sizing: border-box; }
textarea.mk-qcard-input { min-height: 96px; resize: vertical; }
input.mk-qcard-input { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-qcard-input:focus { outline: 2px solid var(--mk-brand); outline-offset: 1px; border-color: transparent; }
.mk-qcard-input[aria-invalid="true"] { border-color: var(--mk-negative); }
.mk-qcard-input:disabled { opacity: .5; }
.mk-qcard-send { display: flex; width: fit-content; margin-inline-start: auto; }
.mk-qcard-send:disabled { opacity: .5; cursor: default; }
.mk-qcard-error { margin: 0; color: var(--mk-negative); font-size: 14px; }
/* Inside a list (the Desk): no screen height and no surface of its own; the list's card is the surface. */
.mk-qcard-inline { min-height: 0; max-width: none; padding: 0; }
.mk-qcard-inline .mk-qcard-body { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; animation: none; }
@media (min-width: 900px) { .mk-qcard:not(.mk-qcard-inline) { max-width: 640px; padding-top: var(--mk-s-6); } .mk-qcard:not(.mk-qcard-inline) .mk-qcard-body { padding: var(--mk-s-6); } }
@keyframes mk-qcard-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk-qcard-body { animation: none; } }

/* Bottom bar: three to five tabs, an icon over its word, above the phone's home indicator. */
.mk-bottombar { position: fixed; z-index: 40; left: 50%; bottom: calc(var(--mk-s-3) + var(--mk-safe-bottom)); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: calc(100% - 28px); max-width: 452px; min-height: var(--mk-tabbar-h); padding: var(--mk-s-1); box-sizing: border-box; border: 1px solid var(--mk-edge); border-radius: 26px; background: var(--mk-glass-2); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); backdrop-filter: blur(var(--mk-blur)) saturate(170%); -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(170%); transform: translateX(-50%); }
.mk-tab { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 44px; min-height: 54px; padding: var(--mk-s-1) 2px; border: 0; border-radius: 22px; background: transparent; color: var(--mk-muted); font: inherit; font-size: 11px; font-weight: 650; text-decoration: none; cursor: pointer; transition: color var(--mk-m-quick) var(--mk-e-out), background var(--mk-m-base) var(--mk-e-out); }
.mk-tab:active { transform: scale(var(--mk-press)); }
.mk-tab:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: -2px; }
.mk-tab-on, .mk-tab[aria-current="page"] { background: var(--mk-brand-fill); color: var(--mk-on-brand); }
.mk-tab-icon { position: relative; display: grid; place-items: center; }
.mk-tab-icon .mk-icon { width: 22px; height: 22px; }
.mk-tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-tab-dot { position: absolute; top: -2px; inset-inline-end: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--mk-dot); box-shadow: 0 0 0 2px var(--mk-surface); }

/* Setup checklist: first-run setup on a product's home until it is done (the onboarding part). */
.mk-setup { gap: var(--mk-s-3); }
.mk-setup-head { display: flex; align-items: flex-start; gap: var(--mk-s-2); }
.mk-setup-head form { margin: calc(-1 * var(--mk-s-2)) calc(-1 * var(--mk-s-2)) 0 auto; }
.mk-setup-titles { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mk-setup-titles h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.mk-setup-count { margin: 0; color: var(--mk-muted); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mk-setup-bar { display: block; width: 100%; height: 4px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: var(--mk-line); color: var(--mk-brand); }
.mk-setup-bar::-webkit-progress-bar { background: var(--mk-line); }
.mk-setup-bar::-webkit-progress-value { background: var(--mk-brand); }
.mk-setup-bar::-moz-progress-bar { background: var(--mk-brand); }
.mk-setup-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mk-setup-item, .mk-setup-link { display: flex; align-items: center; gap: var(--mk-s-3); min-height: 44px; }
.mk-setup-link { flex: 1; min-width: 0; border-radius: var(--mk-r-field); color: inherit; text-decoration: none; }
.mk-setup-link:hover .mk-setup-label { text-decoration: underline; }
.mk-setup-link:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
.mk-setup-tick { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--mk-brand); background: var(--mk-tint); }
.mk-setup-tick .mk-icon { width: 16px; height: 16px; }
.mk-setup-done .mk-setup-tick { color: var(--mk-on-brand); background: var(--mk-brand-fill); }
.mk-setup-label { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.mk-setup-done .mk-setup-label { color: var(--mk-muted); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--mk-line); }
.mk-setup-go { justify-self: start; }
/* The onboarding page: the question card, then "Finish later" under it. */
.mk-onboard { display: grid; justify-items: center; gap: 0; }
.mk-onboard-later { display: flex; justify-content: center; width: 100%; max-width: 640px; margin: 0 auto; padding: 0 var(--mk-gutter) calc(var(--mk-s-6) + var(--mk-safe-bottom)); box-sizing: border-box; }
.mk-onboard-later .mk-btn { min-height: 44px; }

/* Storage meter: decimal GB used of the limit; amber from 95 percent. */
.mk-meter { display: grid; gap: var(--mk-s-3); }
.mk-meter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--mk-s-1) var(--mk-s-2); margin: 0; font-variant-numeric: tabular-nums; }
.mk-meter-head strong { font-size: 22px; letter-spacing: -.02em; }
.mk-meter-flag { display: inline-flex; align-items: center; gap: var(--mk-s-1); margin-inline-start: auto; color: var(--mk-warn); font-size: 13px; font-weight: 700; }
.mk-meter-flag .mk-icon { width: 16px; height: 16px; }
.mk-meter-track { height: 10px; border-radius: 999px; background: var(--mk-line); overflow: hidden; }
.mk-meter-fill { display: block; height: 100%; border-radius: inherit; background: var(--mk-brand); transition: width var(--mk-m-base) var(--mk-e-out); }
.mk-meter-warn .mk-meter-fill { background: var(--mk-warn); }
.mk-meter-people { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-meter-people li { display: grid; grid-template-columns: minmax(0, 7em) 1fr auto; align-items: center; gap: var(--mk-s-3); min-height: 32px; font-size: 14px; }
.mk-meter-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-meter-bar { height: 6px; border-radius: 999px; background: var(--mk-line); overflow: hidden; }
.mk-meter-bar > span { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--mk-brand) 70%, var(--mk-line)); }
.mk-meter-gb { color: var(--mk-muted); font-variant-numeric: tabular-nums; }

/* Live sheet: the kit sheet with app content in it; tall keeps it near full height. */
.mk-sheet-live .mk-sheet-body { overflow-y: auto; max-height: calc(100dvh - 160px); }
.mk-sheet-tall { min-height: min(80dvh, 720px); }

/* Segmented choice (Alerts for an app: Push, In-app, Email, Off). */
.mk-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--mk-s-1); padding: var(--mk-s-1); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-glass); box-shadow: inset 0 1px 0 var(--mk-hi); }
.mk-seg-choice { display: inline-flex; align-items: center; justify-content: center; gap: var(--mk-s-1); min-width: 0; min-height: 44px; padding: 0 var(--mk-s-2); border: 0; border-radius: 999px; background: transparent; color: var(--mk-muted); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; text-decoration: none; transition: color var(--mk-m-quick) var(--mk-e-out), background var(--mk-m-base) var(--mk-e-out); }
.mk-seg-choice .mk-icon { flex: none; width: 18px; height: 18px; }
.mk-seg-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-seg-choice[aria-pressed="true"], .mk-seg-choice[aria-selected="true"] { background: var(--mk-brand-fill); color: var(--mk-on-brand); }
.mk-seg-choice:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
/* Four choices: each icon over its word, so In-app and the Russian and Persian words fit a phone. */
.mk-alerts-choice:not(.mk-seg-2) { border-radius: 24px; }
.mk-alerts-choice:not(.mk-seg-2) .mk-seg-choice { flex-direction: column; gap: 2px; min-height: 56px; padding: var(--mk-s-1) 2px; border-radius: 20px; font-size: 12px; }
.mk-alerts-choice:not(.mk-seg-2) .mk-seg-choice span { max-width: 100%; }

/* Submit buttons take the shape of their form (owner, November 15, 2026): the fields' corner radius and height, the
   glass rim, a flat brand fill and no glow. Inside a field the button is a rounded square set evenly within it; it
   stays a soft tint until the field is filled correctly, then lights up in the brand colour. */
.mk-auth-email { padding: 0 var(--mk-s-1) 0 var(--mk-s-4); }
.mk-auth-email .mk-auth-arrow { --mk-ib: 44px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border: 0; border-radius: calc(var(--mk-r-field) - var(--mk-s-1)); color: var(--mk-muted); background: color-mix(in srgb, var(--mk-brand) 6%, transparent); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background var(--mk-m-base) var(--mk-e-out), color var(--mk-m-base) var(--mk-e-out), box-shadow var(--mk-m-base) var(--mk-e-out), transform var(--mk-m-quick) var(--mk-e-spring); }
.mk-auth-email .mk-auth-arrow .mk-icon { width: 20px; height: 20px; transition: transform var(--mk-m-base) var(--mk-e-spring); }
/* As field-action (note #33): the arrow blends into the email field, quiet until the address is right, then a flat brand fill. */
.mk-auth-email .mk-auth-arrow::after { display: none; }
.mk-auth-email:has(input:valid) .mk-auth-arrow:not([aria-disabled="true"]) { color: var(--mk-on-brand); background: var(--mk-brand-fill); box-shadow: none; }
.mk-auth-email:has(input:valid) .mk-auth-arrow:not([aria-disabled="true"]) .mk-icon { transform: translateX(1px); }
.mk-auth-email .mk-auth-arrow:active { transform: scale(.94); }
.mk-auth-email .mk-auth-arrow:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
.mk-field :is(input, select, textarea) { min-height: 52px; border-radius: var(--mk-r-field); }
form .mk-btn { min-height: 52px; border-radius: var(--mk-r-field); }
form .mk-btn-brand { background: var(--mk-brand-fill); box-shadow: inset 0 1px 0 var(--mk-rim), 0 2px 8px color-mix(in srgb, var(--mk-brand) 22%, transparent); }
form .mk-btn-brand:active { transform: scale(var(--mk-press)); }
@media (prefers-reduced-motion: reduce) { .mk-auth-email .mk-auth-arrow, .mk-auth-email .mk-auth-arrow .mk-icon { transition: none; } }
/* Apple: its own black-and-white mark; greyed with a "Soon" tag until it is activated. */
.mk-auth-provider-apple { color: var(--mk-ink); }
.mk-auth-provider-apple svg { width: 26px; height: 26px; }
.mk-auth-provider-soon { cursor: not-allowed; }
.mk-auth-provider-soon svg { opacity: .38; }
.mk-auth-provider-soon:active { transform: none; }
.mk-auth-soon { position: absolute; top: 6px; inset-inline-end: 8px; padding: 1px var(--mk-s-2); border-radius: 999px; background: color-mix(in srgb, var(--mk-ink) 9%, transparent); color: var(--mk-muted); font-size: 10.5px; font-weight: 700; line-height: 1.5; }

/* ===== Sign in with a passkey (auth-screen passkeyOptions/passkeyVerify), under the email form ===== */
.mk-auth-passkey { display: grid; gap: var(--mk-s-3); margin-top: var(--mk-s-1); }
.mk-auth-passkey-button { display: flex; align-items: center; justify-content: center; gap: var(--mk-s-2); width: 100%; min-height: 52px; padding: 0 var(--mk-s-4); border-radius: 18px; color: var(--mk-ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.mk-auth-passkey-button .mk-icon { width: 20px; height: 20px; color: var(--mk-brand); }

/* ===== Consent (consent-ask, consent-form, consent-choices): what is kept and why, Allow and Not now ===== */
.mk-consent { align-items: start; gap: var(--mk-s-3); }
.mk-consent-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mk-tint); color: var(--mk-brand); }
.mk-consent-badge .mk-icon { width: 22px; height: 22px; }
.mk-consent-form { display: grid; gap: var(--mk-s-3); margin: 0; }
.mk-consent-form h2 { font-size: 18px; line-height: 1.3; }
.mk-consent-lead { margin: 0; color: var(--mk-muted); font-size: 13px; font-weight: 650; }
.mk-consent-list { display: grid; gap: var(--mk-s-1); margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; }
.mk-consent-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--mk-s-2); align-items: start; }
.mk-consent-list .mk-icon { width: 16px; height: 16px; margin-top: 2px; color: var(--mk-brand); }
.mk-consent-why { margin: 0; font-size: 14px; line-height: 1.5; }
.mk-consent-actions { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); }
.mk-consent-actions .mk-btn { flex: 1 1 140px; }
.mk-consent-fine { margin: 0; color: var(--mk-muted); font-size: 13px; }
.mk-consent-rows { display: grid; gap: var(--mk-s-3); margin: 0 0 var(--mk-s-3); padding: 0; list-style: none; }
.mk-consent-row { display: grid; gap: var(--mk-s-3); padding: var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 20px; background: var(--mk-surface); }
.mk-consent-row-text { display: grid; gap: var(--mk-s-2); }
.mk-consent-row h3 { font-size: 16px; line-height: 1.3; }
.mk-consent-row form { margin: 0; }
.mk-consent-row .mk-btn { width: 100%; }
.mk-consent-state { display: inline-flex; align-items: center; gap: var(--mk-s-1); margin: 0; color: var(--mk-muted); font-size: 13px; font-weight: 700; }
.mk-consent-state .mk-icon { width: 16px; height: 16px; }
.mk-consent-on { color: var(--mk-brand); }
/* consent-ask dock: a bottom sheet over the page that never pushes it down or dims it (owner, Nov 16). The kit sheet's
   shape: on phones full width (up to the sheet's 480px), attached to the bottom edge, rounded on top only with no bottom
   border, the safe area inside its padding; it slides up on the sheet's timing, a fade under reduced motion. Wider
   screens keep that shape (owner, Nov 17: a bottom sheet rounds only its top corners, at every width) and let it grow
   to a sensible panel: 36rem from 900px, 44rem from 1800px. The sheet's surface, header (title
   and close), body and, when it can be swiped away (mk.js, with a dismiss), its grab handle. The page keeps room for it
   at its end while it shows (mk.js measures it into --mk-dock-space; 14rem without script). Its Customize and Decline
   are the in-container compact icon buttons on Accept's row, ending on the sheet's padding. */
:root { --mk-dock-lift: 0px; }
.mk-consent-dock { color: var(--mk-ink); font: 400 15px/1.45 var(--mk-font); text-align: start; position: fixed; z-index: 45; inset-inline: 0; bottom: var(--mk-dock-lift); width: 100%; max-width: 480px; max-height: calc(100dvh - 64px); margin: 0 auto; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: var(--mk-s-2) 0 0; border: 1px solid var(--mk-edge); border-bottom: 0; border-radius: var(--mk-r-sheet) var(--mk-r-sheet) 0 0; background: var(--mk-sheet-surface); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); animation: mk-dock-in var(--mk-m-screen) var(--mk-e-out) both; }
.mk-js .mk-consent-dock-drag::before { content: ""; display: block; width: 40px; height: 5px; margin: 0 auto var(--mk-s-2); border-radius: 3px; background: color-mix(in srgb, var(--mk-muted) 45%, transparent); }
.mk-consent-dock > .mk-sheet-body { display: grid; gap: var(--mk-s-3); padding-block-start: var(--mk-s-1); }
.mk-consent-dock-text { margin: 0; }
.mk-consent-dock .mk-actions { flex-wrap: nowrap; }
/* Accept at the end, Customize and Decline at the start (owner, November 17, 2026); the DOM keeps Accept first, so it is
   still the first thing focused. */
.mk-consent-dock .mk-actions > .mk-btn-brand { order: 1; margin-inline-start: auto; }
/* The first icon's glyph lines up with the words above (the compact button's glyph sits 9px inside its box); Accept
   ends on the words' end line, where the passive close's glyph ends too. */
.mk-consent-dock .mk-actions { max-width: none; margin-inline-start: calc(-1 * var(--mk-s-2)); }
/* The Decline form holds only hidden fields, and the status lines are empty until a save answers: neither takes a row. */
.mk-consent-dock .mk-sheet-body > form:not(.mk-stack) { display: contents; }
.mk-consent-dock [data-consent-status]:empty { position: absolute; }
/* Without script (a page not drawn on the kit) the (i) opens its words in place, under the line. */
.mk-consent-dock .mk-info[open] { display: block; }
.mk-consent-dock .mk-info[open] > .mk-info-body { position: static; width: auto; max-height: none; margin-block-start: var(--mk-s-2); padding: 0; border: 0; background: none; box-shadow: none; }
.mk-consent-dock .mk-info-body > * { margin: 0; }
:root:has(.mk-consent-dock:not([hidden])) { scroll-padding-block-end: calc(var(--mk-dock-space, 14rem) + var(--mk-dock-lift) + var(--mk-gutter)); }
:root:has(.mk-consent-dock:not([hidden])) body { padding-block-end: calc(var(--mk-dock-space, 14rem) + var(--mk-dock-lift) + var(--mk-gutter)); }
@keyframes mk-dock-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes mk-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 900px) {
  .mk-consent-dock { max-width: 36rem; }
  .mk-consent-dock > .mk-sheet-body { padding-inline: var(--mk-s-6); }
}
@media (min-width: 1800px) { .mk-consent-dock { max-width: 44rem; } }
/* Reduced motion: the sheet fades in instead of sliding (the kit's motion becomes simple fades). */
@media (prefers-reduced-motion: reduce) { .mk-consent-dock { animation-name: mk-fade-in; animation-duration: var(--mk-m-quick) !important; } }
@media (min-width: 640px) { .mk-consent { grid-template-columns: 44px minmax(0, 1fr); } .mk-consent-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } .mk-consent-row .mk-btn { width: auto; } }

/* ===== Activity (activity-board): anonymous daily counts for the owner ===== */
.mk-activity h2 { font-size: 17px; }
.mk-activity .mk-meter-people li { grid-template-columns: minmax(0, 10em) 1fr auto; }
.mk-activity-events .mk-meter-name { white-space: normal; }
@media (min-width: 900px) { .mk-activity { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk-activity > :first-child { grid-row: span 2; } }

/* ===== Moderation (laravel/resources/views/kit/moderation.blade.php): the review queue ===== */
.mk-mod-who { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.mk-mod-title { margin: 0; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.mk-mod-title a { color: inherit; }
.mk-mod-actions { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); margin: 0; }
.mk-mod-actions .mk-btn { min-height: 44px; padding: 0 var(--mk-s-4); font-size: 14px; }

/* Threads (thread, thread-post): one conversation, oldest first, the box to write in last. */
.mk-thread { display: grid; gap: var(--mk-s-3); min-width: 0; }
.mk-thread-note { display: flex; align-items: flex-start; gap: var(--mk-s-2); margin: 0; padding: var(--mk-s-3) var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 16px; background: var(--mk-tint); color: var(--mk-ink); font-size: 13.5px; }
.mk-thread-note .mk-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--mk-brand); }
.mk-thread-posts ol { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-thread-empty { margin: 0; padding: var(--mk-s-3) 0; }
.mk-post { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--mk-s-3); padding: var(--mk-s-3) var(--mk-s-3) var(--mk-s-2); border: 1px solid var(--mk-edge); border-radius: 18px; background: var(--mk-glass); scroll-margin-top: 96px; }
.mk-post:target { border-color: var(--mk-brand); }
.mk-post-mine { background: color-mix(in srgb, var(--mk-brand) 6%, var(--mk-glass)); }
.mk-post-mention { border-color: color-mix(in srgb, var(--mk-dot) 45%, var(--mk-edge)); }
.mk-post-waiting { opacity: .72; border-style: dashed; }
.mk-post-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mk-surface); color: var(--mk-muted); font-size: 14px; font-weight: 700; }
.mk-post-main { display: grid; gap: var(--mk-s-1); min-width: 0; }
.mk-post-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--mk-s-1) var(--mk-s-2); margin: 0; font-size: 14px; }
.mk-post-head time { font-size: 12px; }
.mk-post-tag { padding: 1px var(--mk-s-2); border-radius: 999px; background: var(--mk-surface); color: var(--mk-muted); font-size: 11.5px; font-weight: 650; }
.mk-post-quote { display: flex; align-items: center; gap: var(--mk-s-1); min-width: 0; min-height: 32px; padding: var(--mk-s-1) var(--mk-s-2); border-inline-start: 3px solid var(--mk-line); border-radius: 8px; background: var(--mk-surface); color: var(--mk-muted); font-size: 13px; text-decoration: none; }
.mk-post-quote .mk-icon { flex: none; width: 14px; height: 14px; }
.mk-post-quote strong { flex: none; color: var(--mk-ink); }
.mk-post-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-post-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.mk-post-reply { justify-self: start; margin-inline-start: calc(-1 * var(--mk-s-2)); }
.mk-post-actions { display: flex; align-items: center; gap: var(--mk-s-1); justify-self: start; margin-inline-start: calc(-1 * var(--mk-s-2)); }
.mk-post-actions .mk-post-reply { margin-inline-start: 0; }
.mk-post-more { position: relative; }
.mk-post-more > summary { list-style: none; }
.mk-post-more > summary::-webkit-details-marker { display: none; }
.mk-post-more[open] > .mk-menu { position: absolute; z-index: 50; top: calc(100% + var(--mk-s-1)); inset-inline-start: 0; width: min(260px, 80vw); margin: 0; box-shadow: var(--mk-shadow); }
.mk-thread-blocked > summary { display: flex; align-items: center; gap: var(--mk-s-2); min-height: 44px; color: var(--mk-muted); font-size: 13px; cursor: pointer; list-style: none; }
.mk-thread-blocked > summary::-webkit-details-marker { display: none; }
.mk-thread-blocked > summary .mk-icon { width: 16px; height: 16px; }
.mk-thread-blocked[open] > .mk-menu { margin: 0; }
/* The reply box is one control, like field-action: the send icon sits inside the box, never beside it. */
.mk-thread-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--mk-s-2); margin: 0; padding: var(--mk-s-1) var(--mk-s-1) var(--mk-s-1) var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-glass); box-shadow: inset 0 1px 0 var(--mk-hi); }
.mk-thread-compose:focus-within { outline: 2px solid var(--mk-brand); outline-offset: 0; }
.mk-thread-compose textarea { width: 100%; min-height: 44px; max-height: 40vh; padding: var(--mk-s-2) 0; border: 0; border-radius: 0; background: transparent; color: var(--mk-ink); font: 400 16px/1.4 var(--mk-font); resize: vertical; }
.mk-thread-compose textarea:focus { outline: 0; }
.mk-thread-replying { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--mk-s-2); margin: 0; color: var(--mk-muted); font-size: 13px; }
.mk-thread-replying[hidden] { display: none; }
.mk-thread-replying > .mk-icon { width: 16px; height: 16px; }
.mk-thread-replying span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Notifications: each app's choice, and the centre's pages. */
.mk-note-choices { gap: var(--mk-s-3); }
.mk-note-choice { display: grid; gap: var(--mk-s-2); }
.mk-note-choice-name { display: grid; gap: 2px; font-size: 14.5px; font-weight: 650; }
.mk-note-choice-name .mk-muted { font-size: 12.5px; font-weight: 500; }
.mk-note-pages { justify-content: center; }

/* Help (help): each app's short answers as disclosures, narrowed by the search field, then Ask us (the contact form). */
.mk-help-sheet .mk-search-field { position: sticky; top: 0; z-index: 1; margin-bottom: var(--mk-s-4); background: var(--mk-sheet-surface); }
.mk-help-app { margin: 0 0 var(--mk-s-5); }
.mk-help-app-name { display: flex; align-items: center; gap: var(--mk-s-2); margin: 0 0 var(--mk-s-2); font-size: 15px; }
.mk-help-app-name .mk-icon { width: 18px; height: 18px; color: var(--mk-brand); }
.mk-help-item { border-bottom: 1px solid var(--mk-line); }
.mk-help-item > summary { display: flex; align-items: center; gap: var(--mk-s-2); min-height: 48px; padding: var(--mk-s-2) 0; font-weight: 600; cursor: pointer; list-style: none; }
.mk-help-item > summary::-webkit-details-marker { display: none; }
.mk-help-item > summary .mk-icon { flex: none; width: 16px; height: 16px; margin-inline-start: auto; color: var(--mk-muted); transition: transform var(--mk-m-base) var(--mk-e-out); }
.mk-help-item[open] > summary .mk-icon { transform: rotate(90deg); }
[dir="rtl"] .mk-help-item[open] > summary .mk-icon { transform: rotate(-90deg); }
.mk-help-item > p { margin: 0 0 var(--mk-s-3); color: var(--mk-muted); line-height: 1.5; }
.mk-help-none { margin: 0 0 var(--mk-s-5); color: var(--mk-muted); }
.mk-help-ask { display: grid; gap: var(--mk-s-3); padding-top: var(--mk-s-4); border-top: 1px solid var(--mk-line); }
.mk-help-ask > p { margin: 0; }
/* Search (search-sheet, search-results): the quick-find. Full screen on phones, so the keyboard never hides the
   results; a centred panel near the top from 900px. */
.mk-sheet.mk-search-sheet { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: calc(var(--mk-s-2) + var(--mk-safe-top)) 0 0; border: 0; border-radius: 0; }
.mk-search-sheet::before { display: none; }
.mk-search-sheet .mk-sheet-panel { display: flex; flex-direction: column; height: 100%; }
.mk-search-sheet .mk-sheet-body { flex: 1; min-height: 0; padding-top: 0; overflow-y: auto; overscroll-behavior: contain; }
.mk-search-sheet .mk-search-field { position: sticky; top: 0; z-index: 1; margin-bottom: var(--mk-s-4); background: var(--mk-sheet-surface); }
.mk-search-recent-head { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.mk-search-list { display: grid; gap: var(--mk-s-1); margin: 0 0 var(--mk-s-5); padding: 0; list-style: none; }
.mk-search-group h3 { display: flex; align-items: center; gap: var(--mk-s-2); margin: 0 0 var(--mk-s-2); }
.mk-search-group h3 .mk-icon { width: 16px; height: 16px; }
.mk-search-hit, .mk-sheet-body a.mk-search-hit { display: grid; align-content: center; gap: 2px; width: 100%; min-height: 44px; padding: var(--mk-s-2) var(--mk-s-3); border: 0; border-radius: var(--mk-r-field); background: transparent; color: var(--mk-ink); font: inherit; text-align: start; text-decoration: none; cursor: pointer; transition: background var(--mk-m-quick) var(--mk-e-out); }
.mk-search-hit:hover, .mk-search-hit:focus-visible { background: var(--mk-glass); outline: 2px solid var(--mk-brand); outline-offset: -2px; }
.mk-search-title { font-weight: 600; }
.mk-search-sub { overflow: hidden; color: var(--mk-muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mk-search-none { padding: var(--mk-s-4) var(--mk-s-3); color: var(--mk-muted); }
.mk-search-sheet[aria-busy="true"] .mk-search-results { opacity: .6; }
@media (min-width: 900px) {
  .mk-sheet.mk-search-sheet { width: calc(100% - 48px); max-width: 640px; height: fit-content; max-height: min(680px, calc(100dvh - 96px)); margin: 8dvh auto auto; padding-top: var(--mk-s-2); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-sheet); }
  .mk-search-sheet .mk-sheet-panel { height: auto; max-height: calc(min(680px, calc(100dvh - 96px)) - var(--mk-s-2)); }
}

/* Booking (laravel/resources/views/kit/booking): days as chips, open times as a grid of 44px chips, the host's week as
   one row per day (its name, then from and to, and an optional second window). */
.mk-book-days .mk-chip { flex: 0 0 auto; flex-direction: column; min-width: 64px; min-height: 52px; line-height: 1.2; }
.mk-book-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-book-slots .mk-chip { width: 100%; font-variant-numeric: tabular-nums; }
.mk-book-when { margin: 0; font-size: 17px; font-weight: 650; }
.mk-book-day { display: grid; grid-template-columns: minmax(84px, 1fr) repeat(2, minmax(0, 1.4fr)); align-items: end; gap: var(--mk-s-2); }
.mk-book-day > strong { align-self: center; }
.mk-book-day .mk-field { min-width: 0; }
.mk-book-actions { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); }

/* Team: the people on a team, each with a menu of what the viewer may change (the kit's Team part). */
.mk-team-list { margin: 0; padding: 0; list-style: none; }
.mk-team-person { display: flex; align-items: center; gap: var(--mk-s-3); }
.mk-team-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mk-team-text strong { overflow-wrap: anywhere; }
.mk-team-more { position: relative; flex: none; }
.mk-team-more > summary { list-style: none; cursor: pointer; }
.mk-team-more > summary::-webkit-details-marker { display: none; }
.mk-team-actions { position: absolute; inset-inline-end: 0; top: calc(100% + var(--mk-s-1)); z-index: 5; min-width: 240px; max-width: min(320px, calc(100vw - 2 * var(--mk-gutter))); padding: var(--mk-s-2); gap: var(--mk-s-1); border: 1px solid var(--mk-line); border-radius: var(--mk-r-field); background: var(--mk-surface); box-shadow: var(--mk-shadow); }
.mk-team-actions .mk-btn { width: 100%; min-height: 44px; justify-content: flex-start; }
/* Connectors: linked accounts per scope, their health and the audit; the site editor's list and diff (Connectors part). */
.mk-conn-list, .mk-conn-events { margin: 0; padding: 0; list-style: none; }
.mk-site-edit { gap: var(--mk-s-4); }
.mk-conn-edit h2 { font-size: 15px; font-style: italic; }
.mk-conn-head { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); min-width: 0; }
.mk-conn-head h2 { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.mk-conn-head .mk-status { flex: none; white-space: nowrap; }
.mk-conn-name { display: inline-flex; align-items: center; gap: var(--mk-s-2); min-width: 0; }
.mk-conn-name h3 { margin: 0; font-size: 16px; }
.mk-conn-name .mk-icon { flex: none; width: 22px; height: 22px; color: var(--mk-brand-ink); }
.mk-conn-state { flex: none; padding: var(--mk-s-1) var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-glass); color: var(--mk-muted); font-size: 12px; font-weight: 650; }
.mk-conn-state.mk-conn-ok { background: var(--mk-tint); color: var(--mk-brand-ink); border-color: var(--mk-brand); }
.mk-conn-state:is(.mk-conn-failing, .mk-conn-expired) { color: var(--mk-warn); border-color: currentColor; }
.mk-conn-meta { color: var(--mk-muted); font-size: 13px; overflow-wrap: anywhere; }
.mk-conn-meta .mk-icon, .mk-conn-card .mk-negative .mk-icon { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
.mk-site-edit a.mk-seg-choice { text-decoration: none; }
.mk-conn-edit { scroll-margin-top: calc(var(--mk-bar-h) + var(--mk-s-6)); }
.mk-conn-form > summary { list-style: none; width: fit-content; cursor: pointer; }
.mk-conn-form > summary::-webkit-details-marker { display: none; }
.mk-conn-form[open] > summary { margin-bottom: var(--mk-s-3); }
.mk-conn-help { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); font-size: 13px; }
.mk-conn-events { padding-block: var(--mk-s-2); }
.mk-conn-events li { display: grid; gap: 2px; padding: var(--mk-s-2) 0; border-bottom: 1px solid var(--mk-line); font-size: 13.5px; overflow-wrap: anywhere; }
.mk-conn-events li:last-child { border-bottom: 0; }
.mk-conn-search { display: flex; align-items: flex-end; gap: var(--mk-s-2); }
.mk-conn-search .mk-field { flex: 1; min-width: 0; }
.mk-conn-item { display: flex; align-items: center; gap: var(--mk-s-3); min-height: 56px; color: var(--mk-ink); text-decoration: none; }
.mk-conn-item-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mk-conn-item-text strong { overflow-wrap: anywhere; }
.mk-conn-item .mk-status { flex: none; }
.mk-conn-now > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 650; }
.mk-conn-text { color: var(--mk-muted); overflow-wrap: anywhere; }
.mk-diff { margin: 0; padding: var(--mk-s-3); border: 1px solid var(--mk-line); border-radius: 14px; background: var(--mk-canvas); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.mk-diff-del { background: color-mix(in srgb, var(--mk-negative) 14%, transparent); color: var(--mk-ink); text-decoration: line-through; text-decoration-color: var(--mk-negative); }
.mk-diff-add { background: var(--mk-tint); color: var(--mk-ink); text-decoration: underline; text-decoration-color: var(--mk-brand); text-underline-offset: 3px; }
.mk-diff-tag { color: var(--mk-muted); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Approvals (kit.approval): a change before and after, then one big Approve. */
.mk-approval-state { display: flex; align-items: center; gap: var(--mk-s-2); margin: 0; }
.mk-approval-note { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mk-approval-change h2 { font-size: 17px; margin: 0; }
.mk-approval-change .mk-eyebrow { margin: 0; color: var(--mk-muted); }
.mk-approval-decide .mk-btn-brand { width: 100%; min-height: 52px; justify-content: center; font-size: 17px; }
/* Maps and places (place-map, map.js): the list is the keyboard and screen-reader view; the map sits above it. */
.mk-map { display: grid; gap: var(--mk-s-3); min-width: 0; }
.mk-map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-2); }
.mk-map-bar:not(:has(> :not([hidden]))) { display: none; }
.mk-map-views { flex: 0 1 240px; }
.mk-map-near { min-height: 44px; }
.mk-map-near[hidden], .mk-map-views[hidden], .mk-map-frame[hidden] { display: none; }
.mk-map-status { margin: 0; font-size: 13px; }
.mk-map-status:empty { display: none; }
.mk-map-frame { position: relative; overflow: hidden; border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); background: var(--mk-surface); }
/* Leaflet's zoom buttons are 30px; the kit's touch targets are at least 44px. */
.mk-map .leaflet-bar a, .mk-map .leaflet-touch .leaflet-bar a, .mk-map-canvas.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
.mk-map-canvas { height: clamp(240px, 45vh, 480px); background: var(--mk-surface); font: inherit; }
.mk-map-canvas.leaflet-container { background: var(--mk-surface); font-family: var(--mk-font); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-map-canvas .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.85); } }
:root[data-theme="dark"] .mk-map-canvas .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.85); }
.mk-map-canvas .leaflet-bar { border: 1px solid var(--mk-edge); border-radius: 14px; overflow: hidden; box-shadow: var(--mk-shadow); }
.mk-map-canvas .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; border-color: var(--mk-edge); background: var(--mk-surface); color: var(--mk-ink); font-size: 20px; }
.mk-map-canvas .leaflet-bar a:hover { background: var(--mk-tint); }
.mk-map-credit { position: absolute; inset-inline-end: 0; bottom: 0; z-index: 500; margin: 0; padding: 2px var(--mk-s-2); border-top-left-radius: 10px; background: var(--mk-glass); color: var(--mk-muted); font-size: 11px; }
.mk-map-credit a { color: inherit; }
.mk-map-icon { background: none; border: 0; }
.mk-map-pin { display: block; width: 22px; height: 22px; border: 3px solid var(--mk-surface); border-radius: 50% 50% 50% 0; background: var(--mk-brand); box-shadow: var(--mk-shadow); transform: rotate(-45deg); transition: transform var(--mk-m-quick) var(--mk-e-spring); }
.mk-map-pin-on { transform: rotate(-45deg) scale(1.3); background: var(--mk-dot); }
.mk-map-cluster { display: grid; place-items: center; width: 40px; height: 40px; border: 3px solid var(--mk-surface); border-radius: 50%; background: var(--mk-brand); color: var(--mk-on-brand); font-size: 14px; font-weight: 750; box-shadow: var(--mk-shadow); }
.mk-map-list { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-map-place { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: start; gap: var(--mk-s-3); min-height: 44px; padding: var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-tile); background: var(--mk-glass); scroll-margin: 96px 0 24px; }
.mk-map-place > .mk-icon { width: 20px; height: 20px; margin-top: 1px; color: var(--mk-muted); }
.mk-map-place[aria-current="true"] { border-color: var(--mk-brand); }
.mk-map-place[aria-current="true"] > .mk-icon { color: var(--mk-brand); }
.mk-map-place-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.mk-map-place-text a { color: var(--mk-ink); font-weight: 700; }
.mk-map-place-text .mk-muted { font-size: 13.5px; }
.mk-map-distance { color: var(--mk-muted); font-size: 13px; font-weight: 650; white-space: nowrap; }
.mk-map-empty { margin: 0; }
.mk-map[data-view="list"] .mk-map-frame { display: none; }
.mk-map [data-place] { scroll-margin: 96px 0 24px; }
.mk-map [data-place][aria-current="true"]:not(.mk-map-place) { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
/* Charts (chart, spark, stat; numbers from Charts::chart / charts.ts). One hue: the brand, then three more shades of it,
   set per theme so every two of the four differ in lightness (contrast 1.3 or more) and each stands off the surface and
   the canvas (2 or more); test/charts.test.ts checks this for every brand. Day: lighter steps toward the surface and one
   deeper step toward the ink. Night (the brand is already light): steps toward the surface only. A second line is dashed
   and every series is named in the legend,
   so nothing is told by colour alone. Text stays in ink and muted, never in a series colour. Marks are drawn in a
   0-100 box stretched to the plot (strokes keep their width); labels are HTML laid over it, so they never stretch. */
.mk-graph { display: grid; gap: var(--mk-s-3); min-width: 0; margin: 0; }
.mk-graph-title { color: var(--mk-ink); font-size: 15px; font-weight: 700; }
.mk-graph-body { display: grid; gap: var(--mk-s-3); min-width: 0; }
.mk-graph-s1 { --mk-graph-c: var(--mk-brand); }
.mk-graph-s2 { --mk-graph-c: light-dark(color-mix(in srgb, var(--mk-button-day) 55%, var(--mk-day-surface)), color-mix(in srgb, var(--mk-button-night) 45%, var(--mk-night-surface))); }
.mk-graph-s3 { --mk-graph-c: light-dark(color-mix(in srgb, var(--mk-button-day) 50%, var(--mk-day-ink)), color-mix(in srgb, var(--mk-button-night) 80%, var(--mk-night-surface))); }
.mk-graph-s4 { --mk-graph-c: light-dark(color-mix(in srgb, var(--mk-button-day) 75%, var(--mk-day-surface)), color-mix(in srgb, var(--mk-button-night) 62%, var(--mk-night-surface))); }
.mk-graph svg *, .mk-spark * { vector-effect: non-scaling-stroke; }
.mk-graph-line { fill: none; stroke: var(--mk-graph-c, var(--mk-brand)); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.mk-graph-s2 .mk-graph-line { stroke-dasharray: 6 4; stroke-linecap: butt; }
.mk-graph-s3 .mk-graph-line { stroke-dasharray: 2 4; }
.mk-graph-s4 .mk-graph-line { stroke-dasharray: 10 3 2 3; }
.mk-graph-dot { fill: none; stroke: var(--mk-graph-c, var(--mk-brand)); stroke-width: 8px; stroke-linecap: round; }
.mk-graph-bar { fill: var(--mk-graph-c, var(--mk-brand)); }
.mk-graph-stacked .mk-graph-svg .mk-graph-bar { stroke: var(--mk-surface); stroke-width: 2px; }
.mk-graph-grid { stroke: var(--mk-line); stroke-width: 1px; }
.mk-graph-zero { stroke: color-mix(in srgb, var(--mk-ink) 40%, transparent); stroke-width: 1px; }
.mk-graph-legend { display: flex; flex-wrap: wrap; gap: var(--mk-s-1) var(--mk-s-4); margin: 0; padding: 0; color: var(--mk-muted); font-size: 12px; list-style: none; }
.mk-graph-legend li { display: inline-flex; align-items: center; gap: var(--mk-s-1); }
.mk-graph-key { width: 20px; height: 10px; overflow: visible; }
.mk-graph-plot { --mk-graph-h: 168px; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: var(--mk-graph-h) auto; column-gap: var(--mk-s-2); margin-top: var(--mk-s-2); touch-action: pan-y; }
.mk-graph-ticks, .mk-graph-xs { position: relative; color: var(--mk-muted); font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1; }
.mk-graph-ticks span { position: absolute; inset-inline-end: 0; transform: translateY(-50%); white-space: nowrap; }
.mk-graph-area { position: relative; min-width: 0; }
.mk-graph-plot { container-type: inline-size; }
@container (max-width: 400px) { .mk-graph-minor { display: none; } }
.mk-graph-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mk-graph-xs { grid-column: 2; height: 14px; margin-top: var(--mk-s-2); }
.mk-graph-xs span { position: absolute; top: 0; transform: translateX(var(--mk-graph-x, -50%)); white-space: nowrap; }
.mk-graph-mark { position: absolute; z-index: 1; transform: translate(var(--mk-graph-x, -50%), var(--mk-graph-y, calc(-100% - 7px))); color: var(--mk-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px var(--mk-surface), 0 0 3px var(--mk-surface), 0 0 1px var(--mk-surface); }
.mk-graph-below { --mk-graph-y: 8px; }
/* A partial last period (this month so far): its step and dot are pale and dotted, its bar pale with a dashed edge, its label says so far. */
.mk-graph-line.mk-graph-rest { stroke-dasharray: 2 4; stroke-linecap: butt; opacity: .5; }
.mk-graph-dot.mk-graph-rest { opacity: .5; }
.mk-graph-bar.mk-graph-rest { fill-opacity: .3; stroke: var(--mk-graph-c, var(--mk-brand)); stroke-width: 1.5px; stroke-dasharray: 3 2; }
.mk-graph-sofar { display: block; color: var(--mk-muted); font-size: 11px; font-weight: 500; line-height: 1.2; }
.mk-graph-mark .mk-graph-sofar { margin-bottom: 2px; }
/* A line's latest values: a gutter right of the plot, one label per line at the height the plan gives (stacked apart
   by code), joined to its line end by a leader when it had to move. Text in ink; only the small key wears the line. */
.mk-graph-plot:has(> .mk-graph-ends) { grid-template-columns: 44px minmax(0, 1fr) auto; }
.mk-graph-ends { position: relative; display: grid; grid-column: 3; grid-row: 1; padding-inline-start: var(--mk-s-3); }
/* The leads reach back across the column gap to the plot's edge, where a line stopping early is led out to it. */
.mk-graph-leads { position: absolute; inset-block: 0; inset-inline-start: calc(-1 * var(--mk-s-2)); width: calc(10px + var(--mk-s-2)); height: 100%; overflow: visible; }
.mk-graph-lead { stroke: var(--mk-muted); stroke-width: 1px; }
.mk-graph-last { position: relative; grid-area: 1 / 1; align-self: start; display: grid; justify-items: start; transform: translateY(-50%); color: var(--mk-ink); font-size: 12px; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-graph-last b { font-weight: 700; }
.mk-graph-last-name { display: block; max-width: 9em; overflow: hidden; text-overflow: ellipsis; color: var(--mk-ink); font-weight: 400; }
.mk-graph-last-name .mk-graph-key { width: 14px; margin-inline-end: var(--mk-s-1); vertical-align: middle; }
.mk-graph .mk-graph-start { --mk-graph-x: 0; }
.mk-graph .mk-graph-end { --mk-graph-x: -100%; }
.mk-graph-guide { position: absolute; top: 0; bottom: 0; width: 0; border-inline-start: 1px solid var(--mk-muted); pointer-events: none; }
.mk-graph-readout { position: absolute; top: 0; z-index: 2; display: grid; gap: 2px; padding: var(--mk-s-2) var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 12px; background: var(--mk-glass-2); box-shadow: var(--mk-shadow); color: var(--mk-ink); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.mk-graph-readout b { font-weight: 700; }
.mk-graph-readout span { color: var(--mk-muted); }
.mk-graph-table summary { display: inline-flex; align-items: center; min-height: var(--mk-ib); color: var(--mk-brand-ink, var(--mk-brand)); font-size: 13px; font-weight: 650; cursor: pointer; }
.mk-graph-scroll { overflow-x: auto; }
.mk-graph-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mk-graph-table th, .mk-graph-table td { padding: var(--mk-s-2); border-bottom: 1px solid var(--mk-line); text-align: end; white-space: nowrap; }
.mk-graph-table th:first-child { text-align: start; }
.mk-graph-table thead th { color: var(--mk-muted); font-weight: 650; }
.mk-graph-rows { display: grid; grid-template-columns: minmax(64px, max-content) minmax(0, 1fr) auto; gap: var(--mk-s-2) var(--mk-s-3); margin: 0; padding: 0; list-style: none; }
.mk-graph-rows li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; min-height: 28px; font-size: 14px; }
.mk-graph-row-label { max-width: 40vw; }
.mk-graph-row-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-graph-row-bar { display: block; width: 100%; height: 10px; }
.mk-graph-track { fill: color-mix(in srgb, var(--mk-line) 60%, transparent); }
.mk-graph-row-value { font-variant-numeric: tabular-nums; font-weight: 650; text-align: end; white-space: nowrap; }
.mk-graph-row-value .mk-muted { font-weight: 400; }
.mk-spark { display: block; width: 100%; height: 28px; overflow: visible; }
.mk-spark .mk-graph-dot { stroke-width: 6px; }
.mk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 104px), 1fr)); gap: var(--mk-s-3); margin: 0; padding: 0; list-style: none; }
/* Stat cards in a row are one height, whatever their label or note. */
.mk-stats > li { display: grid; }
.mk-stats > li > .mk-stat { height: 100%; }
.mk-stat { align-content: start; gap: 2px; min-height: var(--mk-ib); padding: var(--mk-s-3) var(--mk-s-4); color: var(--mk-ink); text-decoration: none; }
a.mk-stat { transition: transform var(--mk-m-quick) var(--mk-e-out); }
a.mk-stat:active { transform: scale(.98); }
.mk-stat-label { color: var(--mk-muted); font-size: 13px; font-weight: 650; }
.mk-stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mk-stat-change { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-1); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mk-stat-change .mk-icon { width: 16px; height: 16px; }
.mk-stat-change .mk-muted { font-weight: 400; }
.mk-stat-worse { color: var(--mk-negative); }
.mk-stat-note { color: var(--mk-muted); font-size: 13px; }
.mk-stat .mk-spark { margin-top: var(--mk-s-2); }
@media (forced-colors: active) { .mk-graph-line, .mk-graph-dot { stroke: CanvasText; } .mk-graph-bar { fill: CanvasText; } }
/* Files (file-upload, file-list): the drop field with each file's progress, and the list with its previews. */
.mk-drop { position: relative; display: grid; gap: var(--mk-s-2); min-width: 0; }
.mk-drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mk-drop-zone { display: grid; justify-items: center; gap: var(--mk-s-1); min-height: 96px; padding: var(--mk-s-4); border: 1.5px dashed var(--mk-line); border-radius: var(--mk-r-card); background: var(--mk-surface); color: var(--mk-ink); text-align: center; cursor: pointer; transition: border-color var(--mk-m-quick) var(--mk-e-out), background-color var(--mk-m-quick) var(--mk-e-out); }
.mk-drop-zone .mk-icon { width: 24px; height: 24px; color: var(--mk-brand); }
.mk-drop-zone span { font-size: 13px; }
.mk-drop-input:focus-visible + .mk-drop-zone { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
.mk-drop-over .mk-drop-zone, .mk-drop-zone:hover { border-color: var(--mk-brand); background: var(--mk-tint); }
.mk-drop-list { display: grid; gap: var(--mk-s-1); margin: 0; padding: 0; list-style: none; }
.mk-drop-list:empty { display: none; }
.mk-drop-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px var(--mk-s-2); padding: var(--mk-s-2) var(--mk-s-2) var(--mk-s-2) var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 14px; background: var(--mk-glass); }
.mk-drop-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.mk-drop-state { grid-column: 1; color: var(--mk-muted); font-size: 12.5px; }
.mk-drop-item .mk-ib { grid-row: 1 / span 3; grid-column: 2; }
.mk-drop-bar { grid-column: 1; width: 100%; height: 6px; border: 0; border-radius: 999px; background: var(--mk-surface); overflow: hidden; appearance: none; }
.mk-drop-bar::-webkit-progress-bar { background: var(--mk-surface); }
.mk-drop-bar::-webkit-progress-value { border-radius: 999px; background: var(--mk-brand); }
.mk-drop-bar::-moz-progress-bar { border-radius: 999px; background: var(--mk-brand); }
.mk-drop-done .mk-drop-bar { display: none; }
.mk-drop-bad { border-color: var(--mk-negative); }
.mk-drop-bad .mk-drop-state { color: var(--mk-negative); }
.mk-files { display: grid; gap: var(--mk-s-2); min-width: 0; }
.mk-files-empty { margin: 0; padding: var(--mk-s-2) 0; }
.mk-files-list { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-file { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: var(--mk-s-3); padding: var(--mk-s-2); border: 1px solid var(--mk-edge); border-radius: 16px; background: var(--mk-glass); }
.mk-file-thumb { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 12px; background: var(--mk-surface); color: var(--mk-muted); }
.mk-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mk-file-thumb .mk-icon { width: 24px; height: 24px; }
.mk-file-main { display: grid; gap: 2px; min-width: 0; }
.mk-file-name { overflow: hidden; color: var(--mk-ink); font-size: 15px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.mk-file-name:hover { text-decoration: underline; }
.mk-file-meta { margin: 0; font-size: 12.5px; }
.mk-file-actions { display: flex; align-items: center; }
.mk-file-delete { display: contents; }
@media (max-width: 430px) { .mk-file { grid-template-columns: 52px minmax(0, 1fr); row-gap: 0; } .mk-file-actions { grid-column: 2; margin-inline-start: calc(-1 * var(--mk-s-2)); } }

/* The account menu's profile (profile, mk-profile): photo or initials, the display name and language, then the rows. */
.mk-account-photo { overflow: hidden; padding: 0; background: var(--mk-surface); }
.mk-account-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk-profile { display: grid; gap: var(--mk-s-4); }
.mk-profile .mk-menu { margin: 0; }
.mk-profile-head { display: flex; align-items: center; gap: var(--mk-s-3); min-width: 0; }
.mk-profile-avatar { width: 72px; height: 72px; font-size: 26px; }
.mk-profile-avatar > .mk-icon { width: 32px; height: 32px; }
.mk-profile-who { display: grid; gap: 2px; min-width: 0; }
.mk-profile-who strong { font-size: 18px; overflow-wrap: anywhere; }
.mk-profile-form { display: grid; gap: var(--mk-s-3); }
.mk-profile-form .mk-btn { justify-self: start; min-height: 44px; }
.mk-profile-hint, .mk-profile-error { margin: calc(-1 * var(--mk-s-2)) 0 0; font-size: 13px; }
.mk-profile-error { color: var(--mk-warn); font-weight: 650; }
.mk-profile [aria-invalid="true"] { border-color: var(--mk-warn); }

/* Sign in with Mako, "Continue as" (auth-providers): one wide control with the mark, two lines and the initials. */
.mk-auth-providers:has(> .mk-auth-mako) { display: flex; flex-wrap: wrap; }
.mk-auth-providers:has(> .mk-auth-mako) > .mk-auth-provider { flex: 1 1 0; }
.mk-auth-mako { flex: 1 0 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mk-s-1); min-width: 0; }
.mk-auth-provider.mk-auth-provider-mako { display: flex; align-items: center; justify-content: flex-start; gap: var(--mk-s-3); width: 100%; height: auto; min-height: 64px; padding: var(--mk-s-2) var(--mk-s-3) var(--mk-s-2) var(--mk-s-3); text-align: start; text-wrap: initial; }
.mk-auth-provider-mako .mk-auth-provider-mark svg { width: 36px; }
.mk-auth-mako-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.mk-auth-mako-text strong { overflow: hidden; color: var(--mk-ink); font-size: 16px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.mk-auth-mako-sub { color: var(--mk-muted); font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.mk-auth-mako-end { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: var(--mk-muted); }
.mk-auth-mako-end > .mk-icon { width: 20px; height: 20px; }
.mk-auth-mako-known .mk-auth-mako-end { background: linear-gradient(160deg, color-mix(in srgb, var(--mk-deep) 80%, var(--mk-day-surface)), var(--mk-deep)); color: var(--mk-day-surface); font-size: 15px; font-weight: 750; }
.mk-auth-mako-other { justify-self: center; min-height: 44px; padding: 0 var(--mk-s-3); border: 0; background: none; color: var(--mk-brand-ink, var(--mk-ink)); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mk-auth-mako-other[hidden] { display: none; }
.mk-auth-mako-other[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.mk-profile-status { min-height: 1.4em; margin: calc(-1 * var(--mk-s-2)) 0 0; font-size: 13px; }

/* A field on its own (owner, November 15, 2026: every field is the kit's). The look mako.design's Desk and mako.support
   each drew for themselves (dk-input, sp-input), now one class: 44px, the surface, the edge, 16px text. */
.mk-input { width: 100%; min-width: 0; min-height: 44px; padding: var(--mk-s-2) var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 14px; background: var(--mk-surface); color: var(--mk-ink); font: inherit; font-size: 16px; }
select.mk-input { appearance: none; -webkit-appearance: none; padding-inline-end: var(--mk-s-10); background: var(--mk-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; cursor: pointer; }
[dir="rtl"] select.mk-input { background-position: left 12px center; }
[dir="rtl"] .mk-chips-scroll { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--mk-s-6)); mask-image: linear-gradient(to right, transparent, #000 var(--mk-s-6)); }
textarea.mk-input { min-height: 96px; resize: vertical; line-height: 1.5; }
.mk-input:focus-visible { outline: 2.5px solid var(--mk-brand); outline-offset: 1px; }
.mk-input[readonly] { color: var(--mk-muted); background: transparent; }
.mk-input[aria-invalid="true"] { border-color: var(--mk-negative); }
.mk-input-small { width: auto; min-width: 104px; font-size: 14px; }
.mk-input-num { width: 76px; text-align: center; }

/* Autosave: the form saves itself; the state line is quiet (Saving, Saved with a tick, or why not and Try again). */
.mk-autosave-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-2); min-height: 22px; margin: 0; color: var(--mk-muted); font-size: 14px; }
.mk-autosave-state[hidden] { display: none; }
/* The state line follows the field being edited (mk.js), so Saved and Undo show beside it, even in a tall card; in a grid it takes the whole row. */
.mk-autosave .mk-autosave-state { grid-column: 1 / -1; }
.mk-autosave-state[data-state="saved"]::before { content: ""; width: 7px; height: 12px; margin: calc(-1 * var(--mk-s-1)) var(--mk-s-1) 0 var(--mk-s-1); border: solid var(--mk-positive, var(--mk-brand)); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mk-autosave-state.mk-error { color: var(--mk-negative); }
.mk-autosave-action { min-height: 44px; }
/* Saving: a quiet pulse at the edited field's end. Failed: a small retry icon in the field; the value stays (note #30). */
.mk-autosave [data-mk-saving], .mk-autosave [data-mk-failed] { position: relative; }
.mk-autosave [data-mk-saving]::after { content: ""; position: absolute; inset-inline-end: var(--mk-s-4); inset-block-end: calc(var(--mk-s-5) + 2px); width: 8px; height: 8px; border-radius: 50%; background: var(--mk-brand); animation: mk-saving 1s var(--mk-e-out) infinite alternate; pointer-events: none; }
@keyframes mk-saving { from { opacity: .25; transform: scale(.7); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk-autosave [data-mk-saving]::after { animation: none; opacity: .7; } }
.mk-autosave [data-mk-failed] :is(input, textarea, select) { padding-inline-end: var(--mk-s-12); }
.mk-autosave-retry { position: absolute; inset-inline-end: var(--mk-s-1); inset-block-end: var(--mk-s-1); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: calc(var(--mk-r-field) - var(--mk-s-1)); background: color-mix(in srgb, var(--mk-negative) 12%, transparent); color: var(--mk-negative); cursor: pointer; }
.mk-autosave-retry:hover { background: color-mix(in srgb, var(--mk-negative) 20%, transparent); }
.mk-autosave-retry .mk-icon { width: 18px; height: 18px; }
/* Ultra-wide (owner, Nov 17): the page group's links and actions inline in the bar, as icons with words, before ⋮ More
   and My account. Hidden below 1800px, where ⋮ More holds them. */
.mk-header-inline { display: none; }
@media (min-width: 1800px) {
  .mk-header-inline { display: flex; align-items: center; gap: var(--mk-s-1); margin-inline-end: var(--mk-s-2); }
  .mk-header-link { display: inline-flex; align-items: center; gap: var(--mk-s-2); min-height: 44px; padding: 0 var(--mk-s-3); border: 0; border-radius: 999px; background: transparent; color: var(--mk-ink); font: inherit; font-size: 15px; font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--mk-m-quick) var(--mk-e-spring), background var(--mk-m-quick) var(--mk-e-out); }
  .mk-header-link .mk-icon { width: 20px; height: 20px; color: var(--mk-brand-ink); }
  .mk-header-link:hover, .mk-header-link[aria-current="page"] { background: var(--mk-tint); color: var(--mk-brand-ink); }
  .mk-header-link:active { transform: scale(var(--mk-press)); transition-duration: var(--mk-m-press); }
  .mk-header-link:focus-visible { outline: 2.5px solid var(--mk-brand); outline-offset: 2px; }
}
.mk-header-more-info { display: grid; gap: var(--mk-s-1); padding: var(--mk-s-2) var(--mk-s-3); }
.mk-header-more-info h3, .mk-header-more-info p { margin: 0; }
.mk-header-more-info p { color: var(--mk-muted); font-size: 14px; }
/* Right to left (Persian: <html dir="rtl">). Layout uses logical properties (inline-start and inline-end), so rows,
   padding and offsets follow the reading direction; what moves by transform is mirrored here. Icons that point a way
   (back, next, forward, reply, send, sign out, skip) carry .mk-flip in icons.json and turn round. Letter spacing would
   break the joined Persian script, so it is off. */
.mk-locale-choice { width: 100%; }
.mk-locale-choice { grid-auto-columns: minmax(max-content, 1fr); }
.mk-locale-choice .mk-seg-choice { text-decoration: none; white-space: nowrap; padding-inline: var(--mk-s-1); }
.mk-locale-choice .mk-seg-choice[aria-current="true"] { background: var(--mk-brand-fill); color: var(--mk-on-brand); }
[dir="rtl"] .mk-flip { transform: scaleX(-1); transform-box: view-box; transform-origin: 50% 50%; }
[dir="rtl"] .mk-auth-screen[data-auth-mode="create"] .mk-auth-indicator { transform: translateX(-100%); }
[dir="rtl"] .mk-auth-theme::before { transform: translateX(calc(var(--mk-auth-choice) * -100%)); }
[dir="rtl"] .mk-note-chain li + li::before { content: "\2190"; }
[dir="rtl"] .mk-auth-email:has(input:valid) .mk-auth-arrow:not([aria-disabled="true"]) .mk-icon { transform: translateX(-1px); }
[dir="rtl"] .mk-auth-brand::after { inset-inline-end: auto; inset-inline-start: -120px; }
/* A text block still in English (words waiting for a person's review) reads left to right inside a Persian page. */
[dir="rtl"] :is(p, li, h1, h2, h3, h4, dt, dd, summary, label, figcaption, blockquote, strong, span, a, button) { unicode-bidi: plaintext; }
:lang(fa) { letter-spacing: 0 !important; }
:lang(fa) * { letter-spacing: 0 !important; }
/* The installable app (App\Support\Pwa): the toast that waits for a tap, the
   offline page, and the iOS add-to-home-screen steps (install-sheet). */
.mk-toast:has(.mk-toast-action) { padding: 0; }
.mk-toast-action { min-height: 44px; padding: 0 var(--mk-s-5); border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.mk-offline { display: grid; justify-items: center; align-content: center; gap: var(--mk-s-4); min-height: 100dvh; text-align: center; }
.mk-offline h1 { margin: 0; }
.mk-offline p { max-width: 32ch; margin: 0; }
.mk-offline-mark { width: 80px; height: 80px; padding: var(--mk-s-3); border-radius: var(--mk-r-card); }
.mk-install-steps { display: grid; gap: var(--mk-s-2); margin: var(--mk-s-4) 0 0; padding: 0; list-style: none; }
.mk-install-steps li { display: flex; align-items: center; gap: var(--mk-s-3); min-height: 44px; }
.mk-install-steps .mk-icon { flex: none; width: 24px; height: 24px; }

/* kit Sites: the editor (kit.sites.editor). Phone first: one column of block cards; wider screens keep it readable. */
.mk-site-editor { max-width: 760px; margin-inline: auto; padding-block-end: var(--mk-s-24); }
.mk-site-h { display: flex; align-items: center; gap: var(--mk-s-2); margin: 0; font-size: 16px; }
.mk-site-h .mk-icon { flex: none; width: 18px; height: 18px; }
.mk-site-fine { font-size: 13px; }
.mk-site-state-row { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-3); }
.mk-site-state-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.mk-site-state-text a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mk-brand-ink, var(--mk-brand)); }
.mk-site-askform { display: grid; gap: var(--mk-s-2); }
.mk-site-askform .mk-field-action-input { min-height: 76px; }
.mk-site-askfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.mk-site-diff { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-site-diff li { display: grid; gap: var(--mk-s-1); padding: var(--mk-s-3); border: 1px solid var(--mk-line); border-radius: 14px; background: var(--mk-surface); overflow-wrap: anywhere; }
.mk-site-diff del { color: var(--mk-muted); text-decoration-thickness: 1px; }
.mk-site-diff del:empty, .mk-site-diff ins:empty { display: none; }
.mk-site-diff ins { text-decoration: none; font-weight: 600; }
.mk-site-diff ins::before { content: "+ "; color: var(--mk-muted); }
.mk-site-block-head { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.mk-site-block-head .mk-actions { flex-wrap: nowrap; }
.mk-site-block-head form { display: contents; }
.mk-site-fields { display: grid; gap: var(--mk-s-3); }
.mk-site-share { display: grid; gap: var(--mk-s-1); justify-items: start; }
.mk-site-reviews { display: grid; gap: var(--mk-s-1); margin: 0; padding: 0; list-style: none; font-size: 14px; overflow-wrap: anywhere; }
.mk-site-heading input { font-size: 20px; font-weight: 700; }
.mk-site-block-hero .mk-site-heading input { font-size: 24px; }
.mk-site-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--mk-s-2); }
.mk-site-rows { display: grid; gap: var(--mk-s-2); }
.mk-site-picture { display: grid; gap: var(--mk-s-2); }
.mk-site-thumb { width: 100%; max-height: 180px; object-fit: cover; border-radius: 14px; }
.mk-site-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--mk-s-2); margin: 0; padding: 0; border: 0; }
.mk-site-galitem { display: grid; gap: var(--mk-s-1); }
.mk-site-check { position: relative; display: block; min-height: 44px; }
.mk-site-check input { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; width: 24px; height: 24px; }
.mk-site-check img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.mk-site-addgrid { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); }
.mk-site-addgrid .mk-chip { flex: 0 1 auto; gap: var(--mk-s-1); font-size: 13px; color: var(--mk-ink); cursor: pointer; }
.mk-site-addgrid .mk-icon { width: 16px; height: 16px; }
.mk-site-addgrid .mk-chip:disabled { opacity: .5; cursor: default; transform: none; }
.mk-site-newpage { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); align-items: end; flex: 1 1 260px; }
.mk-site-newpage .mk-field { flex: 1 1 160px; }
.mk-site-look { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--mk-s-2); }
.mk-site-look input[type=color] { padding: var(--mk-s-1); }
.mk-site-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-site-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.mk-site-history { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mk-site-history li { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-3); padding: var(--mk-s-3) 0; border-block-end: 1px solid var(--mk-line); }
.mk-site-history-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.mk-site-history .mk-chip { flex: none; }
.mk-site-msgs { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mk-site-msg { display: grid; gap: var(--mk-s-2); padding: var(--mk-s-3) 0; border-block-end: 1px solid var(--mk-line); }
.mk-site-msg:last-child { border-block-end: 0; }
.mk-site-msg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--mk-s-3); }
.mk-site-msg-head form { flex: none; }
.mk-site-msg-head .mk-chip { margin-inline-start: var(--mk-s-1); vertical-align: middle; }
.mk-site-msg-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.mk-site-msg-reply { display: grid; gap: var(--mk-s-1); margin: 0; padding: var(--mk-s-3); border-radius: 14px; background: var(--mk-tint); white-space: pre-line; overflow-wrap: anywhere; }

/* Lists: record-list, record-row, empty-state (KIT.md, "Lists"). One list shape for Tickets, Leads, Follow-ups,
   Drafts and every other list of records. Filters sit above on a phone and in a side column from 900px. */
.mk-records { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mk-s-4); min-width: 0; }
.mk-records-side { display: grid; gap: var(--mk-s-2); min-width: 0; align-content: start; }
.mk-records-main { display: grid; gap: var(--mk-s-3); min-width: 0; align-content: start; }
.mk-records-filters .mk-chip { flex: 0 0 auto; gap: var(--mk-s-1); }
.mk-records-filters .mk-chip .mk-icon { width: 16px; height: 16px; }
.mk-records-count { min-width: 20px; padding: 0 var(--mk-s-1); border-radius: 999px; background: var(--mk-tint); color: var(--mk-ink); font-variant-numeric: tabular-nums; text-align: center; }
.mk-chip-on .mk-records-count { background: var(--mk-surface); }
.mk-records-find { position: relative; display: block; }
.mk-records-find > .mk-icon { position: absolute; inset-inline-start: 14px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; color: var(--mk-muted); pointer-events: none; }
.mk-records-find .mk-input { padding-inline-start: var(--mk-s-10); padding-inline-end: var(--mk-s-10); }
.mk-records-find .mk-search-clear { position: absolute; inset-inline-end: 0; top: 50%; margin: 0; translate: 0 -50%; }
.mk-records-note { margin: 0; font-size: 13px; line-height: 1.45; }
.mk-records-title { margin: 0; font-size: 17px; }
.mk-records-list { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-records-none { margin: 0; text-align: center; }
@media (min-width: 900px) {
  .mk-records-sided { grid-template-columns: 260px minmax(0, 1fr); gap: var(--mk-s-6); }
  .mk-records-sided { align-items: start; }
  .mk-records-sided .mk-records-side { position: sticky; top: calc(var(--mk-bar-h, 0px) + var(--mk-s-6)); }
  .mk-records-sided .mk-records-filters { flex-direction: column; overflow: visible; padding: 0; }
  .mk-records-sided .mk-records-filters .mk-chip { justify-content: space-between; padding: 0 var(--mk-s-4); }
  .mk-records-sided .mk-records-filters .mk-chip > span:not(.mk-records-count) { flex: 1; text-align: start; }
}
.mk-record { list-style: none; min-width: 0; }
.mk-record-in { display: flex; gap: var(--mk-s-3); align-items: flex-start; min-height: 56px; padding: var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-tile); background: var(--mk-glass-2); color: inherit; text-decoration: none; }
a.mk-record-in:hover { border-color: var(--mk-brand); }
/* In a sheet too: the whole row, never the sheet's inline links. */
.mk-sheet-body a.mk-record-in { display: flex; align-items: flex-start; }
a.mk-record-in:focus-visible { outline: 2.5px solid var(--mk-brand); outline-offset: 2px; }
a.mk-record-in:active { transform: scale(var(--mk-press)); }
.mk-record-dim .mk-record-in { opacity: .62; }
/* Waiting on the reader: the notification row's dot and tint. The detail open beside the list: the brand edge. */
.mk-record-unread .mk-record-in { position: relative; padding-inline-end: var(--mk-s-6); border-color: color-mix(in srgb, var(--mk-dot) 45%, var(--mk-edge)); background: linear-gradient(155deg, color-mix(in srgb, var(--mk-dot) 10%, transparent), var(--mk-glass-2)); }
.mk-record-unread .mk-record-in::after { content: ""; position: absolute; top: 18px; inset-inline-end: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--mk-dot); }
.mk-record-unread .mk-record-title { font-weight: 750; }
.mk-record-in[aria-current="true"] { border-color: var(--mk-brand); box-shadow: inset 3px 0 0 var(--mk-brand); background: color-mix(in srgb, var(--mk-tint) 60%, var(--mk-glass-2)); }
[dir="rtl"] .mk-record-in[aria-current="true"] { box-shadow: inset -3px 0 0 var(--mk-brand); }
/* A status dot on the avatar (a messages-style list), and the note kept to one line. */
.mk-record-avatar { position: relative; }
.mk-record-dot { position: absolute; inset-block-end: -1px; inset-inline-end: -1px; width: 12px; height: 12px; border: 2px solid var(--mk-surface); border-radius: 50%; background: color-mix(in srgb, var(--mk-muted) 55%, transparent); }
.mk-record-dot-new { background: var(--mk-dot); }
.mk-record-dot-on { background: var(--mk-brand); }
.mk-record-dot-warn { background: var(--mk-warn); }
.mk-record-dot-stop { background: var(--mk-negative); }
.mk-record-unread:has(.mk-record-dot) .mk-record-in::after { display: none; }
.mk-record-unread:has(.mk-record-dot) .mk-record-in { padding-inline-end: var(--mk-s-3); }
/* A helper under its lead (record-row nested): indented, one group with the row above it. */
.mk-record-nested { margin-inline-start: var(--mk-s-8); }
.mk-record-nested .mk-record-in { min-height: 48px; }
/* A row's product mark (record-row mark): the suite's own mark as the avatar, or small before the subtitle. Each suite's
   three mark colours (brands/<suite>.css), so a Desk row shows mako.watch's mark in mako.watch's colours. */
.mk-mark-business { --mk-deep: #c2570c; --mk-light: #ff9a3c; --mk-dot: #47b5ff; }
.mk-mark-community { --mk-deep: #b03a68; --mk-light: #f27aa5; --mk-dot: #f0a23a; }
.mk-mark-design { --mk-deep: #9b2c8e; --mk-light: #e06ad0; --mk-dot: #f0a23a; }
.mk-mark-directory { --mk-deep: #0f7a4a; --mk-light: #2fbf79; --mk-dot: #f0a23a; }
.mk-mark-financial { --mk-deep: #135468; --mk-light: #2a9dbd; --mk-dot: #f0a23a; }
.mk-mark-legal { --mk-deep: #3a3fb0; --mk-light: #7f86f5; --mk-dot: #f0a23a; }
.mk-mark-support { --mk-deep: #8a6d0a; --mk-light: #eac435; --mk-dot: #47b5ff; }
.mk-mark-watch { --mk-deep: #4f7a0a; --mk-light: #a3cf3d; --mk-dot: #f0a23a; }
.mk-record-mark { background: var(--mk-surface); border: 1px solid var(--mk-edge); }
.mk-record-mark .mk-mark { width: 30px; height: 30px; padding: 2px; background: none; box-shadow: none; }
.mk-record-sub > .mk-mark { width: 16px; height: 16px; margin-inline-end: var(--mk-s-1); padding: 0; vertical-align: -3px; background: none; box-shadow: none; }
/* An agent's avatar (model-avatar): the provider's mark on the surface, its version in a pill at the bottom end. */
.mk-model-avatar { position: relative; display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border: 1px solid var(--mk-edge); border-radius: 50%; background: var(--mk-surface); color: var(--mk-ink); }
.mk-model-avatar > svg { width: 52%; height: 52%; fill: currentColor; }
.mk-model-avatar > .mk-icon { width: 20px; height: 20px; color: var(--mk-brand-ink); }
.mk-model-claude { color: var(--mk-model-claude); }
.mk-model-gemini { color: var(--mk-model-gemini); }
.mk-model-avatar-lg { width: 56px; height: 56px; }
.mk-model-avatar-lg > .mk-icon { width: 28px; height: 28px; }
.mk-model-version { position: absolute; inset-block-end: -3px; inset-inline-end: -8px; padding: 0 var(--mk-s-1); border: 2px solid var(--mk-canvas); border-radius: 999px; background: var(--mk-tint); color: var(--mk-brand-ink); font-size: 10px; font-weight: 800; line-height: 14px; white-space: nowrap; }
.mk-model-avatar > .mk-record-dot { inset-block-start: -1px; inset-block-end: auto; }
.mk-record-one .mk-record-in { align-items: center; }
.mk-record-one .mk-record-note { -webkit-line-clamp: 1; }

/* A conversation (chat-bubble): the other side's bubbles on the start side on the surface, the reader's own on the end
   side in the brand fill, each with its time small under it; a centred muted line between them (.mk-chat-note). */
.mk-chat { display: grid; gap: var(--mk-s-3); margin: 0; padding: 0; list-style: none; }
.mk-bubble { display: grid; justify-items: start; gap: var(--mk-s-1); max-width: min(86%, 40rem); }
.mk-bubble-mine { justify-items: end; justify-self: end; }
.mk-bubble-body { display: grid; gap: var(--mk-s-1); min-width: 0; max-width: 100%; padding: var(--mk-s-2) var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 18px 18px 18px 4px; background: var(--mk-surface); color: var(--mk-ink); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-line; }
.mk-bubble-mine .mk-bubble-body { border-color: var(--mk-brand); border-radius: 18px 18px 4px 18px; background: var(--mk-brand-fill); color: var(--mk-on-brand); }
.mk-bubble-when { padding-inline: var(--mk-s-2); color: var(--mk-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.mk-bubble-action { font-size: 13px; font-weight: 700; color: var(--mk-brand-ink); }
.mk-bubble-mine .mk-bubble-action { color: inherit; }
.mk-bubble-more { white-space: normal; }
.mk-bubble-more > summary { display: grid; gap: 2px; min-height: 44px; align-content: center; cursor: pointer; list-style: none; }
.mk-bubble-more > summary::-webkit-details-marker { display: none; }
.mk-bubble-more > summary strong { font-weight: 650; }
.mk-bubble-more > summary span { color: var(--mk-muted); font-size: 13px; }
.mk-bubble-more[open] > summary { margin-bottom: var(--mk-s-2); }
.mk-bubble-more h3 { margin-top: var(--mk-s-2); color: var(--mk-muted); font-size: 12px; }
.mk-bubble-more ul { margin: var(--mk-s-1) 0 0; padding-inline-start: var(--mk-s-5); font-size: 14px; }
.mk-chat-note { justify-self: center; padding: 0 var(--mk-s-3); color: var(--mk-muted); font-size: 12px; text-align: center; }
.mk-record-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mk-tint); color: var(--mk-brand-ink); font-size: 14px; font-weight: 700; }
.mk-record-avatar .mk-icon { width: 20px; height: 20px; }
.mk-record-main { display: grid; flex: 1; gap: var(--mk-s-1); min-width: 0; }
.mk-record-top { display: flex; gap: var(--mk-s-2); align-items: baseline; min-width: 0; }
.mk-record-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-record-top time { flex: 0 0 auto; color: var(--mk-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.mk-record-sub { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.mk-record-n { display: inline-block; margin-inline-start: var(--mk-s-1); padding: 0 var(--mk-s-1); border-radius: 999px; background: var(--mk-tint); color: var(--mk-muted); font-size: 11px; font-weight: 650; }
.mk-record-note { display: -webkit-box; overflow: hidden; color: var(--mk-muted); font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.mk-record-tags { display: flex; flex-wrap: wrap; gap: var(--mk-s-1); margin-top: 2px; }
/* A row of read-only labels (a plan's features in Admin): .mk-tag items in a list. */
.mk-tags { display: flex; flex-wrap: wrap; gap: var(--mk-s-1); margin: 0; padding: 0; list-style: none; }
.mk-tag { display: inline-flex; align-items: center; gap: var(--mk-s-1); max-width: 100%; min-height: 22px; padding: 1px var(--mk-s-2); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-surface); color: var(--mk-muted); font-size: 11.5px; font-weight: 600; overflow-wrap: anywhere; }
.mk-tag .mk-icon { flex: 0 0 auto; width: 13px; height: 13px; }
.mk-tag-on { border-color: transparent; background: var(--mk-tint); color: var(--mk-brand-ink); }
.mk-tag-urgent { border-color: color-mix(in srgb, var(--mk-negative) 45%, transparent); color: var(--mk-negative); }
.mk-tag-warn { border-color: color-mix(in srgb, var(--mk-warn) 45%, transparent); color: var(--mk-warn); }
.mk-tag-done { background: transparent; }
/* live-status: a quiet Live dot that live.js paints (data-state live, connecting, polling; data-error shows Retry). */
.mk-live-status { display: inline-flex; align-items: center; gap: var(--mk-s-2); color: var(--mk-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.mk-live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mk-muted); opacity: .6; }
.mk-live-status[data-state="live"] .mk-live-dot { background: var(--mk-brand); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-brand) 22%, transparent); }
.mk-live-status[data-state="connecting"] .mk-live-dot { animation: mk-bg-breathe 1.6s ease-in-out infinite; }
.mk-live-word, .mk-live-retry { display: none; }
.mk-live-status:not([data-error])[data-state="live"] [data-when="live"], .mk-live-status:not([data-error])[data-state="connecting"] [data-when="connecting"], .mk-live-status:not([data-error])[data-state="polling"] [data-when="polling"], .mk-live-status[data-error] [data-when="error"] { display: inline; }
.mk-live-status[data-error] { color: var(--mk-warn); }
.mk-live-status[data-error] .mk-live-dot { background: var(--mk-warn); opacity: 1; }
.mk-live-status[data-error] .mk-live-retry { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .mk-live-status[data-state="connecting"] .mk-live-dot { animation: none; } }
.mk-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mk-s-2); }

/* Due (KIT.md, "Due"): the due tag is a .mk-tag with the state's tone; snooze is a row of chips and a day picker. */
.mk-due time { font-variant-numeric: tabular-nums; }
.mk-snooze { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); align-items: center; min-width: 0; }
.mk-snooze-label { display: inline-flex; gap: var(--mk-s-1); align-items: center; color: var(--mk-muted); font-size: 13px; font-weight: 650; }
.mk-snooze-label .mk-icon { width: 16px; height: 16px; }
.mk-snooze-choices { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); min-width: 0; }
.mk-snooze .mk-chip { flex: 0 0 auto; color: var(--mk-ink); font-family: inherit; font-size: 13px; cursor: pointer; }
.mk-snooze-date { position: relative; padding-inline-end: var(--mk-s-1); }
.mk-snooze-date input { min-height: 40px; max-width: 10.5rem; border: 0; background: transparent; color: inherit; font: inherit; }
.mk-snooze[aria-busy="true"], .mk-record-move[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* Pipeline (KIT.md, "Pipeline"): a track of stage chips with counts, then the stages one after another on a phone and
   side by side as columns from 1200px. A record moves with its stage chip (a select that posts on change), never by
   dragging. */
.mk-pipeline { display: grid; gap: var(--mk-gap-card); min-width: 0; }
.mk-pipeline-track .mk-chip { flex: 0 0 auto; gap: var(--mk-s-1); }
.mk-pipeline-cols { display: grid; gap: var(--mk-gap-section); min-width: 0; }
.mk-pipeline-stage { display: grid; gap: var(--mk-gap-in); min-width: 0; align-content: start; scroll-margin-top: calc(var(--mk-bar-h, 0px) + var(--mk-s-4)); }
.mk-pipeline-head { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); align-items: center; margin: 0; font-size: 15px; }
.mk-pipeline-value { margin-inline-start: auto; color: var(--mk-muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-pipeline-none { margin: 0; padding: var(--mk-s-3); border: 1px dashed var(--mk-edge); border-radius: var(--mk-r-tile); font-size: 13px; text-align: center; }
.mk-pipeline-closed .mk-pipeline-head { color: var(--mk-muted); }
.mk-record-moves { display: grid; border: 1px solid var(--mk-edge); border-radius: var(--mk-r-tile); background: var(--mk-glass-2); }
.mk-record-moves .mk-record-in { border: 0; background: none; }
.mk-record-moves:has(a.mk-record-in:hover) { border-color: var(--mk-brand); }
.mk-record-dim.mk-record-moves { opacity: .75; }
.mk-record-dim.mk-record-moves .mk-record-in { opacity: 1; }
.mk-record-move { display: flex; min-width: 0; padding: 0 var(--mk-s-3) var(--mk-s-3); }
.mk-stage-chip { flex: 0 1 auto; min-width: 0; padding: 0; color: var(--mk-ink); }
.mk-stage-chip select { min-width: 0; max-width: 100%; min-height: 42px; padding: 0 var(--mk-s-2) 0 var(--mk-s-3); border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
@media (min-width: 1200px) {
  .mk-pipeline-track { display: none; }
  .mk-pipeline-cols { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--mk-gap-card); align-items: start; }
  .mk-pipeline-stage { padding: var(--mk-s-2); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-tile); background: var(--mk-glass); }
  .mk-pipeline-head { padding: var(--mk-s-1) var(--mk-s-1) 0; }
  /* A column is narrow: names wrap instead of being cut, and the initials or icon shrink. */
  .mk-pipeline .mk-record-in { gap: var(--mk-s-2); padding: var(--mk-s-2); }
  .mk-pipeline .mk-record-title { white-space: normal; overflow-wrap: break-word; }
  .mk-pipeline .mk-record-top { flex-wrap: wrap; }
  .mk-pipeline .mk-record-avatar { width: 24px; height: 24px; font-size: 10px; }
  .mk-pipeline .mk-record-avatar .mk-icon { width: 14px; height: 14px; }
  .mk-pipeline .mk-record-move { padding: 0 var(--mk-s-2) var(--mk-s-2); }
}

/* Queue: one item at a time (KIT.md, "Queue"), and the AI draft a person checks before it goes anywhere. */
.mk-queue { display: grid; gap: var(--mk-s-3); min-width: 0; }
.mk-queue-head { display: flex; flex-wrap: wrap; gap: var(--mk-s-2) var(--mk-s-3); align-items: baseline; }
.mk-queue-title { margin: 0; font-size: 17px; }
.mk-queue-left { color: var(--mk-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.mk-queue-all { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: auto; color: var(--mk-brand-ink); font-size: 14px; font-weight: 600; }
.mk-queue-item { min-width: 0; }
.mk-queue-undo { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); align-items: center; justify-content: space-between; padding: var(--mk-s-2) var(--mk-s-3); border: 1px dashed var(--mk-edge); border-radius: var(--mk-r-tile); font-size: 13px; }
.mk-draft { display: grid; gap: var(--mk-s-2); min-width: 0; padding: var(--mk-s-3); border: 1px solid var(--mk-edge); border-inline-start: 3px solid var(--mk-brand); border-radius: 14px; background: var(--mk-tint); }
.mk-draft-label { display: flex; gap: var(--mk-s-1); align-items: center; margin: 0; color: var(--mk-brand-ink); }
.mk-draft-label .mk-icon { width: 14px; height: 14px; }
.mk-draft-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.mk-draft-why { margin: 0; font-size: 13px; }
.mk-draft-actions { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); }
.mk-draft-actions form { display: contents; }
/* ===== Layout (November 16, 2026): one spacing scale, a page width per kind of page, columns that fill wide screens,
   and one edge line. The rules in words are in KIT.md, "Layout"; tools/spacing.ts checks every gap, padding and margin.
   - Steps: --mk-gap-in inside a card, --mk-pad-card to a card's edge, --mk-gap-card between cards, --mk-gap-section
     between sections, --mk-gutter at the page's side. They grow together at 900px and 1800px.
   - Widths: <body class="mk-layout-reading"> or <main data-mk-layout="reading"> (forms, settings, legal, one question:
     46rem), list (lists, list + detail), dashboard (boards; the default). The shell is that width plus the gutters.
   - Edges: the app bar, the content and the footer share the shell's inner edges at every width.
   - Columns: .mk-board (cards, 1 to --mk-cols-max columns of at least --mk-col-min), .mk-split (a list or filters beside
     the detail from 1200px), .mk-split-rail (and a rail on the right from 1400px), .mk-sections (sections a step apart). ===== */
/* A page says its kind on <body class="mk-layout-..."> or on its <main data-mk-layout="..."> (kit views do this). */
/* One limited-width workspace (owner, November 18, 2026): the app bar, the content and the footer share one max width
   (--mk-frame-w) on every page, centred; the modules find their columns inside it (boards, splits, the settings list).
   Only a backdrop picture runs the screen's full width. A page kind only shapes the content: reading is a centred
   measure for long text. */
.mk-layout-reading main, main[data-mk-layout="reading"] { width: 100%; max-width: var(--mk-w-reading); margin-inline: auto; }

/* Settings pages (data-mk-layout="settings"): the section list (settings-nav) and the section cards
   (.mk-settings-body). Phones: one column, the list a row of icon tabs. From 900px: the list sticky on the left
   (--mk-side-w), the cards in a board that grows to 2, 3 and (ultra-wide) 4 columns; text keeps a readable measure. */
main[data-mk-layout="settings"] { display: grid; gap: var(--mk-gap-section); align-items: start; min-width: 0; }
.mk-settings-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mk-gap-card); min-width: 0; } /* cards in a row share one height */
.mk-settings-body > * { min-width: 0; }
.mk-settings-body p { max-width: 68ch; }
.mk-settings-nav { position: sticky; z-index: 2; top: calc(var(--mk-bar-h) + var(--mk-safe-top)); min-width: 0; }
.mk-settings-nav ul { display: flex; gap: var(--mk-s-1); margin: 0; padding: var(--mk-s-1); overflow-x: auto; list-style: none; border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-sheet-surface); scrollbar-width: none; }
.mk-settings-nav a { display: inline-flex; align-items: center; justify-content: center; gap: var(--mk-s-2); min-width: 44px; min-height: 44px; padding: 0 var(--mk-s-3); border-radius: 999px; color: var(--mk-muted); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.mk-settings-nav a .mk-icon { flex: none; width: 18px; height: 18px; }
.mk-settings-nav a:hover { background: var(--mk-tint); color: var(--mk-brand-ink); }
/* The section in view is marked quietly (the tint and brand ink); only the app's current tab wears the brand fill. */
.mk-settings-nav a[aria-current="true"] { background: var(--mk-tint); color: var(--mk-brand-ink); }
@media (max-width: 599.98px) {
  .mk-settings-nav:not(:has(> ul)) { display: none; } /* no sections: nothing to show */
  .mk-settings-nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 900px) {
  .mk-settings-body { --mk-settings-cols: 3; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(360px, calc((100% - (var(--mk-settings-cols) - 1) * var(--mk-gap-card)) / var(--mk-settings-cols)))), 1fr)); }
}
/* At most three columns, also on ultra-wide screens: a short settings page keeps cards of a sensible width that fill
   the page rather than four narrow cards in one row (owner, November 17, 2026). */
@media (min-width: 900px) {
  :root { --mk-gap-in: var(--mk-s-3); --mk-pad-card: var(--mk-s-5); --mk-gap-card: var(--mk-s-4); --mk-gap-section: var(--mk-s-8); --mk-gutter: var(--mk-s-6); }
}
@media (min-width: 1800px) {
  :root { --mk-pad-card: var(--mk-s-6); --mk-gap-card: var(--mk-s-5); --mk-gap-section: var(--mk-s-12); --mk-gutter: var(--mk-s-8); }
}
@media (min-width: 2400px) {
  :root { --mk-side-w: minmax(300px, 22rem); --mk-rail-w: minmax(340px, 26rem); }
}
@media (min-width: 3000px) {
  html { font-size: 120%; }
}

/* One edge line. Phone: the bars are as wide as the content (the gutter on each side). Wider: the shell is the one
   workspace (owner, November 18, 2026): the frame's max width plus the gutters, centred, so the app bar, the content and
   the footer start and end on the same line at every width; only a backdrop picture runs past it. */
.mk-header, .mk-appbar, .mk-tabbar, .mk-bottombar, .mk-ticker { width: calc(100% - 2 * var(--mk-gutter)); }
.mk-shell > .mk-site-foot { margin-inline: var(--mk-gutter); }
/* The bars follow their container (the 480px shell, or an app's own column); the fixed tab bar follows the shell's width. */
@media (max-width: 899.98px) { .mk-header, .mk-appbar { max-width: none; } .mk-tabbar { max-width: calc(480px - 2 * var(--mk-gutter)); } }
@media (min-width: 900px) {
  .mk-shell { max-width: calc(var(--mk-frame-w) + 2 * var(--mk-gutter)); margin-inline: auto; padding-inline: var(--mk-gutter); }
  .mk-shell > :is(.mk-header, .mk-appbar, .mk-ticker) { width: 100%; max-width: var(--mk-page-w); margin-inline: auto; }
  .mk-shell > :is(main, .mk-main), .mk-shell > :is(.mk-split, .mk-split-rail) > :is(main, .mk-main) { padding-inline: 0; } /* a main column in a split ends on the workspace's edge too */
  .mk-shell > .mk-site-foot { max-width: var(--mk-page-w); margin-inline: auto; }
  .mk-auth-page .mk-shell > .mk-site-foot { margin-inline: max(var(--mk-gutter), calc((100% - var(--mk-page-w)) / 2)); }
  .mk-hero, .mk-block, .mk-landing-member .mk-hero { padding-inline: 0; }
  :is(.mk-tabbar, .mk-bottombar) { width: min(var(--mk-page-w), calc(100% - 2 * var(--mk-gutter))); max-width: none; }
  /* The app's tabs at the frame's width (owner, November 18, 2026): grouped in the middle of the bar, each a tab's
     width, never stretched across it. */
  .mk-bottombar { grid-auto-columns: minmax(0, 8rem); justify-content: center; }
}

/* Sections of a page: one step apart, the same everywhere. */
.mk-sections { display: grid; gap: var(--mk-gap-section); min-width: 0; }
.mk-sections > * { min-width: 0; }

/* A board: cards in as many equal columns as fit (at least --mk-col-min wide, at most --mk-cols-max), so wide screens
   fill with columns instead of stretching one card or leaving a strip. A heading or .mk-span takes the whole row. */
.mk-board { display: grid; gap: var(--mk-gap-card); grid-template-columns: minmax(0, 1fr); min-width: 0; }
.mk-board > * { min-width: 0; }
/* Cards in a row are the same height, also when each sits in a list item or wrapper (role="listitem"). */
.mk-board > * > .mk-card:only-child { height: 100%; }
.mk-board > :is(h2, h3, .mk-span, .mk-empty) { grid-column: 1 / -1; }
@media (min-width: 600px) {
  /* Cards a column wide, as many as fit (at most --mk-cols-max); a row with fewer cards than columns sits centred, so
     the group is symmetric, never a void on one side (owner, November 17, 2026). A full row ends on the board's edges
     (owner, November 18, 2026: one workspace, its edges the app bar's): the board measures itself (a size container)
     and its columns share its whole width, n columns once n of --mk-col-min (300px) and their gaps fit. */
  .mk-board { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; container: mk-board / inline-size; }
  .mk-board > * { flex: 0 1 100%; }
  .mk-board > :is(h2, h3, .mk-span, .mk-empty) { flex-basis: 100%; }
}
@container mk-board (min-width: 620px) { .mk-board > * { flex-basis: calc((100% - (min(2, var(--mk-cols-max)) - 1) * var(--mk-gap-card)) / min(2, var(--mk-cols-max))); } }
@container mk-board (min-width: 940px) { .mk-board > * { flex-basis: calc((100% - (min(3, var(--mk-cols-max)) - 1) * var(--mk-gap-card)) / min(3, var(--mk-cols-max))); } }
@container mk-board (min-width: 1260px) { .mk-board > * { flex-basis: calc((100% - (min(4, var(--mk-cols-max)) - 1) * var(--mk-gap-card)) / min(4, var(--mk-cols-max))); } }
@container mk-board (min-width: 1580px) { .mk-board > * { flex-basis: calc((100% - (min(5, var(--mk-cols-max)) - 1) * var(--mk-gap-card)) / min(5, var(--mk-cols-max))); } }
@container mk-board (min-width: 620px) { .mk-board > :is(h2, h3, .mk-span, .mk-empty) { flex-basis: 100%; } }

/* List and detail (or filters and results) side by side from 1200px; the side column stays in view. A rail of context
   joins on the right from 1400px (.mk-split-rail). Phones: one column in source order. */
.mk-split, .mk-split-rail { display: grid; gap: var(--mk-gap-section); align-items: start; min-width: 0; }
.mk-split > *, .mk-split-rail > * { min-width: 0; }
@media (min-width: 1200px) {
  .mk-split, .mk-split-rail { grid-template-columns: var(--mk-side-w) minmax(0, 1fr); column-gap: var(--mk-gap-card); }
  :is(.mk-split, .mk-split-rail) > .mk-split-side { position: sticky; top: calc(var(--mk-bar-h) + var(--mk-safe-top) + var(--mk-s-6)); }
}
/* Until the rail has its column, it follows the main column (under it), never the narrow side column. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .mk-split-rail > :nth-child(n+3) { grid-column: 2; }
}
@media (min-width: 1400px) {
  .mk-split-rail { grid-template-columns: var(--mk-side-w) minmax(0, 1fr) var(--mk-rail-w); }
}
/* Text keeps a readable line inside any column: .mk-measure on a block, and every paragraph in the content at most
   75ch (zero specificity, so a part that wants otherwise just says so). */
.mk-measure { max-width: 68ch; }
:where(.mk-main) :where(p) { max-width: 75ch; }
:where(.mk-main) :where([style*="text-align: center"], .mk-offline) > :where(p) { margin-inline: auto; }
/* App grids (wider than a phone): the board's column count, so a family of four apps fills its row instead of
   leaving three empty columns at 2560px. */
@media (min-width: 900px) {
  .mk-grid > ul { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(260px, calc((100% - (var(--mk-cols-max) - 1) * var(--mk-s-3)) / var(--mk-cols-max)))), 1fr)); }
}
/* Plans: equal columns that fill the row; one plan alone keeps a card's width instead of a third of the page. */
@media (min-width: 600px) {
  .mk-plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
  .mk-plans:has(> :only-child) { grid-template-columns: minmax(0, 28rem); }
}

/* kit Links: another Mako app asks to connect (kit.links.authorize), and the connected apps (kit.links.list). */
.mk-link-abilities { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-link-abilities li { display: flex; align-items: flex-start; gap: var(--mk-s-2); }
.mk-link-abilities .mk-icon { flex: none; width: 20px; height: 20px; margin-block-start: 2px; }
.mk-link-list { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-link-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.mk-link-list li > span { display: grid; gap: 2px; min-width: 0; }
.mk-link-scopes { margin: 0; padding: 0; border: 0; }

/* Field with its action inside (field-action): one control, the field and its icon button together, any width. */
.mk-field-action { display: grid; gap: var(--mk-gap-in); }
.mk-field-action-box { position: relative; display: flex; align-items: stretch; gap: var(--mk-s-2); min-height: 52px; padding-inline: var(--mk-s-4) 0; border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-glass); box-shadow: inset 0 1px 0 var(--mk-hi); }
.mk-field-action-box:focus-within { outline: 2px solid var(--mk-brand); outline-offset: 0; }
.mk-field-action-input { flex: 1; width: 100%; min-width: 0; min-height: 50px; border: 0; outline: 0; background: transparent; color: var(--mk-ink); font-size: 16px; }
.mk-field-action-go { --mk-ib: 52px; flex: none; }
/* The action belongs to the field (owner, Nov 17): flush with the field's end, the field's full height, square on its
   inner side with a hairline against the words, rounded only on the outer side to match the field's radius; no circle,
   pill, ring or shadow. Quiet (muted on a brand tint) until the field has words (data-filled, mk.js), then the brand. */
.mk-field-action-box .mk-ib.mk-field-action-go { align-self: stretch; height: auto; min-height: 44px; margin: 0; border: 0; border-inline-start: 1px solid var(--mk-edge); border-radius: 0; border-start-end-radius: calc(var(--mk-r-field) - 1px); border-end-end-radius: calc(var(--mk-r-field) - 1px); background: color-mix(in srgb, var(--mk-brand) 6%, transparent); box-shadow: none; color: var(--mk-muted); -webkit-backdrop-filter: none; backdrop-filter: none; transition: background var(--mk-m-quick) var(--mk-e-out), color var(--mk-m-quick) var(--mk-e-out); }
.mk-field-action-box .mk-ib.mk-field-action-go::after { display: none; }
.mk-field-action-box .mk-ib.mk-field-action-go:hover { background: var(--mk-tint); color: var(--mk-brand-ink); }
.mk-field-action-box[data-filled] .mk-ib.mk-field-action-go { background: color-mix(in srgb, var(--mk-brand) 16%, transparent); color: var(--mk-brand-ink); }
.mk-field-action-box[data-filled] .mk-ib.mk-field-action-go.mk-ib-brand { background: var(--mk-brand-fill); color: var(--mk-on-brand); }
/* Inside .mk-field the input is the box's, not a second field: no border, background or outline of its own. */
.mk-field-action .mk-field-action-input { align-self: center; min-height: 50px; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; }
.mk-field-action .mk-field-action-input:focus { border: 0; outline: 0; }
.mk-field-action-multi { align-items: stretch; }
.mk-field-action-multi .mk-field-action-input { align-self: stretch; min-height: 96px; padding-block: var(--mk-s-2); resize: vertical; font: inherit; font-size: 16px; line-height: 1.5; }

/* ---------- Widgets, gallery, compare, sortable lists ----------
   Widgets (components/widget): a home of widgets is a .mk-board.mk-widgets. Starred widgets show at every width; the
   others (.mk-widget-extra) show from 2400px, and below that only in .mk-widgets-more (their names, one tap away).
   On phones a widget is compact: its line, and only the body parts marked .mk-widget-keep. */
.mk-widget { align-content: start; }
.mk-widget-head { display: flex; align-items: center; min-width: 0; }
.mk-widget-link { display: flex; flex: 1 1 auto; align-items: center; gap: var(--mk-s-2); min-width: 0; min-height: 44px; margin: calc(-1 * var(--mk-s-2)) 0; color: inherit; text-decoration: none; }
.mk-widget-link > .mk-icon:first-child { flex: none; width: 20px; height: 20px; color: var(--mk-brand); }
.mk-widget-link h2 { flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mk-widget-count { flex: none; min-width: 22px; padding: 0 var(--mk-s-2); border-radius: 999px; background: var(--mk-tint); color: var(--mk-brand-ink); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.mk-widget-go { flex: none; width: 18px; height: 18px; margin-inline-start: auto; color: var(--mk-muted); }
a.mk-widget-link:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.mk-widget-line { display: flex; align-items: center; gap: var(--mk-s-1); margin: 0; color: var(--mk-muted); font-size: 13.5px; }
.mk-widget-line .mk-icon { flex: none; width: 16px; height: 16px; }
.mk-widget-body { display: grid; gap: var(--mk-gap-in); min-width: 0; }
.mk-widget-attention { border-inline-start: 3px solid var(--mk-brand); }
.mk-widget-attention .mk-widget-count { background: var(--mk-brand-fill); color: var(--mk-on-brand); }
.mk-widget-not_reporting { box-shadow: none; background: transparent; }
.mk-widget-not_reporting .mk-widget-link > .mk-icon:first-child { color: var(--mk-muted); }
.mk-widget-rows { display: grid; gap: var(--mk-s-1); margin: 0; padding: 0; list-style: none; }
.mk-widget-rows > li { display: flex; align-items: center; gap: var(--mk-s-2); min-width: 0; min-height: 44px; }
.mk-widget-rows > li > :is(a, span):not(.mk-ib):not(.mk-tag):first-child, .mk-widget-rows > li > :is(svg, img):first-child + :is(a, span) { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-widget-rows .mk-progress { flex: 0 0 64px; }
.mk-widgets-more-wrap { display: grid; gap: var(--mk-gap-in); margin-block-start: var(--mk-gap-section); }
.mk-widgets-more { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
@media (max-width: 599px) {
  .mk-widgets > .mk-widget-extra { display: none; }
  .mk-widget-body > :not(.mk-widget-keep) { display: none; }
}
@media (min-width: 600px) and (max-width: 2399px) {
  .mk-widgets > .mk-widget-extra { display: none; }
}
@media (min-width: 2400px) {
  .mk-widgets-more-wrap { display: none; }
}

/* Gallery (components/gallery): thumbnails, and the full-screen picture with swipe and arrows. */
.mk-gallery-thumbs { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-gallery-thumb { display: block; width: 88px; height: 64px; overflow: hidden; border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-surface); }
.mk-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mk-gallery-file { display: inline-flex; align-items: center; gap: var(--mk-s-1); min-height: 44px; padding: 0 var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 999px; font-size: 13px; }
.mk-gallery-file .mk-icon { width: 16px; height: 16px; }
.mk-gallery-view { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--mk-night-canvas); color: var(--mk-night-ink); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mk-gallery-view::before { display: none; }
.mk-gallery-view::backdrop { background: var(--mk-night-canvas); }
.mk-gallery-view .mk-ib { color: var(--mk-night-ink); border-color: var(--mk-night-line); background: var(--mk-night-surface); }
.mk-gallery-view[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
.mk-gallery-stage { display: grid; place-items: center; min-height: 0; padding: var(--mk-s-4); overflow: hidden; touch-action: pan-y pinch-zoom; }
.mk-gallery-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--mk-r-field); }
.mk-gallery-caption { margin: 0; padding: 0 var(--mk-gutter); font-size: 13px; text-align: center; }
.mk-gallery-bar { display: flex; align-items: center; justify-content: center; gap: var(--mk-s-3); padding: var(--mk-s-3) var(--mk-gutter) calc(var(--mk-s-3) + env(safe-area-inset-bottom)); }
.mk-gallery-pos { min-width: 48px; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }

/* Compare (components/compare): before and after, side by side or swiped. */
.mk-compare { display: grid; gap: var(--mk-gap-in); min-width: 0; margin: 0; }
.mk-compare-modes { justify-self: start; }
.mk-compare-frame { display: grid; gap: var(--mk-gap-in); grid-template-columns: minmax(0, 1fr); min-width: 0; }
@media (min-width: 700px) { .mk-compare[data-mode="side"] .mk-compare-frame { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.mk-compare-shot { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-surface); }
.mk-compare-shot img { display: block; width: 100%; height: auto; }
.mk-compare-tag { position: absolute; inset-block-start: var(--mk-s-2); inset-inline-start: var(--mk-s-2); padding: 0 var(--mk-s-2); border-radius: 999px; background: var(--mk-glass); color: var(--mk-ink); font-size: 12px; font-weight: 700; line-height: 22px; }
.mk-compare[data-mode="swipe"] .mk-compare-frame { grid-template-columns: minmax(0, 1fr); grid-template-areas: "shot"; }
.mk-compare[data-mode="swipe"] .mk-compare-shot { grid-area: shot; }
.mk-compare[data-mode="swipe"] .mk-compare-after { clip-path: inset(0 0 0 var(--mk-compare-at, 50%)); }
.mk-compare[data-mode="swipe"] .mk-compare-after .mk-compare-tag { inset-inline-start: auto; inset-inline-end: var(--mk-s-2); }
.mk-compare-slider { display: none; }
.mk-compare[data-mode="swipe"] .mk-compare-slider { display: block; }
.mk-compare-slider input { width: 100%; min-height: 44px; accent-color: var(--mk-brand); }
.mk-compare-caption { color: var(--mk-muted); font-size: 13px; }

/* Sortable list ([data-mk-sort]): rows reordered by dragging the handle or with the up and down buttons; each move
   tells its autosave form, which saves the new order (the rows' hidden inputs, in page order). */
.mk-sort { display: grid; gap: var(--mk-s-1); margin: 0; padding: 0; list-style: none; }
.mk-sort > li { display: flex; align-items: center; gap: var(--mk-s-2); min-width: 0; min-height: 52px; padding: 0 var(--mk-s-2); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-surface); }
.mk-sort > li > .mk-sort-name { display: flex; flex: 1 1 auto; align-items: center; gap: var(--mk-s-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-sort-handle { flex: none; cursor: grab; touch-action: none; }
.mk-sort > li.mk-sort-dragging { opacity: 0.7; box-shadow: var(--mk-shadow); }
.mk-sort input[type="checkbox"]:not(.mk-sr) { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--mk-brand); }
/* On a phone a row keeps its name whole: dragging the handle moves it; the up and down buttons show from 600px
   (and for keyboards, which reach them there). */
@media (max-width: 599px) { .mk-sort [data-mk-sort-up], .mk-sort [data-mk-sort-down] { display: none; } }

/* Icon buttons inside containers (owner, November 16, 2026): inside a sheet's body, a card, a menu or list row, a
   widget or a sortable row, an icon button is the compact in-context size: a 36px quiet circle with an 18px glyph in the
   muted tone, brand only when active (pressed, current, brand). Its tap target stays 44px: the ::before hit area reaches
   4px past the circle. The app bar, the bottom bar, a sheet's own close, a field's action and the picture viewer keep the
   full size. Products never pick sizes. */
:root { --mk-ib-in: 36px; --mk-ib-in-glyph: 18px; }
:is(.mk-sheet-body, .mk-card, .mk-menu-item, .mk-widget, .mk-sort) .mk-ib:not(:is(.mk-appbar, .mk-bottombar, .mk-sheet-head, .mk-header-actions, .mk-gallery-view, .mk-field-action-box) .mk-ib):not(.mk-search-clear) {
  --mk-ib: var(--mk-ib-in); border-color: transparent; background: transparent; color: var(--mk-muted); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
:is(.mk-sheet-body, .mk-card, .mk-menu-item, .mk-widget, .mk-sort) .mk-ib:not(:is(.mk-appbar, .mk-bottombar, .mk-sheet-head, .mk-header-actions, .mk-gallery-view, .mk-field-action-box) .mk-ib):not(.mk-search-clear)::before {
  content: ""; position: absolute; inset: calc((var(--mk-ib-in) - 44px) / 2); border-radius: 50%;
}
:is(.mk-sheet-body, .mk-card, .mk-menu-item, .mk-widget, .mk-sort) .mk-ib:not(:is(.mk-appbar, .mk-bottombar, .mk-sheet-head, .mk-header-actions, .mk-gallery-view, .mk-field-action-box) .mk-ib):not(.mk-search-clear) .mk-icon { width: var(--mk-ib-in-glyph); height: var(--mk-ib-in-glyph); }
:is(.mk-sheet-body, .mk-card, .mk-menu-item, .mk-widget, .mk-sort) .mk-ib:not(:is(.mk-appbar, .mk-bottombar, .mk-sheet-head, .mk-header-actions, .mk-gallery-view, .mk-field-action-box) .mk-ib):not(.mk-search-clear):hover { background: var(--mk-tint); color: var(--mk-brand-ink); }
:is(.mk-sheet-body, .mk-card, .mk-menu-item, .mk-widget, .mk-sort) :is(.mk-ib.mk-ib-brand, .mk-ib[aria-pressed="true"], .mk-ib[aria-current="page"], label.mk-ib:has(input:checked)):not(:is(.mk-appbar, .mk-bottombar, .mk-sheet-head) .mk-ib) {
  background: var(--mk-brand-fill); color: var(--mk-on-brand); border-color: var(--mk-brand);
}
@media (min-width: 2400px) { :root { --mk-ib-in: 40px; --mk-ib-in-glyph: 20px; } }
label.mk-ib:has(input:focus-visible) { outline: 2.5px solid var(--mk-brand); outline-offset: 3px; }
/* The account drawer hangs from the app bar, so its backdrop cannot blur the bar: the page under it blurs instead, so
   nothing behind any sheet is readable. */
body:has(.mk-sheet-top[open]) :is(.mk-main, main:not(:has(dialog[open])), .mk-site-foot, .mk-bottombar) { filter: blur(var(--mk-scrim-blur)); }
/* QR code (kit.qr, App\Support\Qr): the SVG draws its own dark squares on white with a quiet zone, the same in both
   themes so phones read it; centred, scaling down with its container, its caption under it. */
.mk-qr { display: grid; justify-items: center; gap: var(--mk-s-2); margin: 0; }
.mk-qr-code { display: block; max-width: 100%; height: auto; border-radius: var(--mk-s-2); }
.mk-qr figcaption { font-weight: 650; text-align: center; }

/* ===== Field types: one field of any kind, in a form or as a question card's answer (owner, Nov 16: note #18) =====
   The field component draws them; choices hide the native input (still focusable, still in the form) and draw the
   mark on its label, so they work and save without script. One hue: the brand marks what is chosen. */
fieldset.mk-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.mk-field-label { padding: 0; color: var(--mk-ink); font-size: 14px; font-weight: 650; }
legend.mk-field-label { float: inline-start; width: 100%; margin-bottom: var(--mk-s-2); }
legend.mk-field-label + * { clear: both; }
.mk-field .mk-sr { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; } /* the field rule above must not size a hidden choice */
.mk-field .mk-textarea { min-height: 120px; resize: vertical; }
.mk-field-file { position: relative; }
.mk-field .mk-input:disabled { border-style: dashed; background: transparent; color: var(--mk-muted); cursor: not-allowed; }
.mk-field[aria-invalid="true"] :is(.mk-choice, .mk-score-step, .mk-seg) { border-color: var(--mk-negative); }

.mk-choices { display: grid; gap: var(--mk-s-2); }
.mk-choice { display: flex; align-items: center; gap: var(--mk-s-3); min-height: 52px; padding: var(--mk-s-2) var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-surface); color: var(--mk-ink); font-size: 16px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color var(--mk-m-quick) var(--mk-e-out), background-color var(--mk-m-quick) var(--mk-e-out); }
.mk-choice:hover, [data-mk-state="hover"] .mk-choice { border-color: color-mix(in srgb, var(--mk-brand) 45%, var(--mk-edge)); }
.mk-choice:active { transform: scale(.99); }
.mk-choice:has(input:checked) { border-color: var(--mk-brand); background: var(--mk-tint); box-shadow: inset 0 0 0 1px var(--mk-brand); }
.mk-choice:has(input:focus-visible), [data-mk-state="focus"] .mk-choice { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
.mk-choice:has(input:disabled) { opacity: .55; cursor: default; }
.mk-choice-mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--mk-muted); border-radius: 7px; background: var(--mk-surface); color: transparent; transition: background-color var(--mk-m-quick) var(--mk-e-out), border-color var(--mk-m-quick) var(--mk-e-out); }
.mk-choice-radio { border-radius: 50%; }
.mk-choice-mark .mk-icon { width: 14px; height: 14px; stroke-width: 3; }
.mk-choice:has(input:checked) .mk-choice-mark { border-color: var(--mk-brand); background: var(--mk-brand); color: var(--mk-on-brand); }
.mk-choice-text { display: grid; gap: var(--mk-s-1); min-width: 0; }
.mk-choice-text small { color: var(--mk-muted); font-size: 13px; font-weight: 500; }

.mk-yesno { max-width: 320px; }
.mk-yesno .mk-seg-choice { font-size: 15px; }
.mk-yesno .mk-seg-choice:has(input:checked) { background: var(--mk-brand-fill); color: var(--mk-on-brand); }
.mk-yesno .mk-seg-choice:has(input:focus-visible) { outline: 2px solid var(--mk-brand); outline-offset: 2px; }

.mk-rating { display: flex; flex-wrap: wrap; gap: var(--mk-s-1); }
.mk-rating-star { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--mk-muted); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color var(--mk-m-quick) var(--mk-e-out), transform var(--mk-m-quick) var(--mk-e-spring); }
.mk-rating-star .mk-icon { width: 30px; height: 30px; }
.mk-rating-star:has(input:checked), .mk-rating-star:has(~ .mk-rating-star input:checked) { color: var(--mk-brand); }
.mk-rating-star:has(input:checked) svg, .mk-rating-star:has(~ .mk-rating-star input:checked) svg { fill: currentColor; }
@media (hover: hover) {
  .mk-rating:hover .mk-rating-star:hover, .mk-rating:hover .mk-rating-star:has(~ .mk-rating-star:hover) { color: var(--mk-brand); }
}
.mk-rating-star:has(input:focus-visible) { outline: 2px solid var(--mk-brand); outline-offset: -2px; }
.mk-rating-star:active { transform: scale(var(--mk-press)); }

.mk-likert { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
.mk-likert::before { content: ""; position: absolute; top: calc(var(--mk-s-2) + 13px); inset-inline: 10%; height: 2px; border-radius: 2px; background: var(--mk-line); }
.mk-likert-step { position: relative; display: grid; justify-items: center; align-content: start; gap: var(--mk-s-2); min-height: 44px; padding: var(--mk-s-2) 0; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mk-likert-dot { width: 28px; height: 28px; border: 1.5px solid var(--mk-muted); border-radius: 50%; background: var(--mk-surface); transition: background-color var(--mk-m-quick) var(--mk-e-out), border-color var(--mk-m-quick) var(--mk-e-out); }
.mk-likert-word { color: var(--mk-muted); font-size: 12px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
.mk-likert-step:hover .mk-likert-dot { border-color: var(--mk-brand); }
.mk-likert-step:has(input:checked) .mk-likert-dot { border-color: var(--mk-brand); background: var(--mk-brand); box-shadow: inset 0 0 0 4px var(--mk-surface); }
.mk-likert-step:has(input:checked) .mk-likert-word { color: var(--mk-ink); }
.mk-likert-step:has(input:focus-visible) .mk-likert-dot { outline: 2px solid var(--mk-brand); outline-offset: 3px; }

.mk-score { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--mk-s-1); }
@media (min-width: 560px) { .mk-score { grid-template-columns: repeat(11, minmax(0, 1fr)); } }
.mk-score-step { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--mk-edge); border-radius: 12px; background: var(--mk-surface); color: var(--mk-ink); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--mk-m-quick) var(--mk-e-out), border-color var(--mk-m-quick) var(--mk-e-out); }
.mk-score-step:hover { border-color: var(--mk-brand); }
.mk-score-step:has(input:checked) { border-color: var(--mk-brand); background: var(--mk-brand-fill); color: var(--mk-on-brand); }
.mk-score-step:has(input:focus-visible) { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
.mk-score-ends { display: flex; justify-content: space-between; gap: var(--mk-s-3); margin: 0; color: var(--mk-muted); font-size: 13px; font-weight: 500; }

.mk-combo { position: relative; }
.mk-combo-list { position: absolute; z-index: 40; top: calc(100% + var(--mk-s-1)); inset-inline: 0; max-height: 264px; overflow: auto; margin: 0; padding: 0; border: 1px solid var(--mk-edge); border-radius: var(--mk-r-field); background: var(--mk-sheet-surface); box-shadow: var(--mk-shadow); list-style: none; }
.mk-combo-option { display: flex; align-items: baseline; justify-content: space-between; gap: var(--mk-s-3); min-height: 44px; padding: var(--mk-s-2) var(--mk-s-3); border-radius: 12px; color: var(--mk-ink); font-size: 16px; font-weight: 500; cursor: pointer; }
.mk-combo-option small { flex: none; color: var(--mk-muted); font-size: 13px; }
.mk-combo-option:hover, .mk-combo-option[aria-selected="true"] { background: var(--mk-tint); }
.mk-combo-option mark { background: none; color: var(--mk-brand-ink); font-weight: 750; }
.mk-combo-none { margin: 0; color: var(--mk-muted); font-size: 13px; font-weight: 500; }

.mk-field-group { display: grid; gap: var(--mk-s-4); min-width: 0; margin: 0; padding: var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); background: var(--mk-glass); box-shadow: inset 0 1px 0 var(--mk-hi); }
.mk-field-group-title { float: inline-start; width: 100%; padding: 0; color: var(--mk-ink); font-size: 17px; font-weight: 750; }
.mk-field-group-title + * { clear: both; }
.mk-field-group-text { margin: 0; color: var(--mk-muted); font-size: 14px; }

.mk-qcard-fieldwrap { display: grid; gap: var(--mk-s-3); }
.mk-qcard-fieldwrap .mk-qcard-send { justify-self: end; }

/* Catalog: field states drawn without the pointer. */
[data-mk-state="focus"] > .mk-field .mk-input { outline: 2.5px solid var(--mk-brand); outline-offset: 1px; }

/* The avatar is the photo control (owner, November 16, 2026): <label class="mk-avatar-pick"> holding the avatar, the
   file input (invisible, over the whole avatar, so a tap or a dropped file chooses a photo) and a small camera badge. Put
   it in an autosave form with files, so the photo saves as soon as it is chosen. */
.mk-avatar-pick { position: relative; display: inline-grid; flex: none; border-radius: 50%; cursor: pointer; }
.mk-avatar-pick input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mk-avatar-pick-badge { position: absolute; inset-block-end: calc(-1 * var(--mk-s-1)); inset-inline-end: calc(-1 * var(--mk-s-1)); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--mk-edge); border-radius: 50%; background: var(--mk-sheet-surface, var(--mk-surface)); color: var(--mk-muted); box-shadow: 0 1px 3px var(--mk-edge); pointer-events: none; }
.mk-avatar-pick-badge .mk-icon { width: 16px; height: 16px; }
.mk-avatar-pick:hover .mk-avatar-pick-badge { color: var(--mk-brand-ink); }
.mk-avatar-pick:has(input:focus-visible) { outline: 2.5px solid var(--mk-brand); outline-offset: 3px; }

/* ===== Dictate (owner, Nov 17): the mic inside a field that opts in, blended like field-action's action: a rounded
   square inset within the field's radius, quiet until it listens, then the brand with a gentle pulse (still with
   reduced motion). Tidy up sits beside it after dictating. The field keeps room at its end for them. ===== */
.mk-dictate { position: relative; min-width: 0; }
.mk-dictate > :is(textarea, input) { display: block; width: 100%; padding-inline-end: calc(var(--mk-s-12) + var(--mk-s-2)); }
.mk-dictate:has(.mk-dictate-tidy:not([hidden])) > :is(textarea, input) { padding-inline-end: calc(var(--mk-s-24) + var(--mk-s-2)); }
.mk-dictate-mic, .mk-dictate-tidy { position: absolute; bottom: var(--mk-s-1); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: calc(var(--mk-r-field) - var(--mk-s-1)); background: color-mix(in srgb, var(--mk-brand) 6%, transparent); color: var(--mk-muted); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--mk-m-quick) var(--mk-e-out), color var(--mk-m-quick) var(--mk-e-out); }
.mk-dictate-mic { inset-inline-end: var(--mk-s-1); }
.mk-dictate-tidy { inset-inline-end: calc(var(--mk-s-1) + 48px); }
:is(.mk-dictate-mic, .mk-dictate-tidy)[hidden] { display: none; }
/* A one-line box (a chat's message box) keeps the mic inside it: centred and 36px to the eye, still a 44px target. */
.mk-dictate > :is(textarea[rows="1"], input) ~ :is(.mk-dictate-mic, .mk-dictate-tidy) { top: 50%; bottom: auto; width: 36px; height: 36px; transform: translateY(-50%); }
.mk-dictate > :is(textarea[rows="1"], input) ~ :is(.mk-dictate-mic, .mk-dictate-tidy)::before { content: ""; position: absolute; inset: calc(var(--mk-s-1) * -1); }
:is(.mk-dictate-mic, .mk-dictate-tidy) .mk-icon { width: 20px; height: 20px; }
:is(.mk-dictate-mic, .mk-dictate-tidy):hover, [data-mk-state="hover"] .mk-dictate-mic { background: var(--mk-tint); color: var(--mk-brand-ink); }
:is(.mk-dictate-mic, .mk-dictate-tidy):focus-visible, [data-mk-state="focus"] .mk-dictate-mic { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
.mk-dictate[data-listening] .mk-dictate-mic { background: var(--mk-brand-fill); color: var(--mk-on-brand); animation: mk-dictate-pulse 1.6s var(--mk-e-out) infinite; }
.mk-dictate[data-mk-tidying] .mk-dictate-tidy, .mk-dictate[data-mk-writing] .mk-dictate-mic { animation: mk-saving 1.2s ease-in-out infinite; }
@keyframes mk-dictate-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mk-brand) 45%, transparent); } 70% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--mk-brand) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mk-brand) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .mk-dictate[data-listening] .mk-dictate-mic, .mk-dictate[data-mk-tidying] .mk-dictate-tidy, .mk-dictate[data-mk-writing] .mk-dictate-mic { animation: none; } }
.mk-dictate-note { margin: var(--mk-s-1) 0 0; color: var(--mk-muted); font-size: 13px; font-weight: 500; }
/* A page with no bottom bar (a settings page outside an app) does not keep room for one. */
body:not(:has(.mk-tabbar, .mk-bottombar)) .mk-shell:has(.mk-settings-nav) { padding-bottom: var(--mk-gap-section); }

/* ===== The public footer, layout 2 (footer style columns, version 2; owner, Nov 17). Quiet by design: small muted
   type, generous room, one hairline between the bands, nothing that competes with the page. Wide: a top band, the
   link groups spread evenly (one column per group, up to six) and one quiet row. Phones: the first sentence, the
   essential links, every group a closed 44px row with a chevron, then the same quiet row. ===== */
.mk-site-foot.mk-foot2 { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0; padding-top: var(--mk-s-10); padding-bottom: var(--mk-s-6); }
.mk-foot2 a { color: var(--mk-muted); text-decoration: none; transition: color var(--mk-m-quick) var(--mk-e-out); }
.mk-foot2 a:hover { color: var(--mk-ink); }
.mk-foot2 a:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: 2px; border-radius: 4px; }
.mk-foot2-top { display: grid; gap: var(--mk-s-6); padding-bottom: var(--mk-s-8); }
.mk-foot2-about { display: grid; gap: var(--mk-s-3); max-width: 62ch; }
.mk-foot2-name { display: flex; align-items: center; gap: var(--mk-s-2); margin: 0; color: var(--mk-ink); font-size: 15px; }
.mk-foot2-mark { --u: .3px; width: 30px; height: 30px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.mk-foot2-mark svg, .mk-foot2-mark img { width: 100%; }
.mk-foot2-intro { margin: 0; font-size: 14px; line-height: 1.6; }
.mk-foot2-intro > summary { list-style: none; cursor: pointer; }
.mk-foot2-intro > summary::-webkit-details-marker { display: none; }
.mk-foot2-intro > p { margin: var(--mk-s-2) 0 0; }
.mk-foot2-moreword { color: var(--mk-brand-ink); font-weight: 650; white-space: nowrap; }
.mk-foot2-intro[open] .mk-foot2-moreword { display: none; }
.mk-foot2-crisis { margin: 0; color: var(--mk-ink); font-size: 14px; line-height: 1.6; }
.mk-foot2-crisis a { color: var(--mk-brand-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mk-foot2-place { display: flex; align-items: flex-start; gap: var(--mk-s-2); font-style: normal; }
.mk-foot2-place .mk-icon { flex: none; width: 16px; height: 16px; margin-top: var(--mk-s-1); }
.mk-foot2-place a { color: var(--mk-brand-ink); font-weight: 650; margin-inline-start: var(--mk-s-2); }
.mk-foot2-news { max-width: 380px; }
.mk-foot2-cols { display: grid; grid-template-columns: repeat(var(--mk-foot2-cols, 4), minmax(0, 1fr)); gap: var(--mk-s-8) var(--mk-s-6); padding: var(--mk-s-8) 0; border-top: 1px solid var(--mk-edge); }
.mk-foot2-cols h2, .mk-foot2-group summary span { margin: 0 0 var(--mk-s-3); color: var(--mk-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mk-foot2-cols ul, .mk-foot2-group ul { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.mk-foot2-cols li a { font-size: 13.5px; }
.mk-foot2 .mk-foot2-all { display: inline-flex; align-items: center; gap: var(--mk-s-1); margin-top: var(--mk-s-3); color: var(--mk-brand-ink); font-size: 13px; font-weight: 650; }
.mk-foot2-all .mk-icon { width: 14px; height: 14px; }
.mk-foot2-essential { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); padding-bottom: var(--mk-s-4); }
.mk-foot2-essential a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-glass); color: var(--mk-ink); font-size: 14px; font-weight: 650; }
.mk-foot2-acc { border-top: 1px solid var(--mk-edge); }
.mk-foot2-group { border-bottom: 1px solid var(--mk-edge); }
.mk-foot2-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mk-foot2-group summary::-webkit-details-marker { display: none; }
.mk-foot2-group summary span { margin: 0; }
.mk-foot2-group summary .mk-icon { width: 18px; height: 18px; transition: transform var(--mk-m-base) var(--mk-e-out); }
.mk-foot2-group[open] summary .mk-icon { transform: rotate(180deg); }
.mk-foot2-group ul { gap: 0; padding-bottom: var(--mk-s-2); }
.mk-site-foot.mk-foot2 .mk-foot2-group li a { display: flex; min-height: 44px; font-size: 15px; }
.mk-foot2-group[open] ul { animation: mk-foot2-open var(--mk-m-base) var(--mk-e-out); }
@keyframes mk-foot2-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk-foot2-group[open] ul { animation: none; } .mk-foot2-group summary .mk-icon { transition: none; } }
.mk-foot2-base { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-2) var(--mk-s-5); padding-top: var(--mk-s-5); border-top: 1px solid var(--mk-edge); font-size: 12.5px; }
.mk-foot2-company { margin: 0; }
.mk-foot2-legal, .mk-foot2-locales { display: flex; flex-wrap: wrap; gap: var(--mk-s-1) var(--mk-s-4); }
.mk-foot2-locales a[aria-current="true"] { color: var(--mk-ink); font-weight: 650; }
.mk-foot2-base .mk-site-status { margin: 0; }
.mk-foot2-social { display: flex; gap: var(--mk-s-1); margin-inline-start: auto; }
.mk-foot2-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.mk-foot2-social a:hover { background: var(--mk-tint); }
.mk-foot2-social .mk-icon { width: 18px; height: 18px; }
.mk-foot2-note { margin: var(--mk-s-4) 0 0; font-size: 12.5px; }
.mk-site-foot.mk-foot2 nav { margin: 0; }
.mk-site-foot.mk-foot2 nav a { display: inline-flex; align-items: center; min-height: 0; padding: 0; border-radius: 4px; color: var(--mk-muted); font-weight: 500; }
.mk-site-foot.mk-foot2 nav a:hover { background: none; color: var(--mk-ink); }
.mk-site-foot.mk-foot2 nav.mk-foot2-cols { display: grid; }
.mk-site-foot.mk-foot2 nav.mk-foot2-cols a { min-height: 24px; }
.mk-site-foot.mk-foot2 nav .mk-foot2-all { color: var(--mk-brand-ink); font-weight: 650; }
.mk-site-foot.mk-foot2 nav.mk-foot2-essential a { min-height: 44px; padding: 0 var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 999px; background: var(--mk-glass); color: var(--mk-ink); font-size: 14px; font-weight: 650; }
.mk-site-foot.mk-foot2 nav.mk-foot2-social a { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; border-radius: 50%; color: var(--mk-muted); }
.mk-site-foot.mk-foot2 nav.mk-foot2-social { margin-inline-start: auto; }
.mk-site-foot.mk-foot2 nav.mk-foot2-social a:hover { background: var(--mk-tint); color: var(--mk-ink); }
.mk-site-foot.mk-foot2 .mk-foot2-phone-only { display: none; }
@media (min-width: 900px) { .mk-foot2-top { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: start; gap: var(--mk-s-10); } }
@media (max-width: 899px) {
  .mk-foot2-cols { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
@media (max-width: 599px) {
  .mk-foot2 { padding-top: var(--mk-s-8); }
  .mk-site-foot.mk-foot2 .mk-foot2-wide-only, .mk-site-foot.mk-foot2 nav.mk-foot2-wide-only { display: none; }
  .mk-site-foot.mk-foot2 .mk-foot2-phone-only { display: block; }
  .mk-site-foot.mk-foot2 nav.mk-foot2-essential { display: flex; }
  /* Phones: the quiet row's links keep a 44px target. */
  .mk-site-foot.mk-foot2 :is(.mk-foot2-legal, .mk-foot2-locales) a { min-height: 44px; }
  .mk-site-foot.mk-foot2 .mk-foot2-group li a { min-height: 44px; font-size: 15px; }
  .mk-foot2-top { padding-bottom: var(--mk-s-5); }
  .mk-foot2-news { max-width: none; }
  .mk-foot2-base { display: grid; justify-items: start; gap: var(--mk-s-3); }
  .mk-site-foot.mk-foot2 nav.mk-foot2-social { margin-inline-start: calc(var(--mk-s-3) * -1); }
}

/* Launcher (components/launcher): a product assistant's floating button at the bottom end, above the consent dock while
   it shows, out of the way of an open sheet. */
.mk-launcher { position: fixed; z-index: 40; inset-inline-end: calc(var(--mk-gutter) + env(safe-area-inset-right, 0px)); inset-block-end: calc(var(--mk-gutter) + env(safe-area-inset-bottom, 0px)); --mk-ib: 52px; width: 52px; height: 52px; box-shadow: 0 10px 24px color-mix(in srgb, var(--mk-deep) 28%, transparent); }
.mk-launcher .mk-icon { width: 24px; height: 24px; }
/* A speech bubble: round, with the bottom end corner tucked in (toward the screen's corner), so it reads as chat. */
.mk-launcher.mk-ib { border-radius: 50%; border-end-end-radius: var(--mk-s-1); }
/* Phones: the dock spans the bottom, so the launcher rides above it. From 900px the dock is a centred panel that never
   reaches the corner, so the launcher stays pinned there. The page's end keeps room for it (no footer text under it). */
@media (max-width: 899.98px) { :root:has(.mk-consent-dock:not([hidden])) .mk-launcher { inset-block-end: calc(var(--mk-dock-space, 14rem) + var(--mk-dock-lift, 0px) + var(--mk-s-4)); } }
body:has(.mk-launcher) .mk-shell > .mk-site-foot { padding-bottom: calc(var(--mk-s-16) + var(--mk-gutter)); }
:root:has(dialog.mk-sheet[open]) .mk-launcher { visibility: hidden; }
/* A short screen (a phone in landscape) has no room above the dock: the launcher waits until the dock is answered. */
@media (max-height: 500px) { :root:has(.mk-consent-dock:not([hidden])) .mk-launcher { visibility: hidden; } }

/* Field-action with dictation (components/field-action, dictate): the field, the kit's mic and the action in one control;
   the mic sits at the field's end, before the action. A message box never shows a resize grip. */
.mk-field-action-box > .mk-dictate { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: inherit; }
.mk-field-action .mk-dictate > .mk-field-action-input { padding-inline-end: calc(var(--mk-s-12) + var(--mk-s-2)); }
.mk-field-action-multi .mk-field-action-input { resize: none; }
/* The toast floor: while a product's overlay covers the bottom of the screen (an assistant's composer), it sets
   --mk-toast-floor on :root, so the kit toast shows above it and never over its text. */

/* ===== Wide and ultra-wide layouts (owner, November 17, 2026: "ultra-wide is a layout, not a stretch") =====
   - Forms keep a usable field width (--mk-w-field) and, from 1200px, put their field groups side by side.
   - The footer's intro words use the frame's width.
   - A long page (home, articles, help): <main data-mk-layout="long"> with the kit settings-nav (each section's id, name and
     icon) and <div class="mk-long-body"> holding the sections. Portrait phones: a row of icon tabs on top; from 600px a sticky
     section list on the left (--mk-side-w), the section in view marked by mk.js.
   - A pair: <div class="mk-pair"> with two cards: a lone form (contact) and related content (the top questions, as
     .mk-help-item disclosure rows), one height:
     one column on phones, side by side from 1200px, the form at a usable field width. */
:root { --mk-w-field: 40rem; }
:is(.mk-field, .mk-field-action, .mk-field-group, .mk-seg) { max-width: var(--mk-w-field); } /* a choice row is a field too */
/* Inside a card the fields fill the card's inner width: the card (a module, 48rem at most) is what keeps them usable,
   so a field never stops short of its card's edge. */
.mk-card :is(.mk-field, .mk-field-action, .mk-field-group) { max-width: none; }
@media (min-width: 900px) {
  .mk-site-foot-intro p, .mk-foot2-about { max-width: none; }
}
@media (min-width: 1200px) {
  form:has(> .mk-field-group + .mk-field-group) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--mk-gap-card); align-items: start; }
  form:has(> .mk-field-group + .mk-field-group) > :not(.mk-field-group) { grid-column: 1 / -1; }
}
main[data-mk-layout="long"] { display: grid; gap: var(--mk-gap-section); align-items: start; min-width: 0; }
.mk-long-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mk-gap-section); min-width: 0; }
.mk-long-body > * { min-width: 0; scroll-margin-top: calc(var(--mk-bar-h) + var(--mk-safe-top) + var(--mk-s-6)); }
/* A section that is not itself a card (a heading over a pair or a board) spaces its parts like a card does. */
.mk-long-body > :not(.mk-card) { display: grid; gap: var(--mk-gap-card); align-content: start; }
.mk-long-body > :not(.mk-card) > :is(h2, h3) { margin: 0; }
.mk-long-body :is(p, li) { max-width: 68ch; }
.mk-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mk-gap-card); align-items: stretch; min-width: 0; } /* both cards one height */
.mk-pair > * { min-width: 0; }
@media (min-width: 1200px) {
  /* Two equal cards: spanning two module columns, its split falls on the board's column line. */
  .mk-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The apps home (site tiles): the family card is a module sized to its tiles (22rem each, wrapping), and the block with
   its heading sits centred under the frame, never a full-width card around two tiles. */
@media (min-width: 900px) {
  .mk-landing > .mk-block:has(.mk-family) { width: fit-content; max-width: 100%; margin-inline: auto; }
  .mk-landing .mk-family .mk-grid > ul { display: flex; flex-wrap: wrap; }
  .mk-landing .mk-family .mk-grid > ul > li { width: 22rem; max-width: 100%; }
}


/* The one sticky left menu (owner, November 17, 2026: from a phone in landscape, a tablet and wider). settings-nav holds
   a page's sections only; from 600px it is a sticky menu on the left of a settings or long page, inside the workspace.
   The app's own tabs stay in the bottom bar at every width (owner, November 18, 2026). Portrait phones show the
   sections as a row of icon tabs. */
.mk-settings-nav button { display: inline-flex; align-items: center; justify-content: center; gap: var(--mk-s-2); min-width: 44px; min-height: 44px; padding: 0 var(--mk-s-3); border: 0; border-radius: 999px; background: transparent; color: var(--mk-muted); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.mk-settings-nav :is(a, button) { position: relative; transition: transform var(--mk-m-quick) var(--mk-e-spring), background var(--mk-m-quick) var(--mk-e-out); }
.mk-settings-nav :is(a, button):active { transform: scale(var(--mk-press)); transition-duration: var(--mk-m-press); }
.mk-settings-nav :is(a, button):focus-visible { outline: 2.5px solid var(--mk-brand); outline-offset: 2px; }
.mk-settings-nav button:hover { background: var(--mk-tint); color: var(--mk-brand-ink); }
.mk-settings-nav a[aria-current="page"] { background: var(--mk-brand-fill); color: var(--mk-on-brand); }
.mk-settings-nav .mk-tab-dot { position: static; flex: none; margin-inline-start: auto; }
@media (min-width: 600px) {
  main:is([data-mk-layout="settings"], [data-mk-layout="long"]):has(> .mk-settings-nav) { grid-template-columns: var(--mk-side-w) minmax(0, 1fr); column-gap: var(--mk-gap-card); }
  main[data-mk-layout="settings"]:not(:has(> .mk-settings-nav)) { grid-template-columns: minmax(0, 1fr); }
  /* Sticky on the line the content starts on under the bar (the bar's own top inset, its height, the same gap again),
     and a card like the content's: its radius, edge, surface and padding (each row's own inset makes up the rest). */
  .mk-settings-nav { top: calc(var(--mk-s-3) + var(--mk-safe-top) + var(--mk-tabbar-h) + var(--mk-s-3)); max-height: calc(100dvh - var(--mk-tabbar-h) - var(--mk-safe-top) - var(--mk-s-8)); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: var(--mk-s-2); align-content: start; padding: calc(var(--mk-pad-card) - var(--mk-s-2)) calc(var(--mk-pad-card) - var(--mk-s-3)); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); background: var(--mk-glass); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); }
  .mk-settings-nav ul { flex-direction: column; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
  .mk-settings-nav :is(a, button) { justify-content: flex-start; border-radius: var(--mk-r-field); }
}

/* Wide (owner, November 18, 2026: one limited-width workspace): the long page fills the workspace edge to edge, the
   side menu on its start edge and the sections as module columns beside it (at least 30rem each, as many as fit the
   workspace, sharing the rest of its width). The sections become the page grid's own items (the body wrapper steps
   aside) and the menu holds the first column down the page. Cards in a row share one height. A section holding a pair
   or a board, or marked .mk-span, takes every module column, so a pair's two cards split the content width. Every
   section's heading is inside its card; a pair's heading is in its first card. Rows are spaced by each module's own
   end margin, so the menu's tall area adds no empty gaps. */
@media (min-width: 900px) {
  main[data-mk-layout="long"]:has(> .mk-settings-nav) { grid-template-columns: var(--mk-side-w) repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); column-gap: var(--mk-gap-card); row-gap: 0; align-items: stretch; }
  main[data-mk-layout="long"]:has(> .mk-settings-nav) > .mk-settings-nav { grid-column: 1; grid-row: 1 / span 40; align-self: start; }
  main[data-mk-layout="long"]:has(> .mk-settings-nav) > .mk-long-body { display: contents; }
  main[data-mk-layout="long"]:has(> .mk-settings-nav) > .mk-long-body > * { margin-block-end: var(--mk-gap-card); }
  main[data-mk-layout="long"]:has(> .mk-settings-nav) > .mk-long-body > :is(.mk-span, :has(> .mk-pair), :has(> .mk-board)) { grid-column: 2 / -1; }
}

/* A brand fill under the finger: the press scale (each control's own) plus the gloss dimming a little. */
:is(.mk-btn-brand, .mk-ib-brand, .mk-ib[aria-pressed="true"], .mk-seg-choice[aria-pressed="true"], .mk-seg-choice[aria-selected="true"], .mk-tab-on, .mk-tab[aria-current="page"], .mk-settings-nav a[aria-current="page"]):active { background: var(--mk-brand-fill-press); }

/* The header menu (⋮ More, owner, November 17, 2026): a menu under the ⋮, its end on the icon's end, growing down out of
   it on the sheet's timing; the opaque sheet surface, rounded except the top end corner it grows from. */
.mk-header-menu-wrap { position: relative; display: inline-grid; }
.mk-header-menu { position: absolute; z-index: 60; top: calc(100% + var(--mk-s-2)); inset-inline-end: 0; width: max-content; min-width: 16rem; max-width: min(22rem, calc(100vw - 2 * var(--mk-gutter))); max-height: calc(100dvh - var(--mk-tabbar-h) - var(--mk-s-12)); overflow-y: auto; margin: 0; padding: var(--mk-s-1) 0; border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); border-start-end-radius: var(--mk-s-1); background: var(--mk-sheet-surface); box-shadow: var(--mk-shadow); transform-origin: 100% 0; animation: mk-sheet-grow var(--mk-m-base) var(--mk-e-out) both; }
[dir="rtl"] .mk-header-menu { transform-origin: 0 0; }
.mk-header-menu[hidden] { display: none; }
.mk-header-menu .mk-menu-item { min-height: 48px; }
@media (prefers-reduced-motion: reduce) { .mk-header-menu { animation: mk-fade-in var(--mk-m-quick) both; } }

/* Bars never pass a tap through (owner, November 17, 2026): the band each bar floats in (the gaps above, below and beside
   it, across the screen) is held by an invisible fixed layer just under the bar, so a tap there never reaches what
   scrolls underneath. Fixed and inset to the viewport's own edges (never 100vw, which counts the scrollbar), so it can
   never widen the page (owner, November 17, 2026: a sideways scrollbar at desktop widths). */
.mk-shell:has(> :is(.mk-appbar, .mk-header))::before { content: ""; position: fixed; z-index: 29; top: 0; inset-inline: 0; height: calc(var(--mk-s-3) + var(--mk-safe-top) + var(--mk-tabbar-h) + var(--mk-s-3)); }
.mk-shell:has(.mk-bottombar, .mk-tabbar)::after { content: ""; position: fixed; z-index: 39; bottom: 0; inset-inline: 0; height: calc(var(--mk-s-3) + var(--mk-tabbar-h) + var(--mk-s-3) + var(--mk-safe-bottom)); }

/* Every tap answers at once (owner, November 17, 2026). Quiet loading rows (components/loading-row) while a choice's
   data comes; app tiles well up in the brand tint while pressed; moving between screens is a fade and a rise of
   --mk-rise (12px) on the base timing, with View Transitions where the browser has them (the bars stay put), a fade
   only under reduced motion. */
.mk-loading { display: grid; gap: var(--mk-gap-in); }
.mk-loading-row { display: flex; align-items: center; gap: var(--mk-s-3); min-height: 52px; }
.mk-loading-mark { flex: none; width: 36px; height: 36px; border-radius: 50%; }
.mk-loading-lines { display: grid; flex: 1; gap: var(--mk-s-2); }
.mk-loading-lines > span { height: 10px; border-radius: 999px; }
.mk-loading-lines > span + span { width: 60%; }
:is(.mk-loading-mark, .mk-loading-lines > span) { background: linear-gradient(90deg, var(--mk-tint) 0%, color-mix(in srgb, var(--mk-tint) 40%, var(--mk-surface)) 50%, var(--mk-tint) 100%) 0 0 / 200% 100%; animation: mk-shimmer 1.4s linear infinite; }
@keyframes mk-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { :is(.mk-loading-mark, .mk-loading-lines > span) { animation: none; } }
.mk-tile { border-radius: var(--mk-r-tile); transition: background var(--mk-m-quick) var(--mk-e-out); }
.mk-tile:active { background: var(--mk-tint); }
@view-transition { navigation: auto; }
.mk-appbar, .mk-header { view-transition-name: mk-appbar; }
.mk-bottombar { view-transition-name: mk-bottombar; }
::view-transition-old(root) { animation: mk-fade-out var(--mk-m-base) var(--mk-e-out) both; }
::view-transition-new(root) { animation: mk-screen-in var(--mk-m-base) var(--mk-e-out) both; }
@keyframes mk-screen-in { from { opacity: 0; transform: translateY(var(--mk-rise)); } to { opacity: 1; transform: none; } }
@keyframes mk-fade-out { to { opacity: 0; } }
@supports not (view-transition-name: none) { .mk-shell > :is(main, .mk-main) { animation: mk-screen-in var(--mk-m-base) var(--mk-e-out) both; } }

/* The account drawer's groups (owner, November 17, 2026): Account, the product, Preferences, Links, each a card with a
   small heading, one step apart. */
.mk-account-group { display: grid; gap: var(--mk-s-2); margin: 0 0 var(--mk-s-4); }
.mk-account-group-title { margin: 0; padding-inline: var(--mk-s-1); color: var(--mk-muted); font-size: 13px; font-weight: 700; }
.mk-account-group > :is(.mk-menu, .mk-account-card, .mk-notifications) { margin: 0; }
.mk-account-group > .mk-account-card + .mk-menu { margin-top: 0; }
/* Its groups title the drawer, so the sheet's own title (Account, the same word as the first group) is for screen
   readers only. */
#mk-account .mk-sheet-head:not(:has(button)) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Select fields (owner, November 17, 2026): the dropdown arrow is the kit's 20px chevron, inset from the end by the
   field's start padding (12px, --mk-s-3) so the words and the arrow mirror each other, with the end padding reserved
   (12 + 20 + 8 = 40px, --mk-s-10) so a long option never runs under it. Muted in each theme. */
:root { --mk-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mk-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3b4bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] { --mk-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3b4bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
:is(.mk-field select, select.mk-input, .mk-option-field select) { appearance: none; -webkit-appearance: none; padding-inline-end: var(--mk-s-10); background-image: var(--mk-chevron); background-repeat: no-repeat; background-size: 20px 20px; background-position: right var(--mk-s-3) center; text-overflow: ellipsis; cursor: pointer; }
[dir="rtl"] :is(.mk-field select, select.mk-input, .mk-option-field select) { background-position: left var(--mk-s-3) center; }

/* A stat's ranked list (components/stat, items): name and count on one line each, the count at the end in tabular
   figures; five rows, the first three on portrait phones. */
.mk-stat-list { display: grid; gap: var(--mk-s-1); margin: var(--mk-s-2) 0 0; padding: 0; list-style: none; font-size: 14px; }
.mk-stat-list li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--mk-s-3); min-height: 44px; min-width: 0; border-top: 1px solid var(--mk-line); }
.mk-stat-list a { display: flex; align-items: center; min-height: 44px; }
.mk-stat-list li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-stat-list-value { flex: none; color: var(--mk-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .mk-stat-list li:nth-child(n + 4) { display: none; } }
/* A row of stats with lists needs room for a name and a count: one per row on phones, side by side from 15rem each. */
.mk-stats:has(.mk-stat-list) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

/* A long page's media (owner, November 17, 2026): a cover or picture fills its module's width at most and never grows
   past a sensible height (cropped to fit), so an article cover is not a wall at 2560 or 3440. */
main[data-mk-layout="long"] :is(img, video, picture):not(.mk-icon, .mk-mark img, .mk-account-avatar img) { max-width: 100%; height: auto; max-height: min(60dvh, 32rem); object-fit: cover; border-radius: var(--mk-r-card); }

/* Sign-in screens with the consent sheet showing: the card is centred in the room above the sheet, never under it. */
:root:has(.mk-consent-dock:not([hidden])) .mk-auth-screen { min-height: calc(100dvh - var(--mk-dock-space, 14rem)); }

/* Questions and answers on public pages (components/faq): the kit's disclosure rows (.mk-help-item). */
.mk-faq { display: grid; gap: var(--mk-gap-in); }
.mk-faq > :is(h2, h3) { margin: 0; }
.mk-faq-list { display: grid; }
.mk-faq .mk-help-item:last-child { border-bottom: 0; }

/* The consent dock's close is passive like its Customize and Decline (owner, November 17, 2026; an exception to "a
   sheet's own close keeps the full size", for the dock only): the compact in-context icon button, no fill or ring, a
   muted glyph, a 44px target through its ::before. */
.mk-consent-dock .mk-sheet-head .mk-ib { --mk-ib: var(--mk-ib-in); border-color: transparent; background: transparent; color: var(--mk-muted); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mk-consent-dock .mk-sheet-head .mk-ib::before { content: ""; position: absolute; inset: calc((var(--mk-ib-in) - 44px) / 2); border-radius: 50%; }
.mk-consent-dock .mk-sheet-head .mk-ib .mk-icon { width: var(--mk-ib-in-glyph); height: var(--mk-ib-in-glyph); }
.mk-consent-dock .mk-sheet-head .mk-ib:hover { background: var(--mk-tint); color: var(--mk-brand-ink); }
@media (min-width: 900px) { .mk-consent-dock .mk-sheet-head { padding-inline-end: var(--mk-s-4); } } /* the close's glyph on the words' end line, as on phones */

/* ===== Full-width pictures (owner, November 18, 2026: one limited-width workspace, full-width pictures) =====
   components/backdrop. Everything a page says sits in the workspace; only a real photo runs wider.
   - kind page (.mk-backdrop): the page's background photo, the first thing in main. From 900px it is laid against the
     viewport (absolute in the initial containing block: the shell and main are never positioned), from the top of the
     page behind the app bar, the screen's full width without the scrollbar. It fades into the canvas at its foot and,
     gently, under the workspace (a veil of the canvas across the frame's width), so the content stays readable.
   - kind hero (.mk-backdrop-hero): the photo runs the full width at the hero's place (absolute at its static top), the
     words (.mk-backdrop-body) stay in the workspace on a scrim of the canvas that keeps AA for ink and muted text over
     any photo (test/backdrop.test.ts works out the worst case, a black or white photo, in both themes).
   - Phones (under 900px): a contained picture inside the gutters, rounded like a card; the hero's words under it.
   - The focal point is the img's object-position (the component's focus); the picture always covers its box. */
:root { --mk-backdrop-h: clamp(28rem, 42vw, 60rem); --mk-hero-h: clamp(26rem, 36vw, 46rem); --mk-hero-scrim: color-mix(in srgb, var(--mk-canvas) 95%, transparent); --mk-backdrop-veil: color-mix(in srgb, var(--mk-canvas) 78%, transparent); }
.mk-backdrop { min-width: 0; grid-column: 1 / -1; } /* in a page grid (a long or settings page) it spans every column */
.mk-backdrop-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: min(50dvh, 28rem); object-fit: cover; object-position: 50% 50%; border-radius: var(--mk-r-card); background: var(--mk-tint); }
.mk-backdrop:not(.mk-backdrop-hero) { margin-block-end: var(--mk-gap-section); }
main[data-mk-layout] > .mk-backdrop { margin-block-end: 0; } /* the page grid's own gap spaces it */
.mk-backdrop-hero { display: grid; gap: var(--mk-gap-card); }
.mk-backdrop-body { display: grid; justify-items: start; gap: var(--mk-gap-in); min-width: 0; }
.mk-backdrop-body > :is(h1, h2) { margin: 0; font-size: clamp(28px, 7vw, 40px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.mk-backdrop-body > p { margin: 0; max-width: 60ch; }
@media (min-width: 900px) {
  .mk-backdrop:not(.mk-backdrop-hero) { position: absolute; z-index: -1; top: 0; inset-inline: 0; height: var(--mk-backdrop-h); margin: 0; pointer-events: none; }
  .mk-backdrop:not(.mk-backdrop-hero) > .mk-backdrop-img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent); mask-image: linear-gradient(to bottom, #000 45%, transparent); }
  /* The veil: the canvas under the workspace, clearing over 12rem past its edges (a screen hardly wider than the
     workspace is veiled edge to edge, never a clear strip at its sides). */
  .mk-backdrop:not(.mk-backdrop-hero)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - var(--mk-frame-w) / 2 - 12rem), var(--mk-backdrop-veil) calc(50% - var(--mk-frame-w) / 2), var(--mk-backdrop-veil) calc(50% + var(--mk-frame-w) / 2), transparent calc(50% + var(--mk-frame-w) / 2 + 12rem)); -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent); mask-image: linear-gradient(to bottom, #000 45%, transparent); }
  .mk-backdrop-hero { display: grid; align-items: end; min-height: var(--mk-hero-h); margin-block-end: var(--mk-gap-section); }
  .mk-backdrop-hero > .mk-backdrop-img { position: absolute; z-index: -1; inset-inline: 0; width: 100%; height: var(--mk-hero-h); max-height: none; aspect-ratio: auto; border-radius: 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--mk-s-16), #000 72%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 var(--mk-s-16), #000 72%, transparent); }
  .mk-backdrop-body { align-self: end; max-width: min(100%, 40rem); margin-block: var(--mk-s-16) var(--mk-gap-section); padding: var(--mk-pad-card) calc(var(--mk-pad-card) + var(--mk-s-1)); border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); background: var(--mk-hero-scrim); color: var(--mk-ink); box-shadow: var(--mk-shadow); -webkit-backdrop-filter: blur(var(--mk-blur)); backdrop-filter: blur(var(--mk-blur)); }
  .mk-backdrop-body > :is(h1, h2) { font-size: clamp(36px, 3.4vw, 56px); }
}
/* Under a top sheet the page blurs; a filter would make main the pictures' containing block (they would jump into the
   workspace), so a page with a backdrop blurs its parts instead. */
body:has(.mk-sheet-top[open]) :is(.mk-main, main):has(.mk-backdrop) { filter: none; }
body:has(.mk-sheet-top[open]) :is(.mk-main, main):has(.mk-backdrop) > :not(dialog, .mk-backdrop), body:has(.mk-sheet-top[open]) .mk-backdrop > * { filter: blur(var(--mk-scrim-blur)); }
