/* marketplace/assets/mp.css: the Noordt Marketplace (noordt.co/marketplace), on top of base.css (the site's tokens,
   shell and components, shared with /market). Only what the marketplace adds: role cards, steps, forms, the app.
   Semantic colors are a separate set from the brand blue, defined for the dark and the light zone. */

:root { --ok: #5cc18f; --warn: #e0a54a; --bad: #e57069; --field-h: 2.85rem; }
.sec-light { --ok: #1f7a4f; --warn: #8f5c0c; --bad: #b0382f; }

/* The arrow in the buttons: base.css makes every svg a block at full width, so it needs its own size here. */
.btn-primary svg, .btn-secondary svg, .cta a svg, .mp-btn svg { width: 14px; height: 9px; flex: none; display: inline-block; stroke: currentColor; stroke-width: 1.6; fill: none; transition: transform 0.3s var(--ease); }
.btn-primary:hover svg, .btn-secondary:hover svg, .cta a:hover svg { transform: translateX(3px); }
.btn-primary, .btn-secondary { white-space: nowrap; }

.mp-hero h1 { max-width: 19ch; }
.mp-hero .mk-hero-bottom { align-items: start; }
.mp-hero .btn-row { margin-top: 1.75rem; }
.role-hero h1 { max-width: 22ch; }

/* ===== the rules list: a set, not a sequence, so a square marker instead of numbers ===== */
.mp-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.mp-rules li { position: relative; padding-left: 1.4rem; color: var(--paper-dim); font-size: 0.95rem; line-height: 1.5; }
.mp-rules li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--signal); }

/* ===== open roles ===== */
.mp-filter { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; max-width: 520px; }
.mp-filter input { flex: 1; height: var(--field-h); padding: 0 0.9rem; font: inherit; border: 1px solid var(--line-strong); border-radius: 0; }
/* Each card its own border: a hairline grid on a shared background shows grey filler next to a lone card. */
.mp-rolegrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.mp-rolecard { background: var(--ink); border: 1px solid var(--line-strong); }
.mp-rolecard a { display: grid; gap: 0.7rem; padding: clamp(1.4rem, 2.4vw, 2rem); height: 100%; transition: background 0.3s var(--ease); }
.mp-rolecard a:hover { background: var(--ink-2); }
.mp-rc-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mp-rc-loc { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--paper-muted); text-align: right; }
.mp-rc-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1.6vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; color: var(--paper); }
.mp-rc-who { color: var(--paper-dim); font-size: 0.95rem; }
.mp-rc-facts { display: grid; gap: 0.25rem; font-size: 0.92rem; color: var(--paper); font-variant-numeric: tabular-nums; }
.mp-rc-facts b { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-muted); font-weight: 500; display: inline-block; min-width: 9.5rem; }
.mp-rc-bar { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--paper-muted); border-top: 1px solid var(--line); padding-top: 0.7rem; }
.mp-emptystate { border: 1px solid var(--line-strong); border-left: 2px solid var(--signal); padding: clamp(1.5rem, 3vw, 2.5rem); max-width: 860px; background: rgba(255, 255, 255, 0.45); }
.mp-emptystate h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.mp-emptystate p { color: var(--paper-dim); max-width: 64ch; margin: 0; }
.mp-empty { color: var(--paper-muted); margin: 1rem 0 0; }

/* ===== how it works ===== */
.mp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
.mp-side { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal); font-weight: 500; margin: 0 0 1.25rem; }
.mp-steps { list-style: none; counter-reset: stap; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1.1rem; }
/* A block with the number outside the flow: as a grid, the text after <b> became its own cell, one word per line. */
.mp-steps li { counter-increment: stap; position: relative; color: var(--paper-dim); line-height: 1.6; padding: 1.1rem 0 0 2.6rem; border-top: 1px solid var(--line); }
.mp-steps li::before { content: counter(stap, decimal-leading-zero); position: absolute; left: 0; top: 1.3rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--signal); }
.mp-steps b { color: var(--paper); font-weight: 600; }
.mp-steps-wide { max-width: 980px; }

.mp-money table th { width: 15rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-muted); font-weight: 500; vertical-align: top; padding: 0.95rem 1rem; }
.mp-money table td { padding: 0.95rem 1rem; color: var(--paper); }
.mp-money tr + tr th, .mp-money tr + tr td { border-top: 1px solid var(--line); }
section:not(.sec-light) .mp-money { background: transparent; }

.mp-rulegrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mp-rulegrid li { background: var(--ink); padding: clamp(1.25rem, 2.2vw, 1.75rem); }
.mp-rulegrid h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
.mp-rulegrid p { margin: 0; color: var(--paper-dim); font-size: 0.95rem; }

/* ===== forms ===== */
.mp-applywrap { max-width: 1100px; }
.mp-form { max-width: 920px; }
.mp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; }
.mp-field { display: grid; gap: 0.35rem; align-content: start; }
.mp-wide { grid-column: 1 / -1; }
.mp-field label, .mp-legend { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-dim); font-weight: 500; }
.mp-opt { color: var(--paper-faint); letter-spacing: 0.08em; text-transform: none; font-size: 0.7rem; margin-left: 0.35rem; }
.mp-field input, .mp-field select, .mp-field textarea { width: 100%; font: inherit; font-size: 0.98rem; color: var(--paper); background: rgba(245, 241, 232, 0.04); border: 1px solid var(--line-strong); border-radius: 0; padding: 0.7rem 0.85rem; min-height: var(--field-h); transition: border-color 0.2s var(--ease); }
.mp-field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
.mp-field input:focus, .mp-field select:focus, .mp-field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.mp-field[data-bad] input, .mp-field[data-bad] select, .mp-field[data-bad] textarea { border-color: var(--bad); }
.mp-hint { margin: 0; font-size: 0.82rem; color: var(--paper-muted); }
.mp-err { margin: 0; font-size: 0.85rem; color: var(--bad); font-weight: 500; }
.mp-check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.5rem 0 0.25rem; font-size: 0.95rem; color: var(--paper-dim); max-width: 70ch; cursor: pointer; }
.mp-check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--signal); flex: none; }
.mp-check a, .mp-form a, .section-head p a, .mp-muted a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.mp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.mp-actions button[disabled] { opacity: 0.55; cursor: progress; transform: none; }
.mp-formmsg { margin: 0; font-size: 0.95rem; color: var(--paper-dim); }
.mp-formmsg[data-tone="ok"] { color: var(--ok); font-weight: 600; }
.mp-formmsg[data-tone="bad"] { color: var(--bad); font-weight: 600; }
.mp-thanks { border: 1px solid var(--line-strong); border-left: 2px solid var(--ok); padding: 1.5rem 1.75rem; max-width: 720px; }
.mp-thanks h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin: 0 0 0.5rem; }
.mp-thanks p { margin: 0; color: var(--paper-dim); }

