Skip to content
Design system
v1.0
Tier 2, Marathon internally

App UI kit

Confirmed

The shared header, nav, forms, tables, and states as String.raw safe partials for the 14 apps.

Champion r11Confirmed in r11Repo folder build/app-kit/v/best/
App UI kit, primary render

Primary render. Select it to open full size.

Renders

Every render from the champion round

Rules

How to use it, from the piece README

The shared header, nav, buttons, forms, tables, cards, empty states, toasts, and sign-in screens for every internal Marathon app. Plain CSS and HTML. No bundler, no framework. Open reference.html to see every piece live, with its code underneath.

Put it in an app (Hector, this is the part you need)

  1. From this folder run python3 build.py pack ../path-to-app/public. That writes public/brand/ with:
  2. mc-app.css, tokens, icons, and components joined into one file
  3. mc-app.js, toasts, portrait photo handling, and the phone browser bar colour
  4. icons.svg, the icon sprite
  5. fonts/, Montserrat, so nothing loads from Google
  6. the three logo files, unchanged
  7. In the head, first stylesheet: <link rel="stylesheet" href="/brand/mc-app.css">. Delete the old brand.css link and any Google Fonts link.
  8. Put class="mc-body" on body. Paste partials/header.html and change only the app name.
  9. Build the screen from the partials. Start from partials/page.html.
  10. End of body: <script src="/brand/mc-app.js" defer></script>.

Every partial is safe inside a Worker's String.raw template: no backticks and no dollar-brace. build.py refuses to build if one ever gets in.

Which partial

NeedFile
The headerheader.html, or header-actions.html for a user chip and sign-out
The title of a working screenpagehead.html. Title at H2 size, 32px extrabold on a desktop, left. It is the one dominant line on the screen, at most two 32px actions right, one line under it that clips rather than wraps. Never use the big marketing H1 on a working screen.
Two to seven viewsnav-tabs.html
Eight or more, or grouped viewsnav-side.html
Buttonsbuttons.html. One primary per screen. Red is an outline for delete, never a fill.
A formforms.html. Label above, hint below, error replaces the hint.
A list of jobs, posts, or invoicestable.html. On a desktop every row is one line and 40px, so 10 or more show above the fold. Do not add padding back, and do not put a second line in a cell. Give every cell a data-label and keep is-due on the Due cell. On a phone each row collapses to two lines: title and client left, amount and status right, due date as a caption. Put each title in its title attribute too: on desktop the title column takes the spare width and holds one line with an ellipsis. Owner is an initial on desktop in a fixed 72px column headed Owner, so write the full name in the cell and in its title. The header row is neutral under a 2px red rule. Never paint the header row red on screen, the full red bar is for printed quotes.
Numbers at the top of a working screenstats-strip.html. One strip, two to five numbers. Grey label on top, value at 32px or larger on its own line, delta in tertiary grey under it. Never put the delta beside the value. Keep each delta to four or five words.
A dashboard where the numbers are the whole screencards-stat.html
Links, status, or one decisioncards-item.html
Photos for reviewcards-media.html. Nothing goes on top of the photo. Fill all five slots on every card: client, title, three or four one-word facts, one status badge, two buttons. Only the card waiting on Marathon gets the navy Approve.
Nothing to showempty.html
Confirming an actionmcToast({ kind: 'success', title: '...', text: '...' }). Do not hand-build toasts.
Client sign-inauth-signin.html, auth-code.html, auth-no-access.html

Rules that do not bend

  • Never type a hex, an rgb(), or a font name. Use the token. The header navy, the reds, all of it.
  • Never edit mc-app.css inside an app. Fix it here, pack again, copy again.
  • Never link it from another app or a CDN. Copy it, so one deploy cannot restyle all 14 apps.
  • Team apps behind Cloudflare Access: set the Access login page once in Zero Trust, white lockup on navy. Then nobody sees Cloudflare's blue and pink before the app.

Files in this folder

FileWhat it is
mc-app.cssComponent styles. Tokens only, zero hex values.
mc-app.jsOptional behaviour. Every partial works without it.
partials/The HTML to copy. Paths point at /brand/ and /media/.
build.pyChecks the partials, writes reference.html, packs an app's brand/ folder.
screen.htmlPost Approval alone at full width, built only from partials. Open it at 1440 by 900 to see the density a working screen should have.
reference.src.html, screen.src.html, ref.cssSource for the reference page. Apps never load these.
photo-test.htmlPuts one photo in every photo slot. photo-test.html?photo=photos/mc_fullres_12.jpg
photos/Copies of the real Marathon photos used in the examples.

For Jacob to confirm

Every dollar amount in the examples ($600 to $2,200, $5,925 total) is a sample, not a price list. Bayou City Roofing is an invented example client. The 10 minute code expiry and the "within the hour" access promise are working values for Taylor to confirm.

Owner: Taylor Treybig. Approver: Jacob Dow. Changes go to Taylor with the reason.

Use it

Files to download and code to copy

  • Whole piece, source files42 files, zip, 6.9 MB. Paths inside follow the repo layout, so put tokens.css beside them as the README says.
    Download

Copy-paste code

mc-app.css803 lines, 57.9 KB
/* Marathon Creative app kit, mc-app.css v1.0.0.
   Components for every internal Marathon app: header, nav, buttons, forms, tables, cards,
   empty states, toasts, and sign-in screens.

   Load order in a page: tokens.css, icons.css, mc-app.css. Or run "python3 build.py pack"
   and you get one mc-app.css with all three already joined, which is what an app copies.

   Every colour, size, and timing below is a token from tokens.css. A hex typed into this
   file is a defect. If a component needs a value that is not a token, that is a question
   for Taylor, not a local override.

   Mobile first. Base rules are the phone layout, @media blocks add the desktop layout.
   Breakpoints match the token reference values: 420, 768, 1024. */

/* ------------------------------------------------------------------ base -- */

*, *::before, *::after { box-sizing: border-box; }

.mc-font,
body.mc-body { font-family: var(--mc-font); }

/* Marathon pages are white. Never a dark body. The navy is the header only. */
body.mc-body {
  margin: 0;
  background: var(--mc-surface-page);
  color: var(--mc-text-primary);
  font-size: var(--mc-type-body-size);
  font-weight: var(--mc-type-body-weight);
  line-height: var(--mc-type-body-leading);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

:where(.mc-body) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.mc-body) :where(code, pre, kbd, samp) { font-family: var(--mc-font); font-variant-numeric: var(--mc-numeric-tabular); }
:where(.mc-body) :where(img) { max-width: 100%; }
:where(.mc-body) :where(a) { color: var(--mc-text-link); text-underline-offset: 3px; }
:where(.mc-body) :where(a:hover) { color: var(--mc-text-link-hover); }
.mc-body :focus-visible { outline: var(--mc-focus-ring-width) solid var(--mc-border-focus); outline-offset: var(--mc-focus-ring-offset); }

.mc-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------- header, approved 2026-10-09 -- */
/* Same measurements as brief/brand-assets/brand.css. Only the colour values moved to tokens.
   The markup is in partials/header.html and does not change, except the app name text. */

.mc-top {
  background: var(--mc-surface-inverse);
  padding: calc(16px + var(--mc-safe-top)) 0 16px;
}

.mc-top .mc-wrap {
  max-width: var(--mc-container);
  margin: 0 auto;
  padding: 0 var(--mc-screen-margin);
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Simplified lockup: mark plus MARATHON CREATIVE. No tagline. */
.mc-logo {
  height: var(--mc-screen-header-logo);
  width: auto;
  display: block;
  flex: none;
}

/* App name, right of a hairline divider. */
.mc-appname {
  font-family: var(--mc-font);
  color: var(--mc-text-inverse);
  font-size: var(--mc-type-appname-size);
  font-weight: var(--mc-type-appname-weight);
  line-height: var(--mc-type-appname-leading);
  letter-spacing: var(--mc-type-appname-tracking);
  text-transform: var(--mc-type-appname-case);
  padding-left: 14px;
  border-left: var(--mc-border-width-hairline) solid var(--mc-border-inverse);
  opacity: .85;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Optional right-hand slot: user chip, sign-out, filters. */
.mc-top .mc-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Narrow screens: the lockup shrinks, it never wraps or gets replaced. */
@media (max-width: 420px) {
  .mc-logo    { height: var(--mc-screen-header-logo-sm); }
  .mc-appname { font-size: 10px; letter-spacing: .2em; padding-left: 10px; white-space: normal; overflow: visible; line-height: 1.3; }
  .mc-top .mc-wrap { gap: 10px; }
  .mc-top .mc-user { display: none; }
}

/* Below about 22px the wordmark is unreadable. Use the lines mark alone. */
.mc-mark { width: 22px; height: auto; display: block; flex: none; }

/* Header controls. They live inside .mc-actions and sit on navy, so they use inverse tokens. */
.mc-top .mc-icon-button { color: var(--mc-text-inverse-secondary); }
.mc-top .mc-icon-button:hover { color: var(--mc-text-inverse); background: rgb(var(--mc-white-rgb) / 0.08); }
.mc-top .mc-icon-button:focus-visible { outline-color: var(--mc-border-focus-inverse); }

.mc-user { display: flex; align-items: center; gap: var(--mc-space-03); color: var(--mc-text-inverse-secondary); font-size: var(--mc-type-caption-size); font-weight: var(--mc-weight-semibold); white-space: nowrap; }
.mc-user__name { display: none; }
@media (min-width: 768px) { .mc-user__name { display: inline; } }

.mc-avatar {
  width: 32px; height: 32px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--mc-radius-pill);
  background: var(--mc-surface-inverse-raised);
  color: var(--mc-text-inverse);
  font-size: 11px; font-weight: var(--mc-weight-bold); letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px var(--mc-border-inverse);
}
.mc-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.mc-avatar--light { background: var(--mc-surface-muted); color: var(--mc-text-heading); box-shadow: inset 0 0 0 1px var(--mc-border-subtle); }

/* ------------------------------------------------------------- page frame -- */

.mc-container {
  max-width: var(--mc-container);
  margin: 0 auto;
  padding: 0 var(--mc-screen-margin);
}

.mc-main { padding: var(--mc-space-06) 0 var(--mc-space-12); }
@media (min-width: 768px) { .mc-main { padding-top: var(--mc-space-07); } }

/* Page opener. Eyebrow always pairs with a title. One H1 per page. */
.mc-pagehead { margin-bottom: var(--mc-space-08); }
.mc-pagehead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--mc-space-05); }
.mc-pagehead .mc-lede { margin-top: var(--mc-space-04); max-width: 62ch; }

/* Working screens use the app title row, not the marketing opener. The title sits at H3 size
   and weight, 20px bold, so the rows under it are the loudest thing on screen. Actions sit right
   of the title at 32px, and the summary is one 14px line that clips before it wraps. The whole
   row costs about 72px, where the marketing opener costs 200. */
