/* The phone app layout, used below 761px and inside the desktop phone preview */
@media (max-width: 760px) {
  .app-body { --tabs: calc(58px + env(safe-area-inset-bottom, 0px)); }
  /* Inside the preview it should feel like a phone: dragging moves the screen instead of selecting text */
  .is-embed { user-select: none; -webkit-user-select: none; }
  .is-embed :is(input, textarea) { user-select: text; -webkit-user-select: text; }
  .app-body.is-embed { --bar: 0px; }
  .is-embed .demo-bar { display: none; }
  html:has(.is-embed) { scrollbar-width: none; }
  html:has(.is-embed)::-webkit-scrollbar { display: none; }

  /* Title bar */
  .m-bar { position: sticky; top: var(--bar); z-index: 12; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 8px 12px 8px 18px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .m-bar h1 { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 750 24px/1.2 "Urbanist", system-ui, sans-serif; letter-spacing: -.02em; outline: none; }
  .m-bar > div { display: flex; gap: 4px; }
  .m-app--sub .m-bar { padding-left: 6px; }
  .m-app--sub .m-bar h1 { font-size: 19px; }
  .m-icon { position: relative; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 99px; background: none; color: var(--ink); cursor: pointer; }
  .m-icon:active { background: var(--soft); }
  .m-icon .icon { width: 22px; height: 22px; }
  .m-icon .dot { top: 3px; right: 2px; }

  .m-content { max-width: none; padding: 14px 16px calc(var(--tabs) + 92px); }
  .m-content.content > * + * { margin-top: 14px; }
  .m-app--sub .m-content { padding-bottom: calc(var(--tabs) + 28px); }

  /* Bottom tab bar and add button */
  .m-tabs { position: fixed; z-index: 14; left: 0; right: 0; bottom: 0; height: var(--tabs); padding: 0 4px env(safe-area-inset-bottom, 0px); background: var(--surface); border-top: 1px solid var(--line); }
  .m-tabs ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 100%; }
  .m-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; color: var(--ink-2); font-size: 11.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .m-tabs i { font-style: normal; position: relative; display: grid; place-items: center; width: 44px; height: 25px; border-radius: 99px; transition: background-color .18s; }
  .m-tabs i .icon { width: 18px; height: 18px; }
  .m-tabs i .dot { top: -4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10.5px; line-height: 16px; }
  .m-tabs a.is-on { color: var(--accent-dark); font-weight: 700; }
  .m-tabs a.is-on i { background: var(--accent-tint); }
  .m-fab { position: fixed; z-index: 13; right: 16px; bottom: calc(var(--tabs) + 16px); display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 18px; background: var(--accent); color: #fff; box-shadow: 0 12px 24px -8px rgba(9, 91, 101, .65); cursor: pointer; }
  .m-fab .icon { width: 26px; height: 26px; }
  .m-fab:active { transform: scale(.95); }

  /* Lists */
  .m-list { display: block; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .m-list > li + li, .m-facts > div + div { border-top: 1px solid var(--line); }
  .m-card { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
  .m-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-top: 6px; }
  .m-group-head h2 { font-size: 17px; font-weight: 750; }
  .m-group-head a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14.5px; font-weight: 700; text-decoration: none; }
  .m-count { padding: 0 2px 8px; color: var(--ink-2); font-size: 14px; }
  .m-hint { margin-top: 14px; text-align: center; color: var(--ink-2); font-size: 13px; }

  /* Home */
  .m-hero { position: relative; display: grid; padding: 18px 20px; border-radius: 18px; background: var(--navy); color: #fff; text-decoration: none; }
  .m-hero span, .m-hero small { color: #c5d6da; font-size: 14px; }
  .m-hero strong { font-size: 38px; font-weight: 750; letter-spacing: -.025em; line-height: 1.2; }
  .m-hero .icon { position: absolute; right: 16px; top: 50%; margin-top: -11px; width: 22px; height: 22px; }
  .m-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .m-tile { display: grid; align-content: start; gap: 2px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
  .m-tile strong { font-size: 22px; font-weight: 750; line-height: 1.2; }
  .m-tile span { color: var(--ink-2); font-size: 13px; line-height: 1.3; }

  /* Follow-up rows */
  .m-task { display: flex; align-items: flex-start; gap: 4px; padding: 6px 12px 6px 6px; }
  .m-check { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-top: 4px; border: 0; background: none; cursor: pointer; }
  .m-check::before { content: ""; grid-area: 1 / 1; width: 26px; height: 26px; border: 2px solid var(--line-2); border-radius: 99px; }
  .m-check .icon { grid-area: 1 / 1; width: 15px; height: 15px; color: transparent; }
  .m-check:active::before { background: var(--accent-tint); border-color: var(--accent); }
  .m-check.is-done::before { background: var(--ok); border-color: var(--ok); }
  .m-check.is-done .icon { color: #fff; }
  .m-task.is-late .m-check:not(.is-done)::before { border-color: var(--danger); }
  .m-task-body { display: grid; gap: 2px; flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; text-align: left; cursor: pointer; }
  .m-task-body strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
  .m-task-body span { color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
  .m-task-body small { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
  .m-task-body small .icon { width: 14px; height: 14px; }
  .m-task.is-late small { color: var(--danger); }

  /* Activity */
  .m-feed > li > a, .m-feed > li > div { display: grid; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
  .m-feed > li { display: flex; gap: 12px; padding: 12px 14px; }
  .m-dot { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 99px; background: var(--accent-tint); color: var(--accent-dark); }
  .m-feed strong { font-size: 15px; }
  .m-feed span:not(.m-dot) { font-size: 14.5px; line-height: 1.4; }
  .m-feed small { color: var(--ink-2); font-size: 13px; }

  /* Leads */
  .m-searchbar { display: flex; gap: 8px; }
  .m-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-2); }
  .m-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-tint); }
  .m-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font-size: 16px; color: var(--ink); outline: none; }
  .m-searchbar .m-icon { width: 46px; height: 46px; background: var(--surface); border: 1px solid var(--line-2); }
  .m-chips { position: relative; display: flex; gap: 8px; margin-inline: -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
  .m-chips::-webkit-scrollbar { display: none; }
  .m-chip { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 40px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
  .m-chip b { min-width: 20px; padding: 0 5px; border-radius: 99px; background: var(--soft); color: var(--ink); font-size: 12.5px; line-height: 20px; text-align: center; }
  .m-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
  .m-chip.is-on b { background: #fff; }
  .m-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: var(--ink); text-decoration: none; }
  .m-row:active { background: var(--accent-tint); }
  .m-mono { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 99px; background: var(--accent-tint); color: var(--accent-dark); font-size: 14px; font-weight: 750; text-transform: uppercase; }
  .m-row-main { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
  .m-row-main > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .m-row-main strong { font-size: 16px; }
  .m-row-main span { color: var(--ink-2); font-size: 14px; }
  .m-row-main small { margin-top: 2px; color: var(--ink-2); font-size: 13px; }
  .m-row-main small.late, .m-deal-foot small.late { color: var(--danger); font-weight: 600; }
  .m-row-end { display: grid; justify-items: end; gap: 5px; flex: none; max-width: 42%; }
  .m-row-end b { font-size: 15.5px; }
  .m-row-end .badge { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; }

  /* One lead */
  .m-profile { display: grid; justify-items: center; text-align: center; gap: 2px; }
  .m-profile .m-mono { width: 64px; height: 64px; margin-bottom: 6px; font-size: 21px; }
  .m-profile h2 { font: 750 23px/1.2 "Urbanist", system-ui, sans-serif; letter-spacing: -.015em; }
  .m-profile p { color: var(--ink-2); font-size: 14.5px; }
  .m-profile strong { font-size: 20px; }
  .m-quick { display: flex; justify-content: center; gap: 6px; }
  .m-quick button { display: grid; justify-items: center; align-content: start; gap: 6px; flex: 1; min-width: 0; padding: 4px 0; border: 0; background: none; font-size: 13px; font-weight: 600; cursor: pointer; }
  .m-quick i { font-style: normal; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 99px; background: var(--accent); color: #fff; }
  .m-quick i .icon { width: 21px; height: 21px; }
  .m-quick button:active i { background: var(--accent-dark); }
  .m-stagecard { display: grid; gap: 8px; width: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-align: left; cursor: pointer; }
  .m-stagecard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
  .m-progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
  .m-progress i { height: 7px; border-radius: 99px; background: var(--soft); }
  .m-progress i.is-on { background: var(--accent); }
  .m-stagecard small { color: var(--ink-2); font-size: 13px; }
  .m-stagecard em { display: flex; align-items: center; gap: 4px; color: var(--accent-dark); font-style: normal; font-weight: 700; font-size: 14.5px; }

  .m-segment { display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 3px; padding: 4px; border-radius: 14px; background: var(--soft); }
  .m-segment button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 40px; padding: 0 6px; border: 0; border-radius: 11px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 650; white-space: nowrap; cursor: pointer; }
  .m-segment button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(31, 48, 56, .18); }
  .m-segment--four { grid-auto-columns: 1fr; }
  .m-segment--four button { flex-direction: column; gap: 0; min-height: 50px; }
  .m-segment--four b { font-size: 12px; }
  .m-segment--four b.is-late { color: var(--danger); }

  .m-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 16px; }
  .m-facts dt { flex: none; color: var(--ink-2); font-size: 14px; }
  .m-facts dd { min-width: 0; text-align: right; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; }
  .m-facts select { min-height: 44px; max-width: 100%; font-size: 16px; }

  /* Pipeline: one stage on screen at a time */
  .m-swipe { touch-action: pan-y; min-height: 50vh; }
  .m-swipe a { -webkit-user-drag: none; user-select: none; }
  .m-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 0 2px 12px; }
  .m-total strong { font-size: 28px; font-weight: 750; letter-spacing: -.02em; }
  .m-total > span { color: var(--ink-2); font-size: 14.5px; }
  .m-owner { margin-left: auto; align-self: center; }
  .m-owner select { min-height: 40px; max-width: 150px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-size: 16px; }
  .m-deals { display: grid; gap: 10px; }
  .m-deal { display: grid; gap: 8px; padding: 14px 16px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
  .m-deal > a { display: grid; color: var(--ink); text-decoration: none; }
  .m-deal > a strong { font-size: 16.5px; }
  .m-deal > a span { color: var(--ink-2); font-size: 14.5px; }
  .m-deal > p { display: flex; align-items: center; gap: 10px; }
  .m-deal > p b { font-size: 18px; }
  .m-deal > p .avatar { margin-left: auto; }
  .m-deal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
  .m-deal-foot small { color: var(--ink-2); font-size: 13.5px; }
  .m-move { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 4px 0 12px; border: 0; background: none; color: var(--accent-dark); font-size: 14.5px; font-weight: 700; cursor: pointer; }

  /* More */
  .m-me { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
  .m-me .avatar { width: 52px; height: 52px; font-size: 17px; }
  .m-me div { display: grid; }
  .m-me strong { font-size: 18px; }
  .m-me span:not(.avatar) { color: var(--ink-2); }
  .m-menu :is(a, button) { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 16px; border: 0; background: none; color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
  .m-menu :is(a, button):active { background: var(--accent-tint); }
  .m-menu span { flex: 1; }
  .m-menu .icon:last-child { color: var(--ink-2); }
  .m-select select { width: 100%; min-height: 52px; padding: 0 14px; border: 0; background: var(--surface); font-size: 16px; }

  /* Screens shared with the desktop layout: the title bar already names them */
  .m-content .page-head > div:first-child { display: none; }
  .m-content .page-actions:empty { display: none; }

  .m-row-main strong { white-space: normal; line-height: 1.3; }

  /* Properties: filter chips and compact unit cards */
  .m-content .tabs { display: flex; flex-wrap: nowrap; gap: 8px; margin-inline: -16px; padding: 2px 16px; width: auto; overflow-x: auto; scrollbar-width: none; background: none; border: 0; }
  .m-content .tabs .tab { flex: none; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); white-space: nowrap; }
  .m-content .tabs .tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
  .m-content .tabs .tab.is-active .pill { background: #fff; color: var(--ink); }
  .m-content .units { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .m-content .unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 2px 12px; padding: 14px 16px; border-radius: 16px; }
  .m-content .unit > * { grid-column: 1 / -1; margin: 0; }
  .m-content .unit-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
  .m-content .unit-price { margin-top: 4px; padding: 0; border: 0; font-size: 19px; }
  .m-content .unit-holder { padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line); }
  .m-content .unit-actions { display: flex; gap: 8px; margin-top: 6px; }
  .m-content .unit-actions:empty { display: none; }
  .m-content .unit-actions .btn { flex: 1; min-height: 44px; }

  /* Popups slide up from the bottom */
  dialog { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; margin: 0; max-height: calc(100dvh - var(--bar) - 12px); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  dialog form { max-height: calc(100dvh - var(--bar) - 12px); }
  dialog[open] { animation: m-up .24s cubic-bezier(.2, .8, .2, 1); }
  dialog .modal-head { position: relative; padding-top: 22px; }
  dialog .modal-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 99px; background: var(--line-2); }
  dialog .modal-foot > .btn { flex: 1; min-height: 48px; }
  .m-sheet ul { max-height: 62vh; overflow-y: auto; padding: 6px 8px 14px; }
  .m-sheet li button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 6px 12px; border: 0; border-radius: 12px; background: none; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
  .m-sheet li button:active { background: var(--accent-tint); }
  .m-sheet li button span { display: grid; min-width: 0; line-height: 1.35; }
  .m-sheet li small { color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
  .m-sheet li button.is-danger { color: var(--danger); }
  .m-sheet li button.is-current { background: var(--accent-tint); color: var(--accent-dark); cursor: default; }

  .toasts { left: 12px; right: 12px; max-width: none; bottom: calc(var(--tabs, 0px) + 84px); }
}
@media (max-width: 350px) {
  .m-row .m-mono { display: none; }
  .m-tile { padding: 10px; }
}
/* Sideways rows: smooth swiping by finger, and a clean drag with a mouse (assets/js/touch.js) */
.m-chips, .m-content .tabs { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.m-chips > *, .m-content .tabs > * { user-select: none; -webkit-user-select: none; }
body.is-grabbing, body.is-grabbing * { cursor: grabbing !important; }
@keyframes m-up { from { transform: translateY(40px); opacity: .4; } }

/* Desktop and phone switch in the demo bar */
.view-switch { display: none; }
.preview { display: none; }
@media (min-width: 900px) {
  .view-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(68, 42, 0, .13); }
  .view-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 13px; border: 0; border-radius: 99px; background: none; color: #442a00; font-size: 13px; font-weight: 700; cursor: pointer; }
  .view-switch button .icon { width: 15px; height: 15px; }
  .view-switch button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(68, 42, 0, .25); }

  .app-body.is-preview { background: #e6ecee; }
  .is-preview #app, .is-preview > dialog, .is-preview .toasts { display: none; }
  .is-preview .preview { display: flex; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 96px); min-height: calc(100vh - var(--bar)); padding: 20px 32px; }
  .preview-notes { max-width: 340px; }
  .preview-notes h2 { font: 750 clamp(26px, 2.6vw, 34px)/1.15 "Urbanist", system-ui, sans-serif; letter-spacing: -.02em; }
  .preview-notes > p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
  .preview-notes ul { margin-top: 22px; border-top: 1px solid var(--line-2); }
  .preview-notes li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
  .preview-notes li .icon { margin-top: 2px; color: var(--accent); }

  .device { --h: 844px; flex: none; width: 414px; padding: 11px; border-radius: 56px; background: #10181c; box-shadow: 0 40px 70px -30px rgba(16, 24, 28, .65), inset 0 0 0 2px #3a474e; }
  .device-screen { position: relative; display: flex; flex-direction: column; width: 392px; height: var(--h); border-radius: 46px; overflow: hidden; background: var(--bg); }
  .device-status { display: flex; align-items: center; justify-content: space-between; flex: none; height: 40px; padding: 0 30px; background: var(--bg); font-size: 14px; font-weight: 750; }
  .device-status::after { content: ""; width: 25px; height: 12px; border: 1.5px solid var(--ink); border-radius: 4px; background: linear-gradient(var(--ink), var(--ink)) 2px 50% / 16px 6px no-repeat; }
  .device-island { position: absolute; top: 9px; left: 50%; width: 108px; height: 25px; margin-left: -54px; border-radius: 99px; background: #10181c; }
  .device iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: var(--bg); }
  .device-home { flex: none; height: 20px; background: var(--surface); display: grid; place-items: center; }
  .device-home::after { content: ""; width: 130px; height: 5px; border-radius: 99px; background: #10181c; }
}

@media (max-width: 760px) {
  /* Role screen: both roles are visible at once, each as one large row */
  .signin .roles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; }
  .signin h1 { margin-top: 22px; font-size: 25px; text-wrap: balance; }
  .signin-sub { margin-inline: auto; font-size: 15px; text-wrap: balance; }
  .signin .role-points, .signin .role-org { display: none; }
  .signin .role { display: grid; grid-template-columns: 46px minmax(0, 1fr) 10px; grid-template-areas: "ico title go" "ico name go" "ico short go"; align-content: center; align-items: center; column-gap: 14px; row-gap: 1px; height: auto; min-height: 104px; padding: 16px; text-align: left; }
  .signin .role::after { content: ""; grid-area: go; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); opacity: .55; }
  .signin .role-icon { grid-area: ico; align-self: center; }
  .signin .role-title { grid-area: title; margin: 0; font-size: 18px; line-height: 1.25; }
  .signin .role-name { grid-area: name; font-size: 14px; line-height: 1.35; }
  .signin .role-short { grid-area: short; display: block; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
}

/* Short phones: tighten the role screen so both roles stay in view */
@media (max-width: 760px) and (max-height: 620px) {
  .signin { padding-block: 14px 20px; }
  .signin h1 { margin-top: 12px; font-size: 22px; }
  .signin-sub { font-size: 14px; }
  .signin .roles { margin-top: 12px; gap: 10px; }
  .signin .role { min-height: 88px; padding: 10px 14px; }
}

/* Desktop and Mobile switch sits in the exact middle of the bar */
@media (min-width: 900px) {
  .app-body .demo-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .app-body .demo-bar > p { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .app-body .demo-bar > .view-switch { justify-self: center; }
  .app-body .demo-bar > nav { justify-self: end; }
}
