/* The connected ERP: seven module families, each a product view with the
   modules it brings together listed above it. Every preview is decorative
   (aria-hidden) and each card is a single link. */
.v3s-section { padding-block: 88px 72px; border-bottom: 1px solid #e7e9ed; background: #fff; font-family: var(--v3-font); }
.v3s-heading { display: grid; grid-template-columns: 1.35fr 1fr; gap: 70px; align-items: end; margin-bottom: 36px; }
.v3s-heading .v3-eyebrow { margin-bottom: 18px !important; }
.home-v3 .v3s-heading h2 { font-family: var(--v3-font); font-size: clamp(34px,3.65vw,54px); line-height: 1.12; letter-spacing: -.035em; font-weight: 500; text-wrap: initial; }
.v3s-intro { max-width: 460px; justify-self: end; padding-bottom: 3px; }
.v3s-intro > p { color: #56616b; font-size: 16px; line-height: 1.8; }
.v3s-intro .v3-text-link { margin-top: 17px; color: #0d5b45; font-size: 14px; }

/* Finance leads: full width on top here, centred in the first row on wide screens. */
.v3s-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: 354px 354px 334px; gap: 12px; }
.v3s-finance { grid-column: 1 / -1; }
.v3s-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 4px; overflow: hidden; background-color: #f5f1e9; background-image: linear-gradient(155deg, #fff 0%, rgb(255 255 255 / 72%) 38%, rgb(255 255 255 / 0%) 100%); box-shadow: inset 0 0 0 1px #ece8df; color: #182b3c; text-decoration: none; transition: background-color .2s ease; }
.v3s-card:focus-visible { outline: 3px solid #12805c; outline-offset: 3px; }
.v3s-card-head { position: relative; padding: 20px 20px 0; }
.v3s-card h3 { padding-right: 40px; color: #182b3c; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.v3s-card-head > p { margin-top: 3px; color: #5b666d; font-size: 14px; line-height: 1.45; }
.v3s-arrow { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 3px; background: #fff; color: #182b3c; box-shadow: inset 0 0 0 1px #e3e3e3; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.v3s-arrow .ms { font-size: 17px; }
/* The modules each family brings together. */
.v3s-mods { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.v3s-mod { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px 0 6px; border: 1px solid #e3e6e4; border-radius: 3px; background: #fff; color: #3c4a55; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; }
.v3s-mod .ms { color: #0d5b45; font-size: 14px; }
.v3s-visual { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 188px; padding: 18px 20px 20px; pointer-events: none; color: #2a3a47; font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.v3s-footnote { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; color: #5b666d; font-size: 12px; line-height: 1.6; }
.v3s-footnote > a { display: inline-flex; align-items: center; gap: 10px; color: #0d5b45; font-size: 13px; font-weight: 500; padding-block: 5px; }
.v3s-footnote .ms { font-size: 17px; }
@media (hover: hover) {
  .v3s-card:hover { background-color: #f1ece2; }
  .v3s-card:hover .v3s-arrow { background: #12805c; color: #fff; box-shadow: none; }
}

/* Shared preview vocabulary: framed white surfaces, hairlines, small radii. */
.sx-strong { font-weight: 600; color: #1f2f3b; }
.sx-meta { color: #5b666d; font-size: 11px; font-weight: 400; }
.v3s-visual .ms { font-size: 15px; line-height: 1; }
.sx-window,.sx-statement,.sx-invoices,.sx-stock-panel,.sx-gantt,.sx-node { background: #fff; border: 1px solid #e3e3e3; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }
.sx-window,.sx-statement,.sx-invoices,.sx-stock-panel,.sx-gantt { border-radius: 4px; overflow: hidden; }
.sx-menu,.sx-file,.sx-tip { border: 1px solid #e3e3e3; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 12px 24px -12px rgb(0 0 0 / 28%); }
.sx-cursor { position: absolute; z-index: 6; width: 20px; height: 20px; overflow: visible; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 30%)); }
.sx-cursor path { fill: #14212b; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.sx-spark { display: inline-block; flex: 0 0 auto; width: 11px; height: 11px; fill: #12805c; }
.sx-btn { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 3px; background: #12805c; color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sx-tip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-color: #14212b; border-radius: 3px; background: #14212b; color: #fff !important; font-size: 11px; font-weight: 500; white-space: nowrap; }

/* Finance: the general ledger, each line carrying its project or asset, with
   Cobalt ERP Intelligence working beside it. */
.sx-ledger { min-height: 234px; }
.sx-window { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.sx-win-bar { display: flex; align-items: center; gap: 10px; height: 40px; flex: 0 0 auto; padding: 0 12px; border-bottom: 1px solid #ececec; }
.sx-win-title { color: #1f2f3b; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.sx-select { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 5px 0 8px; border: 1px solid #e2e2e2; border-radius: 3px; color: #2a3a47; font-weight: 500; white-space: nowrap; }
.sx-win-bar .sx-btn { margin-left: auto; }
.sx-ledger-body { display: grid; grid-template-columns: minmax(0,1fr) 270px; flex: 1 1 auto; min-height: 0; }
.sx-gl { position: relative; display: grid; align-content: start; min-width: 0; overflow: hidden; }
.sx-gl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(rgb(255 255 255 / 0%), #fff); }
.sx-gl-row { position: relative; display: grid; grid-template-columns: 46px 84px minmax(96px,1fr) 72px 72px; align-items: center; gap: 0 10px; height: 36px; padding: 0 12px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.sx-gl-row > span:nth-child(n+4) { text-align: right; }
.sx-gl-head { height: 28px; background: #f9f9f9; color: #5b666d; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.sx-ref { display: inline-flex; align-items: center; gap: 4px; color: #0d5b45; font-weight: 600; }
.sx-acct { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sx-acct > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sx-dim { flex: 0 0 auto; padding: 1px 4px; border-radius: 3px; background: #e9eff8; color: #2b5298; font-size: 9.5px; font-style: normal; font-weight: 600; letter-spacing: .01em; }
.sx-gl-ai { background: #f6faf8; }
.sx-gl-row.is-hover { background: #f4f4f4; }
.sx-gl-row.is-hover .sx-cursor { left: 222px; top: 13px; }
.sx-ai { display: flex; flex-direction: column; align-items: start; gap: 6px; min-width: 0; padding: 14px 16px; border-left: 1px solid #ececec; background: #fbfbfb; }
.sx-ai-from { display: inline-flex; align-items: center; gap: 5px; color: #0d5b45; font-size: 11px; font-weight: 650; white-space: nowrap; }
.sx-ai-from .sx-spark { width: 12px; height: 12px; }
.sx-ai-title { margin-top: 1px; color: #1f2f3b; font-size: 13px; font-weight: 650; letter-spacing: -.005em; }
.sx-ai-copy { color: #4f5b62; font-size: 11.5px; line-height: 1.5; white-space: normal; }
.sx-ai-copy > span { white-space: nowrap; }
.sx-ai-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.sx-ai-actions .sx-btn,.sx-btn-ghost { height: 26px; }
.sx-btn-ghost { display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #dedede; border-radius: 3px; background: #fff; color: #2a3a47; font-size: 11.5px; font-weight: 600; }

/* Reporting: profit and carbon in one statement you can open and ask about. */
.sx-report { min-height: 234px; }
.sx-statement { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.sx-statement > .sx-st-row:not(.sx-st-cols) { flex: 1 0 26px; height: auto; min-height: 26px; max-height: 34px; }
.sx-st-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 34px; flex: 0 0 auto; padding: 0 12px; border-bottom: 1px solid #ececec; }
.sx-st-head .sx-strong { font-size: 12.5px; }
.sx-chip { padding: 2px 6px; border-radius: 3px; background: #f2f2f2; color: #4f5b62; font-size: 10.5px; font-weight: 600; }
.sx-st-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 46px 38px; align-items: center; gap: 8px; height: 23px; padding: 0 12px; border-bottom: 1px solid #f2f2f2; }
.sx-st-row > span:first-child { position: relative; display: flex; align-items: center; gap: 3px; min-width: 0; white-space: nowrap; }
.sx-st-row > span:nth-child(n+2) { text-align: right; }
.sx-st-flat > span:first-child { padding-left: 18px; }
.sx-st-row .ms { color: #5b666d; font-size: 15px; }
.sx-st-cols { height: 24px; flex: 0 0 auto; background: #f9f9f9; color: #5b666d; font-size: 10.5px; font-weight: 600; }
.sx-st-cols > span:first-child { padding-left: 0 !important; }
.sx-st-row.is-open { font-weight: 600; }
.sx-st-row.is-open .ms { color: #1f2f3b; }
.sx-st-row.is-hover { background: #f4f4f4; }
.sx-explain { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px #cde2d7; color: #0d5b45; font-size: 10.5px; font-weight: 600; }
.sx-st-row.is-hover .sx-cursor { left: 118px; top: 9px; }
.sx-st-child > span:first-child { padding-left: 34px; color: #4f5b62; }
.sx-st-total { border-bottom: 0; background: #f9f9f9; font-weight: 650; }
.sx-nil { color: #5b666d; }

/* People: the group, each company with its headcount, and room for the next one. */
.sx-group { align-items: center; justify-content: center; }
.sx-tree { position: relative; width: 100%; max-width: 320px; }
.sx-node { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 4px; }
.sx-parent { min-height: 46px; padding: 6px 10px; }
.sx-mark { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 3px; background: #12805c; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.sx-node-copy { display: grid; flex: 1; min-width: 0; }
.sx-node-copy > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sx-node-copy .sx-strong { font-size: 13px; }
.sx-amount { color: #0d5b45; font-size: 13px; font-weight: 600; }
.sx-children { position: relative; display: grid; gap: 6px; margin: 10px 0 0 22px; }
.sx-children::before { content: ""; position: absolute; top: -10px; bottom: 17px; left: -12px; border-left: 1px solid #cfcfcf; }
.sx-children > *::before { content: ""; position: absolute; left: -12px; top: 50%; width: 12px; border-top: 1px solid #cfcfcf; }
.sx-children > * { position: relative; }
.sx-children .sx-node { min-height: 34px; padding: 5px 10px; }
.sx-children .sx-strong { flex: 1; min-width: 0; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-count { color: #5b666d; font-size: 11px; white-space: nowrap; }
.sx-cc { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; }
.sx-cc-gb { background: #dcede6; color: #0d5b45; }
.sx-cc-ie { background: #e2e9f6; color: #2b5298; }
.sx-cc-nl { background: #fbf0dc; color: #8a5a12; }
.sx-cur { padding: 1px 6px; border-radius: 3px; background: #f2f2f2; color: #4f5b62; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.sx-add { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 10px; border: 1px dashed #b5b5b5; border-radius: 4px; background: #fafafa; color: #0d5b45; font-weight: 600; }
.sx-add .ms { font-size: 16px; }
.sx-add .sx-cursor { left: 100px; top: 17px; }

/* Sales: invoices with status, and the menu for the one that is overdue. */
.sx-invoices { flex: 0 0 auto; }
.sx-inv { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 10px 6px 12px; border-bottom: 1px solid #f0f0f0; }
.sx-inv:last-child { border-bottom: 0; }
.sx-inv-copy { display: grid; flex: 1; min-width: 0; }
.sx-inv-copy > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-pill { flex: 0 0 auto; padding: 2px 6px; border-radius: 3px; font-size: 10.5px; font-weight: 600; }
.sx-paid { background: #dcede6; color: #0d5b45; }
.sx-sent { background: #e2e9f6; color: #2b5298; }
.sx-overdue { background: #fbe4e4; color: #9a3535; }
.sx-more { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 3px; color: #2a3a47; }
.sx-inv.is-active { background: #f9f9f9; }
.sx-inv.is-active .sx-more { background: #e9e9e9; }
.sx-menu { position: absolute; z-index: 4; top: 116px; right: 30px; display: grid; width: 168px; padding: 4px; }
.sx-menu-item { position: relative; display: flex; align-items: center; gap: 8px; height: 27px; padding: 0 8px; border-radius: 3px; color: #2a3a47; font-weight: 500; white-space: nowrap; }
.sx-menu-item .ms { color: #5b666d; font-size: 15px; }
.sx-menu-item .sx-spark { width: 13px; height: 13px; margin-inline: 1px; }
.sx-menu-item.is-hover { background: #f2f2f2; color: #1f2f3b; }
.sx-menu-item .sx-cursor { left: 96px; top: 12px; }

/* Suppliers: a supplier's document dragged onto the drop zone, to be read and filed. */
.sx-drop { display: flex; flex-direction: column; align-items: center; justify-content: start; gap: 3px; flex: 1 1 auto; min-height: 0; padding: 20px 16px 16px; border: 1px dashed #79ad95; border-radius: 4px; background: #fafafa; text-align: center; }
.sx-drop-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; border-radius: 4px; background: #dcede6; color: #0d5b45; }
.sx-drop-icon .ms { font-size: 19px; }
.sx-drop .sx-strong { font-size: 12.5px; }
.sx-file { position: absolute; z-index: 4; right: 40px; bottom: 34px; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; transform: rotate(-3deg); }
.sx-pdf { display: grid; place-items: center; width: 26px; height: 30px; border-radius: 3px; background: #fbe4e4; color: #9a3535; font-size: 8.5px; font-weight: 700; letter-spacing: .04em; }
.sx-file-copy { display: grid; }
.sx-copy-badge { position: absolute; z-index: 7; right: -16px; bottom: -20px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #12805c; color: #fff; box-shadow: 0 0 0 2px #fff; }
.sx-copy-badge .ms { font-size: 12px; }
.sx-file .sx-cursor { right: -11px; bottom: -13px; }

/* Operations: one item across sites, with a bay on safety hold and a van inbound. */
.sx-stock-panel { flex: 1 1 auto; min-height: 0; padding: 12px; }
.sx-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sx-item .sx-strong { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-sku { flex: 0 0 auto; white-space: nowrap; padding: 2px 6px; border-radius: 3px; background: #1f2f3b; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.sx-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 12px 0 10px; border: 1px solid #ececec; border-radius: 4px; }
.sx-stat { display: grid; gap: 1px; padding: 6px 10px; border-left: 1px solid #ececec; min-width: 0; }
.sx-stat:first-child { border-left: 0; }
.sx-stat .sx-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-stat-num { color: #1f2f3b; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.sx-atp { background: #f6faf8; }
.sx-atp .sx-stat-num { color: #0d5b45; }
.sx-locs { display: grid; gap: 1px; margin-inline: -6px; }
.sx-loc { position: relative; display: grid; grid-template-columns: 66px minmax(0,1fr) 72px; align-items: center; gap: 8px; height: 32px; padding: 0 6px; border-radius: 3px; }
.sx-loc.is-hover { background: #f4f4f4; }
.sx-loc-name { font-weight: 550; white-space: nowrap; }
.sx-loc-num { color: #4f5b62; text-align: right; white-space: nowrap; }
.sx-loc-num.sx-hold { color: #8a5a12; font-weight: 600; }
.sx-reserve { display: none; justify-self: end; padding: 2px 8px; border-radius: 3px; background: #12805c; color: #fff; font-size: 11px; font-weight: 600; }
.sx-loc.is-hover .sx-reserve { display: inline-block; }
.sx-loc.is-hover .sx-loc-num { display: none; }
.sx-bar { display: flex; gap: 2px; height: 8px; }
.sx-bar > i { display: block; height: 100%; border-radius: 1px; }
.sx-bar-held { flex: 0 0 33.3%; background: #d4d4d4; }
.sx-bar-free { flex: 0 0 66.7%; background: #12805c; }
.sx-bar-hold { flex: 0 0 13.3%; background: repeating-linear-gradient(135deg,#f6e6c4 0 4px,#ecd19a 4px 8px); box-shadow: inset 0 0 0 1px #d4a54f; }
.sx-bar-b .sx-bar-held { flex-basis: 20%; }
.sx-bar-b .sx-bar-free { flex-basis: 26.7%; }
.sx-loc .sx-cursor { right: -6px; top: 18px; }

/* Production: the week's plan with a machine service, inspections and one
   works order being moved. */
.sx-gantt { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.sx-gantt::after { content: ""; position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, rgb(255 255 255 / 0%), #fff); }
.sx-gantt > .sx-g-row { min-width: 470px; }
.sx-gantt > .sx-g-row:not(.sx-g-head) { flex: 1 0 36px; height: auto; max-height: 48px; }
.sx-g-row { display: grid; grid-template-columns: 84px repeat(5,minmax(64px,1fr)); align-items: center; height: 32px; border-bottom: 1px solid #f0f0f0; }
.sx-g-row > * { grid-row: 1; }
.sx-g-head { height: 26px; flex: 0 0 auto; background: #f9f9f9; color: #5b666d; font-size: 10.5px; font-weight: 600; }
.sx-g-head > span { padding-left: 8px; }
.sx-g-head > span:first-child { padding-left: 12px; color: #1f2f3b; }
.sx-g-head .is-today { color: #0d5b45; }
.sx-g-name { grid-column: 1; padding-left: 12px; font-weight: 550; white-space: nowrap; }
.sx-wo { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; height: 22px; min-width: 0; margin: 0 3px; padding: 0 8px; border-radius: 3px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.sx-wo .ms { margin-right: -2px; font-size: 13px; }
.sx-released { background: #dcede6; color: #0d5b45; box-shadow: inset 2px 0 #12805c; }
.sx-planned { background: #e2e9f6; color: #2b5298; box-shadow: inset 2px 0 #4a6fb8; }
.sx-service { background: repeating-linear-gradient(135deg,#fbf2e1 0 4px,#f6e8cc 4px 8px); color: #8a5a12; box-shadow: inset 2px 0 #c58a1d; }
.sx-check { background: #eee9fb; color: #5d47a0; box-shadow: inset 2px 0 #7a62c4; }
.sx-ghost { border: 1px dashed #9fb2d8; background: transparent; }
.sx-at-0-1 { grid-column: 2 / 3; }
.sx-at-0-2 { grid-column: 2 / 4; }
.sx-at-1-3 { grid-column: 3 / 5; }
.sx-at-1-4 { grid-column: 3 / 6; }
.sx-dragging { grid-column: 3 / 6; z-index: 3; transform: translate(22%,-4px); box-shadow: inset 2px 0 #4a6fb8, 0 10px 20px -10px rgb(0 0 0 / 35%); }
.sx-short { padding: 1px 6px; border-radius: 3px; background: #fbf0dc; color: #8a5a12; font-size: 10px; }
.sx-dragging .sx-cursor { left: 14px; top: 11px; }
.sx-today { position: absolute; top: 26px; bottom: 0; left: calc(84px + (max(100%, 470px) - 84px) * .3); width: 1.5px; background: #12805c; opacity: .5; }

@media (min-width: 1360px) {
  .v3s-grid { grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: 354px 334px; }
  .v3s-reporting { grid-column: 1; grid-row: 1; }
  .v3s-finance { grid-column: 2 / span 2; grid-row: 1; }
  .v3s-group { grid-column: 4; grid-row: 1; }
  .v3s-visual { padding-inline: 18px; }
  .sx-ledger-body { grid-template-columns: minmax(0,1fr) 196px; }
  .sx-gl-row { grid-template-columns: 72px minmax(96px,1fr) 60px 60px; gap: 0 8px; }
  .sx-gl-row > span:first-child { display: none; }
  .sx-gl-row.is-hover .sx-cursor { left: 186px; }
  .sx-g-row { grid-template-columns: 76px repeat(5,minmax(60px,1fr)); }
  .sx-today { left: calc(76px + (max(100%, 470px) - 76px) * .3); }
  .sx-item .sx-meta { display: none; }
}
@media (min-width: 1700px) {
  .sx-ledger-body { grid-template-columns: minmax(0,1fr) 250px; }
  .sx-gl-row { grid-template-columns: 46px 84px minmax(96px,1fr) 72px 72px; gap: 0 10px; }
  .sx-gl-row > span:first-child { display: block; }
  .sx-gl-row.is-hover .sx-cursor { left: 222px; }
}
@media (max-width: 1180px) {
  .v3s-heading { gap: 38px; }
  .v3s-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; grid-auto-rows: minmax(334px,auto); }
  .v3s-finance,.v3s-reporting,.v3s-group { min-height: 354px; }
  .sx-ledger-body { grid-template-columns: minmax(0,1fr) 240px; }
}
@media (max-width: 900px) {
  .sx-ledger-body { grid-template-columns: minmax(0,1fr) 208px; }
  .sx-gl-row { grid-template-columns: 44px 76px minmax(90px,1fr) 62px 62px; gap: 0 8px; padding-inline: 10px; }
}
@media (max-width: 800px) {
  .v3s-section { padding-block: 60px 48px; }
  .v3s-heading { grid-template-columns: 1fr; gap: 21px; margin-bottom: 28px; }
  .v3s-intro { justify-self: start; max-width: 560px; }
}
@media (max-width: 720px) {
  /* On a phone the cards sit in a row you swipe through, the next one showing
     at the edge, rather than a column seven cards tall. The row runs to the
     screen's edges; the first card lines up with the page margin. */
  .v3s-grid { display: flex; gap: 10px; margin-inline: calc(var(--gutter) / -2); padding: 2px calc(var(--gutter) / 2) 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: calc(var(--gutter) / 2); scrollbar-width: none; }
  .v3s-grid::-webkit-scrollbar { display: none; }
  .v3s-grid:focus-within { scroll-snap-type: x proximity; }
  .v3s-card { flex: 0 0 min(86%,340px); scroll-snap-align: start; }
  .v3s-finance,.v3s-reporting,.v3s-group { min-height: 0; }
  /* On a phone each card keeps its one moment, in less height. */
  .v3s-card-head { padding: 16px 16px 0; }
  .v3s-card-head > p { margin-top: 2px; }
  .v3s-mods { margin-top: 10px; }
  .v3s-mod { height: 21px; }
  .v3s-arrow { top: 12px; right: 12px; }
  .v3s-visual { min-height: 0; padding: 12px 14px 14px; }
  .sx-ledger { min-height: 0; }
  .sx-ledger-body { grid-template-columns: minmax(0,1fr); }
  .sx-gl-ai { display: none; }
  .sx-gl::after { display: none; }
  .sx-ai { gap: 4px; padding: 11px 14px 12px; border-left: 0; border-top: 1px solid #ececec; }
  .sx-ai-copy { display: none; }
  .sx-report { min-height: 0; }
  .sx-statement > .sx-st-row:not(.sx-st-cols) { flex: 0 0 27px; min-height: 27px; max-height: 27px; }
  .sx-parent { min-height: 40px; }
  .sx-children { gap: 5px; margin-top: 8px; }
  .sx-children .sx-node,.sx-add { min-height: 31px; padding-block: 4px; }
  .sx-children::before { top: -8px; bottom: 15px; }
  .sx-add .sx-cursor { top: 14px; }
  .sx-inv { min-height: 42px; padding-block: 4px; }
  .sx-menu { top: 100px; }
  .sx-menu-item:nth-child(3) { display: none; }
  .v3s-sales .v3s-visual { min-height: 176px; }
  .sx-drop { min-height: 148px; padding: 14px 14px 12px; }
  .sx-drop-icon { width: 30px; height: 30px; margin-bottom: 4px; }
  .sx-file { bottom: 26px; }
  .sx-stats { margin: 9px 0 7px; }
  .sx-stat { padding: 5px 9px; }
  .sx-stat-num { font-size: 16px; }
  .sx-loc { height: 28px; }
  .sx-gantt > .sx-g-row { min-width: 560px; }
  .sx-gantt > .sx-g-row:not(.sx-g-head) { flex: 0 0 34px; max-height: 34px; }
  .sx-today { left: calc(84px + (max(100%, 560px) - 84px) * .3); }
  .sx-item .sx-meta { display: none; }
  .v3s-footnote { flex-direction: column; align-items: start; gap: 10px; margin-top: 18px; }
}
@media (max-width: 560px) {
  /* The bills shown are both debits, so a phone keeps the account and the amount. */
  .sx-gl-row { grid-template-columns: minmax(0,1fr) 74px; }
  .sx-gl-row > span:nth-child(-n+2),.sx-gl-row > span:nth-child(5) { display: none; }
  .sx-gl-row.is-hover .sx-cursor { left: 96px; }
  .sx-win-title { display: none; }
}
@media (max-width: 420px) {
  .v3s-card h3 { font-size: 16px; }
  .v3s-card-head > p { font-size: 13.5px; }
}
@media (max-width: 360px) {
  .sx-explain { display: none; }
  .sx-st-row.is-hover .sx-cursor { left: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  .v3s-card,.v3s-arrow { transition: none; }
}