.mc-pagehead--app { margin-bottom: var(--mc-space-05); padding-bottom: var(--mc-space-04); border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); }
.mc-pagehead--app .mc-pagehead__row { align-items: center; gap: var(--mc-space-03) var(--mc-space-06); }
.mc-pagehead--app .mc-pagehead__title { min-width: 0; flex: 1 1 auto; }
.mc-pagehead--app .mc-eyebrow { margin-bottom: var(--mc-space-01); }
.mc-pagehead--app .mc-h1 { font-size: var(--mc-type-h2-size); font-weight: var(--mc-type-h1-weight); line-height: var(--mc-type-h2-leading); letter-spacing: var(--mc-type-h2-tracking); }
.mc-pagehead--app .mc-pagehead__actions { flex: none; gap: var(--mc-space-03); }
.mc-pagehead--app .mc-lede { margin-top: var(--mc-space-02); max-width: none; color: var(--mc-text-secondary); font-size: var(--mc-type-small-size); font-weight: var(--mc-type-body-weight); line-height: 1.45; }
@media (min-width: 768px) { .mc-pagehead--app .mc-pagehead__row { flex-wrap: nowrap; } .mc-pagehead--app .mc-lede { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 767px) { .mc-pagehead--app .mc-pagehead__actions { width: 100%; } .mc-pagehead--app .mc-pagehead__actions .mc-btn { flex: 1 1 0; } }

.mc-eyebrow {
  display: block;
  margin: 0 0 var(--mc-space-03);
  color: var(--mc-text-label);
  font-size: var(--mc-type-eyebrow-size);
  font-weight: var(--mc-type-eyebrow-weight);
  line-height: var(--mc-type-eyebrow-leading);
  letter-spacing: var(--mc-type-eyebrow-tracking);
  text-transform: var(--mc-type-eyebrow-case);
}

.mc-h1, .mc-h2, .mc-h3 { margin: 0; color: var(--mc-text-heading); text-wrap: balance; overflow-wrap: anywhere; }
.mc-h1 { font-size: var(--mc-type-h1-size); font-weight: var(--mc-type-h1-weight); line-height: var(--mc-type-h1-leading); letter-spacing: var(--mc-type-h1-tracking); }
.mc-h2 { font-size: var(--mc-type-h2-size); font-weight: var(--mc-type-h2-weight); line-height: var(--mc-type-h2-leading); letter-spacing: var(--mc-type-h2-tracking); }
.mc-h3 { font-size: var(--mc-type-h3-size); font-weight: var(--mc-type-h3-weight); line-height: var(--mc-type-h3-leading); letter-spacing: var(--mc-type-h3-tracking); }

.mc-lede { margin: 0; color: var(--mc-text-secondary); font-size: 18px; font-weight: var(--mc-type-lede-weight); line-height: var(--mc-type-lede-leading); }
@media (min-width: 768px) { .mc-lede { font-size: var(--mc-type-lede-size); } }

.mc-text { margin: 0; max-width: 68ch; }
.mc-small { font-size: var(--mc-type-small-size); line-height: var(--mc-type-small-leading); }
.mc-caption { font-size: var(--mc-type-caption-size); font-weight: var(--mc-type-caption-weight); line-height: var(--mc-type-caption-leading); color: var(--mc-text-secondary); }
.mc-meta { font-size: var(--mc-type-caption-size); color: var(--mc-text-tertiary); }
.mc-num { font-variant-numeric: var(--mc-numeric-tabular); }

/* Section divider, 60 by 3, Marathon Red. Once per section opener, never as decoration. */
.mc-divider { display: block; width: var(--mc-border-width-divider-length); height: var(--mc-border-width-bar); margin: var(--mc-space-06) 0 0; border: 0; background: var(--mc-border-accent); }
.mc-rule { border: 0; border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); margin: var(--mc-space-07) 0; }

.mc-section { margin-top: var(--mc-space-10); }
.mc-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--mc-space-04); margin-bottom: var(--mc-space-05); }

.mc-grid { display: grid; gap: var(--mc-space-05); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .mc-grid { gap: var(--mc-screen-gutter); }
  .mc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .mc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mc-grid--main-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

/* -------------------------------------------------------------- tab nav -- */
/* For apps with two to seven views. Sits directly under the header, sticks on scroll.
   On a phone it scrolls sideways. It never wraps to two lines and never turns into a menu. */

.mc-nav {
  position: sticky; top: 0; z-index: var(--mc-z-sticky);
  background: var(--mc-surface-page);
  border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle);
}
.mc-nav__list {
  max-width: var(--mc-container);
  margin: 0 auto;
  padding: 0 var(--mc-screen-margin);
  display: flex; gap: var(--mc-space-07);
  list-style: none;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mc-nav__list::-webkit-scrollbar { display: none; }
.mc-nav__list li { flex: none; }
.mc-nav__link {
  display: flex; align-items: center; gap: var(--mc-space-03);
  min-height: 48px;
  padding-top: var(--mc-border-width-bar);
  border-bottom: var(--mc-border-width-bar) solid transparent;
  color: var(--mc-text-secondary);
  font-size: var(--mc-type-small-size); font-weight: var(--mc-weight-semibold);
  text-decoration: none; white-space: nowrap;
  transition: color var(--mc-duration-fast) var(--mc-ease-standard), border-color var(--mc-duration-fast) var(--mc-ease-standard);
}
.mc-body .mc-nav__link:hover { color: var(--mc-text-heading); }
.mc-body .mc-nav__link[aria-current="page"] { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); border-bottom-color: var(--mc-border-accent); }
.mc-nav__count {
  min-width: 22px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--mc-radius-pill);
  background: var(--mc-surface-muted); color: var(--mc-text-secondary);
  font-size: 11px; font-weight: var(--mc-weight-bold); font-variant-numeric: var(--mc-numeric-tabular);
}
.mc-nav__link[aria-current="page"] .mc-nav__count { background: var(--mc-surface-inverse); color: var(--mc-text-inverse); }
@media (min-width: 768px) { .mc-nav__list { gap: var(--mc-space-08); } }

/* ------------------------------------------------------------- side nav -- */
/* For apps with eight or more views, or grouped views. Desktop: a column on the left.
   Under 1024px it becomes a sideways-scrolling row, the same behaviour as the tab nav. */

.mc-layout { display: block; }
.mc-sidenav { margin: 0 calc(-1 * var(--mc-screen-margin)) var(--mc-space-07); border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); }
.mc-sidenav__group { display: contents; }
.mc-sidenav__label { display: none; }
.mc-sidenav__list { display: flex; gap: var(--mc-space-02); margin: 0; padding: 0 var(--mc-screen-margin); list-style: none; overflow-x: auto; scrollbar-width: none; }
.mc-sidenav__list::-webkit-scrollbar { display: none; }
.mc-sidenav__inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.mc-sidenav__inner::-webkit-scrollbar { display: none; }
.mc-sidenav__link {
  display: flex; align-items: center; gap: var(--mc-space-03);
  min-height: var(--mc-screen-touch-target); padding: 0 var(--mc-space-04);
  border-bottom: var(--mc-border-width-bar) solid transparent;
  color: var(--mc-text-secondary); text-decoration: none; white-space: nowrap;
  font-size: var(--mc-type-small-size); font-weight: var(--mc-weight-semibold);
}
.mc-body .mc-sidenav__link:hover { color: var(--mc-text-heading); }
.mc-body .mc-sidenav__link[aria-current="page"],
.mc-body .mc-sidenav__link[aria-current="true"] { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); border-bottom-color: var(--mc-border-accent); }

@media (min-width: 1024px) {
  .mc-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--mc-space-10); align-items: start; }
  .mc-sidenav { position: sticky; top: 0; margin: 0; padding-top: var(--mc-space-10); border: 0; }
  .mc-sidenav__inner { display: block; overflow: visible; }
  .mc-sidenav__group { display: block; margin-bottom: var(--mc-space-07); }
  .mc-sidenav__label { display: block; margin: 0 0 var(--mc-space-03) var(--mc-space-04); color: var(--mc-text-tertiary); font-size: 11px; font-weight: var(--mc-weight-bold); letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: uppercase; }
  .mc-sidenav__list { display: block; padding: 0; overflow: visible; }
  .mc-sidenav__link { min-height: 40px; border-bottom: 0; border-left: var(--mc-border-width-bar) solid transparent; border-radius: 0 var(--mc-radius-md) var(--mc-radius-md) 0; }
  .mc-body .mc-sidenav__link:hover { background: var(--mc-surface-subtle); }
  .mc-body .mc-sidenav__link[aria-current="page"],
  .mc-body .mc-sidenav__link[aria-current="true"] { border-left-color: var(--mc-border-accent); background: var(--mc-surface-muted); }
}

/* -------------------------------------------------------------- buttons -- */
/* One primary per view. Navy is the action colour. Red is never a button fill. */

.mc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--mc-space-03);
  min-height: var(--mc-screen-touch-target);
  padding: 0 var(--mc-space-06);
  border: var(--mc-border-width-hairline) solid transparent;
  border-radius: var(--mc-radius-md);
  font-family: var(--mc-font); font-size: 15px; font-weight: var(--mc-weight-bold); line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--mc-duration-fast) var(--mc-ease-standard), border-color var(--mc-duration-fast) var(--mc-ease-standard), color var(--mc-duration-fast) var(--mc-ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.mc-btn .mc-icon { margin-left: calc(-1 * var(--mc-space-01)); }

.mc-body .mc-btn--primary { background: var(--mc-action-primary); border-color: var(--mc-action-primary); color: var(--mc-action-primary-text); }
.mc-body .mc-btn--primary:hover { background: var(--mc-action-primary-hover); border-color: var(--mc-action-primary-hover); color: var(--mc-action-primary-text); }

.mc-body .mc-btn--secondary { background: var(--mc-surface-raised); border-color: var(--mc-action-secondary-border); color: var(--mc-text-heading); }
.mc-body .mc-btn--secondary:hover { background: var(--mc-action-secondary-hover); color: var(--mc-text-heading); }

.mc-body .mc-btn--quiet { background: transparent; color: var(--mc-text-heading); padding: 0 var(--mc-space-04); }
.mc-body .mc-btn--quiet:hover { background: var(--mc-action-secondary-hover); color: var(--mc-text-heading); }

/* Destructive. Outline only, so red stays an accent and never becomes a fill. */
.mc-body .mc-btn--danger { background: var(--mc-surface-raised); border-color: var(--mc-status-error); color: var(--mc-status-error); }
.mc-body .mc-btn--danger:hover { background: var(--mc-status-error-surface); color: var(--mc-accent-hover); border-color: var(--mc-accent-hover); }

/* On navy: callouts, auth panels. White button, navy words. */
.mc-body .mc-btn--inverse { background: var(--mc-action-inverse); border-color: var(--mc-action-inverse); color: var(--mc-action-inverse-text); }
.mc-body .mc-btn--inverse:hover { background: var(--mc-surface-muted); color: var(--mc-action-inverse-text); }
.mc-body .mc-btn--inverse:focus-visible { outline-color: var(--mc-border-focus-inverse); }

.mc-btn--sm { min-height: 36px; padding: 0 var(--mc-space-04); font-size: var(--mc-type-small-size); }
.mc-btn--block { display: flex; width: 100%; }

.mc-btn:disabled, .mc-btn[aria-disabled="true"] {
  cursor: not-allowed; pointer-events: none;
  background: var(--mc-surface-muted); border-color: var(--mc-border-subtle); color: var(--mc-text-tertiary);
}

/* Busy. Set aria-busy="true" while a save is in flight. The label stays, a spinner joins it. */
.mc-btn[aria-busy="true"] { pointer-events: none; }
.mc-btn[aria-busy="true"]::before {
  content: ""; width: 16px; height: 16px; flex: none;
  border: var(--mc-border-width-strong) solid currentColor; border-right-color: transparent; border-radius: var(--mc-radius-pill);
  animation: mc-spin 800ms linear infinite;
}
@keyframes mc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mc-btn[aria-busy="true"]::before { animation: none; border-right-color: currentColor; opacity: .5; } }

