@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: only light;
  --paper: #fff;
  --ink: #111;
  --secondary: #686868;
  --muted: #767676;
  --line: #e9e9e9;
  --surface: #f6f6f6;
  --positive: #13784b;
  --negative: #c13630;
  --pending: #a75208;
  --positive-bg: #edf7f1;
  --negative-bg: #fff1ef;
  --pending-bg: #fff4e7;
  --font: Inter, "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: #fff;
  color: #111;
  color-scheme: only light;
}
#app,
.shell,
.landing,
.main,
.nav-container,
.auth-screen,
.guest {
  background-color: #fff;
  color: #111;
}
#app {
  min-height: 100dvh;
}
dialog {
  background-color: #fff;
  color-scheme: only light;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 44px;
  background: #fff;
  color: var(--ink);
  font-weight: 550;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #f4f4f4;
  border-color: #d4d4d4;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a,
button,
input,
select,
textarea {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--ink);
}
.primary,
.dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.primary:hover,
.dark:hover {
  background: #353535;
  border-color: #353535;
}
.primary span:last-child {
  margin-left: 10px;
}
.ghost {
  border-color: transparent;
  background: transparent;
}
.small {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  min-height: 32px;
  font-size: 12px;
  color: var(--secondary);
}
.text-button:hover {
  background: none;
  color: var(--ink);
}
.text-button span {
  margin-left: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -1px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand-symbol {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.brand em {
  font-style: normal;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
}
h1 {
  letter-spacing: -1.2px;
  line-height: 1.1;
}
h2 {
  letter-spacing: -0.45px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 13px;
}
.muted,
.subtle,
.mono {
  color: var(--secondary);
}
.subtle {
  font-size: 12px;
  line-height: 1.6;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.positive {
  color: var(--positive);
}
.negative {
  color: var(--negative);
}
.pending-text {
  color: var(--pending);
}
.amount,
.balance-value,
.payment-totals strong,
.transaction-amount,
.detail-amount,
.price,
.stat-value,
.preview-amount {
  font-variant-numeric: tabular-nums;
}
/* The application is a white banking workspace, with no decorative color. */
.app-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.header-inner {
  max-width: 1360px;
  padding: 24px 40px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}
.global-search {
  max-width: 320px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  background: var(--surface);
  padding: 0 13px;
}
.global-search svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
  flex-shrink: 0;
}
.global-search input {
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 11px 0;
  width: 100%;
}
.account-area {
  display: flex;
  align-items: center;
  gap: 13px;
}
.company-name strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.company-name span {
  display: block;
  font-size: 11px;
  color: var(--secondary);
  margin-top: 2px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f0f0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-container {
  border-bottom: 1px solid var(--line);
}
.app-nav {
  max-width: 1360px;
  margin: auto;
  padding: 0 40px;
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}
.app-nav::-webkit-scrollbar {
  display: none;
}
.app-nav a {
  padding: 20px 0 17px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.app-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 650;
}
.app-nav a:last-child {
  margin-left: auto;
}
.main {
  max-width: 1360px;
  margin: auto;
  padding: 0 40px;
}
.workspace-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 24px;
  gap: 12px;
}
.pilot {
  font-size: 11px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 7px;
}
.pilot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #888;
}
.content {
  min-height: 60vh;
}
.app-footer {
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--secondary);
  font-size: 10px;
}
.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
  gap: 24px;
}
.dashboard-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 9px;
}
.dashboard-heading h1 {
  font-size: 30px;
  margin: 0;
}
.dashboard-heading .primary {
  font-size: 12px;
  padding: 12px 22px;
}
.bank-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 44px;
}
.bank-main {
  min-width: 0;
}
.bank-aside {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}
.balance-top {
  color: var(--secondary);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.balance-top span:last-child {
  font-size: 11px;
}
.balance-value {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 550;
  letter-spacing: -3px;
  line-height: 1.2;
  margin: 13px 0 10px;
  white-space: nowrap;
}
.balance-value span {
  font-size: 0.67em;
  letter-spacing: -2px;
}
.balance-context {
  font-size: 12px;
  min-height: 22px;
}
.cash-chart {
  display: block;
  width: 100%;
  height: 230px;
  margin-top: 32px;
  overflow: visible;
}
.chart-line {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.chart-baseline {
  stroke: #e9e9e9;
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary);
  font-size: 10px;
  gap: 10px;
  margin-top: 12px;
}
.period-switch {
  display: flex;
  gap: 3px;
}
.period-switch button {
  border: 0;
  min-height: 32px;
  min-width: 40px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--secondary);
}
.period-switch button.selected {
  background: #ededed;
  color: var(--ink);
  font-weight: 650;
}
.balance-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 27px 0 28px;
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}
.balance-breakdown div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.balance-breakdown span {
  display: block;
  font-size: 11px;
  color: var(--secondary);
  margin-bottom: 10px;
}
.balance-breakdown strong {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.section-heading h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}
.section-heading a {
  font-size: 11px;
  text-decoration: none;
}
.section-heading a span {
  margin-left: 7px;
}
.transaction-section {
  padding-top: 30px;
}
.transaction-list {
  width: 100%;
}
.transaction-row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  font-weight: 400;
}
.transaction-row:hover {
  background: #fafafa;
  border-color: var(--line);
}
.entity-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3f3f3;
  color: #292929;
  font-weight: 600;
  font-size: 11px;
}
.transaction-info {
  flex: 1;
  min-width: 0;
}
.transaction-info strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.transaction-info > span {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: var(--secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.transaction-date {
  font-size: 10px;
  color: var(--secondary);
  margin: 0 10px;
}
.transaction-amount {
  text-align: right;
  flex-shrink: 0;
}
.transaction-amount > strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
}
.status-label {
  display: block;
  color: var(--secondary);
  font-size: 10px;
  margin-top: 4px;
}
.status-label i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 4px;
  vertical-align: 2px;
  border-radius: 50%;
  background: currentColor;
}
.status-label.pending {
  color: var(--pending);
}
.row-arrow {
  color: var(--secondary);
  font-size: 13px;
  margin-left: 4px;
}
.quick-action {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  gap: 11px;
  padding: 15px 0;
  border: 0;
  border-radius: 0;
  font-weight: 400;
  background: transparent;
}
.quick-action:hover {
  background: #fafafa;
}
.quick-action > span:nth-child(2) {
  flex: 1;
}
.quick-action > span:last-child {
  font-size: 14px;
}
.quick-action strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.quick-action small {
  display: block;
  font-size: 10px;
  color: var(--secondary);
  margin-top: 4px;
}
.quick-icon {
  width: 34px;
  height: 34px;
  background: var(--surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.quick-icon svg {
  width: 16px;
  height: 16px;
}
.folder-summary {
  border-top: 1px solid var(--line);
  margin-top: 27px;
  padding-top: 26px;
}
.folder-count {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 550;
}
.folder-count span {
  font-size: 16px;
  color: var(--secondary);
}
.folder-summary > p {
  font-size: 11px;
  color: var(--secondary);
  margin: 3px 0 18px;
}
progress.progress {
  display: block;
  width: 100%;
  height: 3px;
  appearance: none;
  border: 0;
  background: #ededed;
  border-radius: 2px;
  margin: 18px 0;
}
progress.progress::-webkit-progress-bar {
  background: #ededed;
  border-radius: 2px;
}
progress.progress::-webkit-progress-value {
  background: #111;
  border-radius: 2px;
}
progress.progress::-moz-progress-bar {
  background: #111;
}
.folder-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 8px 0;
  color: var(--secondary);
}
.folder-row strong {
  font-weight: 600;
}
.text-link {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  margin-top: 16px;
}
.plan-summary {
  background: var(--surface);
  border-radius: 12px;
  margin-top: 28px;
  padding: 21px;
}
.plan-summary .eyebrow {
  font-size: 9px;
}
.plan-summary h2 {
  font-size: 16px;
  margin-bottom: 8px;
}
.plan-summary h2 span {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 400;
}
.plan-summary p {
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.7;
}
.plan-summary a {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}
/* Documents, quotes, signatures and account pages share the same visual system. */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 12px 0 40px;
}
.page-head h1 {
  font-size: 34px;
  margin: 0 0 12px;
}
.page-head p {
  color: var(--secondary);
  margin: 0;
  font-size: 13px;
}
.page-head button {
  font-size: 12px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}