/* ===== a role ===== */
.mp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; margin: 0; }
.mp-facts div { display: grid; gap: 0.2rem; }
.mp-facts dt { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-muted); }
.mp-facts dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--paper); font-variant-numeric: tabular-nums; line-height: 1.25; }
.mp-facts-light { grid-template-columns: 1fr; gap: 0.9rem; margin-bottom: 2rem; }
.mp-facts-light dd { font-family: var(--font-body); font-size: 0.98rem; }
.mp-reasons { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--paper-dim); }
.mp-rolebody { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.mp-main p { max-width: 68ch; color: var(--paper-dim); }
.mp-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.02em; margin: 2.4rem 0 0.75rem; }
.mp-main > .mp-h2:first-child { margin-top: 0; }
.mp-critical { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: krit; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line-strong); }
.mp-critical li { counter-increment: krit; background: var(--ink); padding: 1rem 1.2rem 1rem 3.4rem; position: relative; font-size: 1.02rem; color: var(--paper); }
.mp-critical li::before { content: counter(krit); position: absolute; left: 1.2rem; top: 1rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--signal); }
.mp-list { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--paper-dim); display: grid; gap: 0.35rem; }
.mp-red li::marker { color: var(--bad); }
.mp-rolebody .mp-sidecol { color: var(--paper); }
.mp-rolebody aside .label { display: block; margin: 0 0 1rem; }
.mp-process { margin: 0 0 2rem; padding-left: 1.3rem; color: var(--paper-dim); display: grid; gap: 0.4rem; }
.mp-block { width: 100%; justify-content: center; }
.mp-small { font-size: 0.85rem; margin-top: 0.75rem; }
.mp-muted { color: var(--paper-muted); }
.mp-terms h2 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.mp-terms .mk-subnav { margin-bottom: 2.5rem; }
.mp-terms .mk-subnav a { color: var(--paper-muted); }

/* ===== the app ===== */
.mp-loading { color: var(--paper-muted); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.mp-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--signal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mp-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-strong); background: transparent; color: var(--paper); cursor: pointer; border-radius: 0; transition: all 0.2s var(--ease); }
.mp-btn:hover { border-color: var(--signal); color: var(--signal); }
.mp-btn.is-primary { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.mp-btn.is-primary:hover { background: transparent; color: var(--signal); }
.mp-btn.is-bad { color: var(--bad); }
.mp-btn.is-bad:hover { border-color: var(--bad); }
.mp-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.mp-btnrow { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.25rem; }
.mp-list-app { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line-strong); }
.mp-row { background: var(--ink); padding: 1.1rem 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1.5rem; align-items: center; }
.mp-row a.mp-rowlink { font-family: var(--font-display); font-size: 1.2rem; color: var(--paper); letter-spacing: -0.01em; }
.mp-row a.mp-rowlink:hover { color: var(--signal); }
.mp-row .mp-meta { grid-column: 1 / -1; font-size: 0.88rem; color: var(--paper-muted); font-variant-numeric: tabular-nums; }
.mp-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.6rem; border: 1px solid currentColor; white-space: nowrap; }
.mp-pill::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.mp-pill[data-tone="neutral"] { color: var(--paper-muted); }
.mp-pill[data-tone="active"] { color: var(--signal); }
.mp-pill[data-tone="ok"] { color: var(--ok); }
.mp-pill[data-tone="warn"] { color: var(--warn); }
.mp-pill[data-tone="bad"] { color: var(--bad); }
.mp-card { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.5); padding: clamp(1.25rem, 2.4vw, 1.9rem); margin-bottom: 1.25rem; }
.mp-card h2, .mp-card h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.mp-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.mp-card h3 { font-size: 1.2rem; }
.mp-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0.9rem 1.5rem; margin: 0 0 0.5rem; }
.mp-kv div { display: grid; gap: 0.15rem; }
.mp-kv dt { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-muted); }
.mp-kv dd { margin: 0; color: var(--paper); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mp-strength { display: grid; gap: 0.6rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.mp-strength li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.25rem 1rem; align-items: baseline; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.mp-strength .mp-pill { justify-self: start; }
.mp-strength .mp-line { color: var(--paper); font-weight: 500; }
.mp-strength .mp-ev { grid-column: 2; color: var(--paper-dim); font-size: 0.9rem; }
.mp-timeline { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--paper-dim); }
.mp-timeline time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-muted); margin-right: 0.75rem; }
.mp-notice { border-left: 2px solid var(--signal); padding: 0.85rem 1.1rem; background: rgba(26, 54, 122, 0.06); margin: 0 0 1.25rem; color: var(--paper-dim); }
.mp-notice[data-tone="bad"] { border-color: var(--bad); background: rgba(176, 56, 47, 0.06); }
.mp-notice[data-tone="ok"] { border-color: var(--ok); background: rgba(31, 122, 79, 0.06); }
.mp-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 100; background: #16161a; color: #f5f1e8; padding: 0.9rem 1.25rem; font-size: 0.95rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); max-width: min(92vw, 560px); }
.mp-toast { display: flex; align-items: center; gap: .65rem; }
.mp-toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: #5cc18f; }
.mp-toast[data-tone="bad"]::before { background: #e57069; }
.mp-signin { max-width: 640px; }
.mp-signin h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; margin: 0.5rem 0 1rem; }
.mp-fieldset { border: 0; padding: 0; margin: 1.5rem 0 0; }
.mp-fieldset legend { margin-bottom: 0.75rem; }
.mp-evidence { display: grid; gap: 1rem; }
.mp-evidence .mp-critline { font-size: 0.95rem; color: var(--paper); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.mp-searchrow { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-bottom: 1.25rem; }
.mp-searchrow input { height: var(--field-h); padding: 0 0.85rem; font: inherit; border: 1px solid var(--line-strong); border-radius: 0; min-width: min(100%, 320px); }
.mp-earn { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ok); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .mp-rolecard a, .mp-btn, .mp-field input { transition: none; } }

@media (max-width: 900px) {
  .mp-two, .mp-rolebody, .mp-rulegrid { grid-template-columns: 1fr; }
  .mp-grid { grid-template-columns: 1fr; }
  .mp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* On a phone the label sits above its value: side by side, the nowrap label left the value a sliver. */
  .mp-money tr { display: block; padding: 0.85rem 1rem; }
  .mp-money tr + tr { border-top: 1px solid var(--line); }
  .mp-money table th, .mp-money table td { display: block; width: auto; padding: 0; white-space: normal; border-top: 0 !important; border-bottom: 0; }
  .mp-money table th { margin-bottom: 0.3rem; }
  .mp-row { grid-template-columns: 1fr; }
  .mp-strength li { grid-template-columns: 1fr; }
  .mp-strength .mp-ev { grid-column: 1; }
}