.mc-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mc-space-04); }
/* Phones: the primary goes last and full width so it lands under the thumb. */
@media (max-width: 767px) {
  .mc-btn-row--stack { flex-direction: column-reverse; align-items: stretch; }
  .mc-btn-row--stack .mc-btn { width: 100%; }
}

/* Icon buttons come from icons.css (.mc-icon-button, always 44px). This adds the bordered variant. */
.mc-icon-button--bordered { border: var(--mc-border-width-hairline) solid var(--mc-border-strong); color: var(--mc-text-heading); background: var(--mc-surface-raised); }
.mc-icon-button--bordered:hover { background: var(--mc-action-secondary-hover); }
.mc-icon-button--sm { width: 36px; height: 36px; }

/* ----------------------------------------------------------------- forms -- */
/* Inputs are 16px type so iPhones do not zoom on focus. Labels sit above, never inside. */

.mc-form { display: grid; gap: var(--mc-space-06); }
.mc-form-row { display: grid; gap: var(--mc-space-06); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .mc-form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mc-space-06) var(--mc-screen-gutter); }
  .mc-form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mc-space-06) var(--mc-screen-gutter); }
}

.mc-field { display: grid; align-content: start; gap: var(--mc-space-03); min-width: 0; margin: 0; padding: 0; border: 0; }
.mc-label { color: var(--mc-text-heading); font-size: var(--mc-type-small-size); font-weight: var(--mc-weight-semibold); line-height: 1.3; }
.mc-label__opt { color: var(--mc-text-tertiary); font-weight: var(--mc-weight-regular); }
.mc-hint { margin: 0; color: var(--mc-text-tertiary); font-size: var(--mc-type-caption-size); line-height: var(--mc-type-caption-leading); }

.mc-input, .mc-select select, .mc-textarea {
  width: 100%;
  min-height: var(--mc-screen-touch-target);
  padding: 0 var(--mc-space-04);
  background: var(--mc-surface-raised);
  border: var(--mc-border-width-hairline) solid var(--mc-border-strong);
  border-radius: var(--mc-radius-md);
  color: var(--mc-text-primary);
  font-family: var(--mc-font); font-size: 16px; line-height: 1.4;
  transition: border-color var(--mc-duration-fast) var(--mc-ease-standard), box-shadow var(--mc-duration-fast) var(--mc-ease-standard);
  -webkit-appearance: none; appearance: none;
}
.mc-textarea { min-height: 112px; padding: var(--mc-space-04); resize: vertical; }
.mc-input::placeholder, .mc-textarea::placeholder { color: var(--mc-text-tertiary); opacity: 1; }
.mc-input:hover, .mc-select select:hover, .mc-textarea:hover { border-color: var(--mc-text-tertiary); }
.mc-body .mc-input:focus, .mc-body .mc-select select:focus, .mc-body .mc-textarea:focus {
  outline: none; border-color: var(--mc-border-focus);
  box-shadow: 0 0 0 1px var(--mc-border-focus);
}
.mc-input:disabled, .mc-select select:disabled, .mc-textarea:disabled { background: var(--mc-surface-muted); color: var(--mc-text-tertiary); border-color: var(--mc-border-subtle); cursor: not-allowed; }
.mc-input.mc-num { font-variant-numeric: var(--mc-numeric-tabular); }

/* Input with an icon or unit in front: search, money, hours. */
.mc-affix { position: relative; display: block; }
.mc-affix__lead {
  position: absolute; left: 0; top: 0; bottom: 0; width: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mc-text-tertiary); font-weight: var(--mc-weight-semibold); pointer-events: none;
}
.mc-affix .mc-input { padding-left: 42px; }
.mc-affix__tail { position: absolute; right: var(--mc-space-04); top: 0; bottom: 0; display: flex; align-items: center; color: var(--mc-text-tertiary); font-size: var(--mc-type-small-size); pointer-events: none; }

.mc-select { position: relative; display: block; }
.mc-select select { padding-right: 44px; cursor: pointer; }
.mc-select .mc-icon { position: absolute; right: var(--mc-space-04); top: 50%; margin-top: -10px; color: var(--mc-text-secondary); pointer-events: none; }

/* Error. Border and message in Marathon Red, plus an icon, so colour is never the only signal. */
.mc-field--error .mc-input, .mc-field--error .mc-select select, .mc-field--error .mc-textarea { border-color: var(--mc-status-error); box-shadow: 0 0 0 1px var(--mc-status-error); }
.mc-error { display: flex; align-items: flex-start; gap: var(--mc-space-03); margin: 0; color: var(--mc-status-error); font-size: var(--mc-type-caption-size); font-weight: var(--mc-weight-semibold); line-height: var(--mc-type-caption-leading); }
.mc-error .mc-icon { margin-top: 1px; }

/* Checkboxes, radios. Native controls, sized up, tinted navy. */
.mc-choice { display: flex; align-items: flex-start; gap: var(--mc-space-04); min-height: var(--mc-screen-touch-target); padding: 10px 0; cursor: pointer; font-size: 15px; line-height: 1.45; }
.mc-choice input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--mc-action-primary); cursor: pointer; }
.mc-choice__hint { display: block; color: var(--mc-text-tertiary); font-size: var(--mc-type-caption-size); }
.mc-choices { display: grid; gap: 0; }
.mc-legend { padding: 0; margin-bottom: var(--mc-space-02); }

/* Switch. A checkbox with role="switch". For settings that apply the moment they flip. */
.mc-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--mc-space-05); min-height: var(--mc-screen-touch-target); cursor: pointer; font-size: 15px; }
.mc-switch input {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0; cursor: pointer;
  position: relative; width: 44px; height: 26px; border-radius: var(--mc-radius-pill);
  background: var(--mc-border-strong);
  transition: background-color var(--mc-duration-base) var(--mc-ease-standard);
}
.mc-switch input::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: var(--mc-radius-pill); background: var(--mc-surface-raised); box-shadow: var(--mc-shadow-1);
  transition: transform var(--mc-duration-base) var(--mc-ease-standard);
}
.mc-switch input:checked { background: var(--mc-action-primary); }
.mc-switch input:checked::before { transform: translateX(18px); }

/* Upload drop zone. Headshots, Post Approval, anything that takes files. */
.mc-drop {
  display: grid; justify-items: center; gap: var(--mc-space-03); text-align: center;
  padding: var(--mc-space-08) var(--mc-space-06);
  background: var(--mc-surface-subtle);
  border: var(--mc-border-width-hairline) dashed var(--mc-border-strong);
  border-radius: var(--mc-radius-lg);
  color: var(--mc-text-secondary); cursor: pointer;
}
.mc-drop:hover, .mc-drop.is-over { border-color: var(--mc-border-focus); background: var(--mc-surface-muted); }
.mc-drop__title { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
.mc-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.mc-form-actions { display: flex; flex-wrap: wrap; gap: var(--mc-space-04); padding-top: var(--mc-space-06); border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); }
@media (max-width: 767px) { .mc-form-actions { flex-direction: column-reverse; } .mc-form-actions .mc-btn { width: 100%; } }

/* --------------------------------------------------------------- badges -- */
/* Status is a dot plus a word. The word carries the meaning, the dot carries the colour. */

.mc-badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 10px;
  border: var(--mc-border-width-hairline) solid var(--mc-border-subtle); border-radius: var(--mc-radius-pill);
  background: var(--mc-surface-raised); color: var(--mc-text-primary);
  font-size: var(--mc-type-caption-size); font-weight: var(--mc-weight-semibold); line-height: 1; white-space: nowrap;
}
.mc-badge::before { content: ""; width: 8px; height: 8px; border-radius: var(--mc-radius-pill); background: var(--mc-badge-dot, var(--mc-text-tertiary)); flex: none; }
.mc-badge--success { --mc-badge-dot: var(--mc-status-success); }
.mc-badge--warning { --mc-badge-dot: var(--mc-status-warning); }
.mc-badge--error   { --mc-badge-dot: var(--mc-status-error); border-color: var(--mc-status-error); background: var(--mc-status-error-surface); color: var(--mc-status-error); }
.mc-badge--info    { --mc-badge-dot: var(--mc-status-info); }
.mc-badge--neutral { --mc-badge-dot: var(--mc-border-strong); color: var(--mc-text-secondary); }

/* ---------------------------------------------------------------- tables -- */
/* Same table as the documents: red header bar, white type, alternating rows, 1px grey
   dividers, no vertical rules, tabular numerals. Under 768px each row collapses to two lines,
   title and client left, amount and status right, so nothing ever scrolls sideways on a phone. */

.mc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mc-space-04); margin-bottom: var(--mc-space-05); }
.mc-toolbar__search { flex: 1 1 260px; max-width: 420px; }
.mc-toolbar__end { margin-left: auto; display: flex; gap: var(--mc-space-04); }
@media (max-width: 767px) { .mc-toolbar__search { max-width: none; flex-basis: 100%; } .mc-toolbar__end { margin-left: 0; } }

.mc-table-wrap { border: var(--mc-border-width-hairline) solid var(--mc-border-subtle); border-radius: var(--mc-radius-md); overflow-x: auto; background: var(--mc-surface-raised); }
.mc-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.mc-table caption { text-align: left; padding: 0 0 var(--mc-space-04); color: var(--mc-text-secondary); font-size: var(--mc-type-caption-size); }
.mc-table th {
  background: var(--mc-surface-subtle); color: var(--mc-text-secondary);
  font-size: 11px; font-weight: var(--mc-weight-bold); letter-spacing: .12em; text-transform: uppercase;
  text-align: left; white-space: nowrap; padding: 12px var(--mc-space-05);
  border-top: var(--mc-border-width-strong) solid var(--mc-border-accent);
  border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-strong);
}
/* App tables use a neutral header row with a 2px Marathon Red rule on top. Red stays an accent
   on screen. The full red header bar belongs to printed quotes and documents, not to apps. */
/* Owner column. Fixed 72px on desktop, header reads Owner, initial sits centred under it. */
@media (min-width: 768px) { .mc-table th.is-owner, .mc-table td.is-owner { text-align: center; } }
.mc-table td { padding: 10px var(--mc-space-05); border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); vertical-align: middle; }
.mc-table tbody tr:nth-child(even) td { background: var(--mc-surface-row-alt); }
.mc-table tbody tr:hover td { background: var(--mc-surface-muted); }
.mc-table tbody tr:first-child td { border-top: 0; }
.mc-table td.mc-num { white-space: nowrap; }
.mc-table .is-num { text-align: right; font-variant-numeric: var(--mc-numeric-tabular); white-space: nowrap; }
.mc-table .is-tight { width: 1%; white-space: nowrap; }
/* Status column. Sizes to the longest pill actually in the column, never wraps a pill.
   Put is-status on the th and every td. */
