/* Orderseam UI kit: the shared look for app pages (netlify/SPECS.md, look rules 1 and 2).
   - Inter, hosted by us in /fonts/ (Ram, 2026-11-10: the same clean font as Cloudflare's dashboard,
     so pages look the same on every device), with the device's system font as the fallback;
     18px or more; pages work at 200% zoom (sizes are rem).
   - Every text and button colour passes WCAG AA; no light-grey text on white.
   - Fixed colour meanings: blue = the main action, green = paid/done, amber = waiting,
     red = problems or delete only.
   - Tap targets are 44px or more. One main (blue) button per screen.
   - A readable dark mode, and a text-size switch (Normal / Large / Extra large) saved per device. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter.woff2) format("woff2-variations"), url(/fonts/inter.woff2) format("woff2"); }
:root {
  --bg: #f4f6f9; --surface: #ffffff; --ink: #111827; --muted: #4b5563; --line: #c3c9d4; --field: #ffffff;
  --blue: #1d4ed8; --blue-hover: #1e40af; --on-blue: #ffffff; --link: #1d4ed8;
  --green: #166534; --green-bg: #e7f6ec; --amber: #92400e; --amber-bg: #fdf3d7; --red: #b91c1c; --red-bg: #fdecec;
  --focus: #1d4ed8;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e131d; --surface: #171e2c; --ink: #f3f4f6; --muted: #c5cbd6; --line: #46506a; --field: #0e131d;
    --blue: #9db8ff; --blue-hover: #bccfff; --on-blue: #0b1220; --link: #a9c1ff;
    --green: #86efac; --green-bg: #12301f; --amber: #fcd34d; --amber-bg: #3a2c0a; --red: #fca5a5; --red-bg: #3b1616;
    --focus: #bccfff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e131d; --surface: #171e2c; --ink: #f3f4f6; --muted: #c5cbd6; --line: #46506a; --field: #0e131d;
  --blue: #9db8ff; --blue-hover: #bccfff; --on-blue: #0b1220; --link: #a9c1ff;
  --green: #86efac; --green-bg: #12301f; --amber: #fcd34d; --amber-bg: #3a2c0a; --red: #fca5a5; --red-bg: #3b1616;
  --focus: #bccfff;
  color-scheme: dark;
}
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }            /* 18px */
html[data-text="large"] { font-size: 125%; }                            /* 20px */
html[data-text="xlarge"] { font-size: 143.75%; }                        /* 23px */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font); overflow-wrap: anywhere; }
a { color: var(--link); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0; font-weight: 700; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0.6rem 0 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Top bar */
.k-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.k-top .k-wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.k-wrap { max-width: 60rem; margin: 0 auto; padding: 0 1rem; }
.k-logo { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.k-main { padding: 1.5rem 0 3rem; }
.k-narrow { max-width: 32rem; }

/* Cards */
.k-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; margin-top: 1rem; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 8px 24px rgba(17, 24, 39, 0.04); }
.k-card > :first-child { margin-top: 0; }
.k-eyebrow { margin: 0 0 0.25rem; color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* Forms */
.k-form { display: grid; gap: 1rem; margin-top: 1rem; }
.k-field { display: grid; gap: 0.3rem; font-weight: 600; }
.k-field .k-hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.k-input, .k-select { font: inherit; font-weight: 400; color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 10px; min-height: 3rem; padding: 0.6rem 0.8rem; width: 100%; }
.k-input:hover, .k-select:hover { border-color: var(--muted); }
.k-code { font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.3em; text-align: center; }
.k-pass { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem; }
.k-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; font-weight: 400; min-height: 2.75rem; padding: 0.45rem 0; cursor: pointer; }
.k-check input { width: 1.4rem; height: 1.4rem; margin: 0.1rem 0 0; accent-color: var(--blue); }

/* Big choice buttons: 4 options or fewer are shown side by side instead of a dropdown. */
.k-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.k-choices legend { font-weight: 600; padding: 0; margin-bottom: 0.3rem; }
.k-choice { position: relative; display: flex; }
.k-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.k-choice span { flex: 1; display: grid; gap: 0.15rem; align-content: center; min-height: 4rem; padding: 0.6rem 0.75rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--field); font-weight: 600; }
.k-choice small { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.k-choice input:checked + span { border-color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.k-choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Buttons: 44px or more, labelled with the action. */
.k-btn { font: inherit; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.6rem 1.1rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; text-align: center; }
.k-btn:hover { border-color: var(--muted); }
.k-btn.primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.k-btn.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.k-btn.danger { color: var(--red); border-color: var(--red); }
.k-btn.wide { width: 100%; }
.k-btn[disabled] { opacity: 0.6; cursor: progress; }
.k-link { font: inherit; background: none; border: 0; padding: 0.55rem 0; min-height: 2.75rem; color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; text-align: left; }
.k-row { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; }
.k-or { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); margin: 1.1rem 0 0; }
.k-or::before, .k-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Messages. Red only for problems. */
.k-msg { margin-top: 1rem; padding: 0.7rem 0.85rem; border-radius: 8px; border: 1px solid transparent; }
.k-msg.err { background: var(--red-bg); color: var(--red); border-color: var(--red); }
.k-msg.ok { background: var(--green-bg); color: var(--green); border-color: var(--green); }
.k-msg.wait { background: var(--amber-bg); color: var(--amber); border-color: var(--amber); }
.k-badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--line); color: var(--ink); }
.k-badge.ok { background: var(--green-bg); color: var(--green); border-color: var(--green); }
.k-badge.wait { background: var(--amber-bg); color: var(--amber); border-color: var(--amber); }