/* The app moves focus to each view's heading for screen readers; that heading is no control, so no ring. */
.mp-approot [tabindex="-1"]:focus { outline: none; }
.mp-row .mp-pill { justify-self: start; }
/* Fields stacked straight in a form (sign-in, choose a password) need their own rhythm; in .mp-grid the gap does it. */
.mp-form > .mp-field + .mp-field { margin-top: 1.1rem; }

/* ===== the app, v3: overview, role workspace, postings, activity, standing ===== */
.mp-bar { display: block; height: 4px; background: var(--line); overflow: hidden; }
.mp-bar > span { display: block; height: 100%; background: var(--signal); }
.mp-bar-l { height: 8px; margin: 0.75rem 0 1rem; max-width: 520px; }
.mp-searchrow select { height: var(--field-h); padding: 0 0.75rem; font: inherit; border: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--paper); }
.mp-subtabs { display: flex; gap: 0; margin: 1.5rem 0 1.25rem; border-bottom: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.mp-subtabs a { padding: 0.75rem 1.1rem; color: var(--paper-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mp-subtabs a:hover { color: var(--paper); }
.mp-subtabs a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--signal); }
.mp-calib { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.mp-calib > li { border-top: 1px solid var(--line); padding-top: 1rem; }
.mp-calib-top { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 0 0 0.4rem; }
.mp-calib-top time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-muted); }
.mp-calib-r { margin: 0; color: var(--paper); font-weight: 600; }
.mp-calib-n { margin: 0.25rem 0 0; color: var(--paper-dim); }
.mp-tpl { width: 100%; font: 0.95rem/1.55 var(--font-body); color: var(--paper); background: rgba(245, 241, 232, 0.04); border: 1px solid var(--line-strong); border-radius: 0; padding: 0.8rem 0.9rem; resize: vertical; }
.mp-tpl:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.mp-count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-muted); }
.mp-count[data-over] { color: var(--bad); font-weight: 600; }
.mp-stages { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.mp-stages li { background: var(--ink); border: 1px solid var(--line-strong); padding: 0.9rem 1rem; display: grid; gap: 0.25rem; }
.mp-stage-n { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--paper); }
.mp-stage-l { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-muted); }
.mp-person .mp-list-app { margin-top: 0.75rem; }
.mp-person .mp-btnrow select { height: 2.6rem; padding: 0 0.6rem; font: inherit; font-size: 0.92rem; border: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--paper); max-width: 100%; }
.mp-answers { margin-top: 0.5rem; }
.mp-answers dt { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 600; color: var(--paper-dim); }
.mp-facts2 .is-money dd, .mp-kv .is-money dd { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: -.01em; }
.mp-scorerows { display: grid; gap: 0.6rem; }
.mp-scorerow { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: 0.75rem; align-items: center; font-family: var(--font-body); font-size: 0.95rem; color: var(--paper); text-transform: none; letter-spacing: 0; }
.mp-scorerow select { min-height: 2.5rem; padding: 0 0.6rem; font: inherit; border: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--paper); }
.mp-feed { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-strong); }
.mp-feed li { display: grid; grid-template-columns: 7.5rem 0.6rem minmax(0, 1fr); gap: 0.9rem; align-items: baseline; padding: 0.85rem 1.1rem; background: var(--ink); }
.mp-feed li + li { border-top: 1px solid var(--line); }
.mp-feed li[data-new] { background: rgba(26, 54, 122, 0.06); }
.mp-feed li[data-new] a { font-weight: 600; }
.mp-feed time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-muted); }
.mp-feed a { color: var(--paper); }
.mp-feed a:hover { color: var(--signal); }
.mp-feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-muted); align-self: center; }
.mp-feed-dot[data-tone="ok"] { background: var(--ok); }
.mp-feed-dot[data-tone="bad"] { background: var(--bad); }
.mp-feed-dot[data-tone="active"] { background: var(--signal); }
.mp-feed-dot[data-tone="warn"] { background: var(--warn); }
.mp-tiercard h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.25rem 0 0.5rem; }
.mp-board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 0.75rem; }
.mp-board th { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-muted); font-weight: 500; text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.mp-board td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); color: var(--paper); white-space: nowrap; }
.mp-board tr[data-you] td { background: rgba(26, 54, 122, 0.07); font-weight: 600; }
.mp-you { margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }
@media (max-width: 900px) {
  .mp-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-feed li { grid-template-columns: 0.6rem minmax(0, 1fr); }
  .mp-feed time { grid-column: 2; order: 2; }
  .mp-scorerow { grid-template-columns: 1fr; }
}
/* Print or save as PDF: the brief, without the site around it. */
@media print {
  header.nav, footer, .mp-subtabs, .mp-noprint, .mp-toast, .skip, .mp-notice { display: none !important; }
  body, .sec-light, .mp-card { background: #fff !important; color: #111 !important; }
  .mp-card { border: 1px solid #ccc; break-inside: avoid; }
  a { color: #111; text-decoration: none; }
}
/* A checkbox inside a field (who can be hired): not a tall text input, and a sentence, not a mono label. */
.mp-field .mp-check { font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--paper-dim); font-weight: 400; margin: 0.4rem 0 0; }
.mp-field .mp-check input { min-height: 0; height: 1.15rem; padding: 0; }

/* =====================================================================================================================
   The app: the dossier desk. An ink rail beside a paper desk; roles are brief folders with a manila tab, candidates are
   filed documents, decisions are stamps. Everything here is scoped to the app body, so the public pages stay as they are.
   ===================================================================================================================== */
.mp-appbody {
  --rail: #0b0b0d; --rail-2: #16161a; --rail-fg: #f5f1e8; --rail-dim: #a8a39a; --rail-line: rgba(245, 241, 232, .12);
  --manila: #e8dcbf; --manila-ink: #5b4a23; --sheet: #fcfaf5; --desk: #f3efe4;
  --ok: #1f7a4f; --warn: #8f5c0c; --bad: #b0382f; --sig: #1a367a; --sig-2: #2d4c99;
  background: var(--rail);
}
.mp-appbody ::selection { background: #1a367a; color: #f5f1e8; }
.mp-appbody main { min-height: 100vh; }
.mp-approot > .mp-loading { padding: 3rem max(16px, env(safe-area-inset-left, 0px)); color: var(--rail-dim); }
.mp-appbody :focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }
.mp-rail :focus-visible, .mp-mbar :focus-visible, .mp-bnav :focus-visible, .mp-decide :focus-visible { outline-color: var(--rail-fg); }
.mp-appbody input, .mp-appbody textarea { caret-color: var(--sig); }

/* ── icons and keys ── */
.mp-ic { width: 18px; height: 18px; max-width: none; flex: none; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mp-btn .mp-ic { width: 16px; height: 16px; }
.mp-btn kbd, .mp-keys kbd { font-family: var(--font-mono); font-size: .6rem; letter-spacing: 0; line-height: 1; padding: .2rem .32rem; border: 1px solid currentColor; border-radius: 4px; opacity: .7; margin-left: .15rem; text-transform: none; }
.mp-btn.is-icon, .mp-folder-act .mp-btn.is-icon, .mp-strip .mp-btn.is-icon { width: 2.6rem; height: 2.6rem; padding: 0; justify-content: center; }
.mp-btn.is-on { color: var(--sig); border-color: var(--sig); background: rgba(26, 54, 122, .07); }
.mp-btn.is-on .mp-ic { fill: currentColor; }
.mp-btn.is-primary .mp-ic { stroke: currentColor; }
a.mp-btn { text-decoration: none; }
.mp-btn.is-bad:hover { color: #fff; background: var(--bad); border-color: var(--bad); }
.mp-main .mp-btn { color: var(--sig); border-color: rgba(26, 54, 122, .42); background: transparent; }
.mp-main .mp-btn:hover { color: #fff; background: var(--sig); border-color: var(--sig); }
.mp-main .mp-btn.is-primary { color: #fff; background: var(--sig); border-color: var(--sig); }
.mp-main .mp-btn.is-primary:hover { background: var(--sig-2); border-color: var(--sig-2); }
.mp-main .mp-btn.is-bad { color: var(--bad); border-color: rgba(176, 56, 47, .45); }
.mp-main .mp-btn.is-bad:hover { color: #fff; background: var(--bad); border-color: var(--bad); }
.mp-main .mp-btn.is-on { color: #fff; background: var(--sig); border-color: var(--sig); }
.mp-main .mp-btn[disabled] { opacity: .5; }

/* ── the stamp ── */
.mp-stamp { display: inline-block; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
  padding: .32rem .62rem .28rem; border: 1.5px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px; border-radius: 3px;
  transform: rotate(-2.5deg); color: var(--paper-dim); background: color-mix(in srgb, currentColor 6%, transparent); white-space: nowrap; }
.mp-stamp.is-small { font-size: .58rem; padding: .22rem .45rem .18rem; outline-offset: 1.5px; transform: rotate(-1.5deg); }
.mp-stamp[data-tone="ok"] { color: var(--ok); }
.mp-stamp[data-tone="warn"] { color: var(--warn); }
.mp-stamp[data-tone="bad"] { color: var(--bad); }
.mp-stamp[data-tone="signal"] { color: var(--sig); }
.mp-stamps { display: flex; flex-wrap: wrap; gap: .55rem .7rem; min-height: 1.4rem; align-items: center; }
.mp-h3stamp { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.mp-strength .mp-stamp { justify-self: start; align-self: start; margin-top: .1rem; }
.mp-strength.is-index li { grid-template-columns: 2rem minmax(0, 1fr); }
.mp-strength.is-index .mp-ev { grid-column: 2; }
.mp-num { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 4px; background: var(--paper); color: var(--sheet); font-family: var(--font-mono); font-size: .66rem; font-weight: 600; }
@keyframes mp-stamp-land { 0% { opacity: 0; transform: rotate(-14deg) scale(2.1); } 55% { opacity: 1; transform: rotate(-1deg) scale(.92); } 78% { transform: rotate(-3deg) scale(1.04); } 100% { transform: rotate(-2.5deg) scale(1); } }
.mp-stamp.is-landing { animation: mp-stamp-land .55s cubic-bezier(.2, .8, .2, 1) both; }

/* ── the desk shell ── */
.mp-desk { display: grid; grid-template-columns: 17rem minmax(0, 1fr); min-height: 100vh; }
.mp-desk.is-solo { grid-template-columns: minmax(0, 1fr); }
.mp-rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--rail); color: var(--rail-fg); display: flex; flex-direction: column; gap: 1.4rem;
  padding: 1.6rem 1rem 1.25rem max(1rem, env(safe-area-inset-left, 0px)); scrollbar-width: thin; scrollbar-color: rgba(245, 241, 232, .2) transparent; }
.mp-lockup { display: inline-flex; align-items: center; gap: .65rem; color: var(--paper); text-decoration: none; padding: 0 .4rem; }
.mp-lockup.is-dark { color: var(--rail-fg); }
.mp-rail .mp-lockup { flex-wrap: wrap; row-gap: .2rem; }
.mp-rail .mp-lockup-s { flex-basis: 100%; padding-left: calc(38px + .65rem); border-left: 0; }
.mp-mark { width: 38px; height: 20px; display: inline-flex; flex: none; }
.mp-mark svg { width: 100%; height: 100%; }
.mp-lockup-n { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.mp-lockup-s { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; opacity: .65; padding-left: .65rem; border-left: 1px solid currentColor; }
.mp-who2 { display: grid; gap: .15rem; padding: 0 .4rem; }
.mp-who2-org { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; }
.mp-who2-p { font-size: .82rem; color: var(--rail-dim); }
.mp-tier { display: grid; grid-template-columns: 1fr auto; gap: .35rem .75rem; align-items: baseline; padding: .9rem 1rem; border-radius: 12px; background: var(--rail-2); color: var(--rail-fg); text-decoration: none; transition: background .2s var(--ease); }
.mp-tier:hover { background: #1d1d22; }
.mp-tier-n { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.01em; }
.mp-tier-p { font-family: var(--font-mono); font-size: .72rem; color: var(--rail-dim); font-variant-numeric: tabular-nums; }
.mp-tier-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(245, 241, 232, .12); overflow: hidden; }
.mp-tier-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--rail-fg); }
.mp-tier-t { grid-column: 1 / -1; font-size: .78rem; color: var(--rail-dim); }
.mp-nav { display: grid; gap: .2rem; }
.mp-nav-i { display: flex; align-items: center; gap: .8rem; padding: .66rem .8rem; border-radius: 10px; color: var(--rail-fg); text-decoration: none; font-size: .95rem; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; width: 100%; transition: background .18s var(--ease), color .18s var(--ease); }
.mp-nav-i .mp-ic { color: var(--rail-dim); transition: color .18s var(--ease); }
.mp-nav-i:hover { background: rgba(245, 241, 232, .07); }
.mp-nav-i:hover .mp-ic { color: var(--rail-fg); }
.mp-nav-i[aria-current="page"] { background: var(--sig); color: #fff; }
.mp-nav-i[aria-current="page"] .mp-ic { color: #fff; }
.mp-nav-l { flex: 1; min-width: 0; }
.mp-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--rail-fg); color: var(--rail); font-family: var(--font-mono); font-size: .64rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-rail-foot { margin-top: auto; display: grid; gap: .2rem; padding-top: 1rem; border-top: 1px solid var(--rail-line); }
.mp-rail-legal { margin: .6rem .8rem 0; font-size: .74rem; color: var(--rail-dim); }
.mp-rail-legal a { color: var(--rail-dim); text-decoration: underline; text-underline-offset: 3px; }
.mp-main { background: var(--desk); min-width: 0; padding: 2rem clamp(1.25rem, 3.2vw, 3.25rem) 5rem; }
.mp-main > * { max-width: 1180px; }
.mp-mbar, .mp-bnav, .mp-scrim { display: none; }
.mp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin: 0 0 1.6rem; }
.mp-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -.03em; line-height: 1.05; margin: 0; color: var(--paper); text-wrap: balance; }
.mp-head-c { margin: .45rem 0 0; color: var(--paper-muted); font-size: .98rem; }
.mp-head-a { display: flex; gap: .5rem; }
.mp-banner { display: flex; align-items: flex-start; gap: .75rem; margin: 0 0 1.25rem; padding: .85rem 1.1rem; border-radius: 12px; background: rgba(26, 54, 122, .07); color: var(--paper-dim); font-size: .95rem; }
.mp-banner > .mp-ic { color: var(--sig); margin-top: .15rem; }
.mp-banner a { color: var(--sig); font-weight: 600; text-underline-offset: 3px; margin-left: auto; white-space: nowrap; }
.mp-banner.is-ok { background: rgba(31, 122, 79, .08); } .mp-banner.is-ok > .mp-ic { color: var(--ok); }
.mp-banner.is-bad { background: rgba(176, 56, 47, .07); } .mp-banner.is-bad > .mp-ic { color: var(--bad); }
.mp-banner .mp-strength { margin-top: .5rem; }
.mp-appbody .mp-card { background: var(--sheet); border: 0; border-radius: 14px; box-shadow: 0 1px 2px rgba(22, 22, 26, .05), 0 6px 18px rgba(22, 22, 26, .05); }
.mp-appbody .mp-notice { border-left: 0; border-radius: 12px; background: rgba(26, 54, 122, .07); }
.mp-appbody .mp-notice[data-tone="ok"] { background: rgba(31, 122, 79, .08); }
.mp-appbody .mp-notice[data-tone="bad"] { background: rgba(176, 56, 47, .07); }

/* ── the desk: what to do next, the month in one line ── */
.mp-deskgrid { display: grid; gap: 2.25rem; }
.mp-deskgrid > *, .mp-dossier > *, .mp-filewrap > *, .mp-brief > *, .mp-review > *, .mp-dossier-head > * { min-width: 0; }
.mp-sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 .9rem; }
.mp-sechead h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: -.02em; margin: 0; color: var(--paper); }
.mp-sechead-n { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-muted); }
.mp-more { display: inline-flex; align-items: center; gap: .4rem; color: var(--sig); font-weight: 600; text-decoration: none; }
.mp-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.mp-todo { list-style: none; margin: 0; padding: 0; background: var(--sheet); border-radius: 14px; box-shadow: 0 1px 2px rgba(22, 22, 26, .06), 0 10px 28px rgba(22, 22, 26, .06); }
.mp-todo-i { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: .35rem 1rem; align-items: center; padding: 1rem 1.25rem; }
.mp-todo-i + .mp-todo-i { border-top: 1px solid var(--line); }
.mp-todo-st { justify-self: start; }
.mp-todo-i.is-top { background: var(--rail); border-radius: 14px 14px 0 0; }
.mp-todo-i.is-top:only-child { border-radius: 14px; }
.mp-todo-i.is-top .mp-todo-h { color: var(--rail-fg); }
.mp-todo-i.is-top .mp-todo-s { color: var(--rail-dim); }
.mp-todo-i.is-top .mp-stamp { color: #e8e3d6; }
.mp-todo-i.is-top .mp-stamp[data-tone="ok"] { color: #7fd4a8; }
.mp-todo-i.is-top .mp-stamp[data-tone="bad"] { color: #ff9b93; }
.mp-todo-i.is-top .mp-stamp[data-tone="warn"] { color: #f0c06a; }
.mp-todo-i.is-top .mp-stamp[data-tone="signal"] { color: #9cb8f5; }
.mp-main .mp-todo-i.is-top .mp-btn.is-primary { background: #3b63c4; border-color: #3b63c4; }
.mp-main .mp-todo-i.is-top .mp-btn.is-primary:hover { background: #4b74d6; border-color: #4b74d6; }
.mp-todo-more { margin: .6rem 0 0; padding: .3rem 0; background: none; border: 0; font: inherit; font-size: .9rem; font-weight: 600; color: var(--sig); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mp-todo-h { margin: 0; font-weight: 600; color: var(--paper); line-height: 1.35; }
.mp-todo-s { margin: .15rem 0 0; color: var(--paper-muted); font-size: .9rem; line-height: 1.45; }
.mp-ledgerwrap { display: grid; gap: .6rem; }
.mp-ledger-h { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-muted); margin: 0; }
.mp-ledger { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--paper); border-bottom: 1px solid var(--line-strong); }
.mp-ledger div { padding: .8rem 1rem .9rem 0; display: grid; gap: .2rem; }
.mp-ledger div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.mp-ledger dt { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); }
.mp-ledger dd { margin: 0; font-family: var(--font-mono); font-size: 1.1rem; letter-spacing: 0; color: var(--paper); font-variant-numeric: tabular-nums; }
.mp-ledger .is-money dd { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.02em; }
.mp-empty2 { display: grid; gap: .8rem; justify-items: start; padding: 1.5rem 1.4rem; border-radius: 14px; border: 1.5px dashed var(--line-strong); color: var(--paper-muted); }
.mp-empty2 p { margin: 0; max-width: 60ch; }

/* ── the brief wall ── */
.mp-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 0 0 1rem; }
.mp-search { display: flex; align-items: center; gap: .5rem; flex: 1 1 18rem; max-width: 34rem; padding: 0 .9rem; height: var(--field-h); border: 1px solid var(--line-strong); border-radius: 10px; background: var(--sheet); color: var(--paper-muted); }
.mp-search input { border: 0; background: none; flex: 1; min-width: 0; height: 100%; font: inherit; color: var(--paper); outline: none; }
.mp-search:focus-within { border-color: var(--sig); box-shadow: 0 0 0 1px var(--sig); }
.mp-toolbar select { height: var(--field-h); padding: 0 .9rem; font: inherit; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--sheet); color: var(--paper); }
.mp-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .9rem; }
.mp-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--sheet); color: var(--paper-dim); font: inherit; font-size: .88rem; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.mp-chip:hover { border-color: var(--paper); color: var(--paper); }
.mp-chip[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--desk); }
.mp-chip-n { font-family: var(--font-mono); font-size: .68rem; opacity: .7; font-variant-numeric: tabular-nums; }
.mp-found { margin: 0 0 1rem; font-size: .88rem; color: var(--paper-muted); }
.mp-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.6rem 1.25rem; align-items: stretch; }
.mp-folder { display: flex; flex-direction: column; min-width: 0; filter: drop-shadow(0 1px 1px rgba(22, 22, 26, .07)) drop-shadow(0 10px 22px rgba(22, 22, 26, .07)); transition: transform .22s var(--ease), filter .22s var(--ease); }
.mp-folder:hover { transform: translateY(-2px); filter: drop-shadow(0 1px 1px rgba(22, 22, 26, .08)) drop-shadow(0 16px 30px rgba(22, 22, 26, .1)); }
.mp-folder-tab { align-self: flex-start; display: flex; gap: 1rem; max-width: 88%; background: var(--manila); color: var(--manila-ink); border-radius: 10px 10px 0 0; padding: .5rem .95rem .35rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-folder-tab.is-big { font-size: .68rem; padding: .6rem 1.1rem .45rem; max-width: 100%; }
.mp-folder-fee { opacity: .75; }
.mp-folder-body { flex: 1; display: flex; flex-direction: column; gap: .6rem; background: var(--sheet); box-shadow: inset 0 7px 0 var(--manila); border-radius: 0 14px 0 0; padding: calc(1.1rem + 7px) 1.3rem 1rem; }
.mp-folder-t { margin: .2rem 0 0; font-family: var(--font-display); font-weight: 400; font-size: 1.42rem; letter-spacing: -.02em; line-height: 1.15; }
.mp-folder-t a { color: var(--paper); text-decoration: none; }
.mp-folder-t a:hover { color: var(--sig); }
.mp-folder-who { margin: 0; color: var(--paper-muted); font-size: .92rem; }
.mp-folder-earn { margin: .1rem 0; display: grid; gap: .1rem; }
.mp-folder-earn-l { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ok); }
.mp-folder-earn-n { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.02em; color: var(--paper); font-variant-numeric: tabular-nums; }
.mp-index { list-style: none; counter-reset: idx; margin: .2rem 0 0; padding: 0; display: grid; gap: .45rem; }
.mp-index li { counter-increment: idx; display: grid; grid-template-columns: 1.45rem minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .9rem; line-height: 1.4; color: var(--paper-dim); }
.mp-index li::before { content: counter(idx); display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 4px; background: var(--paper); color: var(--sheet); font-family: var(--font-mono); font-size: .66rem; font-weight: 600; }
.mp-index.is-big li { font-size: 1.02rem; color: var(--paper); gap: .85rem; grid-template-columns: 1.75rem minmax(0, 1fr); }
.mp-index.is-big li::before { width: 1.75rem; height: 1.75rem; background: var(--paper); font-size: .74rem; }
.mp-folder-meta { margin: auto 0 0; padding-top: .55rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; color: var(--paper-muted); font-variant-numeric: tabular-nums; }
.mp-folder-body:last-child { border-radius: 0 14px 14px 14px; }
.mp-folder-act { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: var(--sheet); border-top: 1px dashed var(--line-strong); border-radius: 0 0 14px 14px; padding: .8rem 1.1rem .9rem 1.3rem; }
.mp-folder-act .mp-btn { padding: .6rem .85rem; }
.mp-folder-act-r { margin-left: auto; display: flex; gap: .4rem; }
.mp-folder-act .mp-btn.is-icon { width: 2.4rem; height: 2.4rem; }

/* ── the dossier ── */
.mp-dossier { display: grid; gap: 1.1rem; }
.mp-dossier-head { display: flex; flex-direction: column; filter: drop-shadow(0 1px 1px rgba(22, 22, 26, .07)) drop-shadow(0 12px 26px rgba(22, 22, 26, .07)); }
.mp-dossier-sheet { background: var(--sheet); box-shadow: inset 0 8px 0 var(--manila); border-radius: 0 16px 16px 16px; padding: calc(1.3rem + 8px) 1.5rem 1.4rem; display: grid; gap: 1.1rem; }
.mp-facts2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1rem 1.5rem; margin: 0; }
.mp-facts2 div { display: grid; gap: .2rem; align-content: start; }
.mp-facts2 dt { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-muted); }
.mp-facts2 dd { margin: 0; color: var(--paper); font-variant-numeric: tabular-nums; }
.mp-facts2 .is-big dt { color: var(--ok); }
.mp-facts2 .is-big dd { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.1; }
.mp-facts2 .is-big, .mp-facts2 .is-wide { grid-column: span 2; }
.mp-dossier-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; }
.mp-dossier-date { margin: 0; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); }
.mp-dossier .mp-subtabs { gap: .35rem; border-bottom: 2px solid var(--manila); }
.mp-dossier .mp-subtabs a { border: 0; margin: 0; border-radius: 10px 10px 0 0; background: rgba(232, 220, 191, .45); color: var(--manila-ink); padding: .62rem 1rem .5rem; }
.mp-dossier .mp-subtabs a:hover { background: rgba(232, 220, 191, .8); color: var(--paper); }
.mp-dossier .mp-subtabs a[aria-current="page"] { background: var(--manila); color: var(--paper); }
.mp-dossier .mp-subtabs .mp-count { background: rgba(91, 74, 35, .14); color: var(--manila-ink); }
.mp-brief.mp-sheet { display: block; }
.mp-brief-s + .mp-brief-s { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.4rem; }
.mp-brief .mp-cols3 > div + div { border-left: 1px solid var(--line); padding-left: 1.1rem; }
.mp-strip { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .7rem 0; background: var(--desk); }
.mp-strip.is-inline { position: static; padding: 0; background: none; }
.mp-subtabs { display: flex; gap: .25rem; margin: 0; border-bottom: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; overflow-x: auto; scrollbar-width: none; }
.mp-subtabs a { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1rem; color: var(--paper-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.mp-subtabs a:hover { color: var(--paper); }
.mp-subtabs a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--sig); }
.mp-subtabs .mp-count { background: rgba(22, 22, 26, .08); color: var(--paper-dim); }
.mp-brief { display: grid; gap: 1rem; }
.mp-sheet { background: var(--sheet); border-radius: 14px; padding: 1.3rem 1.5rem; box-shadow: 0 1px 2px rgba(22, 22, 26, .05), 0 6px 18px rgba(22, 22, 26, .05); }
.mp-sheet h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: -.02em; margin: 0 0 .5rem; color: var(--paper); }
.mp-sheet h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; margin: 0 0 .5rem; color: var(--paper); }
.mp-sheet p { color: var(--paper-dim); max-width: 70ch; }
.mp-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mp-list.is-num { list-style: decimal; }
.mp-rounds { list-style: none; counter-reset: rnd; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.mp-rounds li { counter-increment: rnd; display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .85rem .5rem .55rem; border-radius: 999px; background: rgba(22, 22, 26, .06); color: var(--paper); font-size: .9rem; }
.mp-rounds li::before { content: counter(rnd); display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--paper); color: var(--sheet); font-family: var(--font-mono); font-size: .64rem; }
.mp-briefdetails { margin-top: 2rem; }
.mp-briefdetails > summary { cursor: pointer; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); padding: .6rem 0; }
.mp-briefdetails[open] > summary { margin-bottom: 1rem; }