.mc-table .is-status { width: 1%; white-space: nowrap; }
.mc-table tfoot td { border-top: var(--mc-border-width-strong) solid var(--mc-border-strong); font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); background: var(--mc-surface-raised); }
.mc-cell-title { display: block; color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
.mc-cell-sub { display: block; color: var(--mc-text-tertiary); font-size: var(--mc-type-caption-size); }
/* Two short facts in one narrow cell, date over time. Keeps the Due column under 90px. */
.mc-cell-stack { display: block; font-variant-numeric: var(--mc-numeric-tabular); }
/* Column widths from 768px up. The first column, the title, takes every pixel the others do not
   need, never drops under 320px, and holds its title to one line with an ellipsis. Hover or
   focus shows the full title through the title attribute. Owner, Due, Amount, Status, and the
   action column size to their content and never wrap, so no gap opens up beside the chevron. */
@media (min-width: 768px) {
  .mc-table th:first-child, .mc-table td:first-child { width: 100%; max-width: 0; min-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mc-table th:not(:first-child), .mc-table td:not(:first-child) { width: 1%; white-space: nowrap; padding-left: var(--mc-space-03); padding-right: var(--mc-space-03); }
  .mc-table td:first-child .mc-cell-media { min-width: 288px; }
  .mc-table td:first-child .mc-cell-media > span:last-child { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .mc-table td:first-child .mc-cell-title, .mc-table td:first-child .mc-cell-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 768px) { .mc-table th:first-child, .mc-table td:first-child { padding-left: var(--mc-space-05); padding-right: var(--mc-space-05); } .mc-table th.is-owner, .mc-table td.is-owner { width: 72px; min-width: 72px; max-width: 72px; padding-left: var(--mc-space-03); padding-right: var(--mc-space-03); } }
@media (min-width: 768px) { .mc-table th.is-tight, .mc-table td.is-tight { padding-left: var(--mc-space-02); padding-right: var(--mc-space-03); } }
.mc-cell-media { display: flex; align-items: center; gap: var(--mc-space-04); min-width: 0; }
.mc-table .mc-thumb { width: 36px; height: 36px; }
/* Owner. An initial in a 28px circle on desktop, so the title column keeps the width. The full
   name stays in the markup for screen readers and shows beside the initial on a phone. */
.mc-owner { display: inline-flex; align-items: center; gap: var(--mc-space-03); }
.mc-owner__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) { .mc-owner__name { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
.mc-table .mc-cell-media { gap: var(--mc-space-04); }
.mc-thumb.mc-thumb--icon { display: inline-flex; align-items: center; justify-content: center; color: var(--mc-text-secondary); }
.mc-thumb { width: 48px; height: 48px; flex: none; border-radius: var(--mc-radius-sm); object-fit: cover; background: var(--mc-surface-muted); display: block; }
.mc-table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--mc-space-04); padding: var(--mc-space-04) var(--mc-space-05); border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); color: var(--mc-text-tertiary); font-size: var(--mc-type-caption-size); }

/* Phone rows, under 768px. Each row is two lines, about 64px, like a mail list:
     line 1  thumb, title (one line, ellipsis)           amount
     line 2  thumb, client, due date              status badge
   The title cell and its inner spans dissolve with display: contents so the title and the
   client become their own grid items. The chevron button stretches over the whole row, so the
   row is the tap target. The time under the date and the Owner column hide on a phone. */
@media (max-width: 767px) {
  .mc-table-wrap { overflow: visible; }
  .mc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mc-table, .mc-table tbody, .mc-table tfoot { display: block; width: 100%; }
  .mc-table tbody tr {
    position: relative; display: grid; align-items: center;
    grid-template-columns: 32px minmax(0, max-content) max-content minmax(0, 1fr) max-content max-content;
    grid-template-areas: "thumb title title title title amount" "thumb sub due . status status";
    column-gap: var(--mc-space-03); row-gap: var(--mc-space-02);
    padding: var(--mc-space-04) var(--mc-space-04);
    border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle);
  }
  .mc-table tbody tr:first-child { border-top: 0; }
  .mc-table tbody tr:nth-child(even) { background: var(--mc-surface-row-alt); }
  .mc-table tbody tr:hover { background: var(--mc-surface-muted); }
  .mc-table tbody tr:nth-child(even) td, .mc-table tbody tr:hover td { background: transparent; }
  .mc-table tbody td { display: block; padding: 0; border: 0; min-width: 0; width: auto; text-align: left; }
  .mc-table td[data-label]::before { content: none; }
  .mc-table tbody td:first-child, .mc-table tbody td:first-child .mc-cell-media, .mc-table tbody td:first-child .mc-cell-media > span { display: contents; }
  .mc-table tbody .mc-thumb { grid-area: thumb; align-self: center; width: 32px; height: 32px; }
  .mc-table tbody .mc-cell-title { grid-area: title; min-width: 0; font-size: var(--mc-type-small-size); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mc-table tbody .mc-cell-sub { grid-area: sub; min-width: 0; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mc-table tbody td.is-due { grid-area: due; padding-right: var(--mc-space-02); color: var(--mc-text-tertiary); font-size: var(--mc-type-caption-size); line-height: 1.35; white-space: nowrap; }
  .mc-table tbody td.is-due::before { content: "\00B7  "; white-space: pre; }
  .mc-table tbody td.is-due .mc-cell-stack { display: inline; }
  .mc-table tbody td.is-due .mc-cell-sub { display: none; }
  .mc-table tbody td.is-owner { display: none; }
  .mc-table tbody td.is-num { grid-area: amount; justify-self: end; font-size: var(--mc-type-small-size); font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); line-height: 1.35; }
  .mc-table tbody td.is-status { grid-area: status; justify-self: end; width: auto; line-height: 0; }
  .mc-table tbody td.is-status .mc-badge { height: 22px; font-size: 12px; line-height: 1; padding: 0 var(--mc-space-03); gap: 6px; }
  .mc-table tbody td.is-status .mc-badge::before { width: 6px; height: 6px; }
  .mc-table tbody td.is-tight { position: absolute; inset: 0; width: auto; }
  .mc-table tbody td.is-tight .mc-icon-button { width: 100%; height: 100%; border-radius: 0; background: transparent; }
  .mc-table tbody td.is-tight .mc-icon { display: none; }
  .mc-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; padding: var(--mc-space-04); border-top: var(--mc-border-width-strong) solid var(--mc-border-strong); }
  .mc-table tfoot td { display: block; padding: 0; border: 0; width: auto; background: transparent; }
  .mc-table tfoot td:empty { display: none; }
  .mc-table-foot { padding: var(--mc-space-04); }
}

/* Desktop density, from 768px up. A working screen is a list, so every row is one line and
   40px tall: 24px thumb, title with the client beside it in grey, date and time on one line,
   a 22px initial, a 22px status pill, and a 28px chevron. At 1440 by 900 that puts 10 or more
   deliverables above the fold under the full header, tabs, title row, and stat strip.
   The toolbar above it runs at 32px. Phones keep 44px targets and the two line rows above,
   because a thumb is not a cursor. */
@media (min-width: 768px) {
  .mc-toolbar { gap: var(--mc-space-03); margin-bottom: var(--mc-space-04); }
  .mc-toolbar__search { flex: 0 1 320px; }
  .mc-toolbar .mc-input { min-height: 32px; height: 32px; font-size: var(--mc-type-small-size); }
  .mc-toolbar .mc-affix .mc-input { padding-left: 34px; }
  .mc-toolbar .mc-affix__lead { width: 34px; }
  .mc-toolbar .mc-affix__lead .mc-icon { width: 16px; height: 16px; }
  .mc-toolbar .mc-btn, .mc-pagehead--app .mc-btn { min-height: 32px; padding: 0 var(--mc-space-04); font-size: 13px; gap: 6px; }
  .mc-toolbar .mc-btn .mc-icon, .mc-pagehead--app .mc-btn .mc-icon { width: 16px; height: 16px; }

  .mc-table { font-size: var(--mc-type-small-size); line-height: 1.35; }
  .mc-table th { padding-top: 7px; padding-bottom: 7px; font-size: 10px; }
  .mc-table td { height: 40px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
  .mc-table tfoot td { height: 40px; }
  .mc-table .mc-thumb { width: 24px; height: 24px; border-radius: var(--mc-radius-sm); }
  .mc-table .mc-thumb--icon .mc-icon { width: 16px; height: 16px; }
  .mc-table .mc-cell-media { gap: var(--mc-space-04); }
  .mc-table td:first-child .mc-cell-media > span:last-child { display: flex; align-items: baseline; gap: var(--mc-space-03); }
  .mc-table td:first-child .mc-cell-title { flex: 0 1 auto; min-width: 0; font-weight: var(--mc-weight-semibold); }
  .mc-table td:first-child .mc-cell-sub { flex: 0 100 auto; min-width: 48px; font-size: 13px; }
  .mc-table .mc-cell-stack { display: inline-flex; align-items: baseline; gap: 6px; }
  .mc-table .mc-cell-stack .mc-cell-sub { display: inline; font-size: 13px; }
  .mc-table .mc-avatar--sm { width: 22px; height: 22px; font-size: 10px; }
  .mc-table .mc-badge { height: 22px; padding: 0 var(--mc-space-03); gap: 6px; font-size: 12px; }
  .mc-table .mc-badge::before { width: 6px; height: 6px; }
  .mc-table td.is-tight .mc-icon-button { width: 28px; height: 28px; }
  .mc-table td.is-tight .mc-icon { width: 16px; height: 16px; }
  .mc-table-foot { padding: var(--mc-space-03) var(--mc-space-05); }
}

/* Tablet, 768 to 1099px. The Owner column and the time under Due step out so the title and
   the client keep their room and the chevron never clips. Hover the row title for the rest. */
@media (min-width: 768px) and (max-width: 1099px) {
  .mc-table th.is-owner, .mc-table td.is-owner { display: none; }
  .mc-table .mc-cell-stack .mc-cell-sub { display: none; }
  .mc-table td:first-child .mc-cell-media { min-width: 0; }
  .mc-table th:first-child, .mc-table td:first-child { min-width: 240px; }
}

/* ----------------------------------------------------------------- cards -- */

.mc-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--mc-surface-raised);
  border: var(--mc-border-width-hairline) solid var(--mc-border-subtle);
  border-radius: var(--mc-radius-md);
  padding: var(--mc-space-06);
}
@media (min-width: 768px) { .mc-card { padding: var(--mc-space-07); } }
.mc-card__title { margin: 0; color: var(--mc-text-heading); font-size: 17px; font-weight: var(--mc-weight-bold); line-height: 1.3; overflow-wrap: anywhere; }
.mc-card__text { margin: var(--mc-space-03) 0 0; color: var(--mc-text-secondary); font-size: var(--mc-type-small-size); line-height: var(--mc-type-small-leading); }
.mc-card__foot { margin-top: auto; padding-top: var(--mc-space-06); display: flex; flex-wrap: wrap; align-items: center; gap: var(--mc-space-04); }
.mc-card__icon { width: 44px; height: 44px; margin-bottom: var(--mc-space-05); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--mc-radius-md); background: var(--mc-surface-muted); color: var(--mc-text-heading); }
a.mc-card { text-decoration: none; color: inherit; transition: border-color var(--mc-duration-fast) var(--mc-ease-standard), box-shadow var(--mc-duration-fast) var(--mc-ease-standard); }
.mc-body a.mc-card:hover { border-color: var(--mc-border-strong); box-shadow: var(--mc-shadow-2); color: inherit; }

