:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #0b1120;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --muted: #727e91;
  --green: #078d65;
  --red: #e83235;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: #d5dfe7;
  background-image:
    radial-gradient(ellipse at 9% 9%, #e2eef9 0%, transparent 48%),
    radial-gradient(ellipse at 84% 25%, #becbd7 0%, transparent 46%),
    radial-gradient(ellipse at 17% 62%, #eeece8 0%, transparent 37%),
    radial-gradient(ellipse at 88% 79%, #d9e6ec 0%, transparent 46%),
    linear-gradient(135deg, #cad8e2, #e0e6e6 50%, #cbd6e2);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid #078d65; outline-offset: 4px; }
button:active { opacity: .8; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid #078d65; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
img { display: block; object-fit: cover; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.glass {
  border: 1px solid rgba(255,255,255,.82);
  background: linear-gradient(120deg, rgba(255,255,255,.56), rgba(248,252,255,.33) 58%, rgba(255,255,255,.56));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 28px rgba(69,90,113,.055);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  backdrop-filter: blur(20px) saturate(115%);
}
.app-shell { width: 100%; max-width: 480px; margin: 0 auto; padding: 54px 21px 104px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 17px; }
h1 { font-size: clamp(20px, 5.6vw, 25px); font-weight: 700; letter-spacing: -.65px; line-height: 1.16; white-space: nowrap; }
.greeting > p { margin-top: 4px; color: #69768b; font-size: clamp(11px, 3.1vw, 14px); letter-spacing: .08px; white-space: nowrap; }
.header-controls { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.notification { position: relative; display: grid; place-items: center; width: 31px; height: 32px; border-radius: 13px; color: #3d4859; background: rgba(255,255,255,.23); }
.notification .icon { width: 21px; height: 21px; }
.notification-dot { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; background: #f23738; border: 1px solid #f3f5f5; border-radius: 50%; }
.profile-button { width: 42px; height: 42px; overflow: hidden; border-radius: 50%; border: 1px solid white; box-shadow: 0 3px 10px #65758712; }
.profile-button img { width: 100%; height: 100%; }
.balance-card { padding: 16px 15px 14px; border-radius: 23px; }
.balance-heading { display: flex; align-items: center; gap: 8px; }
.balance-heading h2 { font-size: 14px; font-weight: 550; letter-spacing: -.3px; }
.info-button { display: grid; place-items: center; color: #738093; }
.info-button .icon { width: 15px; height: 15px; }
.balance-main { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.balance-amount { color: var(--green); font-size: 32px; line-height: 1.22; font-weight: 720; letter-spacing: .35px; }
.balance-caption { color: #6c788b; font-size: 14px; margin-top: 3px; }
.balance-details { padding: 6px 0 6px 8px; margin-top: -8px; color: #273247; }
.balance-details .icon { width: 17px; height: 17px; }
.balance-stats { display: grid; grid-template-columns: 1fr 1fr 1.1fr; margin-top: 12px; padding-top: 10px; border-top: 1px solid #d0d9e073; box-shadow: inset 0 1px 0 #ffffff8c; }
.stat { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 9px; }
.stat + .stat { border-left: 1px solid #cbd4de8a; padding-left: 10px; }
.stat:last-child { padding-right: 0; gap: 8px; }
.stat-icon { display: grid; place-items: center; width: 32px; height: 35px; border-radius: 14px; border: 1px solid #ffffff91; flex-shrink: 0; }
.stat-icon .icon { width: 21px; height: 21px; }
.income { background: #d2f1e5ad; color: var(--green); }
.expense { background: #ffe6e8b0; color: var(--red); }
.groups { background: #e7ecf253; color: #3a4558; }
.groups .icon { width: 19px; height: 19px; }
.stat-number { font-size: 14px; font-weight: 650; letter-spacing: -.3px; white-space: nowrap; }
.stat-label { margin-top: 5px; color: #6c778b; font-size: 9.5px; letter-spacing: -.15px; white-space: nowrap; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.quick-action { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 62px; padding: 11px 9px 11px 12px; border-radius: 16px; text-align: left; }
.action-icon { display: grid; place-items: center; width: 37px; height: 37px; flex-shrink: 0; }
.manual .action-icon { border: 1px solid #ffffff88; border-radius: 16px; background: #eef3f723; color: #313e51; }
.action-icon .icon { width: 24px; height: 24px; }
.action-copy { min-width: 0; display: block; }
.action-title { display: block; font-size: 13px; font-weight: 550; letter-spacing: -.3px; white-space: nowrap; }
.action-subtitle { display: block; margin-top: 5px; color: #6d7a8d; font-size: 9px; white-space: nowrap; letter-spacing: -.15px; }
.action-chevron { width: 14px; height: 14px; margin-left: auto; color: #344053; }
.scan { color: white; padding-left: 14px; gap: 9px; background: linear-gradient(115deg, #99d2bbad, #55b899dc 53%, #8acbacbd); box-shadow: inset 0 1px 0 #ffffff65, 0 12px 28px #3b806e16; }
.scan .action-title { font-weight: 450; font-size: 12px; }
.scan .action-subtitle { color: #e3f5ed; font-size: 7.5px; }
.scan .action-icon { width: 28px; }
.scan .action-icon .icon { width: 26px; height: 26px; }
.scan .action-chevron { color: white; margin-left: -6px; }
.receipts { margin-top: 25px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.section-heading h2 { font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.see-all { display: flex; align-items: center; gap: 5px; color: #6c778a; font-size: 12px; }
.see-all .icon { width: 15px; height: 15px; }
.receipt-list { display: grid; gap: 6px; }
.receipt { display: grid; grid-template-columns: 62px minmax(0,1fr) auto 8px; align-items: center; gap: 13px; min-height: 80px; padding: 8px 11px 8px 9px; border-radius: 17px; box-shadow: inset 0 1px 0 #ffffff69, 0 4px 13px #5b6d8405; }
.receipt-photo { width: 62px; height: 62px; border-radius: 11px; }
.receipt-info { min-width: 0; }
.receipt-info h3 { font-size: 13.5px; font-weight: 620; letter-spacing: -.3px; line-height: 1.2; white-space: nowrap; }
.receipt-meta { margin-top: 4px; color: #758196; font-size: 11px; line-height: 1.2; white-space: nowrap; letter-spacing: .02px; }
.avatars { display: flex; align-items: center; margin-top: 5px; }
.avatars img, .avatar-more { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #fbfdffe6; }
.avatars img + img { margin-left: -4px; }
.avatar-more { display: grid; place-items: center; margin-left: 2px; font-size: 10px; background: #f5f8fb3d; }
.receipt-summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 88px; }
.status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 25px; padding: 0 10px; border-radius: 16px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.status .icon { width: 14px; height: 14px; }
.closed { color: var(--green); background: #c4ecdd8c; }
.open { color: #e62e31; background: #f7d8dc94; }
.receipt-amount { margin-top: 6px; font-size: 15px; font-weight: 660; letter-spacing: -.3px; white-space: nowrap; }
.receipt-direction { margin-top: 3px; color: #788497; font-size: 10px; white-space: nowrap; }
.receipt-details { display: grid; place-items: center; color: #7b8597; width: 10px; }
.receipt-details .icon { width: 14px; height: 14px; }
.bottom-nav { position: fixed; z-index: 5; left: 0; right: 0; margin-inline: auto; bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100% - 10px); max-width: 512px; display: grid; grid-template-columns: repeat(5,1fr); padding: 7px 13px 8px; border-radius: 29px; background: linear-gradient(110deg, #ecf4ffc2, #f0f5f8b8 45%, #fafcfcb3); box-shadow: inset 0 1px 0 #ffffff99, 0 12px 36px #7383991a; -webkit-backdrop-filter: blur(28px) saturate(120%); backdrop-filter: blur(28px) saturate(120%); }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 58px; color: #6f7b8e; border-radius: 17px; font-size: 11px; }
.nav-item .icon { width: 25px; height: 25px; color: #596477; }
.nav-item img { width: 28px; height: 28px; border-radius: 50%; }
.nav-item.active { background: linear-gradient(140deg, #f4f8fd68, #f9fdfebd); color: var(--green); font-weight: 550; }
.nav-item.active .icon { color: #09956a; }
@media (max-width: 400px) {
  .app-shell { padding-left: 16px; padding-right: 16px; padding-top: 38px; }
  .header-controls { gap: 8px; }
  .notification { width: 28px; height: 30px; }
  .profile-button { width: 37px; height: 37px; }
  .balance-card { padding-left: 13px; padding-right: 13px; }
  .stat { gap: 7px; padding-right: 7px; }
  .stat + .stat { padding-left: 8px; }
  .stat:last-child { gap: 7px; }
  .stat-icon { width: 29px; height: 33px; }
  .stat-number { font-size: 13px; }
  .stat-label { font-size: 9px; }
  .quick-action { padding-left: 9px; padding-right: 7px; gap: 5px; }
  .manual .action-icon { width: 32px; }
  .action-chevron { width: 12px; height: 12px; }
  .action-title { font-size: 12px; }
  .action-subtitle { font-size: 8px; }
  .scan .action-copy { flex: 1; }
  .scan .action-subtitle { font-size: 8px; line-height: 1.3; white-space: normal; }
  .scan .action-icon { width: 28px; }
  .receipt { grid-template-columns: 57px minmax(0,1fr) auto 7px; gap: 10px; padding-left: 8px; padding-right: 9px; }
  .receipt-photo { width: 57px; height: 62px; }
  .receipt-info h3 { font-size: 12px; }
  .receipt-meta { font-size: 10px; }
  .receipt-summary { min-width: 78px; }
  .status { font-size: 9px; padding: 0 8px; }
  .receipt-direction { font-size: 9px; }
}
@media (max-width: 350px) {
  .app-shell { padding-left: 12px; padding-right: 12px; }
  .greeting > p { font-size: 10px; }
  h1 { font-size: 18px; }
  .header-controls { gap: 6px; }
  .balance-stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { gap: 5px; }
  .stat + .stat { padding-left: 5px; }
  .stat-icon { width: 25px; }
  .stat:last-child { gap: 5px; }
  .stat-number { font-size: 12px; }
  .stat-label { font-size: 8px; }
  .quick-action { gap: 5px; }
  .manual .action-icon { width: 28px; height: 34px; }
  .action-title { font-size: 10px; }
  .action-copy { flex: 1; }
  .action-subtitle { font-size: 8px; line-height: 1.3; white-space: normal; }
  .scan .action-title { font-size: 10px; }
  .scan .action-subtitle { font-size: 8px; }
  .section-heading h2 { font-size: 18px; }
  .see-all { font-size: 10px; }
  .receipt { grid-template-columns: 50px minmax(0,1fr) auto 5px; gap: 7px; }
  .receipt-photo { width: 50px; height: 60px; }
  .receipt-info h3 { font-size: 11px; }
  .receipt-meta { font-size: 9px; }
  .avatars img, .avatar-more { width: 23px; height: 23px; }
  .receipt-summary { min-width: 73px; }
}
@media (min-width: 700px) {
  .app-shell { padding-top: 48px; }
  .bottom-nav { max-width: 458px; bottom: 18px; }
}

/* Secondary screens share the glass surface and navigation of the home page. */
.contacts-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contacts-title-row h1 { font-size: 26px; }
.contacts-header > p { font-size: 12px; color: #77879c; margin-top: 5px; }
.add-contact { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 13px; border-radius: 10px; background: linear-gradient(110deg, #22aa85, #179c79); color: white; font-size: 12px; white-space: nowrap; }
.add-contact .icon { width: 20px; height: 20px; }
.contact-search { display: flex; align-items: center; gap: 12px; border-radius: 13px; padding: 12px 15px; margin-top: 15px; color: #758095; }
.contact-search .icon { width: 22px; height: 22px; }
.contact-search input { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; border: 0; background: none; outline: none; color: #253147; font: inherit; font-size: 12px; }
.contact-search input::placeholder { color: #7b899e; opacity: 1; }
.contact-search:focus-within { outline: 2px solid #078d65; outline-offset: 3px; }
.pinned-contacts { margin-top: 23px; }
.contacts-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 7px; }
.contacts-section-heading h2 { display: flex; align-items: center; gap: 8px; color: #3c485d; font-size: 15px; font-weight: 600; }
.contacts-section-heading h2 .icon { width: 17px; height: 17px; color: #798599; }
.contacts-section-heading > button { font-size: 11px; color: #7b879b; }
.contact-list { list-style: none; margin: 0; padding: 0; border-radius: 15px; overflow: hidden; }
.contact-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 14px; min-height: 54px; }
.contact-row + .contact-row::before { position: absolute; top: 0; left: 61px; right: 0; border-top: 1px solid #ffffff73; content: ''; }
.contact-initials { display: grid; place-items: center; width: 37px; height: 37px; flex-shrink: 0; border-radius: 50%; font-size: 13px; font-weight: 550; }
.mint { background: #cdece2aa; color: #19977b; }
.lavender { background: #e4defcb0; color: #7764bc; }
.blue { background: #d1e3fbb0; color: #427fbb; }
.rose { background: #f9dbddad; color: #bc5355; }
.peach { background: #f8e6d9b0; color: #a87554; }
.pink { background: #f2d7e5b0; color: #b35787; }
.contact-copy { flex: 1; min-width: 0; }
.contact-copy h3 { font-size: 13px; font-weight: 600; letter-spacing: -.2px; }
.contact-copy > p { font-size: 11px; color: #7c899d; margin-top: 4px; }
.contact-pin { color: #20a587; display: grid; place-items: center; width: 25px; height: 30px; }
.contact-pin .icon { width: 19px; height: 19px; }
.contact-details { display: grid; place-items: center; color: #8390a2; width: 18px; height: 30px; }
.contact-details .icon { width: 17px; height: 17px; }
.all-contacts { position: relative; margin-top: 22px; padding-right: 12px; }
.all-contacts > h2 { color: #526073; font-size: 17px; font-weight: 650; }
.contact-letter { margin-top: 14px; }
.contact-letter > h2 { color: #6e7b8e; font-size: 13px; font-weight: 550; margin-bottom: 6px; }
.contacts-alphabet { position: absolute; display: grid; gap: 3px; top: 44px; right: -9px; color: #7f8a9c; text-align: center; font-size: 10px; }
.filled-person { fill: #0b9a72; stroke: #0b9a72; }
.history-header { margin-bottom: 21px; }
.history-header h1 { font-size: 26px; letter-spacing: -.65px; }
.header-tool { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #465368; background: #f4f9fc51; }
.header-tool .icon { width: 21px; height: 21px; }
.status-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 13px; padding: 2px; background: #eef6ff30; }
.status-tab { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; border-radius: 11px; color: #67758a; font-size: 11px; white-space: nowrap; }
.status-tab.selected { color: #172035; font-weight: 600; background: linear-gradient(115deg, #f8fcffde, #ffffffbe); box-shadow: 0 2px 7px #66738a20; }
.filter-dot { width: 5px; height: 5px; border-radius: 50%; box-shadow: 0 0 0 4px #ffffff25; }
.filter-dot.unpaid { background: #ff777a; }
.filter-dot.paid { background: #43b58e; }
.history-filter-row { display: grid; grid-template-columns: 1.1fr 1.16fr 1fr; gap: 10px; margin-top: 12px; }
.filter-chip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 9px; border-radius: 15px; color: #556178; font-size: 11px; white-space: nowrap; }
.filter-chip .icon { width: 17px; height: 17px; }
.filter-chip .filter-arrow { width: 12px; height: 12px; margin-left: auto; }
.history-month { margin-top: 22px; }
.month-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px; margin-bottom: 8px; color: #515e72; }
.month-heading h2 { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.month-heading > p { color: #748095; font-size: 12px; }
.history-page .receipt { min-height: 79px; }
.history-page .receipt-summary { gap: 3px; }
.history-page .status { height: 22px; font-size: 9px; padding-inline: 9px; }
.history-page .receipt-amount { margin-top: 6px; font-size: 14px; }
.group-list { display: grid; gap: 7px; }
.groups-page .contacts-section-heading { margin-bottom: 10px; }
.group-card { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto 8px; grid-template-rows: auto auto 24px; column-gap: 13px; row-gap: 4px; align-items: center; padding: 8px 11px 8px 9px; min-height: 80px; border-radius: 17px; }
.group-photo { grid-column: 1; grid-row: 1 / 4; width: 62px; height: 62px; border-radius: 11px; }
.group-card h3 { grid-column: 2 / 4; grid-row: 1; padding-right: 15px; font-size: 13.5px; font-weight: 620; letter-spacing: -.3px; line-height: 1.2; }
.group-members { grid-column: 2; grid-row: 2; color: #758196; font-size: 11px; white-space: nowrap; }
.group-card .avatars { grid-column: 2; grid-row: 3; margin-top: 0; }
.group-summary { grid-column: 3; grid-row: 2 / 4; align-self: center; text-align: right; white-space: nowrap; }
.group-amount { font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.group-amount.positive { color: #069b74; }
.group-amount.negative { color: #ee3439; }
.group-direction { margin-top: 4px; color: #79859a; font-size: 11px; }
.group-amount.neutral + .group-direction { color: #99a3b3; }
.group-details { grid-column: 4; grid-row: 2 / 4; color: #7b879a; display: grid; place-items: center; }
.group-details .icon { width: 14px; height: 14px; }
.group-pin { position: absolute; right: 9px; top: 8px; color: #17a17f; }
.group-pin .icon { width: 16px; height: 16px; }
.all-groups { margin-top: 22px; }
.groups-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: #566275; }
.groups-section-heading h2 { font-size: 17px; font-weight: 650; }
.group-sort { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #7a869b; }
.group-sort .icon { width: 13px; height: 13px; }
.filled-people { fill: #0b9a72; stroke: #0b9a72; }
@media (max-width: 400px) {
  .group-card { grid-template-columns: 57px minmax(0, 1fr) auto 7px; column-gap: 10px; }
  .group-photo { width: 57px; }
  .group-card h3 { font-size: 12px; }
  .group-members, .group-direction { font-size: 10px; }
  .group-amount { font-size: 14px; }
  .history-header { margin-bottom: 18px; }
  .history-header h1 { font-size: 24px; }
  .header-tool { width: 35px; height: 36px; border-radius: 10px; }
  .history-filter-row { gap: 7px; }
  .filter-chip { font-size: 10px; gap: 5px; padding: 10px 8px; border-radius: 13px; }
  .filter-chip .icon { width: 16px; height: 16px; }
  .filter-chip .filter-arrow { width: 10px; height: 10px; }
  .status-tab { font-size: 10px; }
}
@media (max-width: 350px) {
  .group-card { grid-template-columns: 50px minmax(0, 1fr) auto 5px; column-gap: 7px; }
  .group-photo { width: 50px; height: 60px; }
  .group-card h3 { font-size: 11px; }
  .group-card .avatars img, .group-card .avatar-more { width: 20px; height: 20px; }
  .group-card .avatar-more { font-size: 9px; }
  .group-members, .group-direction, .group-sort { font-size: 9px; }
  .history-filter-row { gap: 5px; }
  .filter-chip { font-size: 9px; padding-inline: 6px; }
  .filter-chip .icon { width: 14px; height: 14px; }
  .status-tab { font-size: 9px; }
}
/* Live application */
[hidden] { display: none !important; }
.app-shell { padding-top: 32px; }
h1 { white-space: normal; overflow-wrap: anywhere; font-size: 25px; line-height: 1.25; }
h2 { font-size: 19px; letter-spacing: -.35px; }
h3 { font-size: 15px; overflow-wrap: anywhere; }
.greeting > p { white-space: normal; line-height: 1.5; }
.brand { display: block; font-size: 22px; font-weight: 800; color: var(--green); margin-bottom: 18px; letter-spacing: -1px; }
.brand span { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.initial { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e3f2ec; color: #067d5a; flex-shrink: 0; font-weight: 700; border: 1px solid white; }
.page-header { align-items: flex-start; gap: 15px; }
.page-header > .initial { margin-top: 7px; }
.back { display: block; color: #506b65; margin-bottom: 18px; font-size: 13px; }
.balance-card h2 { font-size: 15px; }
.balance-card .balance-amount { margin-top: 12px; }
.help { color: #536378; font-size: 12px; line-height: 1.6; margin-top: 7px; overflow-wrap: anywhere; }
.group-link { display: flex; justify-content: space-between; margin-top: 15px; border-top: 1px solid #d6dfe4; padding-top: 12px; font-size: 13px; }
.quick-action { font-size: 23px; gap: 9px; }
.quick-action span { font-size: 12px; font-weight: 600; }
.quick-action small { display: block; font-size: 9px; line-height: 1.5; margin-top: 5px; font-weight: 400; }
.quick-action.scan { background: #168566; }
.primary, .secondary, .danger { display: inline-flex; align-items: center; justify-content: center; padding: 13px 18px; border-radius: 13px; font-weight: 600; font-size: 14px; min-height: 45px; }
.primary { color: #fff; background: #07845f; width: 100%; margin-top: 15px; }
.secondary { background: #ffffff8c; border: 1px solid #fff; margin-top: 12px; }
.danger { color: white; background: #ba353b; margin-top: 12px; width: 100%; }
button:disabled { opacity: .45; cursor: wait; }
.text-button { color: #176b55; font-size: 12px; padding: 10px 3px; }
.danger-text { color: #9b353c; display: block; margin: 20px auto 0; }
label { display: grid; gap: 7px; color: #425366; font-size: 13px; margin-top: 17px; }
input, select { font: inherit; color: #192b3f; border: 1px solid #b6c6cd; background: #ffffffa1; border-radius: 11px; width: 100%; min-width: 0; padding: 12px; font-size: 16px; }
input:focus, select:focus { outline: 2px solid #15926d; outline-offset: 1px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
label small { font-size: 11px; color: #637489; }
.check-label { display: flex; align-items: center; gap: 10px; }
.auth-card { margin-top: 22px; padding: 23px; border-radius: 22px; }
.auth-card > .text-button, .auth-card > .secondary { display: block; margin: 14px auto 0; }
.empty { padding: 35px 20px; border-radius: 20px; text-align: center; }
.empty-icon { color: #699688; font-size: 42px; line-height: 1; margin-bottom: 15px; }
.empty h2 { font-size: 17px; }
.empty p { font-size: 13px; color: #637489; line-height: 1.7; margin-top: 12px; }
.receipt { grid-template-columns: 42px minmax(0,1fr) auto 8px; gap: 9px; min-height: 90px; }
.receipt-emblem { display: grid; place-items: center; width: 42px; height: 48px; border-radius: 13px; background: #e1eee8a1; color: #35846a; font-size: 25px; }
.receipt-info h3 { white-space: normal; line-height: 1.4; }
.receipt-meta { white-space: normal; }
.receipt-summary { min-width: 80px; }
.status.open { color: #876023; background: #f2e3c6; }
.tabs { display: flex; gap: 6px; margin: 16px 0; padding: 5px; border-radius: 13px; background: #ffffff40; }
.tabs button { padding: 10px; flex: 1; color: #536378; font-size: 12px; border-radius: 10px; }
.tabs .selected { background: #fff; color: #067b58; box-shadow: 0 2px 5px #40596c12; }
.search-form { display: flex; gap: 7px; }
.search-form .secondary { margin: 0; }
.pagination { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #536378; margin: 12px 0; }
.book-card { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 17px; }
.book-card > div { flex: 1; min-width: 0; }
.book-card .help { margin-top: 2px; }
.item-card { border-radius: 17px; padding: 16px; }
.item-heading { display: flex; gap: 15px; justify-content: space-between; }
.item-heading strong { white-space: nowrap; font-size: 14px; }
.item-heading > div { min-width: 0; }
.pick-label { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #cdd9dc; padding-top: 10px; margin-top: 12px; }
.pick-label input { width: 90px; text-align: center; padding: 8px; }
.item-actions { display: flex; justify-content: flex-end; gap: 16px; }
.member-card { display: flex; flex-wrap: wrap; align-items: center; padding: 15px; border-radius: 17px; gap: 10px; }
.member-card > div { flex: 1; min-width: 110px; }
.member-card strong { font-size: 14px; }
.member-card .help { margin-top: 3px; font-size: 10px; }
.member-card .text-button { margin-left: auto; }
.allocation-note { text-align: right; font-size: 13px; margin-top: 14px; }
.share-panel { padding: 20px; border-radius: 20px; margin-top: 15px; text-align: center; }
.share-panel img { margin: auto; border-radius: 10px; }
.share-panel label { text-align: left; }
.share-panel input { font-size: 12px; }
.owner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-actions .secondary { flex: 1; }
.attachment { margin-top: 22px; padding: 16px; border-radius: 17px; }
.attachment summary { cursor: pointer; font-size: 14px; }
.receipt-image { width: 100%; max-height: 600px; object-fit: contain; margin-top: 15px; border-radius: 10px; }
.nav-symbol { font-size: 26px; line-height: 1.1; }
.bottom-nav { max-width: 480px; }
#toast { position: fixed; z-index: 10; bottom: 95px; left: 50%; transform: translateX(-50%); background: #203c35; color: white; padding: 14px 18px; border-radius: 14px; width: min(90vw,440px); font-size: 13px; line-height: 1.6; box-shadow: 0 4px 25px #0002; }
dialog { width: min(94vw,460px); border: 1px solid white; border-radius: 24px; padding: 28px 23px 24px; max-height: 88svh; background: #edf3f3; color: #112333; }
dialog::backdrop { background: #183a4566; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 15px; top: 10px; font-size: 26px; padding: 5px; }
dialog h2 { padding-right: 20px; }
.entry-row { padding: 8px 0; border-bottom: 1px solid #c7d4d7; }
.form-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; }
@media(max-width:350px) { .app-shell {padding-inline:14px;} .receipt-amount {font-size:13px;} .item-heading strong {font-size:12px;} }
/* Compact dashboard, matching the original home sketch. */
.home-page { padding-top: 38px; }
.home-header { align-items: center; gap: 12px; margin-bottom: 19px; }
.home-header h1 { font-size: clamp(21px, 5.6vw, 25px); letter-spacing: -.6px; white-space: normal; overflow-wrap: anywhere; }
.home-header .greeting { min-width: 0; }
.home-header .greeting > p { margin-top: 4px; font-size: 13px; }
.home-header > .initial { width: 40px; height: 40px; margin-top: 0; font-size: 14px; flex-shrink: 0; }
.home-balance { padding: 17px 16px 15px; }
.home-balance .balance-heading h2 { font-size: 14px; font-weight: 550; }
.home-balance .balance-main { margin-top: 8px; }
.home-balance .balance-amount { margin-top: 0; font-size: 32px; line-height: 1.2; letter-spacing: .1px; overflow-wrap: anywhere; }
.home-balance .balance-amount.negative { color: #d83845; }
.home-balance .balance-caption { margin-top: 4px; font-size: 12px; }
.balance-chevron { width: 16px; height: 16px; }
.balance-info { position: relative; color: #728095; }
.balance-info summary { display: flex; cursor: pointer; list-style: none; }
.balance-info summary::-webkit-details-marker { display: none; }
.balance-info summary .icon { width: 15px; height: 15px; }
.balance-info p { position: absolute; z-index: 6; top: 23px; left: -130px; width: 245px; padding: 13px; border-radius: 12px; background: #f7fbfb; box-shadow: 0 6px 25px #263e4b26; color: #47566c; font-size: 12px; line-height: 1.6; }
.home-balance .balance-stats { grid-template-columns: 1fr 1fr .9fr; margin-top: 16px; padding-top: 12px; }
.home-balance .stat { gap: 7px; padding-right: 8px; }
.home-balance .stat + .stat { padding-left: 9px; }
.home-balance .stat:last-child { padding-right: 0; }
.home-balance .stat-icon { width: 29px; height: 32px; border-radius: 12px; }
.home-balance .stat-icon .icon { width: 18px; height: 18px; }
.home-balance .stat > div { min-width: 0; }
.home-balance .stat-number { font-size: 12px; letter-spacing: -.2px; white-space: normal; overflow-wrap: anywhere; }
.home-balance .stat-label { font-size: 9px; margin-top: 4px; }
.home-page .quick-actions { margin-top: 14px; gap: 7px; }
.home-page .quick-action { min-height: 62px; padding: 10px 9px; gap: 7px; border-radius: 16px; }
.home-page .quick-action .action-icon { width: 30px; height: 34px; border-radius: 13px; }
.home-page .quick-action .action-icon .icon { width: 22px; height: 22px; }
.home-page .quick-action .action-copy { flex: 1; min-width: 0; }
.home-page .quick-action .action-title { font-size: 12px; font-weight: 550; white-space: nowrap; }
.home-page .quick-action .action-subtitle { font-size: 9px; font-weight: 400; margin-top: 4px; line-height: 1.4; white-space: nowrap; }
.home-page .quick-action .action-chevron { width: 12px; height: 12px; margin: 0; }
.home-page .quick-action.scan { background: linear-gradient(115deg, #79bba3d9, #389673e6 58%, #76bba5e0); box-shadow: inset 0 1px 0 #ffffff78, 0 8px 22px #477c6414; }
.home-page .scan .action-subtitle { color: #f2fff8; }
.home-page .receipts { margin-top: 24px; }
.receipt { grid-template-columns: 48px minmax(0,1fr) auto 12px; gap: 10px; min-height: 72px; padding: 8px 10px; border-radius: 17px; }
.receipt-photo, .receipt-emblem { width: 48px; height: 50px; border-radius: 11px; }
.receipt-emblem .icon { width: 24px; height: 24px; }
.receipt-info h3 { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.receipt-meta { font-size: 10px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt-avatars { display: flex; align-items: center; margin-top: 5px; height: 19px; }
.receipt-avatar, .receipt-avatars .avatar-more { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; border: 1px solid #fff; font-size: 7px; font-weight: 650; flex-shrink: 0; }
.receipt-avatar + .receipt-avatar { margin-left: -3px; }
.receipt-avatars .avatar-more { margin-left: 2px; font-size: 8px; background: #f7fbfa8c; }
.receipt-summary { align-items: flex-end; min-width: 73px; }
.receipt .status { height: 21px; padding: 0 8px; font-size: 9px; gap: 4px; }
.receipt .status .icon { width: 12px; height: 12px; }
.receipt .status.open { color: #c13e47; background: #f8dce29c; }
.receipt .status.closed { color: #07845f; background: #c7ecdf9c; }
.receipt-amount { font-size: 14px; margin-top: 6px; }
.receipt-chevron { width: 12px; height: 16px; color: #718094; }
.bottom-nav { left: 50%; right: auto; transform: translateX(-50%); margin: 0; width: calc(100% - 12px); max-width: 468px; bottom: max(8px, env(safe-area-inset-bottom)); grid-template-columns: repeat(5,minmax(0,1fr)); align-items: stretch; padding: 6px; border-radius: 27px; }
.nav-item { display: grid; grid-template-rows: 28px 14px; justify-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 54px; padding: 4px 0; border-radius: 20px; font-size: 10px; line-height: 14px; }
.nav-icon { display: grid; place-items: center; width: 28px; height: 28px; }
.nav-item .icon { display: block; width: 24px; height: 24px; color: currentColor; stroke-width: 1.8; }
.nav-label { display: block; white-space: nowrap; }
.nav-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ffffffcf; background: #e0eee9; color: #36785f; font-size: 9px; font-weight: 700; line-height: 1; }
.nav-item.active .icon-home { fill: currentColor; }
.app-shell { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
@media(max-width:375px) {
  .home-balance { padding-inline: 13px; }
  .home-balance .stat { gap: 5px; padding-right: 5px; }
  .home-balance .stat + .stat { padding-left: 6px; }
  .home-balance .stat-icon { width: 25px; height: 29px; }
  .home-balance .stat-number { font-size: 11px; }
  .home-balance .stat-label { font-size: 8px; }
  .home-page .quick-action { padding-inline: 7px; gap: 5px; }
  .home-page .quick-action .action-icon { width: 25px; }
  .home-page .quick-action .action-title { font-size: 10px; }
  .home-page .quick-action .action-subtitle { font-size: 8px; }
  .receipt { gap: 8px; grid-template-columns: 43px minmax(0,1fr) auto 10px; }
  .receipt-photo, .receipt-emblem { width: 43px; height: 48px; }
  .receipt-info h3 { font-size: 12px; }
  .receipt-summary { min-width: 66px; }
  .receipt-amount { font-size: 13px; }
}
