/* Malm Development - produktkatalog. Demoens egne stiler ligger separat nedenfor. */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --ember: #ad4e17;
  --ember-soft: #ffdbc7;
  --ember-ink: #361500;
  --steel: #4c616f;
  --steel-soft: #cfe5f5;
  --bg: #f3f5f7;
  --surface: #fbfcfd;
  --surface-2: #eef1f4;
  --surface-3: #e8ecef;
  --ink: #181c1f;
  --ink-muted: #515a61;
  --line: #c7ced3;
  --line-strong: #8c979f;
  --radius: 4px;
  --radius-lg: 4px;
  --shadow-1: none;
  --shadow-2: none;
  --shadow-ember: none;
  --wrap: 1248px;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: ease;
  --ease-out: ease-out;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ember: #f2854a;
    --ember-soft: #5a3016;
    --ember-ink: #ffdcc6;
    --steel: #9fb3c2;
    --steel-soft: #33424e;
    --bg: #181c20;
    --surface: #1d2226;
    --surface-2: #21272c;
    --surface-3: #2c3339;
    --ink: #e4e7ea;
    --ink-muted: #b3bcc4;
    --line: #3e484f;
    --line-strong: #77838c;
  }
}
:root[data-theme="dark"] {
  --ember: #f2854a;
  --ember-soft: #5a3016;
  --ember-ink: #ffdcc6;
  --steel: #9fb3c2;
  --steel-soft: #33424e;
  --bg: #181c20;
  --surface: #1d2226;
  --surface-2: #21272c;
  --surface-3: #2c3339;
  --ink: #e4e7ea;
  --ink-muted: #b3bcc4;
  --line: #3e484f;
  --line-strong: #77838c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0 0 .55em; font-family: var(--heading); font-weight: 600; line-height: 1.02; letter-spacing: -.015em; }
h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.15rem, 4vw, 3.2rem); }
h3 { font-size: 1.9rem; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
a { color: var(--ember); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color 120ms ease; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }
section { padding-block: clamp(48px, 7vw, 88px); }
.lead { max-width: 62ch; font-size: clamp(1.06rem, 1.5vw, 1.18rem); color: var(--ink-muted); }
.eyebrow, .sheet-label, .availability, .catalog-kind {
  font: 500 .73rem/1.6 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.eyebrow { display: block; color: var(--ember); margin-bottom: 16px; }
.sheet-label { color: var(--ink-muted); margin-bottom: 18px; }
.accent { color: var(--ember); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.skip { position: fixed; z-index: 200; top: -100px; left: 20px; padding: 12px 20px; background: var(--ember); color: #fff; }
.skip:focus { top: 10px; color: #fff; }
:where(a, button, input, textarea, summary):focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
[hidden] { display: none !important; }

/* Solid navigation, with the same controls in both languages. */
header.site { position: sticky; z-index: 100; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; font-size: 1rem; letter-spacing: -.02em; white-space: nowrap; }
.logo .mark { display: block; width: 36px; height: 36px; object-fit: contain; flex: none; }
.logo .mark { transition: transform 240ms cubic-bezier(.16,1,.3,1); }
.logo:focus-visible .mark { transform: translateY(-2px); }
@media (hover: hover) and (pointer: fine) { .logo:hover .mark { transform: translateY(-2px); } }
.logo b { font: 600 1.55rem/1 var(--heading); letter-spacing: -.01em; }
.logo span { color: var(--ink-muted); font-weight: 450; }
nav.main { display: flex; gap: 18px; align-items: center; }
nav.main a { padding-block: 10px; color: var(--ink-muted); font-size: .85rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ember); }
.language-switch { display: flex; align-items: center; gap: 2px; flex: none; }
.language-link { padding: 6px; border: 1px solid transparent; color: var(--ink-muted); font-size: .75rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.language-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.language-link:hover { color: var(--ember); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; flex: none; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ember); color: var(--ember); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: none; }
}
.nav-toggle { display: none; }
@media (max-width: 900px) {
  header.site .wrap { gap: 12px; }
  .nav-toggle { display: inline-grid; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px 24px 24px; flex-direction: column; align-items: stretch; gap: 4px; background: var(--bg); border-bottom: 1px solid var(--line-strong); }
  nav.main.is-open { display: flex; }
  nav.main a { padding: 12px 0; }
  .no-js header.site { position: static; }
  .no-js header.site .wrap { flex-wrap: wrap; padding-top: 14px; }
  .no-js nav.main { display: flex; position: static; order: 5; flex: 0 0 100%; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; padding: 4px 0 12px; border: 0; }
}
.no-js [data-theme-toggle], .no-js [data-nav-toggle] { display: none; }
@media (max-width: 520px) {
  header.site .wrap { gap: 7px; }
  header.site .logo { gap: 6px; }
  header.site .logo .mark { width: 32px; height: 32px; }
  header.site .logo span { display: none; }
  .language-link { padding-inline: 4px; }
  .icon-btn { width: 34px; height: 34px; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 19px; border: 1px solid var(--line-strong); border-radius: 3px; font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); transition: color 120ms ease, background 120ms ease, border-color 120ms ease; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--ember); border-color: var(--ember); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #361500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #361500; } }
.btn-primary:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
:root[data-theme="dark"] .btn-primary:hover { color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { color: var(--bg); } }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface-3); color: var(--ink); }
.btn-quiet { border: 0; padding: 6px 0; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 4px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.center .cta-row { justify-content: center; }
.text-link { font-size: .9rem; font-weight: 550; }

/* The opening is a masthead and a working index, rather than a decorative panel. */
.hero { padding-block: clamp(48px, 7vw, 88px); }
.home-hero { padding-block: clamp(52px, 7vw, 92px); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, .42fr); align-items: end; gap: 64px; }
.home-hero h1 { max-width: 12ch; margin-bottom: 26px; font-size: clamp(3.5rem, 9vw, 8rem); line-height: .94; letter-spacing: -.02em; }
.home-hero .lead { max-width: 51ch; font-size: 1rem; }
.status { margin: 0 0 24px; color: var(--ink-muted); font: .75rem/1.5 var(--mono); letter-spacing: .04em; }
.app-index { border-left: 1px solid var(--line-strong); padding-left: 28px; }
.app-index ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.app-index li { border-bottom: 1px solid var(--line); }
.app-index a { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px; align-items: baseline; padding: 16px 0; color: var(--ink); text-decoration: none; }
.app-index a:hover { color: var(--ember); }
.app-index .index-number { font: .75rem var(--mono); color: var(--ink-muted); }
.app-index .index-name { font: 600 1.8rem/1 var(--heading); }
.app-index { position: relative; }
.app-index a.is-previewed { color: var(--ember); }
.index-marker { position: absolute; top: 0; left: 0; width: 2px; height: 24px; background: var(--ember); pointer-events: none; }
.index-preview { display: grid; margin-top: 22px; }
.index-preview-panel { display: grid; grid-area: 1 / 1; grid-template-columns: 48px minmax(0,1fr); align-content: start; align-items: center; gap: 12px 14px; min-width: 0; visibility: hidden; pointer-events: none; }
.index-preview-panel.is-active { visibility: visible; }
.index-preview .app-icon { width: 48px; height: 48px; border-radius: 10px; }
.preview-title { margin: 0 0 5px; font: 600 1.5rem/1.1 var(--heading); }
.preview-status { margin: 0; color: var(--ink-muted); font: .6rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .025em; }
.preview-description { grid-column: 1 / -1; margin: 0; color: var(--ink-muted); font-size: .82rem; line-height: 1.6; }
.catalog-section { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.55fr); gap: 48px; align-items: end; margin-bottom: 36px; }
.section-heading h2 { margin-bottom: 0; max-width: 21ch; }
.section-heading .lead { margin: 0; font-size: .96rem; }
.catalog { border-top: 2px solid var(--ink); }
.catalog-entry { display: grid; grid-template-columns: 52px minmax(0,1fr) 230px; gap: 28px; padding-block: 32px; border-bottom: 1px solid var(--line-strong); align-items: start; }
.catalog-number { color: var(--ember); font: 600 2.2rem/1 var(--heading); }
.catalog-identity { display: flex; align-items: center; gap: 20px; }
.app-icon { display: block; width: 80px; height: 80px; flex: none; border-radius: 16px; object-fit: contain; }
.catalog-main { min-width: 0; }
.catalog-main h3 { margin: 0; font-size: clamp(2.2rem, 3.8vw, 3rem); }
.catalog-main h3 a { color: var(--ink); text-decoration: none; }
.catalog-main h3 a:hover { color: var(--ember); }
.catalog-kind { margin: 0 0 7px; color: var(--ink-muted); }
.catalog-main > p { margin: 18px 0 0; max-width: 62ch; color: var(--ink-muted); font-size: .96rem; }
.catalog-main .app-audience { font-size: .9rem; }
.app-audience b { color: var(--ink); }
.catalog-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-top: 4px; }
.availability { margin: 0 0 4px; color: var(--ink-muted); font-size: .66rem; letter-spacing: .03em; }
.availability-public { color: var(--ember); }
.catalog-actions .text-link { align-self: flex-start; }
.catalog-note { margin-top: 26px; font-size: .9rem; color: var(--ink-muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0; margin-top: 16px; }
.tag { color: var(--ink-muted); font: .66rem/1.8 var(--mono); letter-spacing: .02em; text-transform: uppercase; }
.tag + .tag::before { content: "/"; margin-inline: 9px; color: var(--line-strong); }
.work-note { border-block: 1px solid var(--line); }
.work-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 64px; }
.work-layout h2 { max-width: 13ch; }
.work-copy { font-size: 1.12rem; max-width: 58ch; }
.work-layout .text-link { display: inline-block; margin-top: 16px; }