/* Stat. One number, one label, one comparison. --key marks the single number that matters. */
.mc-stat__value { display: block; color: var(--mc-text-heading); font-size: 40px; font-weight: var(--mc-type-stat-weight); line-height: var(--mc-type-stat-leading); letter-spacing: var(--mc-type-stat-tracking); font-variant-numeric: var(--mc-numeric-tabular); }
.mc-stat__label { display: block; margin-top: var(--mc-space-04); color: var(--mc-text-secondary); font-size: var(--mc-type-caption-size); font-weight: var(--mc-weight-semibold); }
.mc-stat__delta { display: block; margin-top: var(--mc-space-02); color: var(--mc-text-tertiary); font-size: var(--mc-type-caption-size); font-variant-numeric: var(--mc-numeric-tabular); }
.mc-stat--key { border-top: var(--mc-border-width-bar) solid var(--mc-border-accent); }
@media (min-width: 1024px) { .mc-stat__value { font-size: var(--mc-type-stat-size); } }

/* Stat strip. The compact numbers row for working screens: one bordered strip, cells split by
   1px rules, label over value. Four across from 768px, two by two on a phone. The --key cell
   gets the 3px red top bar, the only red in the strip. */
.mc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mc-border-width-hairline); background: var(--mc-border-subtle); border: var(--mc-border-width-hairline) solid var(--mc-border-subtle); border-radius: var(--mc-radius-md); overflow: hidden; }
.mc-stats__item { display: flex; flex-direction: column; justify-content: flex-start; gap: var(--mc-space-01); min-width: 0; padding: var(--mc-space-04) var(--mc-space-05); background: var(--mc-surface-raised); border-top: var(--mc-border-width-bar) solid var(--mc-surface-raised); }
.mc-stats__item--key { border-top-color: var(--mc-border-accent); }
.mc-stats__label { color: var(--mc-text-secondary); font-size: var(--mc-type-caption-size); font-weight: var(--mc-weight-semibold); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-stats__row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--mc-space-01); min-width: 0; }
.mc-stats__value { color: var(--mc-text-heading); font-size: clamp(32px, 28px + 0.6vw, 36px); font-weight: var(--mc-type-stat-weight); line-height: 1.05; letter-spacing: var(--mc-type-stat-tracking); font-variant-numeric: var(--mc-numeric-tabular); }
.mc-stats__delta { color: var(--mc-text-tertiary); font-size: var(--mc-type-caption-size); font-weight: var(--mc-type-body-weight); line-height: 1.3; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: var(--mc-numeric-tabular); }
@media (max-width: 767px) { .mc-stats__item { justify-content: flex-start; } .mc-stats__label { white-space: normal; } }
.mc-stats + .mc-toolbar, .mc-stats + .mc-table-wrap { margin-top: var(--mc-space-05); }
@media (min-width: 768px) { .mc-stats { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; } }

/* Dark callout. Navy block, the only dark surface in an app besides the header.
   Red on navy is Red Bright, always. */
.mc-callout { background: var(--mc-surface-inverse); border-color: var(--mc-surface-inverse); color: var(--mc-text-inverse-secondary); }
.mc-callout .mc-eyebrow { color: var(--mc-accent-on-inverse); }
.mc-callout .mc-card__title { color: var(--mc-text-inverse); font-size: 20px; }
.mc-callout .mc-card__text { color: var(--mc-text-inverse-secondary); }
.mc-callout .mc-divider { background: var(--mc-accent-on-inverse); margin-top: var(--mc-space-06); }

/* Media card. The photo is the content, so nothing is ever printed on top of it.
   The frame is a fixed 3:2 so a grid stays even whatever comes in. Landscape photos fill
   the frame. Portrait photos are shown whole on a grey mat (mc-app.js sets data-orient),
   because a reviewer approving a photo has to see all of it. Without the script, the
   crop favours the top third so heads and signs survive.

   The body is five slots, always in this order, and every card in a row fills them the
   same way:
     1. eyebrow, one line
     2. title, a two line slot (a one line title keeps the second line empty)
     3. facts, three or four of them, in columns at least 88px wide, so a card of 248px
        shows two columns and a wider card three, and cards of one width match row for row
     4. status, one badge
     5. actions, one or two buttons, full width and stacked on a narrow card, side by side
        when the card is wide enough
   Every fact is shown, none are dropped. A long fact value wraps at a whole word. A title
   past two lines, or an eyebrow past one, ends at a whole word: CSS hides any word that
   wraps past the slot, and mc-app.js adds the ellipsis and puts the full text in a tooltip. */
.mc-media { padding: 0; overflow: hidden; }
.mc-media__frame { position: relative; margin: 0; aspect-ratio: 3 / 2; background: var(--mc-surface-muted); overflow: hidden; }
.mc-media__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.mc-media__frame[data-orient="portrait"] img { object-fit: contain; object-position: 50% 50%; }
.mc-media__body { display: flex; flex-direction: column; flex: 1; padding: var(--mc-space-05) var(--mc-space-06) var(--mc-space-06); }
.mc-media__body > .mc-eyebrow { display: block; margin: 0 0 var(--mc-space-02); height: calc(var(--mc-type-eyebrow-size) * var(--mc-type-eyebrow-leading)); line-height: var(--mc-type-eyebrow-leading); overflow: hidden; white-space: normal; overflow-wrap: normal; }
.mc-media__body [data-mc-clipped] { cursor: help; }
.mc-media__body > .mc-card__title { min-height: 2.6em; overflow-wrap: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-media__body > .mc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--mc-space-04) var(--mc-space-05); align-content: start; margin: var(--mc-space-04) 0 0; }
.mc-media__body > .mc-facts dt { white-space: normal; overflow-wrap: normal; }
.mc-media__body > .mc-facts dd { white-space: normal; overflow-wrap: normal; }
.mc-media__body > .mc-card__foot { margin-top: auto; padding-top: var(--mc-space-05); display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--mc-space-04); }
.mc-media__body > .mc-card__foot > .mc-badge { align-self: flex-start; }
.mc-media__actions { display: flex; flex-wrap: wrap; gap: var(--mc-space-03); }
.mc-media__actions .mc-btn { flex: 1 1 140px; min-width: 0; }

/* In a grid, the slots share row tracks across the whole row of cards, so titles, facts,
   badges, and buttons each start on one line across the row. A media grid holds media
   cards only. Browsers without subgrid fall back to the flex column above, where the
   footer is pinned to the bottom of every card. */
@supports (grid-template-rows: subgrid) {
  .mc-grid > .mc-media { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .mc-grid > .mc-media > .mc-media__frame { grid-row: 1; }
  .mc-grid > .mc-media > .mc-media__body { display: contents; }
  .mc-grid > .mc-media > .mc-media__body > * { margin-left: var(--mc-space-06); margin-right: var(--mc-space-06); }
  .mc-grid > .mc-media > .mc-media__body > .mc-eyebrow { grid-row: 2; margin-top: var(--mc-space-05); }
  .mc-grid > .mc-media > .mc-media__body > .mc-card__title { grid-row: 3; }
  .mc-grid > .mc-media > .mc-media__body > .mc-facts { grid-row: 4; }
  .mc-grid > .mc-media > .mc-media__body > .mc-card__foot { grid-row: 5; margin-top: 0; margin-bottom: var(--mc-space-06); align-self: end; }
}

/* Fact row. Label over value, any number of pairs, wraps cleanly. Not beds and baths,
   because a Marathon job can be a showroom, a lot, a community, or a roof. */
.mc-facts { display: flex; flex-wrap: wrap; gap: var(--mc-space-04) var(--mc-space-06); margin: var(--mc-space-04) 0 0; }
.mc-facts div { min-width: 0; }
.mc-facts dt { color: var(--mc-text-tertiary); font-size: 11px; font-weight: var(--mc-weight-bold); letter-spacing: .12em; text-transform: uppercase; }
.mc-facts dd { margin: 2px 0 0; color: var(--mc-text-primary); font-size: var(--mc-type-small-size); font-weight: var(--mc-weight-semibold); font-variant-numeric: var(--mc-numeric-tabular); white-space: nowrap; }

/* ----------------------------------------------------------- empty states -- */
/* Says what is missing, why, and the one thing to do next. Never a cartoon. */

.mc-empty {
  display: grid; justify-items: center; text-align: center; gap: var(--mc-space-03);
  padding: var(--mc-space-10) var(--mc-space-06);
  border: var(--mc-border-width-hairline) solid var(--mc-border-subtle); border-radius: var(--mc-radius-md);
  background: var(--mc-surface-raised);
}
.mc-empty__icon { width: 64px; height: 64px; margin-bottom: var(--mc-space-03); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--mc-radius-pill); background: var(--mc-surface-muted); color: var(--mc-text-heading); }
.mc-empty__title { margin: 0; color: var(--mc-text-heading); font-size: var(--mc-type-h3-size); font-weight: var(--mc-type-h3-weight); line-height: var(--mc-type-h3-leading); text-wrap: balance; }
.mc-empty__text { margin: 0; max-width: 46ch; color: var(--mc-text-secondary); font-size: 15px; }
.mc-empty .mc-btn-row { justify-content: center; margin-top: var(--mc-space-05); }
.mc-empty--error .mc-empty__icon { background: var(--mc-status-error-surface); color: var(--mc-status-error); }
.mc-empty--inline { padding: var(--mc-space-08) var(--mc-space-05); border-style: dashed; background: var(--mc-surface-subtle); }

/* ---------------------------------------------------------------- toasts -- */
/* Bottom right on desktop, bottom of the screen on a phone. Three at most on screen.
   Success and info leave on their own after 5 seconds. Errors stay until closed. */

.mc-toasts {
  position: fixed; z-index: var(--mc-z-toast);
  left: var(--mc-space-04); right: var(--mc-space-04); bottom: calc(var(--mc-space-04) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: var(--mc-space-03);
  pointer-events: none;
}
@media (min-width: 768px) { .mc-toasts { left: auto; right: var(--mc-space-07); bottom: var(--mc-space-07); width: 400px; } }
.mc-toasts--static { position: static; width: auto; max-width: 400px; pointer-events: auto; }

.mc-toast {
  pointer-events: auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--mc-space-04);
  padding: var(--mc-space-05) var(--mc-space-03) var(--mc-space-05) var(--mc-space-05);
  background: var(--mc-surface-raised);
  border: var(--mc-border-width-hairline) solid var(--mc-border-subtle);
  border-left: 4px solid var(--mc-toast-bar, var(--mc-status-info));
  border-radius: var(--mc-radius-md);
  box-shadow: var(--mc-shadow-3);
  animation: mc-toast-in var(--mc-duration-moderate) var(--mc-ease-enter);
}
.mc-toast > .mc-icon { margin-top: 1px; color: var(--mc-toast-bar, var(--mc-status-info)); }
.mc-toast__title { margin: 0; color: var(--mc-text-heading); font-size: 15px; font-weight: var(--mc-weight-bold); line-height: 1.35; }
.mc-toast__text { margin: 2px 0 0; color: var(--mc-text-secondary); font-size: var(--mc-type-small-size); line-height: 1.45; overflow-wrap: anywhere; }
.mc-toast__action { margin: var(--mc-space-03) 0 0 calc(-1 * var(--mc-space-04)); }
.mc-toast .mc-icon-button { width: 36px; height: 36px; margin-top: -8px; color: var(--mc-text-tertiary); }
.mc-toast--success { --mc-toast-bar: var(--mc-status-success); }
.mc-toast--warning { --mc-toast-bar: var(--mc-status-warning); }
.mc-toast--error   { --mc-toast-bar: var(--mc-status-error); }
.mc-toast--info    { --mc-toast-bar: var(--mc-status-info); }
.mc-toast.is-leaving { animation: mc-toast-out var(--mc-duration-base) var(--mc-ease-exit) forwards; }
@keyframes mc-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mc-toast-out { to { opacity: 0; transform: translateY(8px); } }