/* ── a candidate's progress ── */
.mp-filewrap { display: grid; gap: 1.1rem; }
.mp-file-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.mp-file-top > .mp-stamp { font-size: .82rem; padding: .45rem .85rem .4rem; }
.mp-fileacts { display: grid; gap: .5rem; justify-items: end; }
.mp-fileacts-r { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; align-items: center; }
.mp-fileacts-r.is-other select { height: 2.6rem; padding: 0 2.2rem 0 .7rem; font: inherit; font-size: .9rem; border: 1px solid var(--line-strong); border-radius: 8px; background-color: var(--sheet); color: var(--paper); max-width: 18rem; }
.mp-steps2 { list-style: none; margin: 0; padding: 1rem 1.2rem; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; background: var(--sheet); border-radius: 14px; box-shadow: 0 1px 2px rgba(22, 22, 26, .05); }
.mp-steps2 li { display: grid; justify-items: center; gap: .45rem; text-align: center; position: relative; font-size: .8rem; color: var(--paper-muted); }
.mp-steps2 li + li::before { content: ""; position: absolute; top: .78rem; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.mp-steps2 li[data-step="done"] + li::before, .mp-steps2 li[data-step="done"] + li[data-step="now"]::before { background: var(--sig); }
.mp-step-dot { position: relative; z-index: 1; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--sheet); border: 2px solid var(--line-strong); color: #fff; }
.mp-step-dot .mp-ic { width: 13px; height: 13px; stroke-width: 2.4; }
.mp-steps2 li[data-step="done"] .mp-step-dot { background: var(--sig); border-color: var(--sig); }
.mp-steps2 li[data-step="now"] .mp-step-dot { border-color: var(--sig); box-shadow: 0 0 0 4px rgba(26, 54, 122, .15); }
.mp-steps2 li[data-step="now"] { color: var(--paper); font-weight: 600; }
.mp-steps2 li[data-step="stopped"] .mp-step-dot { background: var(--bad); border-color: var(--bad); }
.mp-steps2 li[data-step="stopped"] { color: var(--bad); font-weight: 600; }
.mp-next { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .7rem 1rem; border-radius: 10px; background: rgba(22, 22, 26, .05); color: var(--paper-dim); font-size: .93rem; }
.mp-next[data-tone="warn"] { background: rgba(143, 92, 12, .1); color: var(--warn); }
.mp-next[data-tone="bad"] { background: rgba(176, 56, 47, .09); color: var(--bad); }
.mp-next[data-tone="ok"] { background: rgba(31, 122, 79, .09); color: var(--ok); }

/* ── the company's review desk ── */
.mp-review { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.mp-files { position: sticky; top: 1rem; display: grid; gap: .4rem; }
.mp-file-i { display: grid; gap: .35rem; justify-items: start; padding: .8rem .95rem; border-radius: 12px; color: var(--paper); text-decoration: none; transition: background .18s var(--ease); }
.mp-file-i:hover { background: rgba(22, 22, 26, .05); }
.mp-file-i[aria-current="true"] { background: var(--sheet); box-shadow: 0 1px 2px rgba(22, 22, 26, .07), 0 8px 20px rgba(22, 22, 26, .07); }
.mp-file-n { font-weight: 600; }
.mp-file-m { font-size: .8rem; color: var(--paper-muted); }
.mp-file-m[data-tone="warn"] { color: var(--warn); font-weight: 600; } .mp-file-m[data-tone="bad"] { color: var(--bad); font-weight: 600; }
.mp-file { background: var(--sheet); border-radius: 16px; padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: 1rem; box-shadow: 0 1px 2px rgba(22, 22, 26, .06), 0 14px 34px rgba(22, 22, 26, .08); }
.mp-file-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1rem; }
.mp-file-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; letter-spacing: -.025em; margin: 0; color: var(--paper); }
.mp-file-sub { margin: .3rem 0 0; color: var(--paper-muted); font-size: .88rem; }
.mp-file-head > .mp-stamp { font-size: .82rem; padding: .45rem .85rem .4rem; margin-top: .3rem; }
.mp-appbody .mp-file .mp-card { background: transparent; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 1rem 0 0; margin: 0; }
.mp-file-head > .mp-stamp { justify-self: end; }
.mp-decide { position: sticky; top: .75rem; z-index: 4; display: flex; flex-wrap: wrap; gap: .5rem; padding: .7rem; border-radius: 12px; background: var(--rail); box-shadow: 0 10px 24px rgba(11, 11, 13, .22); }
.mp-main .mp-decide .mp-btn { border-color: rgba(245, 241, 232, .28); color: var(--rail-fg); background: transparent; }
.mp-main .mp-decide .mp-btn:hover { border-color: var(--rail-fg); background: rgba(245, 241, 232, .08); color: #fff; }
.mp-main .mp-decide .mp-btn.is-primary { background: #3b63c4; border-color: #3b63c4; color: #fff; }
.mp-main .mp-decide .mp-btn.is-primary:hover { background: #4b74d6; border-color: #4b74d6; }
.mp-main .mp-decide .mp-btn.is-bad { color: #ff9b93; border-color: rgba(255, 155, 147, .45); margin-left: auto; }
.mp-main .mp-decide .mp-btn.is-bad:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.mp-main .mp-mbar .mp-btn { color: var(--rail-fg); border-color: rgba(245, 241, 232, .25); }
.mp-decide-panel { padding: 1.1rem 1.2rem; border-radius: 12px; background: rgba(22, 22, 26, .04); }
.mp-keys { margin: 0; font-size: .8rem; color: var(--paper-muted); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.mp-keys kbd { margin: 0 .1rem 0 .5rem; }
.mp-cmp table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; background: var(--sheet); border-radius: 14px; overflow: hidden; }
.mp-cmp th, .mp-cmp td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; min-width: 13rem; }
.mp-cmp thead th { position: sticky; top: 0; background: var(--sheet); font-weight: 600; display: table-cell; }
.mp-cmp thead th a { color: var(--paper); font-weight: 600; margin-right: .5rem; }
.mp-cmp th { font-family: var(--font-body); text-transform: none; letter-spacing: 0; white-space: normal; font-size: .9rem; }
.mp-cmp tbody th { font-weight: 600; color: var(--paper); min-width: 12rem; max-width: 18rem; }
.mp-cmp th:first-child { position: sticky; left: 0; background: var(--sheet); z-index: 1; }
.mp-cmp-ev { display: block; margin-top: .35rem; color: var(--paper-dim); line-height: 1.45; }
.mp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── the gate: signing in ── */
.mp-gate { min-height: 100vh; display: grid; place-items: center; padding: 2rem max(16px, env(safe-area-inset-left, 0px)); background: var(--rail); }
.mp-gate-folder { width: min(100%, 30rem); display: flex; flex-direction: column; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
.mp-gate .mp-signin { width: auto; max-width: none; padding: calc(2.2rem + 8px) 2.2rem 1.6rem; border-radius: 0 18px 18px 18px; box-shadow: inset 0 8px 0 var(--manila); }
.mp-gate .mp-signin h1 { margin-top: 1.6rem; }

/* ── the phone: a top bar, a drawer for the rail, tabs at the bottom ── */
@media (max-width: 900px) {
  .mp-desk { display: block; }
  .mp-rail { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(84vw, 19rem); height: auto; transform: translateX(-105%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 60px rgba(0, 0, 0, .4); padding-top: max(1.6rem, env(safe-area-inset-top, 0px)); }
  body.mp-drawer-open .mp-rail { transform: none; }
  .mp-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(11, 11, 13, .45); opacity: 0; pointer-events: none; transition: opacity .24s; }
  body.mp-drawer-open .mp-scrim { opacity: 1; pointer-events: auto; }
  .mp-mbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; margin: -2rem calc(-1 * clamp(1.25rem, 3.2vw, 3.25rem)) 1.25rem; padding: max(.65rem, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) .65rem max(16px, env(safe-area-inset-left, 0px)); background: var(--rail); color: var(--rail-fg); }
  .mp-btn.is-ghostdark { color: var(--rail-fg); border-color: rgba(245, 241, 232, .25); }
  .mp-bnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: var(--rail); padding: .35rem max(8px, env(safe-area-inset-right, 0px)) max(.35rem, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); box-shadow: 0 -8px 24px rgba(0, 0, 0, .2); }
  .mp-bnav .mp-nav-i { flex-direction: column; gap: .2rem; padding: .45rem .2rem; font-size: .66rem; letter-spacing: .02em; text-align: center; justify-content: center; position: relative; border-radius: 10px; }
  .mp-bnav .mp-nav-l { flex: none; }
  .mp-bnav .mp-count { position: absolute; top: .1rem; left: calc(50% + .35rem); min-width: 1.1rem; height: 1.1rem; font-size: .56rem; }
  .mp-main { padding: 2rem max(16px, env(safe-area-inset-right, 0px)) 6.5rem max(16px, env(safe-area-inset-left, 0px)); }
  .mp-mbar { margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); }
  .mp-head h1 { font-size: 2rem; }
  .mp-ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mp-ledger div:nth-child(4) { padding-left: 0; border-left: 0; }
  .mp-ledger div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .mp-todo-i { padding: .9rem 1rem; }
  .mp-todo-i > .mp-btn { justify-self: start; }
  .mp-cols3 { grid-template-columns: 1fr; }
  .mp-strip:not(.is-inline) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding: .6rem max(16px, env(safe-area-inset-right, 0px)); top: 3.6rem; }
  .mp-strip:not(.is-inline) .mp-btn { white-space: nowrap; flex: none; }
  .mp-file-top { align-items: flex-start; }
  .mp-file-head { grid-template-columns: 1fr; }
  .mp-steps2 { grid-template-columns: 1fr; gap: .1rem; padding: .8rem 1rem; }
  .mp-steps2 li { grid-template-columns: 1.6rem 1fr; justify-items: start; align-items: center; text-align: left; gap: .75rem; padding: .3rem 0; }
  .mp-steps2 li + li::before { display: none; }
  .mp-review { grid-template-columns: 1fr; }
  .mp-files { position: static; display: flex; overflow-x: auto; gap: .5rem; scrollbar-width: none; margin: 0 calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding: 0 max(16px, env(safe-area-inset-right, 0px)) .25rem; }
  .mp-file-i { flex: none; min-width: 13rem; background: rgba(22, 22, 26, .04); }
  .mp-file { padding: 1.1rem 1.1rem 1.25rem; }
  .mp-decide { top: 3.75rem; }
  .mp-dossier-sheet { padding: calc(1.1rem + 8px) 1.1rem 1.2rem; }
  .mp-folder-body { padding: calc(1rem + 7px) 1.05rem .9rem; }
  .mp-folder-act { padding: .75rem .9rem .85rem 1.05rem; }
  .mp-gate .mp-signin { padding: calc(1.6rem + 8px) 1.25rem 1.2rem; }
  .mp-fileacts { width: 100%; justify-items: stretch; }
  .mp-fileacts-r { justify-content: flex-start; }
  .mp-fileacts-r.is-other { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .mp-fileacts-r.is-other select { max-width: none; width: 100%; }
  .mp-file-head > .mp-stamp { justify-self: start; }
  .mp-todo-i { grid-template-columns: minmax(0, 1fr); }
  .mp-todo-i > .mp-btn { grid-column: 1; }
  .mp-brief .mp-cols3 > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mp-stamp.is-landing { animation: none; }
  .mp-folder, .mp-rail, .mp-scrim, .mp-nav-i, .mp-chip { transition: none; }
  .mp-folder:hover { transform: none; }
}
@media print {
  .mp-rail, .mp-mbar, .mp-bnav, .mp-scrim, .mp-strip, .mp-subtabs, .mp-banner { display: none !important; }
  .mp-desk { display: block; }
  .mp-main { padding: 0; background: #fff; }
}
.mp-appbody select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233b3a36' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 11px 8px; padding-right: 2.3rem; }
.mp-briefdetails > summary { list-style: none; display: inline-flex; align-items: center; gap: .6rem; }
.mp-briefdetails > summary::-webkit-details-marker { display: none; }
.mp-briefdetails > summary::before { content: ""; width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); }
.mp-briefdetails[open] > summary::before { transform: rotate(45deg); }
html:has(body.mp-appbody) { scrollbar-color: rgba(22, 22, 26, .32) var(--desk, #f3efe4); }
@media (hover: none), (pointer: coarse) { .mp-btn kbd, .mp-keys { display: none; } }
