:root {
  -webkit-tap-highlight-color: transparent;
}

:where(a[href], button:enabled, summary, select:enabled,
       label:has(input:is([type="radio"], [type="checkbox"]):enabled)):active {
  filter: brightness(.9);
}

.skip {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--green);
  transform: translateY(-150%);
}

.skip:focus { transform: none; }
.local-status { display: block; grid-column: 1 / -1; margin-top: 8px; color: var(--green); font-size: .81rem; }
.local-operation .text-link { display: inline-block; padding-block: 5px; }
#connection-message { margin-bottom: 14px; }
[hidden] { display: none !important; }

[data-entry-background], .entry-dialog:not([open]) { display: none; }
.entry-dialog-active [data-entry-background] { display: block; }
.entry-dialog-active { overflow: hidden; }
.entry-dialog-page main > :not(.entry-dialog) { display: none; }
.entry-dialog {
  position: static;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}
.entry-dialog:modal {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: min(56rem, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  overflow: hidden;
  box-shadow: 0 20px 70px rgb(11 29 19 / 22%);
}
.entry-dialog::backdrop { background: rgb(19 34 25 / 48%); }
.entry-dialog-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.entry-dialog-head > div { min-width: 0; }
.entry-dialog-head h1 { font-size: clamp(1.55rem, 3vw, 2rem); }
.entry-dialog-head h1:focus { outline: none; }
.entry-dialog-group { overflow: hidden; margin-top: 5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.entry-dialog-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--green);
  font-size: 1.6rem;
  line-height: 1;
}
.entry-dialog-close:hover { background: #e9efe5; }
.entry-dialog-body { min-height: 0; padding: 20px; overflow: auto; overscroll-behavior: contain; }
.entry-dialog-body .field-line { margin-top: 0; }
.repayment-amount-suggestion {
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin-top: 4px;
  padding: 3px 0;
  background: transparent;
  color: var(--green);
  font-size: .875rem;
  font-weight: 600;
  text-align: start;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .18em;
}
@media (display-mode: standalone), (display-mode: fullscreen) {
  /* Some installed mobile browsers report a zero inset under the status bar. */
  .entry-dialog { --entry-status-bar: 44px; }
}
@media (max-width: 650px), (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  .entry-dialog:modal {
    --entry-top: max(var(--entry-status-bar, 0px), env(safe-area-inset-top, 0px));
    --entry-bottom: env(safe-area-inset-bottom, 0px);
    inset: var(--entry-top) 0 var(--entry-bottom);
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - var(--entry-top) - var(--entry-bottom));
    max-height: calc(100dvh - var(--entry-top) - var(--entry-bottom));
    border: 0;
    border-radius: 0;
  }
  .entry-dialog-head {
    padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  }
  .entry-dialog-body {
    padding: 12px max(12px, env(safe-area-inset-right)) 18px max(12px, env(safe-area-inset-left));
  }
}