/* Inline notice. Same voice as a toast, but it stays in the page. */
.mc-notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--mc-space-04); padding: var(--mc-space-05); border: var(--mc-border-width-hairline) solid var(--mc-border-subtle); border-left: 4px solid var(--mc-toast-bar, var(--mc-status-info)); border-radius: var(--mc-radius-md); background: var(--mc-surface-subtle); font-size: var(--mc-type-small-size); }
.mc-notice > .mc-icon { color: var(--mc-toast-bar, var(--mc-status-info)); }
.mc-notice strong { color: var(--mc-text-heading); }

/* ------------------------------------------------------------ auth screens -- */
/* Shown after Cloudflare Access hands over, or when someone lacks access to an app.
   The header stays exactly as every other screen, so the first thing anyone sees is Marathon. */

.mc-auth { min-height: calc(100vh - 58px); display: grid; align-content: start; justify-items: center; padding: var(--mc-space-10) var(--mc-screen-margin) var(--mc-space-12); background: var(--mc-surface-subtle); }
@media (min-width: 768px) { .mc-auth:not(.mc-auth--embed) { align-content: center; } }
.mc-auth--embed { align-content: start; min-height: 0; padding: var(--mc-space-08) var(--mc-space-05); border-radius: var(--mc-radius-md); }
.mc-auth__card { width: 100%; max-width: 440px; padding: var(--mc-space-08) var(--mc-space-06); background: var(--mc-surface-raised); border: var(--mc-border-width-hairline) solid var(--mc-border-subtle); border-radius: var(--mc-radius-lg); box-shadow: var(--mc-shadow-1); }
@media (min-width: 768px) { .mc-auth__card { padding: var(--mc-space-09); } }
.mc-auth__card .mc-mark { width: 40px; margin-bottom: var(--mc-space-07); }
.mc-auth__title { margin: 0; color: var(--mc-text-heading); font-size: 28px; font-weight: var(--mc-weight-extrabold); line-height: 1.15; letter-spacing: var(--mc-type-h1-tracking); text-wrap: balance; }
.mc-auth__text { margin: var(--mc-space-04) 0 var(--mc-space-07); color: var(--mc-text-secondary); font-size: 15px; }
.mc-auth__foot { margin: var(--mc-space-07) 0 0; padding-top: var(--mc-space-05); border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); color: var(--mc-text-tertiary); font-size: var(--mc-type-caption-size); }
.mc-auth__who { overflow-wrap: anywhere; min-width: 0; display: flex; align-items: center; gap: var(--mc-space-04); padding: var(--mc-space-04); margin-bottom: var(--mc-space-07); border-radius: var(--mc-radius-md); background: var(--mc-surface-muted); font-size: var(--mc-type-small-size); }
.mc-auth__who strong { display: block; color: var(--mc-text-heading); }
.mc-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--mc-space-03); }
.mc-code .mc-input { padding: 0; text-align: center; font-size: 22px; font-weight: var(--mc-weight-bold); min-height: 52px; font-variant-numeric: var(--mc-numeric-tabular); }

/* ---------------------------------------------------------------- footer -- */

.mc-foot { border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); padding: var(--mc-space-06) 0 calc(var(--mc-space-06) + env(safe-area-inset-bottom, 0px)); color: var(--mc-text-tertiary); font-size: var(--mc-type-caption-size); }
.mc-foot .mc-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--mc-space-04); }

/* ----------------------------------------------------------------- print -- */
/* Cmd+P from any app screen: the header bar prints as is, nav, buttons, and toasts drop out. */

@media print {
  .mc-nav, .mc-sidenav, .mc-toasts, .mc-top .mc-actions, .mc-btn, .mc-icon-button { display: none !important; }
  .mc-top { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mc-table tbody tr:nth-child(even) td { background: var(--mc-surface-row-alt-print); }
  .mc-table th, .mc-table td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mc-card, .mc-table tr { break-inside: avoid; }
}
ref.css81 lines, 7.0 KB
/* Styles for reference.html and photo-test.html only. Apps never load this file.
   Tokens only, same rule as mc-app.css. */

.ref-intro { display: grid; gap: var(--mc-space-08); grid-template-columns: minmax(0, 1fr); padding-bottom: var(--mc-space-09); border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); }
@media (min-width: 1024px) { .ref-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--mc-space-10); align-items: start; } }

.ref-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--mc-space-05); }
.ref-steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--mc-space-04); align-items: start; }
.ref-steps li::before {
  content: counter(step); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--mc-radius-pill); background: var(--mc-surface-inverse); color: var(--mc-text-inverse);
  font-size: var(--mc-type-small-size); font-weight: var(--mc-weight-bold); font-variant-numeric: var(--mc-numeric-tabular);
}
.ref-steps strong { display: block; padding-top: 5px; margin-bottom: var(--mc-space-02); color: var(--mc-text-heading); font-size: 16px; line-height: 1.35; }
.ref-steps p { margin: 0 0 var(--mc-space-03); color: var(--mc-text-secondary); font-size: var(--mc-type-small-size); }

.ref-inline-code {
  display: block; padding: var(--mc-space-03) var(--mc-space-04);
  background: var(--mc-surface-muted); border: var(--mc-border-width-hairline) solid var(--mc-border-subtle); border-radius: var(--mc-radius-sm);
  color: var(--mc-text-heading); font-size: var(--mc-type-caption-size); font-weight: var(--mc-weight-semibold);
  white-space: pre-wrap; overflow-wrap: anywhere;
}

.ref-stats { margin-top: var(--mc-space-08); }
.ref-stats .mc-stat__value small { font-size: .5em; font-weight: var(--mc-weight-bold); letter-spacing: 0; color: var(--mc-text-secondary); }

.ref-section { padding-top: var(--mc-space-11); scroll-margin-top: var(--mc-space-05); }
.ref-section > .mc-eyebrow { margin-bottom: var(--mc-space-03); }
.ref-section > .mc-text { margin-top: var(--mc-space-04); color: var(--mc-text-secondary); }
.ref-sub { margin: var(--mc-space-08) 0 var(--mc-space-04); color: var(--mc-text-heading); font-size: var(--mc-type-small-size); font-weight: var(--mc-weight-bold); letter-spacing: .08em; text-transform: uppercase; }

.ref-rules { display: grid; gap: var(--mc-space-05); grid-template-columns: minmax(0, 1fr); margin: var(--mc-space-06) 0 0; }
@media (min-width: 768px) { .ref-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mc-screen-gutter); } }
.ref-rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--mc-space-03); font-size: var(--mc-type-small-size); }
.ref-rules li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--mc-space-03); align-items: start; }
.ref-rules li .mc-icon { margin-top: 1px; }
.ref-rules h4 { margin: 0 0 var(--mc-space-04); font-size: 11px; font-weight: var(--mc-weight-bold); letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: uppercase; color: var(--mc-text-tertiary); }

.ref-stage { margin-top: var(--mc-space-06); padding: var(--mc-space-06); background: var(--mc-surface-subtle); border: var(--mc-border-width-hairline) solid var(--mc-border-subtle); border-radius: var(--mc-radius-lg); display: grid; gap: var(--mc-space-06); }
@media (min-width: 768px) { .ref-stage { padding: var(--mc-space-08); } }
.ref-stage--flush { padding: 0; overflow: hidden; gap: 0; background: var(--mc-surface-page); }
.ref-stage--white { background: var(--mc-surface-page); }
.ref-stage .mc-form { max-width: 760px; }
.ref-stage .mc-nav { position: static; }
.ref-stage__label { margin: 0; color: var(--mc-text-tertiary); font-size: 11px; font-weight: var(--mc-weight-bold); letter-spacing: .12em; text-transform: uppercase; }
.ref-stage--flush .ref-stage__label { padding: var(--mc-space-04) var(--mc-space-06); border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); background: var(--mc-surface-subtle); }

.ref-details { margin-top: var(--mc-space-04); border: var(--mc-border-width-hairline) solid var(--mc-border-subtle); border-radius: var(--mc-radius-md); background: var(--mc-surface-page); }
.ref-details summary { display: flex; align-items: center; gap: var(--mc-space-03); min-height: var(--mc-screen-touch-target); padding: 0 var(--mc-space-05); cursor: pointer; color: var(--mc-text-heading); font-size: var(--mc-type-small-size); font-weight: var(--mc-weight-semibold); list-style: none; }
.ref-details summary::-webkit-details-marker { display: none; }
.ref-details summary .mc-icon { transition: transform var(--mc-duration-fast) var(--mc-ease-standard); }
.ref-details[open] summary .mc-icon { transform: rotate(180deg); }
.ref-details summary span { margin-left: auto; color: var(--mc-text-tertiary); font-weight: var(--mc-weight-regular); font-variant-numeric: var(--mc-numeric-tabular); }
.ref-code {
  margin: 0; padding: var(--mc-space-05); max-height: 420px; overflow: auto;
  border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); background: var(--mc-surface-subtle);
  color: var(--mc-text-primary); font-family: var(--mc-font); font-size: 12px; line-height: 1.65; font-variant-numeric: var(--mc-numeric-tabular);
  white-space: pre; tab-size: 2;
}

.ref-browser { margin-top: var(--mc-space-06); border: var(--mc-border-width-hairline) solid var(--mc-border-strong); border-radius: var(--mc-radius-lg); overflow: hidden; box-shadow: var(--mc-shadow-2); background: var(--mc-surface-page); }
.ref-browser .mc-nav { position: static; }
.ref-browser .mc-main { padding: var(--mc-space-07) 0 var(--mc-space-08); }
.ref-browser .mc-container { padding: 0 var(--mc-space-06); }
@media (min-width: 768px) { .ref-browser .mc-container { padding: 0 var(--mc-space-07); } }
@media (min-width: 1200px) { .ref-browser .mc-container { padding: 0 var(--mc-space-08); } }
.ref-screen-table { margin-top: var(--mc-space-05); }