.category-card {
  text-align: left;
  padding: 23px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-weight: 400;
}
.category-card:hover {
  background: #fafafa;
}
.category-card .code {
  color: var(--secondary);
  font-size: 10px;
  letter-spacing: 0.05em;
  margin-bottom: 11px;
}
.category-card strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 7px;
}
.category-card > span {
  font-size: 11px;
  color: var(--secondary);
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 36px 0 22px;
}
.toolbar input {
  flex: 1;
}
.toolbar select {
  max-width: 250px;
}
input,
select,
textarea {
  color: var(--ink);
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  min-width: 0;
  padding: 12px 13px;
}
input::placeholder,
textarea::placeholder {
  color: #767676;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #111;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  padding: 16px;
  font-size: 10px;
  color: var(--secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
tr:last-child td {
  border: 0;
}
.doc-title {
  font-weight: 550;
  white-space: normal;
  min-width: 220px;
  max-width: 440px;
}
.doc-code {
  font-size: 10px;
  color: var(--secondary);
  margin-top: 5px;
}
.badge {
  display: inline-block;
  font-size: 10px;
  border-radius: 5px;
  padding: 5px 8px;
  background: #f3f3f3;
  color: var(--secondary);
  white-space: nowrap;
}
.badge.missing,
.badge.draft {
  background: #f3f3f3;
  color: var(--secondary);
}
.badge.review {
  color: var(--pending);
  background: var(--pending-bg);
}
.badge.approved {
  color: var(--positive);
  background: var(--positive-bg);
}
.info-box,
.notice {
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0;
}
.notice {
  font-size: 11px;
  border: 1px solid var(--line);
}
.card {
  padding: 25px 0;
  background: #fff;
}
.card h2 {
  font-size: 18px;
}
.connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.connection .eyebrow {
  margin-bottom: 6px;
}
.connection strong {
  font-size: 15px;
  font-weight: 550;
}
.connection p {
  margin: 7px 0 0;
  color: var(--secondary);
  font-size: 12px;
}
.empty {
  text-align: center;
  padding: 55px 25px;
  color: var(--secondary);
}
.empty-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border-radius: 50%;
  margin: 0 auto 18px;
  font-size: 22px;
  color: var(--ink);
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 550;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  margin: 12px auto 22px;
  max-width: 470px;
}
.empty button {
  font-size: 12px;
}
.section-gap {
  margin-top: 28px;
}
.billing-note {
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.8;
  margin-top: 24px;
  max-width: 1000px;
}
.payment-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 35px;
}
.payment-totals > div {
  border-right: 1px solid var(--line);
}
.payment-totals > div:last-child {
  border: 0;
}
.payment-totals span {
  font-size: 11px;
  color: var(--secondary);
  display: block;
  margin-bottom: 10px;
}
.payment-totals strong {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 550;
  letter-spacing: -0.8px;
}
.transaction-filters {
  display: flex;
  gap: 8px;
  margin: 30px 0 12px;
  overflow-x: auto;
}
.transaction-filters button {
  min-height: 36px;
  font-size: 12px;
  padding: 8px 16px;
  border-color: transparent;
  white-space: nowrap;
}
.transaction-filters button.selected {
  background: #111;
  color: #fff;
}
.detail-amount {
  font-size: 42px;
  letter-spacing: -1.7px;
  margin: 22px 0 30px;
}
.detail-list {
  margin: 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
}
.detail-list dt {
  color: var(--secondary);
  flex-shrink: 0;
}
.detail-list dd {
  margin: 0;
  text-align: right;
}
/* Pricing. Black is the only accent for plans and calls to action. */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}
.price-card.featured {
  border: 1px solid #111;
  background: #fafafa;
}
.price-card h3 {
  font-size: 15px;
  margin-bottom: 25px;
}
.price {
  font-size: 38px;
  letter-spacing: -1.7px;
  font-weight: 600;
}
.price small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--secondary);
  letter-spacing: 0;
  margin-top: 4px;
}
.price-card ul {
  list-style: none;
  margin: 27px 0;
  padding: 0;
  color: var(--secondary);
  font-size: 11px;
  line-height: 2.8;
}
.price-card li b {
  color: var(--ink);
  font-weight: 600;
}
.price-card button {
  width: 100%;
  font-size: 12px;
  padding: 10px 8px;
}
/* Forms and guest access. */
dialog {
  width: min(640px, calc(100vw - 32px));
  border: 0;
  border-radius: 18px;
  padding: 35px;
  color: var(--ink);
  box-shadow: 0 24px 100px #0002;
  max-height: calc(100dvh - 40px);
}
dialog::backdrop {
  background: #0006;
}
dialog h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 14px;
  padding-right: 15px;
}
.modal-close {
  float: right;
  border-radius: 50%;
  padding: 6px;
  min-height: 32px;
  width: 32px;
  margin: -15px -15px 0 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--secondary);
  font-size: 12px;
}
.full {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.error {
  min-height: 18px;
  color: var(--negative);
  font-size: 12px;
  line-height: 1.6;
}
.checkline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.checkline input {
  width: 16px;
  height: 16px;
  accent-color: #111;
}
.readonly-link {
  width: 100%;
  font-size: 11px;
}
.line-inputs {
  display: grid;
  grid-template-columns: 2fr 0.5fr 1fr 0.7fr auto;
  gap: 8px;
  align-items: end;
}
.line-inputs label {
  font-size: 10px;
}
.line-inputs input,
.line-inputs select {
  padding: 10px;
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(550px, calc(100vw - 32px));
  border-radius: 10px;
  background: #171717;
  color: #fff;
  padding: 16px 22px;
  font-size: 12px;
  display: none;
  z-index: 50;
  box-shadow: 0 10px 30px #0002;
}
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.auth-card {
  width: min(100%, 440px);
  padding: 25px;
}
.auth-card .brand {
  margin-bottom: 55px;
}
.auth-card h1 {
  font-size: 37px;
  margin-bottom: 20px;
}
.auth-card .primary {
  width: 100%;
  margin-top: 8px;
}
.auth-card > .subtle {
  margin-top: 24px;
}
.guest {
  max-width: 760px;
  margin: 55px auto;
  padding: 30px;
}
.guest > .brand {
  margin-bottom: 25px;
}
.guest .card + .card {
  border-top: 1px solid var(--line);
  margin-top: 35px;
}
/* Public website: confident typography and a quiet product illustration. */
.public-nav {
  max-width: 1360px;
  margin: auto;
  padding: 27px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.public-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.public-links > a {
  text-decoration: none;
  font-size: 13px;
}
.public-links button {
  font-size: 12px;
}
.hero {
  max-width: 1360px;
  margin: auto;
  padding: 95px 40px 100px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 74px;
  align-items: center;
}
.hero .eyebrow {
  margin-bottom: 28px;
  font-size: 10px;
}
.hero h1 {
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 650;
  letter-spacing: -4px;
  line-height: 1.03;
  margin: 0 0 30px;
}
.hero-copy > p {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.8;
  max-width: 550px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 35px 0 24px;
  flex-wrap: wrap;
}
.hero-actions button {
  font-size: 12px;
}
.hero-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--secondary);
}
.product-preview {
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 22px 65px #00000009;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  margin-bottom: 35px;
}
.sample-label {
  background: #f4f4f4;
  border-radius: 4px;
  padding: 4px 6px;
  color: var(--secondary);
  font-size: 9px;
}
.product-preview > .muted {
  font-size: 11px;
}
.preview-amount {
  font-size: 46px;
  font-weight: 550;
  letter-spacing: -2px;
  margin: 8px 0;
  line-height: 1.25;
}
.preview-amount span {
  font-size: 0.65em;
  letter-spacing: -1px;
}
.preview-gain {
  font-size: 11px;
}
.preview-chart {
  display: block;
  width: 100%;
  height: 130px;
  margin: 25px 0 18px;
  overflow: visible;
}
.preview-operation {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.preview-operation > span:nth-child(2) {
  flex: 1;
}
.preview-operation .entity-icon {
  width: 32px;
  height: 32px;
  font-size: 9px;
}
.preview-operation strong {
  font-weight: 550;
}
.preview-operation small {
  display: block;
  color: var(--secondary);
  margin-top: 3px;
  font-size: 10px;
}
.preview-disclaimer {
  font-size: 9px;
  text-align: center;
  color: var(--secondary);
  margin: 20px 0 0;
}
.benefit-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 45px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 70px;
}
.benefit-strip article > span {
  color: var(--secondary);
  font-size: 11px;
}
.benefit-strip h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 23px 0 15px;
}
.benefit-strip p {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.8;
  max-width: 280px;
  margin-bottom: 0;
}
.public-pricing {
  max-width: 1360px;
  margin: auto;
  padding: 100px 40px;
}
.public-pricing h2 {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 18px 0 42px;
}
.landing-foot {
  max-width: 1280px;
  margin: auto;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
.landing-foot p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--secondary);
  margin-top: 15px;
}
.landing-foot > a {
  font-size: 12px;
  text-decoration: none;
}
@media (min-width: 1500px) {
  .bank-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 56px;
  }
  .cash-chart {
    height: 260px;
  }
}
@media (max-width: 1100px) {
  .header-inner,
  .main,
  .app-nav,
  .public-nav {
    padding-left: 28px;
    padding-right: 28px;
  }
  .header-inner {
    gap: 25px;
  }
  .app-nav {
    gap: 24px;
  }
  .company-name {
    display: none;
  }
  .bank-grid {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 30px;
  }
  .bank-aside {
    padding-left: 24px;
  }
  .balance-value {
    font-size: 54px;
  }
  .balance-breakdown div + div {
    padding-left: 15px;
  }
  .balance-breakdown strong {
    font-size: 14px;
  }
  .transaction-date {
    display: none;
  }
  .hero {
    padding: 65px 28px 75px;
    gap: 45px;
  }
  .hero h1 {
    font-size: 60px;
    letter-spacing: -3px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .preview-amount {
    font-size: 38px;
  }
  .product-preview {
    padding: 24px;
  }
  .benefit-strip,
  .landing-foot {
    margin-left: 28px;
    margin-right: 28px;
  }
  .public-pricing {
    padding: 80px 28px;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .header-inner {
    padding: 20px 24px;
  }
  .global-search {
    max-width: 230px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-symbol {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
  }
  .main,
  .app-nav {
    padding-left: 24px;
    padding-right: 24px;
  }
  .bank-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bank-aside {
    border: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
  }
  .folder-summary {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .plan-summary {
    margin: 0;
    grid-column: 1 / -1;
  }
  .cash-chart {
    height: 230px;
  }
  .balance-value {
    font-size: 62px;
  }
  .balance-breakdown strong {
    font-size: 18px;
  }
  .balance-breakdown div + div {
    padding-left: 25px;
  }
  .payment-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
  .payment-totals > div:nth-child(2) {
    border: 0;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 65px;
    gap: 50px;
  }
  .hero h1 {
    font-size: 66px;
  }
  .hero-copy > p {
    font-size: 16px;
  }
  .product-preview {
    max-width: 560px;
    width: 100%;
    justify-self: center;
    padding: 32px;
  }
  .benefit-strip {
    gap: 30px;
  }
  .benefit-strip h2 {
    font-size: 21px;
  }
  .public-links {
    gap: 8px;
  }
  .public-links > a {
    display: none;
  }
}
@media (max-width: 520px) {
  .header-inner {
    padding: 19px 20px;
    gap: 15px;
  }
  .global-search {
    display: none;
  }
  .main,
  .app-nav {
    padding-left: 20px;
    padding-right: 20px;
  }
  .app-nav {
    gap: 25px;
  }
  .app-nav a {
    font-size: 11px;
    padding: 17px 0 14px;
  }
  .workspace-status {
    padding: 16px 0 25px;
  }
  .pilot,
  .text-button {
    font-size: 9px;
  }
  .dashboard-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 35px;
  }
  .dashboard-heading h1 {
    font-size: 25px;
    letter-spacing: -0.9px;
  }
  .dashboard-heading .eyebrow {
    font-size: 9px;
  }
  .dashboard-heading .primary {
    font-size: 10px;
    padding: 10px 13px;
    min-height: 39px;
    margin-top: 10px;
  }
  .balance-top {
    font-size: 11px;
  }
  .balance-top span:last-child {
    font-size: 10px;
  }
  .balance-value {
    font-size: 52px;
    letter-spacing: -2px;
  }
  .balance-value span {
    letter-spacing: -1px;
  }
  .balance-context {
    font-size: 10px;
  }
  .cash-chart {
    height: 180px;
    margin-top: 24px;
  }
  .period-switch button {
    min-width: 33px;
    padding: 7px 8px;
    font-size: 10px;
  }
  .chart-foot {
    font-size: 9px;
  }
  .balance-breakdown {
    padding: 23px 0;
    margin-top: 20px;
  }
  .balance-breakdown div + div {
    padding-left: 12px;
  }
  .balance-breakdown span {
    font-size: 9px;
  }
  .balance-breakdown strong {
    font-size: 12px;
    letter-spacing: -0.15px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .transaction-row {
    gap: 10px;
    padding: 18px 0;
  }
  .entity-icon {
    width: 34px;
    height: 34px;
    font-size: 9px;
  }
  .transaction-info strong {
    font-size: 11px;
  }
  .transaction-info > span {
    font-size: 9px;
    max-width: 150px;
  }
  .transaction-amount > strong {
    font-size: 11px;
  }
  .status-label {
    font-size: 9px;
  }
  .row-arrow {
    display: none;
  }
  .bank-aside {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .folder-summary {
    border-top: 1px solid var(--line);
    padding-top: 27px;
  }
  .app-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 45px;
  }
  .page-head {
    margin-top: 5px;
    margin-bottom: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }
  .page-head h1 {
    font-size: 29px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head button {
    min-height: 39px;
    font-size: 11px;
  }
  .category-grid {
    gap: 0 18px;
  }
  .category-card strong {
    font-size: 12px;
  }
  .category-card > span {
    font-size: 10px;
  }
  .category-card .code {
    font-size: 9px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .toolbar input {
    flex: 1 1 100%;
  }
  .toolbar select {
    flex: 1;
    max-width: none;
    font-size: 11px;
  }
  .payment-totals strong {
    font-size: 23px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-card {
    padding: 28px;
  }
  .price-card h3 {
    margin-bottom: 15px;
  }
  .price-card ul {
    font-size: 12px;
  }
  dialog {
    padding: 27px 23px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .line-inputs {
    grid-template-columns: 2fr 1fr;
  }
  .guest {
    margin: 20px auto;
    padding: 22px;
  }
  .connection {
    align-items: flex-start;
  }
  .auth-card {
    padding: 10px;
  }
  .auth-card h1 {
    font-size: 34px;
  }
  .public-nav {
    padding: 22px 20px;
    gap: 15px;
  }
  .public-nav .brand {
    font-size: 19px;
    gap: 8px;
  }
  .public-links button {
    font-size: 10px;
    padding: 10px 12px;
    min-height: 37px;
  }
  .public-links .ghost {
    display: none;
  }
  .public-links .primary span {
    display: none;
  }
  .hero {
    padding: 50px 20px 60px;
  }
  .hero h1 {
    font-size: 54px;
    letter-spacing: -2.8px;
  }
  .hero .eyebrow {
    font-size: 9px;
    margin-bottom: 22px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero-copy > p br {
    display: none;
  }
  .hero-actions {
    gap: 5px;
  }
  .hero-actions button {
    font-size: 11px;
    padding: 12px 16px;
  }
  .product-preview {
    padding: 23px;
  }
  .preview-amount {
    font-size: 42px;
  }
  .preview-heading {
    margin-bottom: 26px;
  }
  .preview-operation {
    font-size: 10px;
  }
  .benefit-strip {
    margin: 0 20px;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 35px 0;
  }
  .benefit-strip h2 {
    font-size: 28px;
    margin-top: 14px;
  }
  .benefit-strip h2 br {
    display: none;
  }
  .benefit-strip p {
    max-width: none;
  }
  .public-pricing {
    padding: 65px 20px;
  }
  .public-pricing h2 {
    font-size: 35px;
    letter-spacing: -1.5px;
  }
  .landing-foot {
    margin: 0 20px;
    flex-direction: column;
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.audit-trigger {
  margin-top: 14px;
  font-size: 10px;
}
.audit-row {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.audit-row strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.audit-row time {
  font-size: 11px;
  color: var(--secondary);
}

.customer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.customer-stats span {
  color: var(--muted);
  font-size: 13px;
}
.customer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.customer-library {
  max-height: 320px;
  overflow: auto;
  margin: 20px 0;
}
.customer-library label {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
details.card summary {
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 720px) {
  .customer-stats {
    grid-template-columns: 1fr;
  }
}

.company-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.directory-choice {
  border-bottom: 1px solid var(--line, #e8e8e8);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.guest-account {
  border-top: 1px solid var(--line, #e8e8e8);
  padding-top: 32px;
  margin-top: 40px;
}
.guest-account > p {
  color: #606060;
  line-height: 1.6;
}
.guest-preview {
  margin-top: 24px;
}
.guest-preview summary {
  font-size: 0.9rem;
  cursor: pointer;
}
.guest-demo {
  margin-top: 16px;
  padding: 24px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
}
.guest-demo .connection {
  gap: 20px;
  font-size: 0.9rem;
  padding: 16px 0;
}
.guest-demo small {
  display: block;
  margin-top: 16px;
  color: #666;
}
.guest .customer-actions {
  margin-top: 20px;
}
.guest #shared > p {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .guest-demo {
    padding: 16px;
  }
  .guest-demo .connection {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .company-number {
    font-size: 1rem;
  }
}

.received-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.received-toolbar input {
  max-width: 360px;
}
.received-folders {
  display: grid;
  gap: 16px;
}
.received-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.received-folder[hidden] {
  display: none;
}
.received-folder h2 {
  margin: 8px 0;
  font-size: 1.25rem;
}
.received-states {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.received-open {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 12px 20px;
  font-weight: 500;
  color: #111;
}
.received-open:hover {
  background: #f4f4f4;
}
@media (max-width: 650px) {
  .received-folder {
    align-items: flex-start;
    flex-direction: column;
  }
  .received-toolbar input {
    max-width: 100%;
  }
  .received-toolbar .period-switch {
    flex-wrap: wrap;
    gap: 6px;
  }
}
/* Relationship colours describe a counterparty, never a payment status. */
.relationship-pill {
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 2px;
  padding: 0 3px 0 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: transparent;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}
.relationship-merchant {
  color: #2453a6;
}
.relationship-client {
  color: #7042a6;
}
.relationship-info {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font-size: 10px;
  font-weight: 650;
  cursor: help;
}
.relationship-info:hover {
  color: inherit;
  background: #11111108;
}
.relationship-info:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.relationship-tooltip {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  left: 0;
  top: 100%;
  z-index: 10;
  width: 232px;
  max-width: 72vw;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  background: #fff;
  color: #292929;
  box-shadow: 0 5px 20px #11111112;
  white-space: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
}
.relationship-pill:not(.hint-dismissed):hover .relationship-tooltip,
.relationship-pill:not(.hint-dismissed):focus-within .relationship-tooltip,
.relationship-pill.hint-open .relationship-tooltip {
  visibility: visible;
  opacity: 1;
}
.direction-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 28px;
  padding: 4px;
  background: #f3f3f3;
  border-radius: 12px;
}
.direction-switch button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 12px 18px;
}
.direction-switch button.selected {
  background: #fff;
  box-shadow: 0 1px 4px #1111110d;
}
.request-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.request-card > div {
  min-width: 0;
}
.request-card h3 {
  font-size: 16px;
  margin: 14px 0 6px;
}
.request-card p {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.request-action {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex-shrink: 0;
  font-size: 12px;
}
.request-action > strong {
  font-size: 20px;
}
.transaction-entry {
  padding-top: 14px;
}
.transaction-entry .transaction-row {
  padding-top: 10px;
}
.section-gap-small {
  margin-top: 12px;
}
@media (max-width: 640px) {
  .request-card {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .request-action {
    justify-items: start;
  }
}
.onboarding-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--secondary);
  font-size: 12px;
}
.onboarding-steps > span {
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 8px;
}
.verification-upload {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Rectangular commercial actions, including quote dialogs and recipient decisions. */
#content[data-page="quotes"] button:not(.relationship-info),
dialog[data-kind="quote"] button:not(.relationship-info),
.customer-actions button:not(.relationship-info),
.quote-card button:not(.relationship-info),
button[data-newquote],
button#customer-newquote {
  border-radius: 5px;
}

/* Right-button wheel: top layer, local to the active application dialog. */
.quick-wheel {
  --wheel-progress: 0;
  --wheel-scale: 1;
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  overflow: visible;
  box-shadow:
    0 12px 60px #00000024,
    0 2px 10px #0000000d;
  z-index: 10000;
  user-select: none;
  pointer-events: none;
  font: 12px/1.3 var(--font);
}
.quick-wheel[hidden] {
  display: none;
}
.quick-wheel::backdrop {
  background: transparent;
  pointer-events: none;
}
.quick-wheel-sectors,
.quick-wheel-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.quick-wheel-sectors {
  overflow: hidden;
}
.quick-wheel-sectors path {
  fill: #fff;
  stroke: #e7e7e7;
  stroke-width: 1;
}
.quick-wheel-sectors path.is-selected {
  fill: #151515;
  stroke: #151515;
}
.quick-wheel-action {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 82px;
  transform: translate(-50%, -50%) scale(var(--wheel-scale));
  z-index: 2;
}
.quick-wheel-action[data-action="quote"] {
  top: 18%;
  left: 50%;
}
.quick-wheel-action[data-action="client"] {
  top: 50%;
  left: 82%;
}
.quick-wheel-action[data-action="search"] {
  top: 82%;
  left: 50%;
}
.quick-wheel-action[data-action="link"] {
  top: 50%;
  left: 18%;
}
.quick-wheel-action.is-selected {
  color: #fff;
}
.quick-wheel-action.is-disabled {
  color: #aaa;
}
.quick-wheel-action strong {
  font-weight: 550;
}
.quick-wheel svg:not(.quick-wheel-sectors) {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick-wheel-core {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.quick-wheel-core strong {
  font-size: calc(11px * var(--wheel-scale));
  font-weight: 550;
}
.quick-wheel-core span {
  font-size: calc(9px * var(--wheel-scale));
}
.quick-wheel.is-center .quick-wheel-core {
  background: var(--negative);
  border-color: var(--negative);
  color: white;
  animation: wheel-pulse 1.6s ease-out infinite;
}
.quick-wheel-fill {
  background: var(--negative);
  transform: scale(calc(0.32 + 0.68 * var(--wheel-progress)));
  opacity: 0;
  z-index: 1;
}
.quick-wheel.is-holding .quick-wheel-fill {
  opacity: 1;
}
.quick-wheel.is-holding .quick-wheel-core {
  animation: none;
}
.quick-wheel.is-holding .quick-wheel-action {
  opacity: 0.15;
}
.quick-wheel-caption {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #555;
  font-size: 11px;
  text-align: center;
  box-shadow: 0 2px 12px #00000008;
}
@keyframes wheel-pulse {
  0% {
    box-shadow: 0 0 0 0 #c1363038;
  }
  100% {
    box-shadow: 0 0 0 13px #c1363000;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quick-wheel.is-center .quick-wheel-core {
    animation: none;
  }
}

.test-document-row .doc-title,
.test-document-warning {
  color: #b42318;
  font-weight: 650;
}
.test-document-row {
  background: #fff7f6;
}
.test-document-warning {
  font-size: 13px;
  margin: 6px 0;
}

#sign-internal-test {
  margin-left: 16px;
  margin-top: 12px;
  margin-bottom: 8px;
  vertical-align: middle;
  border-radius: 8px;
}
@media (max-width: 600px) {
  #sign-internal-test {
    display: block;
    margin-left: 0;
    max-width: 100%;
    white-space: normal;
  }
}

/* Compact screens: keep controls readable and confine wide data to its scroller. */
@media (max-width: 680px) {
  .main,
  #content,
  .card,
  .form-grid > *,
  .line-inputs > *,
  .connection > div,
  .received-folder > div {
    min-width: 0;
  }
  .card,
  dialog,
  .received-folder,
  .detail-list dd {
    overflow-wrap: anywhere;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .account-area {
    min-width: 0;
    margin-left: auto;
  }
  .app-nav {
    gap: 22px;
    scrollbar-width: thin;
  }
  .app-nav a {
    font-size: 13px;
    min-height: 48px;
  }
  .workspace-status,
  .connection,
  .dashboard-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .table-wrap {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }
  .table-wrap td {
    white-space: normal;
    min-width: 120px;
  }
  .table-wrap .doc-title {
    min-width: 180px;
    overflow-wrap: anywhere;
  }
  .table-wrap td button {
    margin: 4px 4px 4px 0;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .line-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .line-inputs > label:first-child {
    grid-column: 1 / -1;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea,
  .toolbar select,
  .global-search input {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }
  dialog:not(.quick-wheel) {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 24px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .form-actions > button,
  .customer-actions > button,
  .customer-actions > a {
    flex: 1 1 160px;
    white-space: normal;
  }
  .page-head button,
  .dashboard-heading .primary,
  .toolbar button,
  .period-switch button,
  .transaction-filters button {
    min-height: 44px;
    font-size: 13px;
  }
  .modal-close {
    width: 44px;
    min-height: 44px;
    margin: -12px -6px 0 0;
  }
  .checkline {
    align-items: flex-start;
  }
  .checkline input {
    flex-shrink: 0;
  }
  .detail-list > div {
    flex-wrap: wrap;
    gap: 6px;
  }
  .detail-list dd {
    min-width: 0;
    text-align: left;
  }
  #toast {
    width: max-content;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 380px) {
  .header-inner,
  .main,
  .app-nav {
    padding-left: 14px;
    padding-right: 14px;
  }
  .balance-value {
    font-size: 42px;
    overflow-wrap: anywhere;
  }
  .payment-totals {
    grid-template-columns: minmax(0, 1fr);
  }
  .payment-totals > div {
    border-right: 0;
  }
}
