/* Module pages (Warehouse, Inventory, Production, Integrations): one part of Morsix per page, in the landing look.
   Layout per page: hero + big replica, spotlights (copy beside a tabbed replica), a feature grid, a step flow,
   cross-links, FAQ and the closing card. Tokens, buttons, FAQ and the closing card come from site.css. */

/* ---------- Hero ---------- */
.m-hero { padding: calc(var(--nav-h) + 56px) 0 24px; text-align: center; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, #18aee3 7%, var(--bg)) 0%, var(--bg) 62%); }
.m-hero .h1 { font-size: clamp(38px, 5.2vw, 76px); max-width: 940px; }
.m-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.m-stage { position: relative; max-width: 1180px; margin: 56px auto 0; text-align: left; }
.m-stage .browser { box-shadow: 0 2px 4px rgba(15,34,54,.05), 0 40px 80px -30px rgba(15,34,54,.38); }
.m-stage-phone { position: absolute; right: -3%; bottom: -7%; z-index: 2; width: clamp(130px, 17%, 210px); }
.m-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 46px auto 0; padding: 0; list-style: none; }
.m-chips li { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.m-chips li b { color: var(--ink-strong); font-weight: 600; }
.m-chips li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #18aee3); }

/* ---------- Spotlights: copy beside a tabbed replica ---------- */
.m-band { background: var(--paper-2); }
.m-spot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.4vw, 76px); align-items: center; }
.m-spot.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.m-spot.is-flip .m-copy { order: 2; }
.m-copy .h2 { font-size: clamp(30px, 3.2vw, 46px); }
.m-copy .sub { margin: 16px 0 0; }
.m-points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.m-points li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.m-points li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, #18aee3 16%, transparent); }
.m-points li::after { content: ''; position: absolute; left: 6px; top: 7px; width: 4px; height: 8px; border: solid var(--cyan-text); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.m-points b { color: var(--ink-strong); font-weight: 600; }
.m-copy .m-more { margin-top: 26px; }
.m-shot { position: relative; min-width: 0; }
.m-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.m-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .25s var(--ease), background-color .25s var(--ease); }
.m-tabs button svg { width: 15px; height: 15px; }
.m-tabs button:hover { color: var(--ink-strong); }
.m-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .m-tabs button[aria-selected="true"] { background: #18aee3; color: #0b1726; }
.m-panel[hidden] { display: none; }
.m-panel { animation: swapIn .45s var(--ease-out); }
.m-cap { margin: 12px 4px 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Feature grid ---------- */
.m-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.m-card { padding: 26px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.m-card:hover { border-color: color-mix(in srgb, #18aee3 40%, var(--line)); transform: translateY(-2px); box-shadow: 0 18px 36px -26px rgba(15,34,54,.35); }
.m-ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: color-mix(in srgb, #18aee3 12%, transparent); color: var(--cyan-text); }
.m-ic svg { width: 20px; height: 20px; }
.m-card h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-strong); }
.m-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.m-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 4px; background: var(--paper-2); font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted); vertical-align: 2px; }

/* ---------- Step flow: click a step to see its screen ---------- */
.m-flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.m-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.m-step { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border: 1px solid transparent; border-radius: 18px; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.m-step:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.m-step[aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: 0 16px 34px -26px rgba(15,34,54,.4); }
.m-step .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--line-2); font-size: 13px; font-weight: 700; color: var(--muted); transition: background-color .3s, color .3s, box-shadow .3s; }
.m-step[aria-selected="true"] .n { background: var(--c, #18aee3); box-shadow: none; color: #fff; }
.m-step b { display: block; font-size: 17px; font-weight: 600; color: var(--ink-strong); }
.m-step span.d { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.m-flow .m-shot { position: sticky; top: calc(var(--nav-h) + 24px); }
.m-flow-desc { display: none; }
.m-flow [data-flow-shot].is-swap, .m-flow [data-flow-phone].is-swap { animation: swapIn .45s var(--ease-out); }

/* The closing card without its picture column. */
.cta-card.is-solo { grid-template-columns: minmax(0, 1fr); text-align: center; }
.cta-card.is-solo .hero-ctas, .cta-card.is-solo .derisk, .cta-card.is-solo .card-eyebrow { justify-content: center; }
.cta-card.is-solo .card-eyebrow::before { content: ''; width: 46px; height: 1px; background: currentColor; opacity: .6; }
.cta-card.is-solo .cta-copy p { margin-left: auto; margin-right: auto; }

@media (max-width: 1080px) {
	.m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.m-spot, .m-spot.is-flip, .m-flow { grid-template-columns: minmax(0, 1fr); }
	.m-spot.is-flip .m-copy { order: 0; }
	/* Stacked above its screen, the copy heads up like every other section: centred; the points stay a left-aligned list. */
	.m-copy { text-align: center; }
	.m-copy .m-points { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
	/* Phones: the screen first, the steps as chips right under it, and only the picked step's text. */
	.m-flow { gap: 0; }
	.m-flow .m-shot { position: relative; top: auto; order: 1; }
	.m-flow .m-steps { order: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
	.m-step { width: auto; grid-template-columns: auto auto; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border: 1px solid var(--line-2); border-radius: 999px; }
	.m-step .n { width: 24px; height: 24px; font-size: 12px; }
	.m-step b { font-size: 14px; }
	.m-step span.d { display: none; }
	.m-flow-desc { display: block; order: 3; min-height: 3em; margin: 14px 4px 0; text-align: center; font-size: 15px; line-height: 1.5; color: var(--muted); }
	.m-flow-desc b { color: var(--ink-strong); font-weight: 600; }
}
@media (max-width: 767px) {
	.m-hero { padding-top: calc(var(--nav-h) + 36px); }
	/* Both buttons as wide as the longer one, centred. */
	.m-ctas { display: grid; grid-template-columns: minmax(0, max-content); justify-content: center; }
	.m-ctas .btn { height: 52px; }
	/* Two plain sections' paddings stack up before the FAQ; a tinted band above keeps it. */
	section:not(.m-band) + .faq { padding-top: 12px; }
	/* Four chapters as two rows of two, not three and one. */
	.m-chapters:has(> :nth-child(4):last-child) { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); justify-content: center; }
	.m-stage { margin-top: 40px; }
	.m-stage-phone { right: 1%; bottom: -12%; width: 32%; }
	.m-chips { margin-top: 56px; }
	/* Phones: the feature cards become a tight list, icon beside the text, divided by hairlines. */
	.m-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.m-card { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
	.m-card:last-child { border-bottom: 0; }
	.m-card:hover { transform: none; box-shadow: none; }
	.m-card .m-ic { grid-row: span 2; width: 34px; height: 34px; margin: 2px 0 0; border-radius: 10px; }
	.m-card .m-ic svg { width: 17px; height: 17px; }
	.m-card h3 { font-size: 16px; }
	.m-card p { margin-top: 3px; font-size: 14px; line-height: 1.5; }
	/* Phones: the tabs share the width equally, without icons, so nothing scrolls or gets cut off. */
	.m-tabs { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; width: 100%; }
	.m-tabs button { justify-content: center; padding: 0 6px; font-size: 13px; white-space: nowrap; }
	.m-tabs button svg { display: none; }
}

/* Screens that play through several frames (e.g. the four steps of Add Order). */
.m-seq { position: relative; }
.m-frame { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.m-frame:first-child { position: relative; }
.m-frame.is-on { opacity: 1; }
.m-cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 22px; height: 22px; margin: -2px 0 0 -4px; pointer-events: none; transition: transform 1s cubic-bezier(.45, .05, .25, 1); filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.m-cursor svg { display: block; width: 100%; height: 100%; transition: transform .15s ease; transform-origin: 4px 2px; }
.m-cursor.is-down svg { transform: scale(.85); }
.m-click { position: absolute; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(24,174,227,.35); pointer-events: none; animation: mClick .42s ease-out forwards; }
@keyframes mClick { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* Chapters under a recording: show where it is, and jump to a part. */
.m-chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.m-chapters button { position: relative; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease); }
.m-chapters button:hover { color: var(--ink-strong); }
.m-chapters button[aria-current] { background: var(--navy); box-shadow: none; color: #fff; }
:root[data-theme="dark"] .m-chapters button[aria-current] { background: #18aee3; color: #0b1726; }
.m-seq.is-instant .m-frame { transition: none; }

/* The app's QR code print page: a bare white sheet, one centred code per location or box. */
.m-qrsheet { flex: 1; padding: 18px 0; background: #fff; color: #212529; font-size: 16px; text-align: center; }
.m-qrsheet-print { display: inline-block; padding: 6px 12px; border: 1px solid transparent; border-radius: 4px; font-size: 16px; line-height: 1.5; color: #212529; }
.m-qrsheet-item { margin-top: 26px; }
.m-qrsheet-item svg { display: block; width: 100px; height: 100px; margin: 0 auto 6px; }
.m-qrsheet-item p { margin: 0; }
.m-qrsheet-item span { display: block; font-size: 13px; opacity: .5; }
@media (max-width: 374px) {
	.m-tabs button { padding: 0 3px; font-size: 11.5px; }
	.m-chips li { gap: 6px; padding: 0 12px; font-size: 13px; }
}

/* ---------- Integrations: the hero map (Morsix in the middle, a wire to each connection) ---------- */
.i-anchor { scroll-margin-top: 16px; }
.i-map { position: relative; max-width: 1180px; margin: 56px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 230px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(64px, 9vw, 150px); row-gap: 28px; align-items: center; text-align: left; }
.i-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.i-wires path { fill: none; stroke: color-mix(in srgb, #18aee3 50%, var(--line-2)); stroke-width: 1.6; stroke-dasharray: 3 7; animation: iDash 1.4s linear infinite; }
@keyframes iDash { to { stroke-dashoffset: -20; } }
.i-core { position: relative; z-index: 1; grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 18px 26px; border-radius: 28px; background: #173151; color: #fff; text-align: center; box-shadow: 0 40px 80px -36px rgba(15,34,54,.55); }
.i-core::before { content: ''; position: absolute; inset: -10px; border-radius: 34px; border: 1px solid color-mix(in srgb, #18aee3 35%, transparent); }
.i-core-logo { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px rgba(24,174,227,.14); }
.i-core-logo img { width: 52px; height: 52px; }
.i-core b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.i-core small { font-size: 13px; color: rgba(255,255,255,.7); }
.i-core.is-ping .i-core-logo { animation: iCorePing .8s var(--ease-out); }
@keyframes iCorePing { 0% { box-shadow: 0 0 0 8px rgba(24,174,227,.14); } 40% { box-shadow: 0 0 0 16px rgba(24,174,227,.3); } 100% { box-shadow: 0 0 0 8px rgba(24,174,227,.14); } }
.i-node { position: relative; z-index: 1; grid-row: var(--r); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px 14px; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: inherit; text-decoration: none; box-shadow: 0 18px 40px -30px rgba(15,34,54,.4); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.i-node:hover { border-color: color-mix(in srgb, #18aee3 45%, var(--line)); transform: translateY(-2px); }
.i-node.is-left { grid-column: 1; }
.i-node.is-right { grid-column: 3; }
.i-node.is-ping { animation: iPing .8s var(--ease-out); }
.i-node.is-active { border-color: color-mix(in srgb, #18aee3 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, #18aee3 14%, transparent), 0 18px 40px -30px rgba(15,34,54,.4); }
@keyframes iPing { 40% { box-shadow: 0 0 0 5px color-mix(in srgb, #18aee3 22%, transparent), 0 18px 40px -30px rgba(15,34,54,.4); } }
.i-node-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, #18aee3 12%, transparent); color: var(--cyan-text); }
.i-node-ic svg { width: 22px; height: 22px; }
.i-node-ic img { max-width: 30px; max-height: 28px; }
.i-node-t { align-self: center; min-width: 0; }
.i-node-t b { display: block; font-size: 17px; font-weight: 600; color: var(--ink-strong); }
.i-node-t small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.i-node-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.i-node-tags i { padding: 3px 10px; border-radius: 999px; background: var(--paper-2); font-size: 12.5px; font-style: normal; color: var(--muted); }
.i-packet { position: absolute; left: 0; top: 0; z-index: 2; offset-rotate: 0deg; padding: 4px 10px; border-radius: 999px; background: #18aee3; color: #0b1726; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 14px -6px rgba(15,34,54,.45); }
.i-packet.is-out { background: #173151; color: #fff; }
:root[data-theme="dark"] .i-packet.is-out { background: #fff; color: #173151; }

/* The Kore apps, on the rail's navy as in the app. */
.i-rail { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 12px 16px; border-radius: 18px; background: #173151; list-style: none; }
.i-rail li { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.i-rail li.is-on { background: rgba(24,174,227,.16); box-shadow: inset 0 0 0 1.5px #18aee3; }
.i-rail img { width: 24px; height: 24px; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
	.i-wires path { animation: none; }
}
/* What the packet on the wire means, one line under the map. */
.i-live { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 26px; margin: 26px auto 0; font-size: 15px; color: var(--muted); }
.i-live i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #18aee3; }
.i-live i.is-out { background: #173151; }
.i-live span { animation: mxFadeIn .4s ease-out; }
.i-live b { color: var(--ink-strong); font-weight: 600; }
.i-live small { margin-left: 8px; font-size: 12.5px; color: var(--muted); opacity: .7; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
	/* Tablets and phones: the same map, compact. Morsix is a round hub, each connection a small tile. */
	.i-map { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); column-gap: 30px; row-gap: 16px; margin-top: 40px; }
	.i-core { padding: 16px 8px; border-radius: 999px; aspect-ratio: 1; justify-content: center; }
	.i-core::before { inset: -7px; border-radius: 999px; }
	.i-core-logo { width: 52px; height: 52px; margin-bottom: 4px; box-shadow: 0 0 0 6px rgba(24,174,227,.14); }
	.i-core-logo img { width: 32px; height: 32px; }
	.i-core b { font-size: 14px; }
	.i-core small { display: none; }
	.i-node { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; padding: 14px 8px; border-radius: 16px; text-align: center; }
	.i-node-tags { display: none; }
	.i-node-t b { font-size: 15px; }
	.i-node-t small { font-size: 12.5px; }
	.i-packet { padding: 3px 8px; font-size: 10.5px; }
	.i-live { margin-top: 20px; padding: 0 8px; font-size: 14px; text-align: left; }
}
@media (max-width: 560px) {
	.i-map { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); column-gap: 22px; }
	.i-core-logo { width: 42px; height: 42px; }
	.i-core-logo img { width: 26px; height: 26px; }
	.i-core b { font-size: 12.5px; }
	.i-node { padding: 12px 6px; }
	.i-node-ic { width: 40px; height: 40px; border-radius: 12px; }
	.i-node-ic img { max-width: 24px; max-height: 22px; }
	.i-node-t small { display: none; }
	.i-node-t b { font-size: 14px; }
	.i-rail { gap: 4px; padding: 10px; }
	.i-rail li { width: 38px; height: 38px; }
	.i-rail img { width: 21px; height: 21px; }
}

/* ---------- Reports: the report library (group tabs, the group's reports, the picked report's screen + facts) ---------- */
.r-lib { display: grid; grid-template-columns: minmax(250px, 4fr) minmax(0, 9fr); grid-template-areas: "tabs tabs" "list view"; gap: 22px clamp(24px, 3vw, 48px); align-items: start; }
.r-lib > .m-tabs { grid-area: tabs; justify-self: center; margin: 0; }
.r-lists { grid-area: list; }
.r-list { display: grid; gap: 4px; }
.r-list[hidden] { display: none; }
.r-item { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid transparent; border-radius: 16px; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.r-item:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.r-item[aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: 0 16px 34px -26px rgba(15,34,54,.4); }
.r-item .m-ic { width: 36px; height: 36px; margin: 0; border-radius: 10px; transition: background-color .3s, color .3s; }
.r-item .m-ic svg { width: 17px; height: 17px; }
.r-item[aria-selected="true"] .m-ic { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .r-item[aria-selected="true"] .m-ic { background: #18aee3; color: #0b1726; }
.r-item b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink-strong); }
.r-item small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.r-view { grid-area: view; min-width: 0; }
.r-view [data-lib-shot] { display: flex; flex-direction: column; justify-content: center; }
.r-view [data-lib-shot].is-swap { animation: swapIn .45s var(--ease-out); }
.r-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 14px; border-radius: 16px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.r-facts[hidden], .r-facts .r-q { display: none; }
.r-lib .m-tabs .r-n { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--paper-2); font-size: 11.5px; color: var(--muted); }
.r-lib .m-tabs button[aria-selected="true"] .r-n { background: rgba(255,255,255,.18); color: inherit; }
.r-facts div { padding: 12px 14px; background: var(--card); }
.r-facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.r-facts dd { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 900px) {
	/* Tablets and phones: the screen first, the group's reports as chips under it, then the picked report's facts. */
	.r-lib { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "view" "list"; gap: 14px; }
	.r-lib > .m-tabs { justify-self: stretch; }
	.r-view { display: contents; }
	.r-view > .m-shot { grid-row: 2; }
	.r-facts { grid-row: 4; margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.r-facts .r-q { display: block; }
	.r-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
	.r-item { width: auto; grid-template-columns: auto; padding: 6px 13px; border-color: var(--line-2); border-radius: 999px; }
	.r-item .m-ic, .r-item small { display: none; }
	.r-item b { font-size: 13.5px; }
	.r-item[aria-selected="true"] { background: var(--navy); border-color: var(--navy); box-shadow: none; }
	.r-item[aria-selected="true"] b { color: #fff; }
	:root[data-theme="dark"] .r-item[aria-selected="true"] { background: #18aee3; border-color: #18aee3; }
	:root[data-theme="dark"] .r-item[aria-selected="true"] b { color: #0b1726; }
}
@media (max-width: 560px) {
	.r-facts { grid-template-columns: minmax(0, 1fr); }
	.r-facts div, .r-facts .r-q { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 9px 12px; }
	.r-facts dd { margin: 0; font-size: 13.5px; }
}

/* Pricing page: room between the billing switch and the plan cards (the Most popular badge sits above its card). */
.p-pricing .plans { margin-top: 48px; }