.account, .profile { display: flex; gap: 8px; align-items: center; min-width: 0; }
.profile { min-height: 44px; border-radius: 8px; }
.profile:hover .profile-name, .profile:focus-visible .profile-name { text-decoration: underline; text-underline-offset: .2em; }
.profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-bell {
  position: relative; flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--green);
}
.notification-bell:hover, .notification-bell:focus-visible { background: #edf2e9; }
.notification-dot {
  position: absolute; top: 7px; right: 8px; width: 10px; height: 10px;
  background: #bb392f; border: 2px solid white; border-radius: 50%;
}
.social-list {
  margin: 0; padding: 0 16px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
}
.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0; }
.social-row + .social-row { border-top: 1px solid var(--line); }
.social-person, .contact-person { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
.contact-person { display: flex; align-items: center; gap: 12px; }
.contact-person .avatar { flex: none; background: #e7edde; color: var(--green); }
.social-name { font-weight: 650; overflow-wrap: anywhere; }
.social-person > span { display: block; }
.social-note { margin-top: 2px; color: var(--muted); font-size: .85rem; font-weight: 450; }
.contacts-panel .social-list { padding-inline: 0; }
.contacts-panel .social-row { padding-inline: 16px; }
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-summary {
  display: grid; grid-template-columns: minmax(0, 1fr) fit-content(50%) .65rem;
  align-items: center; gap: 10px; padding: 12px 16px; min-height: 62px;
  list-style: none; cursor: pointer;
}
.contact-summary::-webkit-details-marker { display: none; }
.contact-static { display: flex; align-items: center; padding: 12px 16px; min-height: 62px; }
.contact-summary:focus-visible { outline-offset: -3px; border-radius: 8px; }
.contact-person .social-name, .contact-person .social-note { display: block; }
.contact-summary .contact-person > :last-child { min-width: 0; }
.contact-balance {
  display: grid; justify-items: end; text-align: end; min-width: 0;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.contact-balance:not(.positive, .negative) { color: var(--muted); }
.contact-balance small { font-size: .8rem; }
.contact-balance strong { font-size: 1.04rem; font-weight: 650; }
.contact-chevron {
  justify-self: center; width: .46rem; height: .46rem; color: var(--muted);
  border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg);
}
.contact-row details[open] .contact-chevron { transform: rotate(225deg); }
.contact-breakdown { padding: 0 16px 12px; }
.contact-groups {
  margin: 0; padding: 3px 12px; border-radius: 9px; background: var(--paper);
  list-style: none;
}
.contact-groups li {
  display: grid; grid-template-columns: minmax(0, 1fr) fit-content(50%);
  align-items: center; gap: 10px; padding-block: 8px; font-size: .92rem; overflow-wrap: anywhere;
}
.contact-groups li + li { border-top: 1px solid var(--line); }
.contact-groups strong { font-size: .94rem; }
@media (max-width: 420px) {
  .contact-summary, .contact-static { padding-inline: 10px; gap: 7px; }
  .contact-person { gap: 7px; }
  .contact-breakdown { padding-inline: 10px; }
}
.roster { margin-top: 24px; }
.archive-icon { flex: none; }
.archive-setting { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.archive-return { margin-top: 16px; }
.archive-note { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--muted); }
.archive-cards .card-main { display: block; }
.archive-cards .card-main h2 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.archive-cards .card-status { margin-top: 6px; max-width: none; }
.home-actions { justify-content: end; }
.roster-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.group-invite-result { margin-bottom: 12px; scroll-margin-top: 16px; }
.group-invite-result input { margin-top: 6px; }
.group-invite-result button { margin-top: 12px; }
.single-panel .page-head h1 { margin: 0; }
.contact-options {
  display: grid; max-height: 16rem; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 9px;
}
.contact-options:empty { display: none; }
.contact-options label {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 7px 12px; font-size: .92rem; overflow-wrap: anywhere; cursor: pointer;
}
.contact-options label + label { border-top: 1px solid var(--line); }
.contact-options label:has(input:checked) { background: #edf2e9; }
.contact-options input { flex: none; width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; accent-color: var(--green); }
.section-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 22px;
}
.main-tabs {
  display: inline-flex; align-items: stretch; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 12px; background: #edf1eb;
}
.main-tabs a {
  display: grid; place-items: center; min-height: 42px; padding: 6px 20px;
  border-radius: 8px; color: var(--muted); font-weight: 600;
}
.main-tabs a:hover { color: var(--green); }
.main-tabs a[aria-current="page"] {
  background: var(--surface); color: var(--green); box-shadow: 0 1px 3px rgb(23 54 36 / 18%);
}
@media (forced-colors: active) {
  .main-tabs a[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
@media (max-width: 540px) {
  .section-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
  .section-toolbar > :not(.main-tabs) { justify-self: end; }
  .main-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account { gap: 4px; }
}
.profile-login { margin-top: 10px; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.profile-login strong { color: var(--ink); }
.group-info-list .social-row { flex-wrap: nowrap; align-items: baseline; justify-content: space-between; }
.group-info-list dt { flex: none; }
.group-info-list dd { min-width: 0; margin: 0; text-align: end; overflow-wrap: anywhere; }
.push-profile, .profile-account { margin-top: 16px; }
.profile-account h2 { font-size: 1rem; }
.profile-account .text-button { margin-top: 8px; padding-inline-start: 0; }
.push-profile-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.push-profile h2 { font-size: 1rem; }
.push-profile .btn { margin-top: 12px; }
.push-switch {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  width: 52px;
  min-height: 44px;
  padding: 0 2px;
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.push-switch::before, .push-switch::after { content: ""; grid-area: 1 / 1; box-sizing: border-box; }
.push-switch::before { height: 28px; border: 1px solid var(--muted); border-radius: 14px; background: #edf1eb; }
.push-switch::after { justify-self: start; margin-inline: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); }
.push-switch:is([aria-checked="true"], :checked)::before { background: var(--green); border-color: var(--green); }
.push-switch:is([aria-checked="true"], :checked)::after { justify-self: end; background: white; }
.push-switch[aria-disabled="true"] { opacity: .65; cursor: default; }
@media (forced-colors: active) {
  .push-switch::after { background: ButtonText; }
  .push-switch:is([aria-checked="true"], :checked)::after { background: ButtonText; }
}
.bar-inner { gap: 14px; }
.brand { flex-shrink: 0; }
[data-app-staging] .brand-mark { background: #592b83; }
[data-app-staging] .brand-mark i { background: #f0dbff; }
[data-app-staging] .entry-dialog-head { background: #f3e7fb; }
.entry-dialog-staging {
  margin: 0 0 4px;
  color: #442164;
  font-size: .875rem;
  font-weight: 650;
}
.staging-notice {
  margin: 0;
  padding: 8px 16px;
  background: #f3e7fb;
  color: #442164;
  text-align: center;
  font-size: .875rem;
  font-weight: 650;
}
.text-button, .text-link { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.text-button { padding: 8px 2px 8px 4px; min-height: 44px; background: none; font-size: .875rem; }
.hero h2 + p { margin-top: 8px; }
.circle-header { margin: 14px 0 24px; }
.circle-header .actions { margin-top: 16px; }
.group-entry-actions { flex-wrap: nowrap; }
@media (max-width: 650px) {
  .group-entry-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .group-entry-actions .btn { min-width: 0; min-height: 44px; padding: 8px 4px; gap: 3px; font-size: .875rem; }
}
@media (max-width: 355px) {
  .group-entry-actions .btn { font-size: .8125rem; }
  .group-entry-actions .btn > [aria-hidden] { display: none; }
}
.circle-title-line {
  --title-control-size: 44px;
  --title-badge-size: clamp(34px, 3.8vw, 46px);
  display: flex; align-items: flex-start; gap: 10px;
}
.circle-title-line h1 {
  min-width: 0; overflow-wrap: anywhere;
  margin-block-start: calc((var(--title-control-size) - 1lh) / 2);
}
.circle-title-line .circle-badge {
  flex: none; width: var(--title-badge-size); height: auto; aspect-ratio: 1; border-radius: 10px;
  margin-block-start: calc((var(--title-control-size) - var(--title-badge-size)) / 2);
}
.circle-badge::before { width: 74%; }
.edit-pencil { display: grid; place-items: center; flex: none; width: var(--title-control-size); height: var(--title-control-size);
  border: 1px solid var(--line); background: var(--surface); color: var(--green); border-radius: 10px; }
.edit-pencil:hover { background: #e9efe5; border-color: #a5b5a5; }
.icon-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.icon-option { position: relative; height: auto; aspect-ratio: 1; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer; }
.icon-option::before { width: 100%; }
.icon-option input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
  margin: 0; opacity: 0; cursor: pointer; }
.icon-option:has(input:checked) { border-color: var(--green); }
.icon-option:has(input:focus-visible) { outline: 3px solid #738d36; outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }
@media (forced-colors: active) {
  .icon-option { forced-color-adjust: none; }
  .icon-option:has(input:checked) { border-color: CanvasText; }
  .icon-option:has(input:focus-visible) { outline-color: Highlight; }
}
.subhead { display: block; }
.subhead, .card-main h2, .pair-row span, .op-detail b,
.single-panel h1, .single-panel h2, .preview-line, .preview-note { overflow-wrap: anywhere; }
.preview-line > strong { flex: none; white-space: nowrap; }
.section .card-main h2 { display: block; margin: 0; font-size: 1.23rem; }
.card-footer { gap: 8px; }
.archive-link { margin-top: 16px; justify-content: flex-end; }
.pair-row > span:nth-child(2) { min-width: 0; }
.pair-direction { display: block; color: var(--muted); font-size: .82rem; }
.history-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; margin-bottom: 10px; }
.history-heading h2 { margin: 0; }
.history-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-left: auto; font-size: .875rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.history-switch:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 360px) {
  .history-heading { column-gap: 6px; }
  .history-heading h2 { font-size: 1.08rem; gap: 5px; }
  .history-heading .count { padding-inline: 5px; }
  .history-switch { font-size: .8125rem; gap: 4px; }
}
.history-month {
  padding: 8px 19px;
  background: #edf1eb;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: normal;
}
.history-month:not(:first-child) { border-top: 1px solid var(--line); }
.history-month + .row-wrap { border-top: 1px solid var(--line); }
[data-history-navigation] { margin: 6px 0 0; text-align: center; }
[data-history-next] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--muted);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .18em;
}
[data-history-next][aria-disabled="true"] { pointer-events: none; text-decoration: none; }
[data-history-next][aria-disabled="true"]:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
}
[data-history-next][aria-disabled="true"]::before {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: history-spin .8s linear infinite;
}
@keyframes history-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  [data-history-next][aria-disabled="true"]::before { animation: none; }
}
.op-row { list-style: none; cursor: pointer; }
.op-row::-webkit-details-marker { display: none; }
.op-date {
  display: grid;
  flex: 0 0 2rem;
  justify-items: center;
  line-height: 1.15;
}
.op-day { font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.op-month { color: var(--muted); font-size: .75rem; }
.op-icon.dacha, .op-arrow { position: relative; font-size: 0; }
.op-icon.dacha::before, .op-arrow::before {
  content: ""; position: absolute; inset: 0; margin: auto; background: currentColor;
}
.op-icon.dacha::before {
  width: 20px; height: 20px;
  --repayment-arrows: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16l-4-4M20 16H4l4 4'/%3E%3C/svg%3E");
  -webkit-mask: var(--repayment-arrows) center / contain no-repeat;
  mask: var(--repayment-arrows) center / contain no-repeat;
}
.op-arrow, .op-arrow-placeholder { flex: none; width: 16px; height: 16px; }
.op-arrow { color: var(--muted); }
.op-arrow::before {
  width: 10px; height: 6px;
  clip-path: polygon(0 22%, 14% 0, 50% 60%, 86% 0, 100% 22%, 50% 100%);
}
:is(.operation, .local-operation)[open] .op-arrow { transform: rotate(180deg); }
@media (forced-colors: active) {
  .op-icon.dacha::before, .op-arrow::before { background: CanvasText; forced-color-adjust: none; }
}
.detail-line b { text-align: end; }
.op-detail > .changes {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}
.changes:not([open]), .changes > summary { width: fit-content; max-width: 100%; }
.changes > summary {
  min-height: 24px;
  padding-block: 2px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.35;
  font-weight: 400;
  cursor: pointer;
}
.changes > summary:hover { text-decoration: underline; text-underline-offset: .15em; }
.changes ul { margin: 4px 0 0; padding-inline-start: 1.3em; }
.changes li { overflow-wrap: anywhere; }
.detail-actions .danger-link { color: var(--red); }
.detail-actions a { padding-block: 5px; }
.detail-actions .operation-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: auto;
}
.operation-edit::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  --pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.5 5.5 4 4m-15 11 4.8-1.1L20.1 7.6a2.8 2.8 0 0 0-4-4L4.6 15.5Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--pencil) center / contain no-repeat;
  mask: var(--pencil) center / contain no-repeat;
}
@media (forced-colors: active) {
  .operation-edit::after { background: LinkText; forced-color-adjust: none; }
}
.danger:hover { background: #703224; }
.single-panel { max-width: 490px; margin: 13px auto 0; }
.single-panel.contacts-panel { max-width: 42rem; margin: 0; }
.single-panel h1 { margin-bottom: 20px; }
.panel-note { margin-top: 12px; line-height: 1.45; }
.social-provider-name { white-space: nowrap; }
.social-panel { margin-top: 16px; }
.social-panel h2 { margin-bottom: 12px; font-size: 1.125rem; }
.social-panel .hint { margin-bottom: 12px; }
.social-panel .btn, .profile-social-providers .btn { min-height: 44px; }
.yandex-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  background: #000;
  color: #fff;
}
.yandex-login-button img { display: block; max-width: 100%; height: auto; }
.profile-social-providers { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.profile-social-providers p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.hint { margin-top: 5px; color: var(--muted); font-size: .86rem; font-weight: 450; line-height: 1.4; }
.hint:empty { display: none; }
.hint ul { padding-inline-start: 1.3em; margin: 5px 0; }
.field-spaced, .member-field, .field-choice { margin-top: 19px; }
.field-spaced { margin-bottom: 7px; }
.field-choice > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border-radius: 9px;
  background: #f2f4f0;
}
.field-choice > div > div { display: flex; min-width: 0; }
.field-choice > div label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .9rem;
  cursor: pointer;
}
.field-choice label:has(input:checked) { color: var(--green); background: white; border-color: #b6c7b2; }
.field-choice input[type="radio"] { flex: none; width: 1rem; min-height: 0; height: 1rem; margin: 0; accent-color: var(--green); }
.field-choice label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expense-scope > div > div:has(> label[hidden]),
#operation-form:not(:has(input[name="scope"][value="selected"]:checked)) .selected-members {
  display: none;
}
.expense-scope { container: expense-split / inline-size; }
.expense-scope > div:has(input[value="selected"]:enabled) {
  display: flex;
  flex-wrap: wrap;
}
.expense-scope > div:has(input[value="selected"]:enabled) > div {
  flex: 1 0 auto;
  max-width: 100%;
}
@container expense-split (max-width: 24rem) {
  .expense-scope > div:has(input[value="selected"]:enabled) label {
    gap: 4px;
    padding-inline: 4px;
    justify-content: center;
    font-size: .85rem;
  }
}
@container expense-split (max-width: 19rem) {
  .expense-scope > div:has(input[value="selected"]:enabled) input[type="radio"] {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
  }
  .expense-scope label:has(input:focus-visible) { outline: 2px solid var(--green); }
}
.selected-member {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: 5px 4px;
  border-bottom: 1px solid var(--line);
  font-size: .94rem;
  cursor: pointer;
}
.selected-member input[type="checkbox"] {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}
.selected-member-name { min-width: 0; overflow-wrap: anywhere; }
.selected-member-unavailable { color: var(--muted); font-size: .85rem; }
.selected-share {
  margin-inline-start: auto;
  color: var(--green);
  text-align: end;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.field-choice .expense-scope-other { display: none; }
#operation-form:has(input[name="payer_mode"][value="other"]:checked) .expense-scope-self { display: none; }
#operation-form:has(input[name="payer_mode"][value="other"]:checked) .expense-scope-other { display: block; }
.form-fields .errorlist { margin: 0; padding: 0; list-style: none; color: var(--red); font-size: .9rem; line-height: 1.35; }
.field-choice .errorlist { margin-top: 5px; }
.form-fields .errorlist.nonfield { margin-bottom: 13px; }
.form-fields noscript p, .form-fields noscript button { margin-top: 12px; }
.preview h2 { margin-bottom: 10px; }
.preview-note + .preview-note { margin-top: 8px; }
.form-cols .preview .save:first-of-type { margin-top: 10px; }
.messages { list-style: none; margin: 0 0 20px; padding: 0; }
.messages li { padding: 10px 14px; background: #e9eee5; border: 1px solid #cbd8c4; border-radius: 8px; }
.messages li + li { margin-top: 5px; }

@media(max-width:650px) {
  .section .card-main h2 { font-size: 1rem; }
  .card-main { grid-template-columns: minmax(0, 1fr) auto; }
  .history-month { padding-inline: 11px; }
}

@media(max-width:420px) {
  .card-main { grid-template-columns: minmax(0, 1fr); }
  .card-footer { grid-area: auto; margin-top: 8px; text-align: start; }
  .card-status { max-width: none; }
  .pair-total, .hero-total { overflow-wrap: anywhere; }
  .op-name small { overflow-wrap: anywhere; }
  .op-money { max-width: 40%; overflow-wrap: anywhere; white-space: normal; text-align: end; }
}
