/* 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 {
    /* 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));
    --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) 55%, transparent);
    --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: 1320px;
    --mk-w-dashboard: 1320px;
    --mk-page-w: var(--mk-w-dashboard);
    --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, p, figure { 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; }
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; 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%; }
.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); color: var(--mk-on-brand); border-color: var(--mk-brand); }
.mk-ib-brand:hover { background: var(--mk-brand); }
.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 h1 { 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; } }
.mk-info { position: relative; flex: none; }
.mk-info > summary { list-style: none; }
.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; }
.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: 11.5px; font-weight: 650; line-height: 1.25; text-align: center; overflow-wrap: normal; }
.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-tint); color: var(--mk-brand-ink); }
.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-height: 44px; flex: 1 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)); }
.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); 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); }
.mk-sheet { width: calc(100% - 16px); max-width: 464px; max-height: calc(100dvh - 64px); margin: auto auto calc(var(--mk-s-2) + var(--mk-safe-bottom)); padding: var(--mk-s-2) 0 0; border: 1px solid var(--mk-edge); border-radius: var(--mk-r-sheet); background: var(--mk-glass-2); color: var(--mk-ink); 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%); 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); }
.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 { 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))); }
.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-glass-2); box-shadow: var(--mk-shadow); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%); overflow-y: auto; }
.mk-sheet-top[open] .mk-sheet-panel { animation: mk-sheet-down var(--mk-m-screen) var(--mk-e-out) both; }
.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; }
@keyframes mk-sheet-down { from { opacity: 0; clip-path: inset(100% 0 0); transform: translateY(-100%); } to { opacity: 1; clip-path: inset(0); 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); }
.mk-setting-choice > .mk-seg { flex: 1 1 300px; }
/* 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; }
.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: calc(var(--mk-tabbar-h) + 36px + var(--mk-safe-bottom)); 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; }
.mk-explain-foot { display: flex; justify-content: center; padding-top: var(--mk-s-4); }
.mk-explain-next { --mk-ib: 72px; }
.mk-explain-next .mk-icon { width: 30px; height: 30px; }
.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; } }
/* 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 */
.mk-auth-hero .mk-auth-mark { width: 72px; height: 72px; padding: var(--mk-s-2); border-radius: 22px; }
.mk-auth-name { font-size: 24px; font-weight: 750; letter-spacing: -.015em; white-space: nowrap; }
.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-height: 40px; 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[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-s-4); 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; } }

/* 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-brand); }
.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 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 h1 { 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); 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); 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) {
  .mk-shell { max-width: 1320px; padding-inline-start: var(--mk-s-6); padding-inline-end: var(--mk-s-6); }
  /* The top and bottom bars mirror each other at every width (kit rule). */
  .mk-header, .mk-appbar { width: 100%; max-width: none; }
  .mk-tabbar { width: min(1272px, calc(100% - 48px)); 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; }
  .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-shell { max-width: 1960px; }
  .mk-tabbar { width: min(1912px, calc(100% - 48px)); }
  .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%; }
  .mk-shell { max-width: 2300px; }
  .mk-tabbar { width: min(2252px, calc(100% - 48px)); }
}

/* 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: 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: 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) { max-width: 600px; margin: auto; }
  .mk-sheet:not(.mk-sheet-top) .mk-info-body { font-size: 15.5px; }
  /* The drawer hangs from the bar under the account button: square top, rounded bottom, right edges aligned. */
  .mk-sheet-top .mk-sheet-panel { max-width: 440px; margin-inline-end: max(24px, calc((100% - 1272px) / 2)); margin-inline-start: auto; border-radius: 0 0 var(--mk-r-sheet) var(--mk-r-sheet); }
}
@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; margin-inline-end: max(24px, calc((100% - 1912px) / 2)); }
}
@media (min-width: 2400px) {
  .mk-sheet-top .mk-sheet-panel { margin-inline-end: max(24px, calc((100% - 2252px) / 2)); }
}

/* 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-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-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,
.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); 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-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; align-items: center; gap: var(--mk-s-3); }
  .mk-auth-brand-mark { width: 56px; height: 56px; padding: var(--mk-s-2); border-radius: 17px; background: var(--mk-day-surface); box-shadow: 0 8px 24px color-mix(in srgb, var(--mk-night-tile) 22%, transparent); }
  .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-1); 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 ---------- */
  .mk-page-legal .mk-shell { max-width: 1320px; padding: 0 var(--mk-s-6); }
  .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); 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); 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: 32px; 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); 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); }