.ref-auths { display: grid; gap: var(--mc-space-05); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .ref-auths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ref-auths .mc-auth--embed { padding: var(--mc-space-06) 0; background: transparent; }
.ref-auths .mc-auth__card { padding: var(--mc-space-07) var(--mc-space-06); }

.ref-toast-stage { display: grid; gap: var(--mc-space-06); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .ref-toast-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.ref-photo-note { margin-top: var(--mc-space-04); }
/* The reference page is a wide docs page, so its outer container runs wider than an app's.
   That gives the whole-screen demo about the width a real app screen has beside nothing. */
body > .mc-container { max-width: 1360px; }
partials/auth-code.html25 lines, 1.5 KB
<!-- Code entry. Six boxes, numeric keyboard on phones, paste fills all six. -->
<main class="mc-auth">
  <div class="mc-auth__card">
    <img class="mc-mark" src="/brand/marathon-mark-lines.svg" alt="">
    <span class="mc-eyebrow">Check your email</span>
    <h1 class="mc-auth__title">Enter the six&#x2011;digit code</h1>
    <p class="mc-auth__text">Sent to marketing@cangelosi.com at 9:42am.</p>
    <form class="mc-form" action="/auth/verify" method="post">
      <fieldset class="mc-field">
        <legend class="mc-sr-only">Six-digit code</legend>
        <div class="mc-code">
          <input class="mc-input" name="d1" inputmode="numeric" maxlength="1" autocomplete="one-time-code" aria-label="Digit 1" value="4">
          <input class="mc-input" name="d2" inputmode="numeric" maxlength="1" aria-label="Digit 2" value="8">
          <input class="mc-input" name="d3" inputmode="numeric" maxlength="1" aria-label="Digit 3" value="1">
          <input class="mc-input" name="d4" inputmode="numeric" maxlength="1" aria-label="Digit 4">
          <input class="mc-input" name="d5" inputmode="numeric" maxlength="1" aria-label="Digit 5">
          <input class="mc-input" name="d6" inputmode="numeric" maxlength="1" aria-label="Digit 6">
        </div>
      </fieldset>
      <button class="mc-btn mc-btn--primary mc-btn--block" type="submit">Sign in</button>
      <button class="mc-btn mc-btn--quiet mc-btn--block" type="button">Send a new code</button>
    </form>
  </div>
</main>
partials/auth-no-access.html15 lines, 1.1 KB
<!-- No access. The person is signed in but this app is not theirs. Say who they are signed in as,
     who decides, and give them one way to ask. -->
<main class="mc-auth">
  <div class="mc-auth__card">
    <span class="mc-empty__icon"><svg class="mc-icon mc-icon--24" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-lock"></use></svg></span>
    <h1 class="mc-auth__title">Post Approval is for account leads</h1>
    <p class="mc-auth__text">You are signed in, but this app is not on your account yet. Taylor adds people, usually within the hour.</p>
    <div class="mc-auth__who"><span class="mc-avatar mc-avatar--light" aria-hidden="true">R</span><span><strong>Signed in as</strong>rey@marathoncreative.co</span></div>
    <div class="mc-form">
      <a class="mc-btn mc-btn--primary mc-btn--block" href="mailto:taylor@marathoncreative.co?subject=Post%20Approval%20access">Ask Taylor for access</a>
      <a class="mc-btn mc-btn--secondary mc-btn--block" href="/cdn-cgi/access/logout">Sign in as someone else</a>
    </div>
  </div>
</main>
partials/auth-signin.html19 lines, 1.1 KB
<!-- Sign-in. For client-facing apps like Client Approvals, where a client signs in with a
     one-time code. Team apps sit behind Cloudflare Access instead, see the README. -->
<main class="mc-auth">
  <div class="mc-auth__card">
    <img class="mc-mark" src="/brand/marathon-mark-lines.svg" alt="">
    <span class="mc-eyebrow">Client Approvals</span>
    <h1 class="mc-auth__title">Sign in to see your proofs</h1>
    <p class="mc-auth__text">Use the email address your proofs were sent to. We will email you a six-digit code.</p>
    <form class="mc-form" action="/auth/code" method="post">
      <div class="mc-field">
        <label class="mc-label" for="a-email">Email address</label>
        <input class="mc-input" id="a-email" name="email" type="email" autocomplete="email" value="marketing@cangelosi.com">
      </div>
      <button class="mc-btn mc-btn--primary mc-btn--block" type="submit">Email me a code</button>
    </form>
    <p class="mc-auth__foot">Codes expire after 10 minutes. Wrong inbox? Reply to any Marathon email and Taylor will fix it the same day.</p>
  </div>
</main>
partials/buttons.html24 lines, 1.8 KB
<!-- Buttons. One primary per view, and it says what happens: "Send to client", not "Submit".
     Everything is 44px tall to touch. --sm is 36px, for dense desktop tables only. -->
<div class="mc-btn-row">
  <button class="mc-btn mc-btn--primary" type="button">Send to client</button>
  <button class="mc-btn mc-btn--secondary" type="button">Save draft</button>
  <button class="mc-btn mc-btn--quiet" type="button">Cancel</button>
  <button class="mc-btn mc-btn--danger" type="button"><svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-trash"></use></svg>Delete gallery</button>
</div>

<div class="mc-btn-row">
  <button class="mc-btn mc-btn--primary" type="button"><svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-upload"></use></svg>Upload photos</button>
  <button class="mc-btn mc-btn--primary" type="button" aria-busy="true">Sending</button>
  <button class="mc-btn mc-btn--primary" type="button" disabled>Send to client</button>
  <button class="mc-btn mc-btn--secondary mc-btn--sm" type="button">Export CSV</button>
  <button class="mc-icon-button mc-icon-button--bordered" type="button" aria-label="Download gallery"><svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-download"></use></svg></button>
  <button class="mc-icon-button" type="button" aria-label="Edit"><svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-edit"></use></svg></button>
</div>

<!-- On a phone, a form's buttons stack and the primary sits under the thumb. Primary goes FIRST in the markup. -->
<div class="mc-btn-row mc-btn-row--stack">
  <button class="mc-btn mc-btn--primary" type="button">Approve all 18</button>
  <button class="mc-btn mc-btn--secondary" type="button">Request changes</button>
</div>
partials/cards-item.html23 lines, 1.6 KB
<!-- Item cards. Title, two lines of text, one action. Use a link card when the whole card
     opens something. The dark callout is for one thing per screen that needs a decision. -->
<div class="mc-grid mc-grid--3">
  <a class="mc-card" href="/shoots/new">
    <span class="mc-card__icon"><svg class="mc-icon mc-icon--24" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-drone"></use></svg></span>
    <h3 class="mc-card__title">Book a drone shoot</h3>
    <p class="mc-card__text">Pick the client and the date. Rey checks the airspace and confirms within one business day.</p>
  </a>
  <div class="mc-card">
    <span class="mc-card__icon"><svg class="mc-icon mc-icon--24" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-crm"></use></svg></span>
    <h3 class="mc-card__title">PaceCRM pipeline for Rosehill Reserve</h3>
    <p class="mc-card__text">Lead form, two-step text follow up, and the builder hand-off are live. The email drip goes live Monday.</p>
    <div class="mc-card__foot"><span class="mc-badge mc-badge--success">Live</span><span class="mc-meta">Updated by Hector, Oct 16</span></div>
  </div>
  <div class="mc-card mc-callout">
    <span class="mc-eyebrow">Needs a decision</span>
    <h3 class="mc-card__title">Cangelosi is on round three of changes for one set.</h3>
    <p class="mc-card__text">Call before round four goes out. A 10 minute call now saves a day of edits.</p>
    <span class="mc-divider"></span>
    <div class="mc-card__foot"><a class="mc-btn mc-btn--inverse mc-btn--sm" href="/clients/cangelosi">Open the thread</a></div>
  </div>
</div>
partials/cards-media.html47 lines, 3.5 KB
<!-- Media card. The photo is the content, so nothing is ever printed on top of it: no type,
     no badge, no red. The frame is fixed at 3:2. Landscape fills it, portrait is shown whole
     on a grey mat (mc-app.js does this), so a reviewer always sees the full frame.
     Fill all five slots, in this order, on every card: eyebrow (client), title (put the same
     words in its title attribute), three or four facts, one status badge, two buttons.
     Keep fact labels to one short word. Leaving a slot out leaves a gap in the row.
     Facts are any label and value pairs that fit the job. Never beds and baths by default.
     One primary button per screen, so only the card waiting on Marathon gets Approve. -->
<div class="mc-grid mc-grid--3">
  <article class="mc-card mc-media">
    <figure class="mc-media__frame"><img src="/media/mc_retouched_05.jpg" alt="Cangelosi showroom, sample racks and design tables" loading="lazy"></figure>
    <div class="mc-media__body">
      <span class="mc-eyebrow">Cangelosi</span>
      <h3 class="mc-card__title" title="Showroom interiors for the new website">Showroom interiors for the new website</h3>
      <dl class="mc-facts"><div><dt>Images</dt><dd>42</dd></div><div><dt>Shot</dt><dd>Oct 14</dd></div><div><dt>Shooter</dt><dd>Rey</dd></div></dl>
      <div class="mc-card__foot">
        <span class="mc-badge mc-badge--info">Needs your review</span>
        <div class="mc-media__actions"><button class="mc-btn mc-btn--primary mc-btn--sm" type="button">Approve</button><button class="mc-btn mc-btn--secondary mc-btn--sm" type="button">Request changes</button></div>
      </div>
    </div>
  </article>
  <article class="mc-card mc-media">
    <figure class="mc-media__frame"><img src="/media/mc_rosehill_16.jpg" alt="Rosehill Reserve from the air, lakes and streets" loading="lazy"></figure>
    <div class="mc-media__body">
      <span class="mc-eyebrow">Rosehill Reserve</span>
      <h3 class="mc-card__title" title="Community aerials for the fall sales push, stills and a 45 second reel">Community aerials for the fall sales push, stills and a 45 second reel</h3>
      <dl class="mc-facts"><div><dt>Stills</dt><dd>18</dd></div><div><dt>Reel</dt><dd>0:45</dd></div><div><dt>Pilot</dt><dd>Philip</dd></div></dl>
      <div class="mc-card__foot">
        <span class="mc-badge mc-badge--warning">Waiting on client</span>
        <div class="mc-media__actions"><button class="mc-btn mc-btn--secondary mc-btn--sm" type="button">Send reminder</button><button class="mc-btn mc-btn--quiet mc-btn--sm" type="button">Open folder</button></div>
      </div>
    </div>
  </article>
  <article class="mc-card mc-media">
    <figure class="mc-media__frame"><img src="/media/mc_retouched_08.jpg" alt="Cangelosi sample rack, portrait" loading="lazy"></figure>
    <div class="mc-media__body">
      <span class="mc-eyebrow">Cangelosi</span>
      <h3 class="mc-card__title" title="Sample rack verticals for Instagram stories">Sample rack verticals for Instagram stories</h3>
      <dl class="mc-facts"><div><dt>Images</dt><dd>12</dd></div><div><dt>Format</dt><dd>1080x1920</dd></div><div><dt>Due</dt><dd>Oct 24</dd></div></dl>
      <div class="mc-card__foot">
        <span class="mc-badge mc-badge--success">Approved</span>
        <div class="mc-media__actions"><button class="mc-btn mc-btn--secondary mc-btn--sm" type="button">Download</button><button class="mc-btn mc-btn--quiet mc-btn--sm" type="button">Open folder</button></div>
      </div>
    </div>
  </article>
</div>
partials/cards-stat.html9 lines, 914 bytes
<!-- Stat cards. One number, one label, one comparison. Put --key on the single number
     the screen is about, never on more than one. -->
<div class="mc-grid mc-grid--4">
  <div class="mc-card mc-stat--key"><span class="mc-stat__value">14</span><span class="mc-stat__label">Posts waiting on a client</span><span class="mc-stat__delta">Oldest sent Oct 13</span></div>
  <div class="mc-card"><span class="mc-stat__value">6</span><span class="mc-stat__label">Approved today</span><span class="mc-stat__delta">Two more than Thursday</span></div>
  <div class="mc-card"><span class="mc-stat__value">2</span><span class="mc-stat__label">Sent back for changes</span><span class="mc-stat__delta">Both Cangelosi</span></div>
  <div class="mc-card"><span class="mc-stat__value">31h</span><span class="mc-stat__label">Average time to a yes</span><span class="mc-stat__delta">Down from 44h in September</span></div>
</div>
partials/empty.html23 lines, 1.7 KB
<!-- Empty states. Three kinds: nothing yet, nothing matches, and could not load.
     Each one says what is missing, why, and gives one thing to do. -->
<div class="mc-grid mc-grid--3">
  <div class="mc-empty">
    <span class="mc-empty__icon"><svg class="mc-icon mc-icon--24" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-check"></use></svg></span>
    <h3 class="mc-empty__title">Nothing is waiting on a client</h3>
    <p class="mc-empty__text">Every post sent this week has a yes. New posts show up here the moment they go out for approval.</p>
    <div class="mc-btn-row"><a class="mc-btn mc-btn--secondary" href="/scheduled">See what is scheduled</a></div>
  </div>
  <div class="mc-empty">
    <span class="mc-empty__icon"><svg class="mc-icon mc-icon--24" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-search"></use></svg></span>
    <h3 class="mc-empty__title">No deliverables match &ldquo;Bayou City&rdquo; in September</h3>
    <p class="mc-empty__text">Their first ad set is booked for October. Clear the month to see it.</p>
    <div class="mc-btn-row"><button class="mc-btn mc-btn--secondary" type="button">Clear filters</button></div>
  </div>
  <div class="mc-empty mc-empty--error" role="alert">
    <span class="mc-empty__icon"><svg class="mc-icon mc-icon--24" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-alert"></use></svg></span>
    <h3 class="mc-empty__title">The approval queue did not load</h3>
    <p class="mc-empty__text">PaceCRM took longer than 10 seconds to answer. Nothing was lost. Try again, and if it fails twice, tell Hector.</p>
    <div class="mc-btn-row"><button class="mc-btn mc-btn--primary" type="button">Try again</button></div>
  </div>
</div>
partials/forms.html64 lines, 3.7 KB
<!-- Form. Label above every field, hint under it, error replaces the hint.
     Required is the default, so mark the optional ones instead. -->
<form class="mc-form" action="/shoots" method="post">
  <div class="mc-form-row mc-form-row--2">
    <div class="mc-field">
      <label class="mc-label" for="f-client">Client</label>
      <span class="mc-select">
        <select id="f-client" name="client">
          <option>Cangelosi</option>
          <option>Rosehill Reserve</option>
          <option>Bayou City Roofing</option>
        </select>
        <svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-chevron-down"></use></svg>
      </span>
    </div>
    <div class="mc-field">
      <label class="mc-label" for="f-date">Shoot date</label>
      <input class="mc-input mc-num" id="f-date" name="date" type="text" value="Tue, Oct 21, 9:00am" inputmode="numeric">
      <p class="mc-hint">Drone shoots need a backup date within five days.</p>
    </div>
  </div>

  <fieldset class="mc-field">
    <legend class="mc-label mc-legend">What are we shooting</legend>
    <div class="mc-choices">
      <label class="mc-choice"><input type="checkbox" name="svc" value="photo" checked><span>Photography<span class="mc-choice__hint">Interiors, exteriors, and detail shots</span></span></label>
      <label class="mc-choice"><input type="checkbox" name="svc" value="drone" checked><span>Drone and aerial<span class="mc-choice__hint">Pilot checks the airspace 48 hours out</span></span></label>
      <label class="mc-choice"><input type="checkbox" name="svc" value="tour"><span>3D tour and floorplan</span></label>
    </div>
  </fieldset>

  <div class="mc-form-row mc-form-row--2">
    <div class="mc-field">
      <label class="mc-label" for="f-quote">Quoted amount</label>
      <span class="mc-affix"><span class="mc-affix__lead" aria-hidden="true">$</span><input class="mc-input mc-num" id="f-quote" name="quote" type="text" inputmode="decimal" value="1,450.00"></span>
      <p class="mc-hint">Sample figure. Jacob confirms every quote before it goes out.</p>
    </div>
    <div class="mc-field mc-field--error">
      <label class="mc-label" for="f-email">Client contact email</label>
      <input class="mc-input" id="f-email" name="email" type="email" value="marketing@cangelosi" aria-invalid="true" aria-describedby="f-email-err">
      <p class="mc-error" id="f-email-err"><svg class="mc-icon mc-icon--16" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-alert"></use></svg>This address is missing its ending. Add .com or the right domain and save again.</p>
    </div>
  </div>

  <div class="mc-field">
    <label class="mc-label" for="f-notes">Notes for the crew <span class="mc-label__opt">Optional</span></label>
    <textarea class="mc-textarea" id="f-notes" name="notes">Showroom opens at 8am. Shoot the new sample wall before the lights come on in the back.</textarea>
  </div>

  <label class="mc-drop" for="f-files">
    <svg class="mc-icon mc-icon--24" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-upload"></use></svg>
    <span class="mc-drop__title">Drop the shot list or a reference photo</span>
    <span class="mc-hint">PDF, JPG, or PNG, up to 25 MB each</span>
    <input id="f-files" name="files" type="file" multiple>
  </label>

  <label class="mc-switch"><span>Text the client a reminder the day before</span><input type="checkbox" role="switch" name="remind" checked></label>

  <div class="mc-form-actions">
    <button class="mc-btn mc-btn--primary" type="submit">Book the shoot</button>
    <button class="mc-btn mc-btn--quiet" type="button">Cancel</button>
  </div>
</form>
partials/header-actions.html14 lines, 773 bytes
<!-- The same approved header with the optional actions slot filled in. Nothing else changes.
     On a phone the user chip hides and the app name wraps to a second line, it never cuts off. -->
<header class="mc-top">
  <div class="mc-wrap">
    <img class="mc-logo" src="/brand/marathon-logo-white.svg" alt="Marathon Creative">
    <span class="mc-appname">Post Approval</span>

    <div class="mc-actions">
      <span class="mc-user"><span class="mc-avatar" aria-hidden="true">TT</span><span class="mc-user__name">Taylor Treybig</span></span>
      <a class="mc-icon-button" href="/cdn-cgi/access/logout" aria-label="Sign out"><svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-logout"></use></svg></a>
    </div>
  </div>
</header>
partials/header.html12 lines, 484 bytes
<!-- Marathon app header, approved by Jacob 2026-10-09. Copy verbatim. Change ONLY the app name text.
     Needs mc-app.css in the head and class="mc-body" on body. -->
<header class="mc-top">
  <div class="mc-wrap">
    <img class="mc-logo" src="/brand/marathon-logo-white.svg" alt="Marathon Creative">
    <span class="mc-appname">Launchpad</span>

    <!-- Optional. Delete if the app has no header controls. -->
    <!-- <div class="mc-actions"> ... </div> -->
  </div>
</header>
partials/nav-side.html29 lines, 1.8 KB
<!-- Side nav. Eight or more views, or views that fall into groups. Desktop shows a column,
     under 1024px it turns into a sideways-scrolling row on its own. Wrap it and the page
     content in .mc-layout. -->
<div class="mc-layout">
  <nav class="mc-sidenav" aria-label="Marathon Hub">
    <div class="mc-sidenav__inner">
      <div class="mc-sidenav__group">
        <p class="mc-sidenav__label">Production</p>
        <ul class="mc-sidenav__list">
          <li><a class="mc-sidenav__link" href="/shoots" aria-current="page"><svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-calendar"></use></svg>Shoots</a></li>
          <li><a class="mc-sidenav__link" href="/edits"><svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-video"></use></svg>Edits</a></li>
          <li><a class="mc-sidenav__link" href="/deliveries"><svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-folder"></use></svg>Deliveries</a></li>
        </ul>
      </div>
      <div class="mc-sidenav__group">
        <p class="mc-sidenav__label">Clients</p>
        <ul class="mc-sidenav__list">
          <li><a class="mc-sidenav__link" href="/accounts"><svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-user"></use></svg>Accounts</a></li>
          <li><a class="mc-sidenav__link" href="/quotes"><svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-file"></use></svg>Quotes</a></li>
          <li><a class="mc-sidenav__link" href="/settings"><svg class="mc-icon mc-icon--20" aria-hidden="true"><use href="/brand/icons.svg#mc-icon-settings"></use></svg>Settings</a></li>
        </ul>
      </div>
    </div>
  </nav>
  <main class="mc-main">
    <!-- page content -->
  </main>
</div>
partials/nav-tabs.html12 lines, 727 bytes
<!-- Tab nav. Two to seven views. Goes straight after the header. Mark the current view with
     aria-current="page". Counts are optional, use them for work that is waiting on someone. -->
<nav class="mc-nav" aria-label="Post Approval">
  <ul class="mc-nav__list">
    <li><a class="mc-nav__link" href="/queue" aria-current="page">Waiting on client <span class="mc-nav__count">14</span></a></li>
    <li><a class="mc-nav__link" href="/changes">Changes requested <span class="mc-nav__count">2</span></a></li>
    <li><a class="mc-nav__link" href="/scheduled">Scheduled</a></li>
    <li><a class="mc-nav__link" href="/published">Published</a></li>
    <li><a class="mc-nav__link" href="/clients">Clients</a></li>
  </ul>
</nav>
partials/page.html33 lines, 1.2 KB
<!-- A whole page. Start every new app screen from this. It is one String.raw template:
     no backticks and no dollar-brace anywhere inside, so it pastes straight into a Worker. -->
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
  <title>Post Approval, Marathon Creative</title>
  <link rel="icon" type="image/svg+xml" href="/brand/marathon-mark-lines.svg">
  <link rel="stylesheet" href="/brand/mc-app.css">
</head>
<body class="mc-body">
  <header class="mc-top">
    <div class="mc-wrap">
      <img class="mc-logo" src="/brand/marathon-logo-white.svg" alt="Marathon Creative">
      <span class="mc-appname">Post Approval</span>
    </div>
  </header>

  <!-- nav partial here -->

  <main class="mc-main">
    <div class="mc-container">
      <!-- partials/pagehead.html here, the app title row with the actions on the right -->
      <!-- components here -->
    </div>
  </main>

  <footer class="mc-foot"><div class="mc-container"><span>Post Approval</span><span>Marathon Creative, internal</span></div></footer>
  <script src="/brand/mc-app.js" defer></script>
</body>
</html>

12 more source files are in the zip above.