/* Product sheets keep the real app details alongside the introduction. */
.product-header { border-bottom: 1px solid var(--line); margin-bottom: clamp(44px, 6vw, 72px); }
.product-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 64px; }
.product-intro { min-width: 0; }
.product-header h1 { font-size: clamp(3.5rem, 7vw, 6.25rem); }
.app-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.app-heading h1 { margin: 0; min-width: 0; }
.app-icon-large { width: 96px; height: 96px; border-radius: 19px; }
.product-header .lead { max-width: 55ch; font-size: 1.06rem; }
.product-facts { padding-top: 6px; }
.product-facts > .catalog-number { font-size: 5.5rem; margin: 0 0 16px; }
.facts { border-top: 1px solid var(--ink); margin: 0; }
.facts div { padding-block: 15px; border-bottom: 1px solid var(--line); }
.facts b { display: block; color: var(--ink-muted); font: .68rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.facts span { display: block; margin-top: 5px; font-size: .88rem; font-weight: 550; overflow-wrap: anywhere; }
.crumbs { color: var(--ink-muted); font-size: .78rem; margin-bottom: 30px; }
.crumbs a { color: inherit; }
.crumbs span { margin-inline: 8px; }
.page-head { padding-block: clamp(48px, 7vw, 80px) 44px; }
.page-head h1, .page-intro h1 { max-width: 17ch; }
.page-head .lead, .page-intro .lead { max-width: 60ch; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.7em; font-size: 2.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .65em; }
.prose li::marker { color: var(--ember); }
.about-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 64px; }
.about-caption { border-top: 1px solid var(--ink); padding-top: 16px; }
.about-caption p:last-child { font: 600 2rem/1.15 var(--heading); }
.page--privacy .prose { max-width: 76ch; }
.service-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.service-entry { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 28px; padding-block: 30px; border-bottom: 1px solid var(--line-strong); }
.service-main { max-width: 76ch; }
.service-main h3 { margin-bottom: 16px; font-size: 2.6rem; }
.service-main p { color: var(--ink-muted); }
.ruled-section { border-top: 1px solid var(--line); }
.error-layout { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 48px; align-items: start; }
.error-code { color: var(--ember); font: 600 9rem/.9 var(--heading); margin: 0; }
.error-layout h1 { max-width: 14ch; }