.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 { 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; }
.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; }
.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 { 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, .mk-legal-body a { 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; }
  .mk-hero-tile { display: grid; place-items: center; justify-self: end; width: min(100%, 400px); aspect-ratio: 1; border: 1px solid var(--mk-edge); border-radius: 22%; background: var(--mk-mark-tile); box-shadow: 0 30px 60px color-mix(in srgb, var(--mk-deep) 16%, transparent), inset 0 1px 0 var(--mk-hi); }
  .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 h1: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-claim, .mk-tile-lock { position: absolute; display: inline-flex; align-items: center; gap: 2px; border: 2px solid var(--mk-canvas); border-radius: 999px; background: var(--mk-surface); color: var(--mk-muted); font-size: 10px; font-weight: 800; line-height: 1; }
.mk-tile-claim { top: -6px; inset-inline-end: -6px; padding: var(--mk-s-1); background: var(--mk-dot); color: var(--mk-night-button-ink); }
.mk-tile-lock { inset-inline-end: -6px; bottom: -6px; padding: var(--mk-s-1) var(--mk-s-1) var(--mk-s-1) var(--mk-s-1); box-shadow: inset 0 0 0 1px var(--mk-edge); }
.mk-tile-icon .mk-tile-claim .mk-icon, .mk-tile-icon .mk-tile-lock .mk-icon { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.25; }
.mk-tile-ready .mk-tile-icon::after { content: ""; position: absolute; inset: -3px; border-radius: calc(var(--mk-r-tile) + 3px); box-shadow: 0 0 0 2px color-mix(in srgb, var(--mk-dot) 70%, transparent), 0 0 18px color-mix(in srgb, var(--mk-dot) 45%, transparent); pointer-events: none; animation: mk-tile-ready 2.4s ease-in-out infinite; }
@keyframes mk-tile-ready { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-dot) 40%, transparent), 0 0 26px color-mix(in srgb, var(--mk-dot) 60%, transparent); } }
.mk-tile-locked, .mk-tile-locked .mk-tile-note { color: var(--mk-muted); }
@media (prefers-reduced-motion: reduce) { .mk-tile-ready .mk-tile-icon::after, .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 { align-self: flex-start; margin: 0 0 0 auto; }

/* 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; }
@keyframes mk-wm-in { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
@keyframes mk-wm-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-.4em); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .mk-wm-name, .mk-wm-suite { 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 h1 { 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-tint); color: var(--mk-brand-ink); }
.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); }
.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; 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); 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) - 5px); color: var(--mk-brand); background: color-mix(in srgb, var(--mk-brand) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk-brand) 24%, transparent); 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); }
.mk-auth-email:has(input:valid) .mk-auth-arrow:not([aria-disabled="true"]) { color: var(--mk-on-brand); background: linear-gradient(180deg, color-mix(in srgb, var(--mk-brand) 86%, #fff), var(--mk-brand)); box-shadow: inset 0 1px 0 var(--mk-rim), 0 2px 6px color-mix(in srgb, var(--mk-brand) 26%, transparent); }
.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: linear-gradient(180deg, color-mix(in srgb, var(--mk-brand) 86%, #fff), var(--mk-brand)); 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); }
@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; }
.mk-thread-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--mk-s-2); margin: 0; }
.mk-thread-compose textarea { width: 100%; min-height: 50px; max-height: 40vh; 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); resize: vertical; }
.mk-thread-compose textarea:focus { outline: 2px solid var(--mk-brand); outline-offset: 1px; border-color: transparent; }
.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-glass-2); }
.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-glass-2); }
.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; }
.mk-team-roles { min-width: 0; margin: 0; padding: 0; border: 0; }
.mk-team-roles legend { margin-bottom: var(--mk-s-1); padding: 0; font-weight: 650; }
.mk-team-choice input { width: 20px; height: 20px; margin: 0 var(--mk-s-2) 0 0; accent-color: var(--mk-brand); vertical-align: middle; }
/* 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(150px, 1fr)); gap: var(--mk-s-3); margin: 0; padding: 0; list-style: none; }
.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 { overflow: hidden; color: var(--mk-muted); font-size: 13px; font-weight: 550; white-space: nowrap; text-overflow: ellipsis; }
.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; }
/* 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); 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 textarea { 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); }
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; }
.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). */
.mk-layout-reading, body:has(main[data-mk-layout="reading"]) { --mk-page-w: var(--mk-w-reading); }
.mk-layout-list, body:has(main[data-mk-layout="list"]) { --mk-page-w: var(--mk-w-list); }
.mk-layout-dashboard, body:has(main[data-mk-layout="dashboard"]) { --mk-page-w: var(--mk-w-dashboard); }
@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); --mk-w-list: 1600px; --mk-w-dashboard: 1960px; }
}
@media (min-width: 2400px) {
  :root { --mk-w-list: 1960px; --mk-w-dashboard: 2300px; --mk-cols-max: 5; --mk-side-w: minmax(300px, 22rem); --mk-rail-w: minmax(340px, 26rem); }
}
@media (min-width: 3000px) {
  html { font-size: 120%; }
  :root { --mk-w-list: 2300px; --mk-w-dashboard: 2880px; --mk-col-min: 360px; }
}

/* One edge line. Phone: the bars are as wide as the content (the gutter on each side). Wider: the shell holds the
   gutter and everything inside it starts at the same line. */
.mk-header, .mk-appbar, .mk-tabbar, .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-page-w) + 2 * var(--mk-gutter)); padding-inline: var(--mk-gutter); }
  .mk-shell > :is(.mk-header, .mk-appbar, .mk-ticker) { width: 100%; }
  .mk-shell > :is(main, .mk-main) { padding-inline: 0; }
  .mk-shell > .mk-site-foot { margin-inline: 0; }
  .mk-auth-page .mk-shell > .mk-site-foot { margin-inline: var(--mk-gutter); }
  .mk-hero, .mk-block, .mk-landing-member .mk-hero { padding-inline: 0; }
  .mk-tabbar { width: min(var(--mk-page-w), calc(100% - 2 * var(--mk-gutter))); }
  .mk-sheet-top .mk-sheet-panel { margin-inline-end: max(var(--mk-gutter), calc((100% - var(--mk-page-w)) / 2)); }
}

/* 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; }
.mk-board > :is(h2, h3, .mk-span, .mk-empty) { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .mk-board { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--mk-col-min), calc((100% - (var(--mk-cols-max) - 1) * var(--mk-gap-card)) / var(--mk-cols-max)))), 1fr)); }
}

/* 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)); }
}
@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; }
