.modal-open {
  overflow: hidden;
}
.tx-content {
  min-width: 0;
}
.tx-title,
.tx-sub {
  display: block;
}
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: #252820;
  background: #f6f7f3;
  font-synthesis: none;
  --ink: #252820;
  --muted: #7b8073;
  --line: #e7e9e1;
  --lime: #c9e38b;
  --dark: #1e201c;
  --green: #31815b;
  --red: #b4594e;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7eab47;
  outline-offset: 4px;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dcdfd4;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  min-height: 46px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #8ba85f;
  box-shadow: 0 0 0 3px #c9e38b33;
}
input::placeholder,
textarea::placeholder {
  color: #a3a79b;
}
textarea {
  resize: vertical;
  min-height: 98px;
  line-height: 1.6;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1.1px;
  line-height: 1.25;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.45px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
small,
.small {
  font-size: 12px;
}
label {
  font-size: 13px;
  font-weight: 550;
  display: block;
  margin: 0 0 7px;
}
label span {
  font-weight: 400;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.hidden {
  display: none !important;
}
.boot {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  color: var(--muted);
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
}
.brand strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.brand span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #929789;
  margin-top: 5px;
}
.brand-symbol {
  width: 44px;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 10px;
  background: #1e201c;
  position: relative;
}
.brand-symbol img {
  width: 168px;
  height: 168px;
  max-width: none;
  position: absolute;
  left: -64px;
  top: -56px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 258px;
  background: var(--dark);
  color: #f4f5ef;
  display: flex;
  flex-direction: column;
  padding: 31px 20px 18px;
  z-index: 20;
}
.sidebar .brand {
  padding: 0 9px 32px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  color: #b6bcac;
  font-size: 14px;
  min-height: 46px;
}
.nav button:hover {
  background: #ffffff09;
}
.nav button.active {
  background: #c9e38b;
  color: #24291a;
  font-weight: 600;
}
.nav .count {
  margin-left: auto;
  font-size: 11px;
  border-radius: 6px;
  padding: 3px 6px;
  background: #ffffff12;
}
.nav .active .count {
  background: #00000010;
}
.side-boxes {
  margin-top: 30px;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #454a3b transparent;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #818977;
  padding: 0 14px;
  margin: 22px 0 10px;
}
.side-label:first-child {
  margin-top: 0;
}
.side-box {
  width: 100%;
  padding: 11px 14px;
  text-align: left;
  border-radius: 9px;
  color: #c5cbbc;
  display: grid;
  gap: 4px;
  min-height: 52px;
}
.side-box:hover,
.side-box.selected {
  background: #ffffff08;
  color: #f5f8ef;
}
.side-box.selected {
  box-shadow: inset 2px 0 0 var(--lime);
}
.side-box-name {
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-box-balance {
  font-size: 11px;
  color: #7f8977;
  font-variant-numeric: tabular-nums;
}
.side-box.selected .side-box-balance {
  color: #c9e38b;
}
.profile {
  border-top: 1px solid #363b30;
  margin-top: 20px;
  padding: 18px 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #3d4532;
  color: #d5e5bc;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  flex-shrink: 0;
}
.profile-info {
  flex: 1;
  min-width: 0;
}
.profile-name {
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-role {
  font-size: 10px;
  color: #818977;
  margin-top: 3px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: #00000006;
}
.profile .icon-btn {
  color: #818977;
}
.profile .icon-btn:hover {
  background: #ffffff09;
}
.workspace {
  margin-left: 258px;
  padding: 37px 44px 60px;
  max-width: 1630px;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 16px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #929789;
  margin-bottom: 9px;
}
.topline .date {
  color: #909787;
  font-size: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 11px;
  padding: 11px 17px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.12s,
    transform 0.12s;
}
.btn:hover {
  background: #f0f2e9;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}
.btn.primary:hover {
  background: #353d2a;
}
.btn.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #28321c;
}
.btn.lime:hover {
  background: #bed97e;
}
.btn.subtle {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.btn.subtle:hover {
  background: #e9ece0;
}
.btn.danger {
  color: var(--red);
  background: #fcf4f1;
  border-color: #efdfda;
}
.btn.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 38px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px 25px;
}
.stat:first-child {
  background: #eef3e2;
  border-color: #e6edda;
}
.stat-label {
  font-size: 12px;
  color: #7f8773;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-label svg {
  width: 17px;
  height: 17px;
  opacity: 0.8;
}
.stat-value {
  font-size: 29px;
  letter-spacing: -1.15px;
  font-weight: 550;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.stat-value.positive {
  color: var(--green);
}
.stat-value.negative {
  color: var(--red);
}
.stat-foot {
  font-size: 11px;
  color: #909886;
  margin-top: 9px;
}
.section {
  margin-bottom: 33px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 15px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #e9ece2;
  color: #7a826e;
  white-space: nowrap;
}
.pill.own {
  color: #62794b;
  background: #edf3df;
}
.cashbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
}
.box-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 23px;
  gap: 19px;
  transition:
    border-color 0.15s,
    transform 0.15s;
  min-height: 175px;
  position: relative;
}
.box-card:hover {
  border-color: #b4c697;
  transform: translateY(-2px);
}
.box-card .box-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f1f4ea;
  color: #819764;
}
.box-card .box-mark svg {
  width: 18px;
  height: 18px;
}
.box-card .row {
  align-items: flex-start;
  gap: 12px;
}
.box-card h3 {
  font-size: 14px;
  letter-spacing: -0.15px;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.box-card .amount {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.9px;
  font-variant-numeric: tabular-nums;
}
.box-card .box-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #93998a;
}
.box-footer svg {
  width: 15px;
  height: 15px;
}
.observed-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}
.observed-row {
  display: grid;
  grid-template-columns: 1fr 165px 130px 20px;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 19px 23px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid #f0f1ec;
}
.observed-row:last-child {
  border-bottom: 0;
}
.observed-row:hover {
  background: #f9faf6;
}
.observed-row .amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}
.observed-row .muted {
  font-size: 11px;
}
.observed-row svg {
  width: 15px;
  color: #a8ad9f;
}
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}
.empty {
  padding: 55px 25px;
  text-align: center;
  color: #8b9381;
  font-size: 13px;
}
.empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: #b3bea2;
}
.empty p {
  line-height: 1.7;
}
.empty .btn {
  margin-top: 18px;
}
.toolbar {
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1;
  min-width: 170px;
}
.search > svg {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 18px;
  color: #a0a797;
}
.search input {
  padding-left: 40px;
  background: #fafbf8;
  border-color: #edf0e5;
  font-size: 12px;
  min-height: 42px;
}
.toolbar select {
  width: auto;
  font-size: 12px;
  min-height: 42px;
  padding: 9px 30px 9px 12px;
  background: #fff;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--line);
}
.filter-grid input,
.filter-grid select {
  font-size: 12px;
}
.tx-head,
.tx-row {
  display: grid;
  grid-template-columns: 36px 90px minmax(100px, 1fr) 145px 130px 30px;
  align-items: center;
  column-gap: 10px;
  text-align: left;
  width: 100%;
  padding: 15px 20px;
}
.tx-head {
  background: #fbfcf9;
  border-top: 1px solid #f1f3eb;
  border-bottom: 1px solid #f1f3eb;
  color: #939a88;
  font-size: 10px;
  letter-spacing: 0.2px;
}
.tx-row {
  border-bottom: 1px solid #f1f3eb;
  min-height: 76px;
  background: #fff;
  font-size: 12px;
}
.tx-row:last-child {
  border-bottom: 0;
}
.tx-row:hover {
  background: #fafbf7;
}
.tx-mark {
  height: 30px;
  width: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #eef5ef;
  color: var(--green);
}
.tx-mark.expense {
  color: var(--red);
  background: #faf0ed;
}
.tx-mark.transfer {
  color: #7b7fa3;
  background: #f0f0f8;
}
.tx-mark svg {
  height: 16px;
  width: 16px;
}
.tx-date {
  font-variant-numeric: tabular-nums;
  color: #7e8576;
  font-size: 11px;
}
.tx-title {
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tx-sub {
  font-size: 10px;
  color: #a0a697;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 5px;
}
.tx-author {
  font-size: 10px;
  color: #92998a;
  line-height: 1.55;
}
.tx-amount {
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tx-amount.income {
  color: var(--green);
}
.tx-amount.expense {
  color: var(--red);
}
.tx-file {
  color: #a0a697;
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: flex-end;
  font-size: 9px;
}
.tx-file svg {
  width: 13px;
  height: 13px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-top: 1px solid #f0f2e9;
  gap: 10px;
  font-size: 11px;
  color: #92998a;
}
.pager .row {
  gap: 4px;
}
.pager button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #ebeee3;
  border-radius: 8px;
  color: #6b755e;
}
.pager button svg {
  width: 15px;
  height: 15px;
}
.pager button:disabled {
  opacity: 0.35;
  cursor: default;
}
.pager select {
  width: 64px;
  min-height: 31px;
  padding: 4px 5px;
  font-size: 11px;
  border-color: #ebeee3;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #89937c;
  padding: 0;
  margin-bottom: 19px;
}
.back-link svg {
  height: 14px;
  width: 14px;
}
.cashbox-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}
.cashbox-heading h1 {
  font-size: 27px;
  max-width: 600px;
  line-height: 1.35;
}
.cashbox-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 11px;
  color: #92998a;
}
.balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #eef3e2;
  border: 1px solid #e3ebd4;
  border-radius: var(--radius);
  padding: 27px 30px;
  margin-bottom: 28px;
}
.balance-strip .amount {
  font-size: 36px;
  letter-spacing: -1.5px;
  font-weight: 550;
  margin-top: 9px;
  font-variant-numeric: tabular-nums;
}
.balance-strip .muted {
  font-size: 11px;
}
.balance-strip .row {
  gap: 9px;
}
.balance-strip .btn {
  background: #fff9;
  border-color: #dde6cf;
  min-width: 115px;
}
.balance-strip .btn:first-child {
  color: var(--green);
}
.balance-strip .btn:nth-child(2) {
  color: var(--red);
}
.balance-strip .btn:nth-child(3) {
  color: #74799a;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tabs button {
  font-size: 13px;
  padding: 10px 0 14px;
  color: #99a18e;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: #3f4e2d;
  border-color: #879c69;
}
.draft-list {
  display: grid;
  gap: 12px;
}
.draft-card {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 23px;
  width: 100%;
}
.draft-card:hover {
  border-color: #b4c697;
}
.draft-card > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.draft-card .amount {
  font-size: 21px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.draft-card h3 {
  font-size: 14px;
}
.draft-card .muted {
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.5;
}
.report-form {
  padding: 25px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 15px;
  align-items: end;
  margin-bottom: 25px;
}
.report-form .btn {
  min-height: 46px;
}
.report-head {
  padding: 25px 26px;
  border-bottom: 1px solid var(--line);
}
.report-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 28px;
}
.report-cell {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.report-cell strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.report-bottom {
  padding: 23px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.report-bottom strong {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.6px;
}
.settings-card {
  padding: 25px;
  max-width: 760px;
  margin-bottom: 20px;
}
.settings-card h3 {
  margin-bottom: 18px;
}
.settings-card .row input {
  flex: 1;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f0f2e9;
}
.person-row .person-name {
  flex: 1;
  font-size: 13px;
}
.person-row .avatar {
  background: #f0f3e9;
  color: #8b9b76;
}
.person-row .icon-btn {
  color: #a6ae9a;
}
.settings-card .add-person {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}
.settings-card .add-person select {
  font-size: 12px;
  flex: 1;
}
.settings-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #8f9981;
  margin-top: 6px;
}
.mobile-top {
  display: none;
}
.shade {
  position: fixed;
  inset: 0;
  background: #1b201a55;
  z-index: 39;
  backdrop-filter: blur(3px);
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 565px;
  max-width: 100%;
  background: #fff;
  z-index: 40;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 70px #1d251410;
  animation: enter 0.18s ease-out;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 30px 21px;
  border-bottom: 1px solid var(--line);
}
.drawer-header h2 {
  font-size: 21px;
}
.drawer-body {
  padding: 28px 30px;
  overflow: auto;
  flex: 1;
  overscroll-behavior: contain;
}
.drawer-footer {
  border-top: 1px solid var(--line);
  padding: 18px 30px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}
.drawer-footer .btn {
  flex: 1;
}
.field {
  margin-bottom: 21px;
}
.field .hint {
  font-size: 11px;
  color: #969f89;
  margin-top: 7px;
  line-height: 1.5;
}
.amount-field {
  position: relative;
}
.amount-field input {
  font-size: 32px;
  letter-spacing: -0.7px;
  padding: 18px 45px 18px 18px;
  min-height: 78px;
  font-variant-numeric: tabular-nums;
}
.amount-field span {
  position: absolute;
  right: 20px;
  top: 26px;
  color: #a6ad9c;
  font-size: 22px;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #f3f5ee;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 26px;
}
.segmented button {
  padding: 11px 6px;
  border-radius: 9px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.segmented button svg {
  width: 15px;
  height: 15px;
}
.segmented button.active {
  background: white;
  box-shadow: 0 2px 6px #00000008;
}
.segmented .income {
  color: var(--green);
}
.segmented .expense {
  color: var(--red);
}
.segmented .transfer {
  color: #7b7fa3;
}
.dropzone {
  border: 1px dashed #cbd4bf;
  background: #fafcf7;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: #8c997c;
  position: relative;
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
}
.dropzone svg {
  width: 23px;
  height: 23px;
  margin-bottom: 9px;
}
.dropzone strong {
  font-weight: 500;
  font-size: 12px;
  display: block;
}
.dropzone small {
  font-size: 10px;
  display: block;
  margin-top: 6px;
  color: #a5ae9c;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 9px;
  padding: 12px;
}
.file-row > svg {
  color: #929e84;
  width: 17px;
}
.file-row .file-label {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.file-row small {
  color: #9ca68f;
  display: block;
  margin-top: 4px;
  font-size: 9px;
}
.file-row a {
  font-size: 11px;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.file-row .icon-btn {
  width: 28px;
  height: 28px;
  color: #a4ad97;
}
.file-row .icon-btn svg {
  height: 14px;
  width: 14px;
}
.detail-amount {
  font-size: 44px;
  letter-spacing: -1.8px;
  font-weight: 550;
  text-align: center;
  margin: 15px 0 8px;
  font-variant-numeric: tabular-nums;
}
.detail-kind {
  text-align: center;
  color: #9ba58e;
  font-size: 11px;
  margin-bottom: 33px;
}
.detail-list {
  display: grid;
  gap: 22px;
  margin: 26px 0 30px;
}
.detail-label {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #9aa48e;
  margin-bottom: 7px;
}
.detail-value {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.note {
  background: #f5f7ef;
  border-radius: 11px;
  padding: 14px 16px;
  font-size: 11px;
  color: #83916e;
  line-height: 1.6;
  margin: 23px 0;
}
.draft-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.dialog-shade {
  position: fixed;
  inset: 0;
  background: #1b201a66;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.dialog {
  background: white;
  border-radius: 20px;
  padding: 27px;
  width: 430px;
  max-width: 100%;
  box-shadow: 0 20px 100px #0002;
}
.dialog h2 {
  margin-bottom: 21px;
}
.dialog .row {
  justify-content: flex-end;
  margin-top: 25px;
}
.dialog p {
  line-height: 1.7;
  font-size: 13px;
  color: #8b977b;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-art {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px 65px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid #c9e38b18;
  border-radius: 50%;
  bottom: -190px;
  left: -170px;
  box-shadow:
    0 0 0 85px #c9e38b06,
    0 0 0 170px #c9e38b04;
  pointer-events: none;
}
.login-art .brand {
  position: relative;
  z-index: 1;
}
.login-art .brand strong {
  font-size: 20px;
}
.login-art .brand-symbol {
  width: 58px;
  height: 68px;
}
.login-art .brand-symbol img {
  width: 225px;
  height: 225px;
  left: -85px;
  top: -76px;
}
.login-art h1 {
  font-size: 51px;
  font-weight: 450;
  letter-spacing: -2.5px;
  line-height: 1.15;
  max-width: 400px;
  z-index: 1;
}
.login-art h1 span {
  color: var(--lime);
}
.login-art > small {
  color: #6e7860;
  font-size: 10px;
  letter-spacing: 1.3px;
  z-index: 1;
}
.login-form-area {
  display: grid;
  place-items: center;
  padding: 50px;
}
.login-form {
  width: 350px;
  max-width: 100%;
}
.login-form h2 {
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -0.9px;
  margin-bottom: 13px;
}
.login-form p {
  font-size: 13px;
  color: #909a83;
  line-height: 1.8;
  margin-bottom: 30px;
}
.login-form input {
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  padding: 15px;
  letter-spacing: 0.6px;
}
.login-form > .btn,
.login-form form > .btn {
  width: 100%;
  margin-top: 17px;
  min-height: 49px;
}
.login-bots {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 30px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #939e85;
}
.login-bots a {
  text-decoration: none;
  color: #677551;
  padding: 6px;
}
.login-foot {
  font-size: 10px;
  line-height: 1.7;
  color: #a9b19d;
  margin-top: 22px;
}
.inline-error {
  color: #b2594b;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 13px;
}
[hidden] {
  display: none !important;
}
.login-guide {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 22px;
  font-size: 14px;
}
.login-guide summary {
  list-style: none;
  cursor: pointer;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 550;
}
.login-guide summary::-webkit-details-marker {
  display: none;
}
.login-guide summary svg {
  width: 17px;
  height: 17px;
  transition: transform 0.15s;
}
.login-guide[open] summary svg {
  transform: rotate(90deg);
}
.guide-content {
  padding: 0 15px 12px;
}
.guide-content ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.65;
}
.guide-content li {
  padding-bottom: 9px;
}
.login-form .guide-content p {
  color: #65705b;
  font-size: 12px;
  line-height: 1.65;
  margin: 8px 0 0;
}
.guide-figure {
  position: relative;
  margin: 4px 0 15px;
  padding-top: 34px;
}
.guide-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.guide-arrow {
  position: absolute;
  top: 28px;
  left: 43%;
  width: 65px;
  height: 85px;
  fill: none;
  stroke: #df6a38;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px #fff);
  pointer-events: none;
}
.install-help {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 20px;
}
.install-help summary {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  min-height: 44px;
}
.install-help summary svg {
  width: 18px;
  height: 18px;
}
.install-help p {
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.6;
  color: inherit;
}
.install-help .btn {
  margin: 8px 0;
  width: 100%;
}
.sidebar > .install-help {
  margin: 0 20px 8px;
  color: #b8c5a7;
  flex-shrink: 0;
}
.sidebar > .install-help > div {
  max-height: 220px;
  overflow: auto;
}
.recent-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.recent-categories button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7ef;
  color: #586b3f;
  padding: 8px 10px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  min-height: 36px;
}
.recent-categories button:hover {
  background: #eaf0dd;
}
.field-hint {
  color: #7c8770;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 7px;
}
#connection-status {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 14px 18px;
  border: 1px solid #e7d59e;
  border-radius: 12px;
  background: #fff6d9;
  color: #6b521c;
  box-shadow: 0 6px 25px #0002;
  z-index: 110;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
@media (display-mode: standalone) {
  .install-help {
    display: none;
  }
  body {
    overscroll-behavior-y: contain;
  }
  .sidebar {
    padding-top: max(25px, env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
  }
}
.mobile-switcher {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 129px);
  transform: translateX(-50%) translateY(100px);
  background: #28321f;
  color: #f4f8ee;
  padding: 13px 20px;
  font-size: 12px;
  border-radius: 11px;
  z-index: 80;
  box-shadow: 0 6px 25px #1b201a26;
  transition: transform 0.2s;
  max-width: calc(100% - 30px);
  line-height: 1.6;
}
#toast.visible {
  transform: translateX(-50%) translateY(0);
}
#toast.error {
  background: #8c443a;
}
.error-banner {
  border: 1px solid #e9cdc5;
  background: #fff6f3;
  color: #a25543;
  padding: 13px 18px;
  font-size: 12px;
  border-radius: 10px;
  margin-bottom: 22px;
  line-height: 1.5;
}
.loader {
  padding: 50px;
  text-align: center;
  color: #9ca78c;
  font-size: 12px;
}
.readonly {
  font-size: 11px;
  color: #9ba68e;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes enter {
  from {
    transform: translateX(30px);
    opacity: 0.3;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (min-width: 1500px) {
  .workspace {
    padding: 42px 65px 65px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 226px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .workspace {
    margin-left: 226px;
    padding: 30px 26px 50px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 21px;
  }
  .stat-value {
    font-size: 25px;
  }
  .tx-head,
  .tx-row {
    grid-template-columns: 30px 76px minmax(80px, 1fr) 112px 110px 20px;
    column-gap: 8px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .balance-strip {
    padding: 23px;
  }
  .balance-strip .row {
    gap: 5px;
  }
  .balance-strip .btn {
    min-width: 0;
    padding: 10px 12px;
  }
  .report-form {
    grid-template-columns: 1fr 1fr;
  }
  .observed-row {
    grid-template-columns: 1fr 130px 110px 16px;
    gap: 12px;
  }
  #toast {
    left: calc(50% + 113px);
  }
}
@media (max-width: 800px) {
  .sidebar {
    display: none;
  }
  .sidebar.mobile-open {
    display: flex;
    width: 285px;
    z-index: 45;
    box-shadow: 20px 0 60px #0003;
  }
  .sidebar.mobile-open .brand {
    padding-bottom: 24px;
  }
  .mobile-nav-shade {
    position: fixed;
    inset: 0;
    z-index: 44;
    background: #18201066;
    backdrop-filter: blur(2px);
  }
  .workspace {
    margin: 0;
    padding: 24px 21px 40px;
  }
  .mobile-top {
    display: flex;
    background: #fff;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 12px 18px;
    position: sticky;
    top: 0;
    z-index: 15;
  }
  .mobile-top .brand-symbol {
    width: 28px;
    height: 34px;
    border-radius: 7px;
  }
  .mobile-top .brand-symbol img {
    width: 118px;
    height: 118px;
    left: -45px;
    top: -40px;
  }
  .mobile-top .brand {
    gap: 9px;
  }
  .mobile-top .brand strong {
    font-size: 13px;
  }
  .mobile-top .brand span {
    font-size: 9px;
    margin-top: 3px;
  }
  .topline {
    margin-bottom: 24px;
  }
  .topline .date {
    display: none;
  }
  h1 {
    font-size: 27px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .stats {
    margin-bottom: 28px;
    gap: 9px;
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .stat {
    padding: 17px 15px;
  }
  .stat-value {
    font-size: 22px;
    margin-top: 13px;
  }
  .stat-label {
    font-size: 10px;
    gap: 5px;
  }
  .stat-label svg {
    display: none;
  }
  .stat-foot {
    font-size: 9px;
  }
  .cashbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .box-card {
    padding: 19px;
    min-height: 162px;
    gap: 16px;
  }
  .box-card h3 {
    font-size: 13px;
  }
  .box-card .amount {
    font-size: 24px;
  }
  .observed-row {
    grid-template-columns: 1fr 100px 16px;
    padding: 18px;
    gap: 13px;
  }
  .observed-row .owner-col {
    display: none;
  }
  .section {
    margin-bottom: 27px;
  }
  .section-head h2 {
    font-size: 17px;
  }
  .tx-head,
  .tx-row {
    grid-template-columns: 30px 68px minmax(70px, 1fr) 110px 20px;
  }
  .tx-author {
    display: none;
  }
  .cashbox-heading h1 {
    font-size: 25px;
  }
  .balance-strip .amount {
    font-size: 31px;
  }
  .report-form {
    padding: 20px;
  }
  .login-art {
    padding: 45px;
  }
  .login-art h1 {
    font-size: 39px;
  }
  .login-form-area {
    padding: 30px;
  }
  .mobile-switcher {
    display: block;
    margin: 0 0 22px;
  }
  .mobile-switcher select {
    font-size: 12px;
    background: #fff;
    min-height: 44px;
  }
  .pager {
    font-size: 10px;
  }
  .pager .row {
    gap: 3px;
  }
  .drawer {
    width: 550px;
  }
  #toast {
    left: 50%;
  }
}
@media (max-width: 520px) {
  .workspace {
    padding: 23px 16px 35px;
  }
  .topline {
    gap: 10px;
    margin-bottom: 23px;
  }
  .topline .btn {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 11px;
  }
  .topline h1 {
    font-size: 25px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 29px;
    gap: 10px;
  }
  .stat:first-child {
    grid-column: 1/-1;
    padding: 22px 23px;
  }
  .stat:first-child .stat-value {
    font-size: 36px;
    margin-top: 8px;
  }
  .stat {
    padding: 17px 19px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-foot {
    margin-top: 5px;
  }
  .cashbox-grid {
    gap: 10px;
  }
  .box-card {
    padding: 17px 15px;
    gap: 17px;
    min-height: 174px;
  }
  .box-card .row {
    display: block;
  }
  .box-card .box-mark {
    width: 27px;
    height: 27px;
    margin-bottom: 11px;
  }
  .box-card .box-mark svg {
    width: 16px;
    height: 16px;
  }
  .box-card h3 {
    font-size: 12px;
    line-height: 1.5;
    height: 36px;
  }
  .box-card .amount {
    font-size: 22px;
    letter-spacing: -0.7px;
  }
  .box-card .box-footer {
    font-size: 9px;
  }
  .section-head {
    margin-bottom: 14px;
  }
  .observed-row {
    font-size: 12px;
    padding: 16px;
    gap: 8px;
    grid-template-columns: 1fr 102px 13px;
  }
  .observed-row .amount {
    font-size: 12px;
  }
  .tx-head {
    display: none;
  }
  .tx-row {
    grid-template-columns: 28px minmax(90px, 1fr) 110px 13px;
    column-gap: 10px;
    position: relative;
    padding: 18px 14px;
    min-height: 84px;
  }
  .tx-date {
    position: absolute;
    left: 52px;
    bottom: 16px;
    font-size: 10px;
  }
  .tx-content {
    padding-bottom: 16px;
    min-width: 0;
  }
  .tx-title {
    font-size: 12px;
  }
  .tx-sub {
    display: none;
  }
  .tx-amount {
    font-size: 12px;
    align-self: start;
    padding-top: 3px;
  }
  .tx-mark {
    width: 27px;
    height: 27px;
    align-self: start;
  }
  .tx-file {
    align-self: start;
    padding-top: 5px;
    font-size: 8px;
  }
  .tx-file svg {
    width: 11px;
    height: 11px;
  }
  .toolbar {
    padding: 13px;
    gap: 7px;
  }
  .toolbar .search {
    min-width: 140px;
  }
  .toolbar .btn {
    padding: 10px;
    min-height: 42px;
  }
  .toolbar .btn .filter-label {
    display: none;
  }
  .toolbar select {
    max-width: 110px;
    font-size: 10px;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 13px 14px;
    gap: 9px;
  }
  .filter-grid .field:last-child {
    grid-column: 1/-1;
  }
  .filter-grid .field {
    margin: 0;
  }
  .pager {
    padding: 14px 12px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .pager select {
    width: 52px;
  }
  .pager button {
    width: 28px;
    height: 29px;
  }
  .pager .page-label {
    font-size: 10px;
    padding: 0 5px;
  }
  .cashbox-heading {
    margin-bottom: 21px;
    gap: 8px;
  }
  .cashbox-heading h1 {
    font-size: 23px;
    letter-spacing: -0.6px;
  }
  .cashbox-meta {
    gap: 8px;
    margin-top: 10px;
    font-size: 10px;
  }
  .cashbox-meta .pill {
    font-size: 9px;
  }
  .balance-strip {
    padding: 21px 22px;
    display: block;
    margin-bottom: 23px;
  }
  .balance-strip .amount {
    font-size: 35px;
  }
  .balance-strip .row {
    margin-top: 22px;
    gap: 7px;
  }
  .balance-strip .btn {
    flex: 1;
    font-size: 11px;
    padding: 10px 7px;
    min-height: 40px;
  }
  .balance-strip .btn svg {
    width: 15px;
    height: 15px;
  }
  .drawer {
    width: 100%;
    border-radius: 18px 18px 0 0;
    inset: 12px 0 0;
  }
  .drawer-header {
    padding: 22px 21px 17px;
  }
  .drawer-header h2 {
    font-size: 20px;
  }
  .drawer-body {
    padding: 24px 21px;
  }
  .drawer-footer {
    padding: 15px 21px calc(15px + env(safe-area-inset-bottom));
  }
  .drawer-footer .btn {
    font-size: 12px;
    padding-left: 12px;
    padding-right: 12px;
    min-height: 46px;
  }
  .detail-amount {
    font-size: 39px;
  }
  .draft-card {
    padding: 19px 17px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .draft-card .amount {
    font-size: 20px;
  }
  .draft-card h3 {
    font-size: 13px;
  }
  .draft-card .muted {
    font-size: 10px;
  }
  .report-form {
    grid-template-columns: 1fr 1fr;
    padding: 19px;
    gap: 15px 10px;
  }
  .report-form .field {
    margin: 0;
  }
  .report-form .field:first-child {
    grid-column: 1/-1;
  }
  .report-form .btn {
    grid-column: 1/-1;
  }
  .report-form input,
  .report-form select {
    font-size: 12px;
    padding: 11px 8px;
  }
  .report-head {
    padding: 21px;
  }
  .report-head .row {
    align-items: flex-start;
  }
  .report-head h3 {
    font-size: 14px;
  }
  .report-stats {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 23px 21px;
  }
  .report-bottom {
    padding: 22px 21px;
  }
  .report-bottom strong {
    font-size: 24px;
  }
  .settings-card {
    padding: 21px;
  }
  .settings-card .row {
    gap: 7px;
  }
  .settings-card .row .btn {
    padding: 11px 12px;
    font-size: 12px;
  }
  .settings-card .add-person {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
  }
  .settings-card .add-person select {
    font-size: 11px;
    padding: 10px;
  }
  .person-row .person-name {
    font-size: 12px;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 28px 26px 32px;
    min-height: 270px;
    gap: 45px;
  }
  .login-art .brand strong {
    font-size: 16px;
  }
  .login-art .brand span {
    font-size: 10px;
  }
  .login-art .brand-symbol {
    width: 43px;
    height: 49px;
  }
  .login-art .brand-symbol img {
    width: 170px;
    height: 170px;
    left: -65px;
    top: -57px;
  }
  .login-art h1 {
    font-size: 32px;
    letter-spacing: -1.2px;
    max-width: 300px;
  }
  .login-art > small {
    display: none;
  }
  .login-art:after {
    width: 300px;
    height: 300px;
    left: auto;
    right: -210px;
    bottom: -110px;
  }
  .login-form-area {
    display: block;
    padding: 36px 26px 45px;
  }
  .login-form {
    width: 100%;
  }
  .login-form h2 {
    font-size: 24px;
  }
  .login-form p {
    font-size: 12px;
    margin-bottom: 24px;
  }
  .login-form input {
    font-size: 12px;
  }
  .login-bots {
    font-size: 10px;
  }
  .login-foot {
    font-size: 10px;
  }
  .dialog {
    padding: 24px;
  }
  .dialog h2 {
    font-size: 21px;
  }
  .mobile-switcher {
    margin-bottom: 18px;
  }
  .back-link {
    margin-bottom: 17px;
  }
  .pill {
    font-size: 9px;
  }
  .tabs {
    gap: 24px;
  }
  .tabs button {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