.qa { margin-top: 32px; max-width: 850px; border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line-strong); }
.qa summary { position: relative; padding: 20px 38px 20px 0; cursor: pointer; list-style: none; font-weight: 550; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 5px; top: 20px; font-family: var(--mono); color: var(--ember); }
.qa details[open] summary::after { content: "−"; }
.qa .answer { padding: 0 40px 22px 0; max-width: 73ch; color: var(--ink-muted); font-size: .96rem; }
.contact { border-top: 2px solid var(--ink); padding-top: 32px; }
.contact h2 { margin-bottom: 20px; }
.contact .lead { max-width: 62ch; }
.mail { display: inline-flex; align-items: center; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line-strong); color: var(--ink); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 550; text-decoration: none; }
.mail:hover { color: var(--ember); border-bottom-color: var(--ember); }
.mail svg { width: 20px; height: 20px; flex: none; }
.access-note { margin-top: 18px; max-width: 63ch; font-size: .88rem; color: var(--ink-muted); }
.access-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; padding: 0; margin: 32px 0; list-style: none; counter-reset: step; }
.access-steps li { counter-increment: step; border-top: 1px solid var(--line-strong); padding-top: 15px; }
.access-steps li::before { content: "0" counter(step); display: block; margin-bottom: 14px; color: var(--ember); font: 600 2rem/1 var(--heading); }
.access-steps strong { display: block; margin-bottom: 10px; font-size: 1rem; }
.access-steps p { color: var(--ink-muted); font-size: .9rem; margin: 0; }
.copy-status { min-height: 1.65em; margin-top: 18px; font-size: .88rem; color: var(--ink-muted); }
.copy-fallback { max-width: 76ch; margin-top: 18px; }
.copy-fallback label { display: block; margin-bottom: 10px; }
.copy-fallback textarea { width: 100%; padding: 14px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; resize: vertical; }
.suggestion-section { padding-top: 0; }
.suggestion-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 80px; align-items: start; }
.suggestion-main { min-width: 0; }
.suggestion-form { border-top: 2px solid var(--ink); padding-top: 28px; }
.form-field { margin-bottom: 28px; }
.form-field label { display: block; margin-bottom: 10px; font-weight: 600; }
.form-field select, .form-field textarea { display: block; width: 100%; max-width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.6; }
.form-field select { min-height: 52px; padding-right: 34px; }
.form-field textarea { min-height: 205px; resize: vertical; }
.form-field :user-invalid { border-color: var(--ember); }
.field-hint { color: var(--ink-muted); font-size: .85rem; max-width: 64ch; }
.suggestion-form .cta-row { margin-top: 20px; }
.suggestion-aside { border-top: 1px solid var(--line-strong); padding-top: 20px; font-size: .9rem; color: var(--ink-muted); }
.suggestion-aside .sheet-label { color: var(--ember); }
.suggestion-privacy { padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; }
.suggestion-email-fallback ul { padding-left: 1.2em; }
.suggestion-email-fallback li { margin-bottom: 12px; }
.phone-qr { display: none; }
@media (min-width: 801px) { .phone-qr { display: block; max-width: 520px; margin-top: 20px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); } }
.phone-qr summary { padding: 12px 0; font-size: .85rem; font-weight: 550; cursor: pointer; }
.phone-qr-content { padding-bottom: 16px; }
.phone-qr-content p { color: var(--ink-muted); font-size: .88rem; }
.phone-qr-code { display: block; width: 256px; height: 256px; max-width: 100%; background: #fff; color-scheme: light; }
.support-note { border-top: 1px solid var(--line); padding-block: 24px; font-size: .85rem; color: var(--ink-muted); }
.support-note p { max-width: 78ch; margin: 0; }
.support-note a { display: inline-block; margin-left: .4em; font-weight: 600; }
footer.site { padding-block: 42px 28px; background: var(--surface-2); border-top: 2px solid var(--ink); font-size: .86rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-grid nav { display: flex; flex-direction: column; gap: 9px; }
.foot-grid nav strong { margin-bottom: 8px; color: var(--ink-muted); font: .68rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.foot-grid nav a { color: var(--ink-muted); text-decoration: none; }
.foot-grid nav a:hover { color: var(--ember); text-decoration: underline; }
.foot-note { border-top: 1px solid var(--line); margin: 32px 0 0; padding-top: 20px; font-size: .8rem; color: var(--ink-muted); }

/* Movement follows the catalogue's rules and responds to the visitor. */
html.motion-ready { scroll-behavior: smooth; }
.motion-ready body, .motion-ready header.site, .motion-ready footer.site {
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}
.motion-ready header.site::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ember); transform-origin: left; transform: scaleX(var(--page-progress, 0)); pointer-events: none; }
.catalog-entry, .service-entry { position: relative; transition: background-color 220ms ease; }
.catalog-entry.has-motion-rule, .service-entry.has-motion-rule { border-bottom-color: transparent; }
.catalog-rule { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line-strong); transform-origin: left; pointer-events: none; }
.catalog-entry .app-icon { transition: transform 300ms cubic-bezier(.16,1,.3,1); }
.catalog-entry:focus-within { background-color: color-mix(in srgb, var(--ember) 5%, transparent); }
.catalog-entry:focus-within .app-icon { transform: translateY(-3px); }
.btn, .icon-btn { transition: transform 180ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease; }
.btn:active, .icon-btn:active { transform: translateY(1px) scale(.98); }
.btn svg { transition: transform 220ms ease; }
.btn:hover svg, .btn:focus-visible svg { transform: translateX(3px); }
.text-link { transition: color 180ms ease, text-underline-offset 180ms ease; }
.text-link:hover, .text-link:focus-visible { text-underline-offset: 7px; }
.qa summary:focus-visible, .phone-qr summary:focus-visible { outline-offset: -3px; }
nav.main.is-closing { pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .catalog-entry:hover { background-color: color-mix(in srgb, var(--ember) 5%, transparent); }
  .catalog-entry:hover .app-icon { transform: translateY(-3px) rotate(-2deg); }
}

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: minmax(0,1fr); gap: 38px; }
  .home-hero h1 { font-size: clamp(3.5rem, 11vw, 6.5rem); max-width: 15ch; }
  .app-index { padding: 0; border-left: 0; }
  .app-index ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .index-preview { max-width: 440px; }
  .section-heading { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .catalog-entry { grid-template-columns: 40px minmax(0,1fr); gap: 18px; }
  .catalog-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 0; }
  .catalog-actions .availability { width: 100%; margin: 0; }
  .catalog-actions .text-link { align-self: center; }
  .product-layout { grid-template-columns: minmax(0,1fr); gap: 36px; }
  .product-facts { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 20px; }
  .product-facts > .sheet-label { grid-column: 1 / -1; margin-bottom: 0; }
  .product-facts > .catalog-number { font-size: 4rem; }
  .product-facts > .facts { grid-column: 2; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .work-layout, .about-layout { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .suggestion-layout { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .about-caption p:last-child { font-size: 1.5rem; }
  .access-steps { grid-template-columns: minmax(0,1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .hero, .home-hero { padding-block: 44px 52px; }
  .home-hero h1 { font-size: 3.6rem; max-width: 12ch; }
  .app-index .index-name { font-size: 1.5rem; }
  .catalog-entry { gap: 16px; padding-block: 28px; }
  .catalog-identity { align-items: start; gap: 14px; }
  .catalog-identity .app-icon { width: 64px; height: 64px; border-radius: 13px; }
  .catalog-main h3 { font-size: 2rem; }
  .catalog-kind { font-size: .65rem; }
  .catalog-number { font-size: 1.9rem; }
  .catalog-actions { grid-column: 1 / -1; }
  .app-heading { align-items: start; gap: 16px; }
  .app-icon-large { width: 72px; height: 72px; border-radius: 14px; }
  .product-header h1 { font-size: 3.2rem; }
  .product-facts { grid-template-columns: 48px minmax(0,1fr); gap: 18px; }
  .product-facts > .catalog-number { font-size: 3rem; }
  .facts { grid-template-columns: minmax(0,1fr); }
  .service-entry { grid-template-columns: 36px minmax(0,1fr); gap: 16px; }
  .error-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .error-code { font-size: 6rem; }
  .foot-grid { grid-template-columns: minmax(0,1fr); }
  .foot-grid nav { border-top: 1px solid var(--line); padding-top: 18px; }
}

/* Fitness-demo: det eksisterende appgrensesnittet. */
/* ---------- 10. Interaktiv Malm-demo ---------- */

.malm-playground {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg);
}
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}
.demo-copy .lead { max-width: 52ch; }
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 48ch;
  margin-top: 1.7rem;
  color: var(--ink-muted);
  font-size: .91rem;
}
.demo-note svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: .2em;
  color: var(--ember);
}
.demo-device {
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  padding: 9px;
  border: 1px solid #414950;
  border-radius: 31px;
  background: #23292e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3), var(--shadow-ember);
}
.demo-device::before {
  content: "";
  display: block;
  width: 76px;
  height: 5px;
  margin: 1px auto 8px;
  border-radius: 999px;
  background: #596168;
}
.demo-screen {
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}
.demo-topbar,
.demo-exercise,
.demo-previous,
.demo-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.demo-topbar {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.demo-brand {
  font-size: 1.04rem;
  font-weight: 750;
  letter-spacing: -.02em;
}
.demo-exercise { margin-top: 20px; }
.demo-exercise h3 { margin: 0; font-size: 1.35rem; }
.demo-kicker {
  margin: 0 0 2px;
  color: var(--ember);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.demo-set-count {
  color: var(--ink-muted);
  font-size: .8rem;
  white-space: nowrap;
}
.demo-set-count b { color: var(--ink); }
.demo-previous {
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: .88rem;
}
.demo-previous span { color: var(--ink-muted); }
.demo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.demo-form label span {
  display: block;
  margin: 0 0 5px 2px;
  color: var(--ink-muted);
  font-size: .78rem;
  font-weight: 600;
}
.demo-form input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.demo-form input:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember) 18%, transparent);
}
.demo-form .btn { grid-column: 1 / -1; margin-top: 2px; }
.demo-stats {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.demo-stats-head span {
  display: block;
  color: var(--ink-muted);
  font-size: .75rem;
}
.demo-stats-head strong { font-size: 1.08rem; }
.demo-reset { font-size: .78rem; }
.demo-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 105px;
  margin-top: 15px;
  padding: 12px 12px 0;
  border-radius: 10px;
  background:
    linear-gradient(to top, var(--line) 1px, transparent 1px) 0 100% / 100% 33.333%;
}
.demo-chart span {
  flex: 1;
  min-height: 8px;
  border-radius: 5px 5px 2px 2px;
  background: color-mix(in srgb, var(--ember) 34%, var(--line));
  transform-origin: bottom;
  animation: chart-grow .45s var(--ease-out) both;
}
.demo-chart span.latest {
  background: linear-gradient(180deg, #f28a50, var(--ember));
  box-shadow: 0 0 18px color-mix(in srgb, var(--ember) 25%, transparent);
}
@keyframes chart-grow {
  from { transform: scaleY(.05); opacity: .35; }
  to { transform: scaleY(1); opacity: 1; }
}
.demo-feedback {
  min-height: 1.6em;
  margin: 13px 0 0;
  color: var(--ink-muted);
  font-size: .8rem;
  text-align: center;
}
.demo-feedback[data-state="saved"] { color: var(--ember); }
.demo-feedback[data-state="error"] { color: #c84b45; }

@media (max-width: 850px) {
  .demo-layout { grid-template-columns: 1fr; }
  .demo-copy { text-align: center; }
  .demo-copy .lead, .demo-note { margin-inline: auto; }
  .demo-note { justify-content: center; text-align: left; }
  .demo-device { margin-inline: auto; }
}
@media (max-width: 440px) {
  .demo-device { padding: 7px; border-radius: 25px; }
  .demo-screen { padding: 18px; border-radius: 17px; }
  .demo-form { gap: 9px; }
}

/* Den faktiske Malm-oktvisningen, gjenskapt fra Compose-komponentene. */
.malm-playground .demo-layout {
  grid-template-columns: minmax(0, .82fr) minmax(400px, 510px);
  gap: clamp(44px, 7vw, 96px);
}
.malm-playground .demo-reset { margin-top: 1.1rem; }
.malm-playground .demo-device {
  max-width: 500px;
  padding: 6px;
  border: 1px solid #69727a;
  border-radius: 26px;
  background: #181c20;
}
.malm-playground .demo-device::before {
  width: 66px;
  height: 4px;
  margin: 5px auto 7px;
  background: #677078;
}
.malm-playground .demo-screen {
  padding: 0;
  border-radius: 18px;
  background: #181c20;
  color: #e4e7ea;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}
.malm-playground .demo-screen button,
.malm-playground .demo-screen input {
  font-family: inherit;
}
.malm-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 18px;
  background: #13171a;
  font-size: 12px;
}
.malm-system-icons { display: flex; align-items: center; gap: 5px; }
.malm-system-icons i { display: block; }
.malm-system-icons i:nth-child(1) {
  width: 13px;
  height: 9px;
  border: 2px solid #e4e7ea;
  border-width: 2px 2px 0;
  border-radius: 50% 50% 0 0;
}
.malm-system-icons i:nth-child(2) {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #e4e7ea;
}
.malm-system-icons i:nth-child(3) {
  width: 20px;
  height: 9px;
  border: 1px solid #e4e7ea;
  border-radius: 3px;
  box-shadow: inset 15px 0 #e4e7ea;
}
.malm-appbar {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px auto 30px;
  align-items: center;
  gap: 5px;
  min-height: 56px;
  padding: 7px 10px;
  background: #1d2226;
}
.malm-appbar strong {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
}
.malm-icon-button,
.malm-text-button,
.malm-timer-row button,
.malm-card-actions button,
.malm-set-row button,
.malm-stepper button,
.malm-add-button {
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.malm-icon-button { width: 30px; height: 30px; }
.malm-icon-button svg { width: 19px; height: 19px; }
.malm-text-button {
  min-height: 30px;
  color: #f2854a;
  font-size: 12px;
  font-weight: 700;
}
.malm-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 4px;
  color: #b3bcc4;
}
.malm-progress {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #3a434d;
}
.malm-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f2854a;
}
.malm-timer-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, 34px) 50px;
  align-items: center;
  gap: 2px;
  min-height: 50px;
  padding: 3px 14px 7px;
  color: #b3bcc4;
}
.malm-timer-row button {
  width: 34px;
  height: 34px;
  color: #f2854a;
  font-size: 12px;
  font-weight: 700;
}
.malm-rest-clock {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  justify-self: end;
  border: 3px solid #f2854a;
  border-radius: 50%;
  color: #e4e7ea;
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.malm-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #3a434d;
  color: #f2854a;
  text-align: center;
}
.malm-tabs span {
  position: relative;
  padding: 12px 4px 10px;
  font-weight: 650;
}
.malm-tabs span.active::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: #f2854a;
}
.malm-plan-strip {
  display: flex;
  flex-direction: column;
  margin: 0 14px 10px;
  padding: 7px 11px;
  border-radius: 0 0 12px 12px;
  background: #1f3824;
  color: #b3bcc4;
}
.malm-exercise-card {
  margin: 9px 14px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #21272c;
  color: #b3bcc4;
}
.malm-exercise-card.complete { background: #223524; }
.malm-exercise-card.current {
  border: 2px solid #f2854a;
  background: #373f47;
  box-shadow: 0 0 0 1px rgba(242, 133, 74, .08);
}
.malm-card-head,
.malm-card-title,
.malm-card-actions,
.malm-set-row,
.malm-add-set {
  display: flex;
  align-items: center;
}
.malm-card-head { justify-content: space-between; gap: 8px; }
.malm-card-title { gap: 7px; color: #e4e7ea; }
.malm-card-title strong { font-size: 16px; font-weight: 600; }
.malm-status-marker {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 2px solid #f2854a;
  border-radius: 50%;
  color: #f2854a;
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.malm-status-marker svg { width: 16px; height: 16px; }
.malm-status-marker.complete {
  border-color: #43a047;
  background: #43a047;
  color: #102313;
}
.malm-card-actions { gap: 2px; }
.malm-card-actions .malm-text-button { padding-inline: 5px; }
.malm-exercise-card p { margin: 1px 0; color: #b3bcc4; font-size: 12px; }
.malm-exercise-card p.accent { color: #f2854a; }
.malm-logged-sets { margin-top: 10px; }
.malm-set-row {
  min-height: 32px;
  gap: 8px;
  color: #e4e7ea;
  animation: unfold .34s var(--ease-out);
}
.malm-set-row > span { width: 58px; flex: none; color: #b3bcc4; }
.malm-set-row strong { flex: 1; font-size: 13px; font-weight: 500; }
.malm-set-row button { width: 28px; height: 28px; color: #b3bcc4; font-size: 21px; }
.malm-add-set {
  align-items: flex-end;
  gap: 7px;
  margin-top: 7px;
}
.malm-add-set label { min-width: 0; flex: 1; }
.malm-add-set label > span:first-child {
  display: block;
  margin: 0 0 3px 4px;
  color: #b3bcc4;
  font-size: 11px;
  font-weight: 600;
}
.malm-stepper {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  height: 50px;
  overflow: hidden;
  border: 1px solid #8a929b;
  border-radius: 7px;
}
.malm-stepper button { width: 36px; height: 48px; color: #e4e7ea; font-size: 21px; }
.malm-stepper input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e4e7ea;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  appearance: textfield;
}
.malm-stepper input::-webkit-inner-spin-button { appearance: none; }
.malm-add-button {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: #f2854a;
  color: #3a1b08;
  font-size: 30px;
  transition: transform .18s var(--ease), opacity .2s var(--ease);
}
.malm-add-button:active { transform: scale(.85); }
.malm-add-button:disabled { opacity: .35; cursor: default; }
.malm-playground .demo-feedback {
  min-height: 1.35em;
  margin: 7px 0 0;
  color: #b3bcc4;
  font-size: 11px;
}
.malm-playground .demo-feedback[data-state="saved"] { color: #f2854a; }
.malm-playground .demo-feedback[data-state="complete"] { color: #65b968; }
.malm-superset {
  margin: 9px 14px 0;
  padding: 10px 0 0;
  border-left: 5px solid #4c616f;
  border-radius: 12px 12px 0 0;
  background: #33424e;
  color: #d3e4f1;
}
.malm-superset > strong {
  display: block;
  padding: 0 12px 5px;
  font-size: 12px;
  font-weight: 600;
}
.malm-superset .preview { margin: 6px 9px 0; background: #373f47; }
.malm-superset .preview > strong { color: #e4e7ea; font-size: 15px; }
.malm-bottom-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  min-height: 62px;
  margin-top: 0;
  padding: 7px 5px 8px;
  border-top: 1px solid #3a434d;
  background: #181c20;
}
.malm-bottom-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #b3bcc4;
  font-size: 9px;
  text-align: center;
}
.malm-bottom-nav svg { width: 20px; height: 20px; }
.malm-bottom-nav span.active { color: #f2854a; }
.malm-exercise-card.is-done {
  border-color: #43a047;
  background: #223524;
}

/* Full demo flow: the fixed app chrome surrounds the same scrollable list used in the app. */
@property --marker-progress {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
.malm-playground .demo-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(760px, 82vh);
  min-height: 650px;
}
.malm-workout-status {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 600ms var(--ease-out), opacity 600ms var(--ease-out);
}
.malm-workout-status > * { min-height: 0; }
.malm-workout-status.is-visible {
  grid-template-rows: 1fr 1fr;
  opacity: 1;
}
.malm-progress span {
  width: 0;
  transition: width 600ms var(--ease-out);
}
.malm-workout-scroll {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #596168 transparent;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  touch-action: pan-y;
}
.malm-workout-scroll::-webkit-scrollbar { width: 5px; }
.malm-workout-scroll::-webkit-scrollbar-thumb { border-radius: 99px; background: #596168; }
.malm-start-workout {
  display: block;
  width: calc(100% - 28px);
  min-height: 48px;
  margin: 12px 14px 20px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #4caf50;
  color: #fff;
  font: 600 16px/1.2 Roboto, Arial, sans-serif;
  cursor: pointer;
  transform-origin: top center;
  transition: opacity 1500ms var(--ease-out), transform 1500ms var(--ease-out),
              margin 1500ms var(--ease-out), min-height 1500ms var(--ease-out), padding 1500ms var(--ease-out);
}
.malm-start-workout:active { transform: scale(.97); }
.malm-start-workout.is-leaving {
  min-height: 0;
  margin-block: 0;
  padding-block: 0;
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
}
.malm-exercise-list { padding-top: 1px; }
.malm-scroll-slack { height: 62vh; min-height: 420px; }
.malm-exercise-card {
  transition: background-color 500ms ease, border-color 500ms ease, transform 500ms var(--ease-out);
}
.malm-exercise-card[data-demo-exercise] { overflow: hidden; }
.malm-exercise-card.is-current { border: 2px solid #f2854a; background: #373f47; }
.malm-exercise-card.is-completing {
  background: #223524;
  border-color: #43a047;
  animation: malm-card-finish 900ms cubic-bezier(.22, 1.3, .36, 1);
}
.malm-exercise-card.is-complete { background: #223524; border-color: transparent; }
@keyframes malm-card-finish {
  0% { background: #373f47; border-color: #f2854a; transform: scale(1); }
  34% { transform: scale(1.02); }
  100% { background: #223524; border-color: #43a047; transform: scale(1); }
}
.malm-card-title-button {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e4e7ea;
  text-align: left;
  cursor: pointer;
}
.malm-card-title-button strong { overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; }
.malm-card-facts { margin-top: 5px; }
.malm-card-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-14px);
  transition: grid-template-rows 400ms var(--ease-out), opacity 350ms 300ms ease,
              transform 350ms 300ms var(--ease-out);
}
.malm-card-body > div { min-height: 0; overflow: hidden; }
.malm-exercise-card.is-expanded .malm-card-body {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
}
.malm-card-chevron { transition: transform 400ms var(--ease-out); }
.malm-exercise-card.is-expanded .malm-card-chevron { transform: rotate(180deg); }
.malm-status-marker {
  position: relative;
  border-color: rgba(242, 133, 74, .22);
  background: conic-gradient(#f2854a var(--marker-progress, 0%), rgba(242, 133, 74, .22) 0);
  padding: 2px;
  transition: --marker-progress 600ms var(--ease-out), background 600ms var(--ease-out),
              transform 900ms cubic-bezier(.22, 1.3, .36, 1);
}
.malm-status-marker::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #373f47;
}
.malm-status-marker svg { position: relative; z-index: 1; }
.malm-exercise-card.is-current:not(.is-completing) .malm-status-marker svg {
  animation: malm-marker-breathe 2200ms var(--ease-out) infinite alternate;
}
.malm-exercise-card.is-completing .malm-status-marker,
.malm-exercise-card.is-complete .malm-status-marker {
  border-color: #43a047;
  background: #43a047;
  color: #102313;
  transform: rotate(360deg);
}
.malm-exercise-card.is-completing .malm-status-marker {
  animation: malm-marker-finish 900ms cubic-bezier(.18, .9, .24, 1.35) both;
}
.malm-exercise-card.is-completing .malm-status-marker svg {
  animation: malm-check-enter 520ms 120ms cubic-bezier(.18, .9, .24, 1.35) both;
}
.malm-exercise-card.is-completing .malm-status-marker::before,
.malm-exercise-card.is-complete .malm-status-marker::before { background: #43a047; }
@keyframes malm-marker-breathe {
  from { opacity: .78; transform: scale(1); }
  to { opacity: 1; transform: scale(1.14); }
}
@keyframes malm-marker-finish {
  from { color: #f2854a; background: rgba(242, 133, 74, .22); transform: rotate(0deg); }
  to { color: #102313; background: #43a047; transform: rotate(360deg); }
}
@keyframes malm-check-enter { from { opacity: 0; transform: scale(.3); } }
.malm-status-marker.has-progress { animation: malm-ring-fill 600ms var(--ease-out) both; }
@keyframes malm-ring-fill { from { --marker-progress: 0%; } to { --marker-progress: 100%; } }
.malm-set-row.is-new {
  animation: malm-set-enter 700ms cubic-bezier(.2, .9, .25, 1.25) both;
}
@keyframes malm-set-enter {
  from { opacity: 0; transform: translateX(34%) scale(.96); max-height: 0; }
  to { opacity: 1; transform: none; max-height: 42px; }
}
.malm-set-row.is-pr { animation: malm-pr-flash 650ms 500ms ease both; }
@keyframes malm-pr-flash {
  0%, 100% { background: transparent; }
  25% { background: rgba(255, 215, 0, .25); }
}
.malm-progress-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid #2e9e4f;
  border-radius: 999px;
  color: #71d18d;
  font-size: 10px;
  white-space: nowrap;
  animation: malm-chip-rise 600ms cubic-bezier(.2, .9, .25, 1.35) both;
}
.malm-pr-icon {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: #ffd700;
  animation: malm-trophy 750ms cubic-bezier(.2, .9, .25, 1.35) both;
}
@keyframes malm-chip-rise { from { width: 0; padding-inline: 0; opacity: 0; transform: translateY(100%); } }
@keyframes malm-trophy { from { opacity: 0; transform: translateY(100%) rotate(-180deg) scale(0); } }
.malm-add-set.is-disabled { pointer-events: none; opacity: .45; }
.malm-rest-clock.is-running { animation: malm-rest-breathe 1800ms ease-in-out infinite alternate; }
@keyframes malm-rest-breathe { to { box-shadow: 0 0 0 5px rgba(242, 133, 74, .1); } }
.malm-bottom-nav { flex: none; z-index: 3; }
.malm-dialog-layer,
.malm-complete-layer {
  position: absolute;
  z-index: 10;
  inset: 0;
}
.malm-dialog-layer {
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .65);
  animation: malm-fade-in 220ms ease both;
}
.malm-dialog-layer[hidden], .malm-complete-layer[hidden] { display: none; }
.malm-finish-dialog {
  width: 100%;
  padding: 24px;
  border-radius: 26px;
  background: #2a3035;
  color: #e4e7ea;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  animation: malm-dialog-enter 420ms cubic-bezier(.2, .9, .25, 1.2) both;
}
.malm-finish-dialog h3 { margin: 0 0 13px; font: 500 23px/1.2 Roboto, Arial, sans-serif; letter-spacing: -.022em; }
.malm-finish-dialog p { margin: 0 0 18px; color: #c4cbd1; }
.malm-finish-dialog label span { display: block; margin-bottom: 7px; color: #b3bcc4; font-size: 12px; }
.malm-finish-dialog textarea {
  width: 100%;
  resize: none;
  padding: 10px;
  border: 1px solid #8a929b;
  border-radius: 5px;
  outline: none;
  background: transparent;
  color: #e4e7ea;
  font: inherit;
}
.malm-finish-dialog textarea:focus { border: 2px solid #f2854a; }
.malm-finish-dialog > div { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.malm-finish-dialog button {
  padding: 10px;
  border: 0;
  background: transparent;
  color: #f2854a;
  font: 700 13px Roboto, Arial, sans-serif;
  cursor: pointer;
}
@keyframes malm-dialog-enter { from { opacity: 0; transform: scale(.84); } }
@keyframes malm-fade-in { from { opacity: 0; } }
.malm-complete-layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(242, 133, 74, .52), rgba(0, 0, 0, .78) 70%);
  color: #fff;
  cursor: pointer;
  font-family: Roboto, Arial, sans-serif;
  animation: malm-fade-in 350ms ease both;
}
.malm-complete-check { width: 110px; height: 110px; color: #43a047; filter: drop-shadow(0 12px 18px rgba(67, 160, 71, .45)); }
.malm-complete-check svg { width: 100%; height: 100%; }
.malm-complete-layer > span,
.malm-complete-layer > strong,
.malm-complete-layer > small { animation: malm-complete-spring 900ms cubic-bezier(.18, .9, .24, 1.35) both; }
.malm-complete-layer strong { margin-top: 14px; font-size: 24px; }
.malm-complete-layer small { margin-top: 8px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.malm-complete-layer em { position: absolute; bottom: 28px; color: rgba(255, 255, 255, .62); font-size: 11px; font-style: normal; }
@keyframes malm-complete-spring { from { opacity: 0; transform: scale(0); } }

@media (max-width: 900px) {
  .malm-playground .demo-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .malm-playground .demo-device { width: calc(100% + 12px); margin-inline: -6px; }
  .malm-appbar strong { font-size: 15px; }
  .malm-exercise-card { margin-inline: 9px; }
  .malm-plan-strip, .malm-superset { margin-inline: 9px; }
  .malm-card-title strong { font-size: 14px; }
  .malm-stepper { grid-template-columns: 31px minmax(0, 1fr) 31px; }
  .malm-stepper button { width: 31px; }
  .malm-add-button { width: 48px; height: 48px; }
  .malm-playground .demo-screen { height: 700px; min-height: 620px; }
}


@media (prefers-reduced-motion: reduce) {
  html.motion-ready { scroll-behavior: auto; }
  .catalog-entry .app-icon, .btn, .icon-btn, .btn svg, .logo .mark { transform: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