/* Lists of records: rows stack on a phone, never a small box to scroll inside. */
.k-list { list-style: none; margin: 0.75rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.k-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.k-list .k-grow { flex: 1 1 14rem; min-width: 0; }
.k-list .k-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.k-list .k-select { width: auto; }

/* Footer with the text-size switch */
.k-foot { color: var(--muted); font-size: 0.9rem; padding: 0 0 2rem; }
.k-foot .k-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
.k-textsize { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.k-textsize button { font: inherit; min-width: 2.75rem; min-height: 2.75rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 700; }
.k-textsize button[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.k-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .k-btn, .k-input { transition: border-color 0.12s, background-color 0.12s; } }
@media print { .k-top, .k-foot, .k-btn { display: none !important; } body { background: #fff; color: #000; } }
.k-card ul { margin: 0.6rem 0 0; padding-left: 1.25rem; display: grid; gap: 0.4rem; }
[tabindex="-1"]:focus { outline: none; }   /* headings focused by script for screen readers show no ring */

/* The sign-in pages: one calm column, heading in the middle, big rounded fields. */
.k-auth .k-card { padding: 2rem 1.75rem; }
.k-auth .k-card > h1, .k-auth .k-card > .k-eyebrow, .k-auth .k-card > h1 + p.muted { text-align: center; }
.k-auth .k-card > h1 { font-size: 1.75rem; }
.k-ico { flex: none; }
.k-btn.primary { box-shadow: 0 1px 2px rgba(29, 78, 216, 0.35); }
@media (max-width: 30rem) { .k-auth .k-card { padding: 1.5rem 1.1rem; } }
/* On a phone a choice group may be swapped for a dropdown to save room (Ram, 2026-11-10): give the
   dropdown .k-phone-only and the buttons .k-not-phone. The page's script reads whichever one is showing. */
.k-phone-only { display: none; }
@media (max-width: 30rem) { .k-phone-only { display: grid; } .k-not-phone { display: none; } }
/* The sign-in pages are kept short so sign-up fits one screen on a laptop without scrolling
   (Ram, 2026-11-10): tighter gaps, fields side by side on a wide screen, 44px controls. */
.k-auth.k-main { padding-top: 1rem; padding-bottom: 1.5rem; }
.k-auth .k-narrow { max-width: 46rem; }
.k-auth .k-narrow > * { max-width: 32rem; margin-left: auto; margin-right: auto; }
.k-auth .k-card { margin-top: 0; padding: 1.4rem 1.75rem; }
.k-auth .k-form { gap: 0.7rem; margin-top: 0.8rem; }
.k-auth .k-input, .k-auth .k-select, .k-auth .k-btn { min-height: 2.75rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.k-auth .k-or { margin-top: 0.7rem; }
.k-auth .k-card > p { margin-top: 0.4rem; }
.k-auth .k-check { min-height: 2.75rem; padding: 0.3rem 0; align-items: center; }
.k-auth .k-check input { margin: 0; }
.k-pair { display: grid; gap: 0.7rem; }
.k-labelrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 0.75rem; }
@media (min-width: 48rem) {
  .k-auth .k-narrow > .k-wide { max-width: 46rem; }
  .k-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.7rem 1rem; }
}
/* The human check takes no room until it has something to show. */
.k-form { position: relative; }
.k-human:not(.on) { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; overflow: hidden; }
@media (max-width: 30rem) { .k-auth .k-card { padding: 1.25rem 1.1rem; } }

/* ===== The signed-in frame: menu on the left, top bar, page in the middle (ui/shell.js) =====
   Look (Ram, 2026-11-10): clean and light like Cloudflare's dashboard. A light menu with small
   section labels, a soft pill on the page you are on, big page titles, plenty of white space. */
:root { --side: #fbfcfe; --side-on: #eceff5; --soft: #eef2fb; --avatar: #0f1b33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --side: #121826; --side-on: #232c40; --soft: #1d2740; --avatar: #33415f; } }
:root[data-theme="dark"] { --side: #121826; --side-on: #232c40; --soft: #1d2740; --avatar: #33415f; }
body.k-app { display: grid; grid-template-columns: 17rem minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 100vh; background: var(--surface); }
.k-side { grid-row: 1 / -1; background: var(--side); color: var(--ink); border-right: 1px solid var(--line); padding: 0.75rem 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.k-side-logo { display: flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0 0.6rem; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.k-side nav { display: grid; gap: 0.1rem; }
.k-nav { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0.4rem 0.7rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.k-nav .k-ico { color: var(--muted); }
a.k-nav:hover { background: var(--side-on); }
.k-nav.on { background: var(--side-on); font-weight: 650; }
.k-nav.on .k-ico { color: var(--ink); }
.k-nav.soon { color: var(--muted); }
.k-nav-label { flex: 1; }
.k-nav-tag { font-size: 0.75rem; font-weight: 600; padding: 0.05rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.k-nav-head { padding: 1rem 0.7rem 0.3rem; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.k-nav-gap { height: 1px; background: var(--line); margin: 0.75rem 0.4rem 0.25rem; }
.k-bar { display: flex; align-items: center; gap: 0.75rem; min-height: 3.75rem; padding: 0.5rem 2.5rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.k-bar-biz { flex: 1; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-bar-link { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 0.6rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; border-radius: 8px; }
.k-bar-link:hover { background: var(--side-on); }
.k-bar-menu { display: none; font: inherit; font-weight: 600; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.3rem 0.7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.k-who { position: relative; }
.k-avatar { font: inherit; font-weight: 650; font-size: 0.85rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--avatar); color: #fff; cursor: pointer; margin: 0.125rem; }
.k-pop { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16); padding: 0.5rem; z-index: 10; }
.k-pop-name { font-weight: 650; padding: 0.5rem 0.6rem 0; }
.k-pop-email { padding: 0 0.6rem 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 0.35rem; }
.k-pop-item { font: inherit; display: flex; align-items: center; width: 100%; min-height: 2.75rem; padding: 0.3rem 0.6rem; border: 0; border-radius: 8px; background: none; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.k-pop-item:hover { background: var(--side-on); }
.k-app .k-main { padding: 2.5rem 0 3rem; }
.k-app .k-wrap { max-width: 72rem; padding: 0 2.5rem; margin: 0; }
.k-app .k-foot { padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1rem; padding-bottom: 1.5rem; }
.k-app .k-btn { font-weight: 600; border-width: 1px; }
.k-app .k-btn.primary { box-shadow: none; }
.k-app .k-input, .k-app .k-select { border-width: 1px; }
.k-app .k-badge { font-weight: 500; }
.k-shade { display: none; }
@media (max-width: 60rem) {
  body.k-app { grid-template-columns: minmax(0, 1fr); }
  .k-side { position: fixed; inset: 0 auto 0 0; width: min(17rem, 85vw); z-index: 30; transform: translateX(-100%); visibility: hidden; box-shadow: 0 0 40px rgba(8, 12, 22, 0.25); }
  body.k-menu-open .k-side { transform: none; visibility: visible; }
  body.k-menu-open .k-shade { display: block; position: fixed; inset: 0; background: rgba(8, 12, 22, 0.45); z-index: 20; }
  .k-bar { padding: 0.5rem 1rem; }
  .k-bar-menu { display: inline-flex; }
  .k-bar-link span { display: none; }
  .k-app .k-wrap { padding: 0 1rem; }
  .k-app .k-main { padding-top: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) { .k-side { transition: transform 0.18s ease; } }
@media print { .k-side, .k-bar { display: none !important; } body.k-app { display: block; } }

/* Page heading, the setup list and the service cards on Home */
.k-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; }
.k-hero h1 { font-size: 2.1rem; font-weight: 650; letter-spacing: -0.02em; }
.k-hero p { margin-top: 0.5rem; font-size: 1.05rem; }
.k-app .k-card { border-radius: 12px; padding: 1.5rem 1.6rem; margin-top: 1.5rem; box-shadow: none; }
.k-app .k-card h2 { font-size: 1.15rem; font-weight: 650; }
.k-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.k-steps { gap: 0; border-top: 1px solid var(--line); }
.k-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.15rem 0.9rem; align-items: center; padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line); }
.k-step:last-child { border-bottom: 0; padding-bottom: 0.25rem; }
.k-step b { font-weight: 600; }
.k-step-dot { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; border: 1.5px solid var(--line); color: var(--muted); }
.k-step.done .k-step-dot { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.k-step.done b { font-weight: 600; }
.k-step .muted { grid-column: 2; }
.k-step .k-btn, .k-step .k-badge { grid-column: 3; grid-row: 1 / span 2; }
.k-progress { height: 0.5rem; border-radius: 999px; background: var(--soft); overflow: hidden; margin-top: 0.9rem; }
.k-progress > span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.k-tile { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.k-tile-ico { width: 2.5rem; height: 2.5rem; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--blue); }
.k-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.k-tile h3 { margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 650; }
.k-tile p { margin: 0; flex: 1; }
.k-tile .k-btn { align-self: flex-start; margin-top: 0.5rem; }
.k-tile.soon { background: var(--side); }
.k-tile.soon .k-tile-ico { color: var(--muted); }
.k-section-title { margin-top: 2.25rem; font-size: 1.15rem; font-weight: 650; }
.k-note { display: flex; gap: 0.9rem; align-items: flex-start; }
.k-note .k-tile-ico { flex: none; }
@media (max-width: 34rem) {
  .k-step { grid-template-columns: auto minmax(0, 1fr); }
  .k-step .k-btn, .k-step .k-badge { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 0.4rem; }
}

/* Settings: tabs across the top, one calm column of cards, fields that don't stretch across the screen */
.k-tabs { display: flex; gap: 0.25rem; margin-top: 1.5rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.k-tab { font: inherit; font-weight: 550; min-height: 2.75rem; padding: 0.4rem 1rem; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; }
.k-tab:hover { color: var(--ink); }
.k-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.k-settings { max-width: 46rem; }
.k-settings .k-form { max-width: 28rem; }
.k-sub { margin-top: 1.5rem; font-size: 1.05rem; }
.k-side { grid-column: 1; }
.k-app > .k-bar, .k-app > main, .k-app > .k-foot { grid-column: 2; }
@media (max-width: 60rem) { .k-app > .k-bar, .k-app > main, .k-app > .k-foot { grid-column: 1; } }
.k-textsize button[data-text-size="large"] { font-size: 1.15em; }
.k-textsize button[data-text-size="xlarge"] { font-size: 1.3em; }

/* "+ New" in the top bar (ui/shell.js, spec netlify/specs/home-v2.md): the one blue button, with a
   short menu of things to create. Always in reach, also on a phone (the bar stays at the top). */
.k-new { position: relative; }
.k-new-btn { min-height: 2.75rem; padding: 0.3rem 1rem 0.3rem 0.75rem; gap: 0.35rem; }
.k-new-pop { min-width: 14rem; }
.k-new-pop .k-pop-item { gap: 0.7rem; font-weight: 500; }
.k-new-pop .k-ico { color: var(--muted); }
@media (max-width: 26rem) { .k-new-pop { right: -3rem; } }
/* The bar's buttons never squeeze or wrap; on a very narrow phone the Menu button keeps its icon only. */
.k-bar-menu, .k-new, .k-bar-link, .k-who { flex: none; white-space: nowrap; }
@media (max-width: 23rem) { .k-bar { gap: 0.4rem; } .k-bar-menu span { display: none; } .k-bar-menu { min-width: 2.75rem; justify-content: center; } }
@media (max-width: 30rem) { html[data-text] .k-bar { gap: 0.35rem; padding-left: 0.6rem; padding-right: 0.6rem; } html[data-text] .k-bar-menu span { display: none; } html[data-text] .k-bar-menu { min-width: 2.75rem; justify-content: center; } }

/* Compact app pages (Ram, 2026-11-13: "oversized, white space wasted"; agreed with the competitor check).
   Signed-in pages use 16px text, a narrower menu and less air. Sign-in and public pages keep 18px.
   The Text size buttons still go larger: Large is 18px (the old normal), Extra large is 20px. */
html:has(body.k-app) { font-size: 100%; }
html[data-text="large"]:has(body.k-app) { font-size: 112.5%; }
html[data-text="xlarge"]:has(body.k-app) { font-size: 125%; }
body.k-app { grid-template-columns: 15.5rem minmax(0, 1fr); }
.k-app .k-nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-app .k-side { padding: 0.5rem 0.6rem 0.75rem; gap: 0.4rem; }
.k-app .k-nav { min-height: 2.5rem; padding: 0.3rem 0.65rem; gap: 0.65rem; }
.k-app .k-nav-head { padding: 0.7rem 0.65rem 0.2rem; font-size: 0.8rem; }
.k-app .k-bar { min-height: 3rem; padding: 0.3rem 2rem; }
.k-app .k-main { padding: 1.25rem 0 2.5rem; }
.k-app .k-wrap { padding: 0 2rem; max-width: 80rem; }
.k-app .k-btn { min-height: 2.75rem; padding: 0.45rem 1rem; }
.k-app .k-input, .k-app .k-select { min-height: 2.75rem; padding: 0.45rem 0.7rem; }
.k-app .k-card { padding: 1.25rem; }
.k-app .k-hero h1 { font-size: 1.6rem; }
@media (max-width: 60rem) {
  body.k-app { grid-template-columns: minmax(0, 1fr); }
  .k-app .k-bar { padding-left: 1rem; padding-right: 1rem; }
  .k-app .k-wrap { padding: 0 1rem; }
}
.k-app .k-nav-tag { font-size: 0.7rem; padding: 0.05rem 0.4rem; flex: none; }
.k-app .k-nav { gap: 0.55rem; }
