.mv-page {
  color: var(--ink, #172923);
  --mv-border: var(--line, #dce4de);
  --mv-muted: var(--muted, #5e7067);
  --mv-green: var(--green, #165944);
  min-width: 0;
}
.mv-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:26px; flex-wrap:wrap; }
.mv-heading h1, .mv-join h1 { margin:0; font-size:clamp(29px,3.1vw,42px); line-height:1.15; letter-spacing:-.055em; font-weight:650; }
.mv-heading p, .mv-join > p { margin:8px 0 0; color:var(--mv-muted); font-size:15px; line-height:1.55; }
.mv-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.mv-page .btn, .mv-form .btn, .mv-success .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.mv-page .btn:disabled { opacity:.49; cursor:not-allowed; }
.mv-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:24px; }
.mv-stats.four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.mv-metric { min-width:0; border:1px solid var(--mv-border); border-radius:16px; padding:21px 22px; background:var(--surface,#fff); display:flex; flex-direction:column; justify-content:center; gap:7px; }
.mv-metric > span,.mv-metric > small { color:var(--mv-muted); font-size:14px; line-height:1.4; }
.mv-metric > small { font-size:12px; }
.mv-metric > strong { font-size:clamp(23px,2.4vw,34px); font-weight:640; line-height:1.15; letter-spacing:-.055em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.mv-metric em { font-size:.52em; font-style:normal; letter-spacing:0; color:var(--mv-muted); font-weight:500; }
.mv-metric-feature { background:#e5f0df; border-color:#d3e4ce; color:#1c4c36; }
.mv-metric-feature > span { color:#365b44; }
.mv-panel { min-width:0; padding:0!important; overflow:hidden; }
.mv-section-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:22px 24px; flex-wrap:wrap; }
.mv-section-head h2 { margin:0; font-size:19px; font-weight:650; line-height:1.35; letter-spacing:-.035em; }
.mv-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:0 24px 18px; }
.mv-search, .mv-select select { min-height:40px; border:1px solid var(--mv-border); border-radius:9px; background:var(--surface,#fff); }
.mv-search { display:flex; align-items:center; gap:8px; padding:0 12px; color:var(--mv-muted); flex:0 1 290px; }
.mv-search:focus-within { outline:2px solid var(--mv-green); outline-offset:2px; }
.mv-search input { min-width:0; width:100%; background:transparent; font:inherit; font-size:14px; color:var(--ink); border:0; padding:9px 0; outline:none; }
.mv-select select { appearance:none; cursor:pointer; color:var(--ink); font:inherit; font-size:14px; padding:8px 34px 8px 12px; }
.mv-select { position:relative; display:inline-flex; }
.mv-select::after { position:absolute; content:""; right:13px; top:calc(50% - 4px); width:6px; height:6px; border:solid var(--mv-muted); border-width:0 1.5px 1.5px 0; transform:rotate(45deg); pointer-events:none; }
.mv-tabs { display:inline-flex; gap:3px; padding:4px; border-radius:10px; background:#f1f5ef; }
.mv-tabs button { border:0; background:transparent; color:#627065; cursor:pointer; padding:7px 11px; border-radius:7px; font:inherit; font-size:14px; font-weight:550; }
.mv-tabs button.selected { color:var(--mv-green); background:#fff; box-shadow:0 1px 3px #24362a18; }
.mv-tabs button:hover { color:var(--mv-green); }
.mv-table-wrap { width:100%; overflow-x:auto; }
.mv-table { width:100%; border-collapse:collapse; white-space:nowrap; text-align:left; font-size:14px; }
.mv-table th { padding:11px 14px; font-weight:550; background:#f5f7f3; color:var(--mv-muted); font-size:12px; border-block:1px solid var(--mv-border); }
.mv-table td { padding:14px; border-bottom:1px solid var(--mv-border); vertical-align:middle; }
.mv-table tbody tr:last-child td { border-bottom:0; }
.mv-table th:first-child, .mv-table td:first-child { padding-left:24px; }
.mv-table th:last-child, .mv-table td:last-child { padding-right:24px; }
.mv-table strong { font-weight:600; }
.mv-result-count { font-size:12px; color:var(--mv-muted); padding:12px 24px; border-top:1px solid var(--mv-border); }
.mv-person, .mv-cell-link { text-align:left; font:inherit; background:transparent; border:0; color:inherit; cursor:pointer; padding:0; }
.mv-person, .mv-tree-name { display:inline-flex; align-items:center; gap:12px; }
.mv-person strong, .mv-cell-link strong, .mv-two strong { display:block; font-size:14px; font-weight:600; }
.mv-person small, .mv-cell-link small, .mv-tree-name small, .mv-tree-root small, .mv-two small { display:block; font-size:12px; color:var(--mv-muted); margin-top:3px; font-weight:400; }
.mv-person:hover strong,.mv-cell-link:hover strong { color:var(--mv-green); text-decoration:underline; text-underline-offset:3px; }
.mv-avatar { display:inline-flex; align-items:center; justify-content:center; height:37px; width:37px; flex:0 0 37px; border-radius:50%; font-size:12px; font-weight:650; background:#e5ece3; color:#3c6248; }
.mv-avatar.amber { color:#75572d; background:#f4ebd5; }
.mv-avatar.blue { color:#3d6572; background:#dfeff3; }
.mv-avatar.clay { color:#824f40; background:#f4e2d9; }
.mv-avatar.lilac { color:#705872; background:#eee5ed; }
.mv-badge { display:inline-flex; width:fit-content; align-items:center; border-radius:999px; background:#f0f2ee; color:#606860; padding:4px 9px; line-height:1.35; font-size:12px; font-weight:570; }
.mv-badge.mv-active,.mv-badge.mv-approved,.mv-badge.mv-fulfilled { background:#e4f1e3; color:#306338; }
.mv-badge.mv-pending { background:#f8efd9; color:#795a22; }
.mv-badge.mv-cancelled,.mv-badge.mv-declined { background:#f6e7e2; color:#854b41; }
.mv-positive { color:#23683d; font-weight:600; }
.mv-empty { padding:42px 22px; text-align:center; }
.mv-empty strong { display:block; font-size:17px; }
.mv-empty p,.mv-success > p { font-size:14px; color:var(--mv-muted,#617067); line-height:1.55; margin:8px 0 0; }
.mv-tree { padding:0 24px 22px; color:var(--ink); overflow-x:auto; }
.mv-tree-root,.mv-tree-person,.mv-tree details summary { display:flex; align-items:center; gap:11px; }
.mv-tree-root { padding:14px; border:1px solid var(--mv-border); border-radius:12px; background:#f3f7f0; }
.mv-tree ul { list-style:none; padding-left:22px; margin:0 0 0 24px; border-left:1px solid var(--mv-border); }
.mv-tree li { position:relative; margin:0; padding-top:12px; }
.mv-tree li::before { content:""; position:absolute; top:34px; left:-22px; width:18px; border-top:1px solid var(--mv-border); }
.mv-tree-person, .mv-tree details summary { min-height:44px; flex-wrap:wrap; gap:9px; }
.mv-tree details summary { cursor:pointer; list-style:none; }
.mv-tree details summary::-webkit-details-marker {display:none;}
.mv-tree details > summary::after { content:""; display:inline-block; width:7px; height:7px; border:solid var(--mv-muted); border-width:0 1.5px 1.5px 0; transform:rotate(-45deg); }
.mv-tree details[open] > summary::after { transform:rotate(45deg); }
.mv-tree-name { font-size:14px; font-weight:600; }
.mv-tree-level { font-size:12px; color:var(--mv-muted); }
.mv-tree-detail { padding-left:48px; }
.mv-tree-detail button { color:var(--mv-green); border:0; background:transparent; padding:3px 0; cursor:pointer; font:inherit; font-size:12px; text-decoration:underline; }
.mv-profile { display:flex; align-items:center; gap:12px; margin:8px 0 18px; }
.mv-profile .mv-badge { margin-left:auto; }
.mv-profile h3 { margin:0; font-size:19px; }
.mv-profile p { margin:2px 0 0; color:var(--muted,#68756c); font-size:14px; }
.mv-details { margin:0; }
.mv-details > div,.mv-order-meta,.mv-order-lines > div,.mv-inline-balance { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.mv-details > div { border-top:1px solid var(--line,#dce4de); padding:12px 0; font-size:14px; }
.mv-details dt,.mv-order-meta { color:var(--muted,#68756c); }
.mv-details dd { margin:0; font-weight:550; text-align:right; overflow-wrap:anywhere; }
.mv-form { display:grid; gap:17px; }
.mv-form > label { display:grid; gap:7px; font-size:14px; font-weight:570; }
.mv-form input { border:1px solid var(--line,#dce4de); border-radius:9px; background:#fff; min-height:44px; padding:10px 12px; width:100%; font:inherit; font-weight:400; color:var(--ink,#172923); }
.mv-inline-sponsor,.mv-inline-balance { padding:16px; background:#edf4e9; border-radius:10px; color:#294c36; font-size:14px; }
.mv-inline-sponsor { display:grid; gap:3px; }
.mv-inline-sponsor strong { font-size:17px; }
.mv-inline-sponsor small { color:#5a6f5e; }
.mv-form .mv-note,.mv-note { font-size:13px; color:var(--muted,#68756c); margin:0; line-height:1.6; }
.mv-order-lines { margin:10px 0; }
.mv-order-lines > div { border-top:1px solid var(--line,#dce4de); padding:14px 0; font-size:14px; }
.mv-order-lines small { color:var(--muted,#68756c); display:block; margin-top:4px; }
.mv-order-meta { font-size:14px; }
.mv-join { max-width:540px; margin:0 auto; padding:clamp(20px,4vw,40px)!important; }
.mv-join .mv-form { margin-top:24px; }
.mv-join > .btn { margin-top:20px; }
.mv-join-icon { width:54px; height:54px; display:grid; place-items:center; color:#245640; background:#e5efdf; border-radius:16px; margin-bottom:20px; }
.mv-success .mv-actions { margin-top:20px; }
.mv-sr { clip-path:inset(50%); position:absolute; width:1px; height:1px; overflow:hidden; white-space:nowrap; }
@media (max-width:980px) {
  .mv-stats.four { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mv-metric { padding:17px; }
}
@media (max-width:650px) {
  .mv-heading { gap:14px; margin-bottom:18px; }
  .mv-stats { gap:8px; margin-bottom:16px; }
  .mv-metric { border-radius:12px; padding:13px 10px; gap:5px; justify-content:flex-start; }
  .mv-metric > span { font-size:12px; }
  .mv-metric > small { font-size:12px; }
  .mv-metric > strong { font-size:clamp(18px,4.4vw,24px); }
  .mv-heading .mv-actions { gap:7px; }
  .mv-section-head { padding:17px 15px; gap:10px; }
  .mv-tools { padding:0 15px 14px; gap:8px; }
  .mv-search { flex:1 1 155px; }
  .mv-tabs button { padding:7px 8px; }
  .mv-table th:first-child, .mv-table td:first-child { padding-left:15px; }
  .mv-table th:last-child, .mv-table td:last-child { padding-right:15px; }
  .mv-tree { padding:0 15px 15px; }
  .mv-tree ul { margin-left:10px; padding-left:11px; }
  .mv-tree li::before { left:-11px; width:9px; }
  .mv-result-count { padding:10px 15px; }
}
.mv-sample-hint { color:var(--muted,#617067); margin:0; font-size:14px; line-height:1.5; }
.mv-form-error { color:#8c302e; margin:0; font-size:14px; line-height:1.45; }
.mv-join > .mv-actions, .mv-receipt { margin-top:20px; }
.mv-join .mv-form input { min-width:0; box-sizing:border-box; }
@media(max-width:550px) {
  .mv-join { width:100%; box-sizing:border-box; }
  .mv-join .btn { white-space:normal; }
  .mv-form input { font-size:16px; }
}
.mv-view-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.mv-refresh { background:transparent; border:0; color:var(--mv-green); font:inherit; font-size:14px; font-weight:550; padding:6px 2px; cursor:pointer; }
.mv-refresh:hover { text-decoration:underline; text-underline-offset:3px; }
.mv-refresh:disabled { color:var(--mv-muted); cursor:wait; }
