.sve-body {
    --sve-surface: #fff; --sve-band: #f3f4f6; --sve-green: #537565; --sve-red: #a5373e; --sve-amber: #966000;
    width: 100%; max-width: 1500px; margin-inline: auto; color: var(--sv2-ink); font-variant-numeric: tabular-nums;
}
html.os-dark .sve-body {
    --sve-surface: var(--dk-surface); --sve-band: var(--dk-surface2); --sve-green: #90aa9d;
    --sve-red: #ffa1a6; --sve-amber: #f3be68;
}
.sve-head, .sve-group-head, .sve-actions, .sve-chips, .sve-meta { display: flex; align-items: center; gap: 8px; }
.sve-head { flex-wrap: wrap; }
.sve-head h1 { margin-right: auto; font-size: var(--fs-title); font-weight: 750; }
.sve-body :where(button:not(.sv2-btn)) { color: inherit; cursor: pointer; }
.sve-body :is(button,a):focus-visible { outline: 2px solid var(--sv2-accent); outline-offset: -2px; }
.sve-primary:disabled { opacity: .6; cursor: default; }
.sve-body .sve-legacy { color: var(--sv2-sub); font-size: var(--fs-meta); }
.sve-primary, .sve-legacy, .sve-more { min-height: 44px; }
.sve-chip-strip { min-width: 0; position: relative; flex: none; }
.sve-chips { flex-wrap: nowrap; overflow-x: auto; padding-block: 2px; }
.sve-summary { color: var(--sv2-ink); font-size: var(--fs-base); }
.sve-summary strong { font-weight: 700; }
.sve-chips button, .sve-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; }
.sve-chips button, .sve-button { flex: none; border: 1px solid var(--sv2-line); background: var(--sve-surface); }
.sve-chips button { min-height: 36px; padding: 5px 12px; white-space: nowrap; }
.sve-chips button[aria-pressed=true] { border-color: var(--sv2-accent); background: var(--sv2-soft); color: var(--sv2-accent); font-weight: 700; }
.sve-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--sve-dot,var(--sv2-sub)); }
.sve-pending { --sve-dot: var(--sv2-accent); }
.sve-paid { --sve-dot: var(--sve-green); }
.sve-rejected { --sve-dot: var(--sve-red); }
.sve-unpaid { --sve-dot: var(--sve-amber); }
.sve-grid { display: grid; align-items: start; grid-template-columns: minmax(0,1fr); gap: 24px; }
.sve-list, .sve-group, .sve-preview { min-width: 0; }
.sve-group + .sve-group { margin-top: 16px; }
.sve-group-head { justify-content: space-between; padding: 7px 10px; background: var(--sve-band); font-size: var(--fs-body); font-weight: 650; }
.sve-line { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--sv2-line); }
.sve-row { flex: 1; min-width: 0; min-height: 48px; padding: 8px; text-align: left; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 4px 8px; }
.sve-title, .sve-requester, .sve-category { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sve-title, .sve-money, .sve-preview h2 { font-size: var(--fs-body); }
.sve-money { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
.sve-meta { grid-column: 1 / -1; grid-row: 2; min-width: 0; white-space: nowrap; gap: 4px 10px; font-size: var(--fs-meta); color: var(--sv2-sub); }
.sve-preview { overflow-wrap: anywhere; }
.sve-meta .sve-category { display: block; }
.sve-date, .sve-meta > .sve-warn:not(.sve-category,.sve-requester) { flex: none; }
.sve-badge { width: fit-content; max-width: 100%; padding: 1px 7px; background: var(--sve-band); color: var(--sv2-ink); font-size: var(--fs-meta); }
.sve-body .sve-warn { color: var(--sve-amber); }
.sve-actions { flex-wrap: wrap; gap: 5px; }
.sve-line > .sve-actions { flex-wrap: nowrap; }
.sve-button { border-radius: 6px; min-height: 34px; padding: 4px 9px; font-size: var(--fs-base); }
.sve-body .sve-btn-approved { color: var(--sve-green); }
.sve-body .sve-btn-rejected { color: var(--sve-red); }
.sve-preview .sve-reverse, .sve-preview .sve-btn-rejected { margin-inline-start: auto; }
.sve-more { display: inline-flex; align-items: center; gap: 8px; padding-inline: 10px; margin-top: 3px; border-radius: 6px; font-weight: 600; }
.sve-more::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sve-more[aria-expanded=true]::after { transform: rotate(225deg); }
.sve-more:hover, .sve-button:hover { background: var(--sv2-soft); }
.sve-body button.sve-detail { justify-self: start; color: var(--sv2-accent); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.sve-preview { display: none; gap: 10px; padding: 14px 16px; border: 1px solid var(--sv2-line); border-radius: 8px; background: var(--sve-surface); }
.sve-preview h2, .sve-preview h3 { font-weight: 700; }
.sve-total { font-size: var(--fs-title); }
.sve-preview dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px 12px; padding-block: 10px; border-block: 1px solid var(--sv2-line); }
.sve-preview dt, .sve-history span { color: var(--sv2-sub); }
.sve-receipt { max-width: 100%; max-height: 120px; object-fit: contain; }
.sve-link { color: var(--sv2-accent); text-decoration: underline; }
.sve-history { display: grid; gap: 6px; padding: 0; list-style: none; }
.sve-history li { display: grid; grid-template-columns: 5em minmax(0,1fr); gap: 6px; }
@media (min-width: 1024px) {
    .sve-grid { grid-template-columns: minmax(0,1.8fr) minmax(240px,1fr); }
    .sve-row { display: flex; align-items: center; gap: 8px; }
    .sve-meta { display: contents; }
    .sve-requester { order: -1; max-width: 6em; }
    .sve-title { flex: 1; min-width: 0; }
    .sve-category { max-width: 8em; }
    .sve-preview { display: grid; position: sticky; top: 0; }
    .sve-row[aria-pressed=true], .sve-row:hover { background: var(--sv2-soft); }
}
@media (max-width: 1023px) {
    .sve-line > .sve-actions { display: none; }
}
@media (max-width: 768px) {
    .sve-head { display: grid; grid-template-columns: minmax(0,1fr) auto; }
    .sve-head h1 { white-space: nowrap; }
    .sve-head .sve-primary { grid-column: 1 / -1; grid-row: 2; }
    .sve-head .sve-legacy { grid-column: 2; grid-row: 1; }
    .sve-chip-strip::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 14px; pointer-events: none; background: linear-gradient(to right, transparent, var(--sve-surface)); }
    .sve-chips { padding-inline-end: 14px; scroll-padding-inline-end: 14px; }
    .sve-chips button { min-height: 44px; }
}
