/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .mx-auto {
    margin-inline: auto;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .items-center {
    align-items: center;
  }
  .justify-between {
    justify-content: space-between;
  }
  @media (width >= 48rem) {
    .md\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}
@font-face {
  font-family: DM Sans;
  src: url('/fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url('/fonts/dm-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url('/fonts/dm-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url('/fonts/dm-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
:root {
  --ink: #203b33;
  --green: #1b5546;
  --muted: #62756d;
  --line: rgba(66,96,79,.15);
  --rose: #8d5c71;
  --display: Manrope,system-ui,sans-serif;
  --body: 'DM Sans',system-ui,sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  background: #d4dfd7;
  min-height: 100dvh;
  padding: 36px 24px 24px;
}
button,input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: .5;
}
button,a,input {
  outline-offset: 4px;
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline: 3px solid #448773;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
button {
  transition: background .18s,transform .18s;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
.photo-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg,rgba(24,47,37,.32),rgba(24,47,37,.05) 52%,rgba(24,47,37,.28)),url('/casamento-bg.jpg') center 48%/cover no-repeat;
}
.dashboard {
  max-width: 1180px;
  padding: 0 40px;
  background: rgba(245,250,245,.86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 30px;
  box-shadow: 0 24px 90px rgba(12,33,21,.2);
}
.topbar {
  height: 95px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--green);
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.9px;
}
.brand small {
  display: block;
  font: 500 9px var(--body);
  letter-spacing: 2.1px;
  margin-top: 4px;
  color: var(--muted);
}
.brand-mark {
  width: 40px;
  height: 42px;
  position: relative;
  display: block;
}
.brand-mark span {
  position: absolute;
  border: 2px solid var(--green);
  width: 24px;
  height: 34px;
  border-radius: 50%;
  top: 4px;
  left: 2px;
  transform: rotate(-28deg);
}
.brand-mark span+span {
  left: 14px;
  transform: rotate(28deg);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.private-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.private-label svg {
  width: 14px;
  height: 14px;
}
.icon-button {
  border: 0;
  background: transparent;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--muted);
}
.icon-button:hover {
  background: rgba(33,86,62,.08);
  color: var(--green);
}
.intro {
  padding: 35px 0 31px;
  align-items: center;
  gap: 30px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 12px;
}
.intro h1,.login-card h1 {
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: -1.8px;
  line-height: 1.14;
  font-weight: 800;
  margin: 0;
}
.intro h1 span,.login-card h1 span {
  color: var(--green);
}
.intro-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 15px 0 0;
}
.month-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
}
.month-block .eyebrow {
  margin-bottom: 10px;
}
.month-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(75,98,84,.19);
  background: rgba(255,255,255,.62);
  border-radius: 14px;
}
.month-display {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
}
.month-display svg {
  width: 18px;
}
.month-display input {
  background: transparent;
  border: none;
  color: var(--ink);
  font-weight: 600;
  width: 167px;
  padding: 7px 0;
  min-width: 0;
}
.month-caption {
  color: var(--muted);
  font-size: 11px;
  margin-top: 10px;
}
.summaries {
  gap: 16px;
  margin-bottom: 27px;
}
.summary-card {
  background: rgba(255,255,255,.74);
  padding: 19px 22px 21px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(55,75,62,.03);
}
.summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}
.summary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #edf2ed;
  color: var(--green);
}
.carol-icon {
  color: var(--rose);
  background: #f4edf0;
}
.summary-card>strong {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.summary-detail {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}
.split-card {
  background: var(--green);
  color: #fff;
  border-color: #1b5546;
}
.split-card .summary-heading,.split-card .summary-detail {
  color: #d5e6dd;
}
.split-icon {
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
  color: #d5e6dd;
}
.tiny-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c6dfa5;
  display: block;
}
.expense-grid {
  gap: 20px;
  padding-bottom: 27px;
}
.expense-panel {
  background: rgba(255,255,255,.81);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 19px;
  padding: 24px 22px 0;
  min-width: 0;
  overflow: hidden;
  align-self: start;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf3ed;
  color: var(--green);
  width: 39px;
  height: 39px;
  border-radius: 12px;
}
.panel-icon.carol {
  background: #f6eef1;
  color: var(--rose);
}
.panel-title h2 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0;
}
.panel-title p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.count-badge {
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 20px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.column-labels,.expense-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 136px 28px;
  gap: 10px;
  align-items: center;
}
.column-labels {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #718276;
  padding: 0 0 10px;
}
.column-labels span:nth-child(2) {
  text-align: right;
  padding-right: 13px;
}
.expense-rows {
  display: grid;
  gap: 9px;
}
.expense-name,.money-field {
  height: 44px;
  background: rgba(245,248,245,.9);
  border: 1px solid rgba(78,105,86,.15);
  border-radius: 10px;
}
.expense-name {
  width: 100%;
  min-width: 0;
  padding: 0 11px;
  color: var(--ink);
  font-size: 13px;
}
.expense-name::placeholder,.money-field input::placeholder {
  color: #86938a;
}
.expense-name:focus,.money-field:focus-within {
  background: #fff;
  border-color: #448773;
}
.money-field {
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 3px;
  min-width: 0;
}
.money-field>span {
  color: #7a897f;
  font-size: 11px;
}
.money-field input {
  border: 0;
  outline: none;
  background: none;
  width: 100%;
  min-width: 0;
  text-align: right;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.money-field:has(input[aria-invalid=true]) {
  border-color: #b35555;
}
.delete-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b9690;
}
.delete-button svg {
  width: 17px;
  height: 17px;
}
.delete-button:hover {
  color: #b14f54;
  background: #f9ecec;
}
.add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  border: 1px dashed #bccdc0;
  border-radius: 10px;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 11px;
  margin: 15px 0 22px;
}
.add-button svg {
  width: 16px;
  height: 16px;
}
.add-button:hover {
  background: #edf4ee;
  border-color: #63907a;
}
.panel-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 16px 0 18px;
  font-size: 12px;
  color: var(--muted);
}
.panel-total strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--ink);
}
.empty-state {
  text-align: center;
  padding: 21px 8px 14px;
  color: var(--muted);
}
.empty-state>svg {
  width: 27px;
  height: 27px;
  margin: 0 auto 10px;
  color: #698776;
}
.empty-state h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 5px;
}
.empty-state p {
  font-size: 11px;
  margin: 0;
}
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.save-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.update-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.update-tag svg {
  width: 14px;
  height: 14px;
}
.save-state {
  font-size: 11px;
  color: var(--green);
  padding-left: 21px;
}
.save-state.pending {
  color: #8c6529;
}
.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 5px 14px rgba(27,85,70,.12);
  white-space: nowrap;
}
.save-button svg {
  width: 17px;
  height: 17px;
}
.save-button:hover:not(:disabled) {
  background: #124335;
}
.footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
  font-size: 10px;
}
.footer-note svg {
  width: 12px;
  height: 12px;
  color: #628473;
}
.loading {
  padding: 50px 10px;
  text-align: center;
  color: var(--muted);
}
.sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff1d8;
  color: #705423;
  border: 1px solid #e9d5ac;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 12px;
}
.sync-banner button {
  border: 0;
  background: none;
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 22px;
  background: var(--green);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px #143e3430;
  z-index: 10;
  font-size: 13px;
  max-width: calc(100vw - 32px);
}
.toast.error {
  background: #904445;
}
dialog {
  border: 1px solid #ffffffaa;
  border-radius: 22px;
  background: #f5f9f5;
  color: var(--ink);
  padding: 28px;
  width: min(420px,calc(100vw - 32px));
  box-shadow: 0 20px 70px #10291f44;
}
dialog::backdrop {
  background: #18332966;
  backdrop-filter: blur(5px);
}
.dialog-icon {
  display: flex;
  color: var(--green);
  margin-bottom: 15px;
}
.dialog-icon svg {
  width: 30px;
  height: 30px;
}
dialog h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.7px;
  margin: 0 0 10px;
}
dialog p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.secondary-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 12px 16px;
  color: var(--ink);
  font-size: 12px;
}
.login-body {
  display: grid;
  place-items: center;
}
.login-card {
  width: min(440px,100%);
  margin: 30px auto;
  padding: 40px;
  background: rgba(245,250,245,.91);
  border: 1px solid #ffffffcc;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 26px;
  box-shadow: 0 24px 90px #152a2933;
}
.login-card .brand {
  margin-bottom: 42px;
}
.login-card h1 {
  font-size: 40px;
}
.login-card form {
  margin-top: 28px;
}
.login-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.login-card input[type=password] {
  width: 100%;
  height: 50px;
  border: 1px solid #bccfc1;
  border-radius: 12px;
  padding: 12px;
  background: #fffffff0;
  font-size: 13px;
}
.login-card .save-button {
  width: 100%;
  justify-content: space-between;
  margin-top: 16px;
}
.login-footnote {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
}
.login-error {
  color: #9b4048;
  font-size: 12px;
  margin: 12px 0;
}
@media (min-width:1600px) {
  body {
    padding-top: 64px;
  }
  .dashboard {
    max-width: 1240px;
  }
  .intro {
    padding-top: 42px;
    padding-bottom: 38px;
  }
  .intro h1 {
    font-size: 46px;
  }
}
@media (max-width:1023px) {
  .expense-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard {
    padding: 0 25px;
  }
  .panel-heading {
    flex-wrap: wrap;
  }
  .panel-title h2 {
    font-size: 16px;
  }
  .panel-title p {
    font-size: 10px;
  }
  .expense-panel {
    padding: 20px 15px 0;
  }
  .column-labels,.expense-row {
    grid-template-columns: minmax(0,1fr) 113px 25px;
    gap: 7px;
  }
  .summary-card>strong {
    font-size: 26px;
  }
  .summary-card {
    padding: 17px;
  }
}
@media (max-width:767px) {
  body {
    padding: 14px 10px 18px;
  }
  .dashboard {
    padding: 0 19px;
    border-radius: 24px;
    background: rgba(245,250,245,.9);
  }
  .topbar {
    height: 78px;
  }
  .brand {
    font-size: 20px;
    gap: 10px;
  }
  .brand small {
    font-size: 8px;
  }
  .header-right {
    gap: 8px;
  }
  .private-label {
    font-size: 0;
    gap: 0;
  }
  .private-label svg {
    width: 16px;
    height: 16px;
  }
  .intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 23px;
    padding: 27px 0 24px;
  }
  .intro h1 {
    font-size: 35px;
    letter-spacing: -1.4px;
  }
  .intro-description {
    font-size: 12px;
    max-width: 265px;
  }
  .month-block {
    align-items: flex-start;
    width: 100%;
    padding: 0;
  }
  .month-block .eyebrow {
    display: none;
  }
  .month-control {
    width: 100%;
    justify-content: space-between;
  }
  .month-display input {
    width: 165px;
  }
  .month-caption {
    display: none;
  }
  .summaries {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }
  .summary-card {
    padding: 15px 14px;
    border-radius: 15px;
  }
  .summary-card:first-child {
    grid-column: 1/-1;
  }
  .summary-card:first-child .summary-heading {
    margin-bottom: 2px;
  }
  .summary-card:first-child>strong {
    font-size: 32px;
  }
  .summary-card>strong {
    font-size: 23px;
    letter-spacing: -.9px;
  }
  .summary-heading {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .summary-icon {
    width: 28px;
    height: 28px;
  }
  .summary-detail {
    font-size: 9px;
    margin-top: 8px;
    gap: 5px;
  }
  .split-icon {
    font-size: 24px;
  }
  .expense-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 23px;
  }
  .expense-panel {
    padding: 21px 15px 0;
  }
  .panel-heading {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 20px;
  }
  .panel-title h2 {
    font-size: 16px;
  }
  .panel-title p {
    font-size: 10px;
  }
  .panel-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .panel-title {
    gap: 9px;
  }
  .count-badge {
    font-size: 9px;
    padding: 4px 6px;
  }
  .column-labels,.expense-row {
    grid-template-columns: minmax(0,1fr) 111px 25px;
    gap: 7px;
  }
  .expense-name {
    font-size: 12px;
    padding: 0 9px;
  }
  .money-field {
    padding: 0 8px;
  }
  .money-field input {
    font-size: 12px;
  }
  .save-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 19px 0;
    gap: 16px;
  }
  .save-button {
    width: 100%;
    padding: 15px;
  }
  .update-tag {
    font-size: 9px;
  }
  .save-state {
    font-size: 10px;
  }
  .footer-note {
    font-size: 9px;
    padding: 15px 0;
  }
  .sync-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .login-card {
    padding: 30px 25px;
  }
  .login-card h1 {
    font-size: 35px;
  }
  .dialog-actions .save-button {
    width: auto;
  }
}
@media (max-width:360px) {
  .dashboard {
    padding: 0 13px;
  }
  .summary-card>strong {
    font-size: 21px;
  }
  .expense-panel {
    padding: 18px 10px 0;
  }
  .panel-title h2 {
    font-size: 15px;
  }
  .panel-title p {
    font-size: 9px;
  }
  .panel-icon {
    display: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.name-field {
  position: relative;
  min-width: 0;
}
.name-field .expense-name {
  padding-left: 39px;
}
.expense-emoji {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
}
@media (max-width:767px) {
  .name-field .expense-name {
    padding-left: 34px;
  }
  .expense-emoji {
    left: 9px;
    font-size: 16px;
  }
}
.summary-card {
  min-width: 0;
}
.summary-card>strong {
  white-space: normal;
  overflow-wrap: anywhere;
}
.month-display {
  position: relative;
  min-width: 0;
  padding: 7px 0;
}
.month-display input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.month-display:focus-within {
  outline: 3px solid #448773;
  outline-offset: 5px;
  border-radius: 3px;
}
#month-label {
  width: 170px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
  text-align: center;
}
@media (max-width:767px) {
  .summaries {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:360px) {
  .summary-card {
    padding: 14px 10px;
  }
  .summary-card>strong {
    font-size: 18px;
  }
  .summary-card:first-child>strong {
    font-size: 29px;
  }
  .summary-detail {
    font-size: 8px;
  }
  .summary-heading {
    font-size: 10px;
  }
}
body {
  isolation: isolate;
}
.photo-background {
  background: linear-gradient(115deg,rgba(15,33,25,.1),transparent 55%,rgba(15,33,25,.08)),url('/casamento-bg.jpg') center 48%/cover no-repeat;
}
.dashboard {
  max-width: 1040px;
  background: rgba(255,255,255,.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0 30px;
}
.topbar {
  height: 86px;
  background: rgba(255,255,255,.76);
  margin: 0 -30px;
  padding: 0 30px;
  border-radius: 29px 29px 0 0;
}
.month-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 22px 0;
}
.month-block {
  padding: 0;
}
.month-block>.eyebrow {
  background: rgba(255,255,255,.85);
  padding: 5px 9px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.month-control {
  background: rgba(255,255,255,.85);
}
.summaries {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.summary-card {
  background: rgba(255,255,255,.7);
}
.split-card {
  background: rgba(235,249,239,.7);
  color: var(--green);
  border-color: rgba(255,255,255,.88);
}
.split-card .summary-heading,.split-card .summary-detail,.split-icon {
  color: var(--green);
}
.tiny-dot {
  background: var(--green);
}
.expense-grid {
  display: block;
}
.expense-panel {
  background: rgba(255,255,255,.33);
  padding: 22px 22px 0;
}
.panel-heading,.column-labels,.panel-total {
  background: rgba(255,255,255,.87);
  border-radius: 10px;
  padding: 10px 12px;
}
.panel-heading {
  margin-bottom: 12px;
}
.column-labels {
  padding: 9px 10px;
  margin-bottom: 8px;
}
.column-labels,.expense-row {
  grid-template-columns: minmax(0,1fr) 170px 32px;
}
.expense-name,.money-field {
  background: rgba(255,255,255,.94);
}
.delete-button {
  background: rgba(255,255,255,.9);
  color: var(--green);
}
.add-button {
  background: rgba(255,255,255,.9);
}
.panel-total {
  margin-bottom: 18px;
}
.empty-state {
  background: rgba(255,255,255,.8);
  border-radius: 12px;
  margin: 14px 0;
}
.save-bar {
  background: rgba(255,255,255,.86);
  margin: 0 -30px;
  padding: 21px 30px;
  border-radius: 0 0 29px 29px;
}
.login-card {
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.login-card h1 {
  font-size: 27px;
}
@media (max-width:767px) {
  .dashboard {
    padding: 0 16px;
    background: rgba(255,255,255,.1);
  }
  .topbar {
    margin: 0 -16px;
    padding: 0 16px;
    height: 78px;
    border-radius: 23px 23px 0 0;
  }
  .month-toolbar {
    padding: 18px 0;
  }
  .month-block>.eyebrow {
    display: none;
  }
  .summaries {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }
  .summary-card {
    padding: 15px 16px;
  }
  .summary-card>strong {
    font-size: 24px;
    letter-spacing: -0.7px;
  }
  .summary-heading {
    margin-bottom: 6px;
  }
  .summary-detail {
    font-size: 10px;
  }
  .expense-panel {
    padding: 15px 11px 0;
  }
  .panel-heading {
    padding: 10px 8px;
  }
  .column-labels,.expense-row {
    grid-template-columns: minmax(0,1fr) 108px 27px;
    gap: 6px;
  }
  .column-labels {
    padding: 9px 0;
  }
  .column-labels span:first-child {
    padding-left: 10px;
  }
  .panel-total {
    padding: 14px 10px;
  }
  .panel-total strong {
    font-size: 17px;
  }
  .save-bar {
    margin: 0 -16px;
    padding: 19px 16px;
    border-radius: 0 0 23px 23px;
  }
}
@media (max-width:360px) {
  .summary-card:first-child>strong,.summary-card>strong {
    font-size: 19px;
  }
  .summary-detail {
    font-size: 8px;
  }
  .column-labels,.expense-row {
    grid-template-columns: minmax(0,1fr) 96px 25px;
  }
  .expense-panel {
    padding: 14px 8px 0;
  }
}
.expense-panel + .expense-panel {
  margin-top: 24px;
}
.panel-icon.empresa {
  background: #ffffff;
  border: 1px solid rgba(203, 161, 77, .35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  padding: 2px;
}
.summary-icon.empresa-icon {
  background: #ffffff;
  border: 1px solid rgba(203, 161, 77, .35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  padding: 2px;
}
.company-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}
.empresa-card {
  background: rgba(255, 255, 255, .76);
}
.empresa-dot {
  background: #cba14d;
}
.add-button-empresa {
  color: #8b6d27;
}
.add-button-empresa:hover {
  background: #faf6ed;
  border-color: #d6be7a;
}
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .expense-name, .money-field input, .month-display input {
    font-size: 16px;
  }
  .money-field input {
    min-width: 0;
  }
}
.company-wordmark {
  width: 175px;
  height: auto;
  margin-top: 8px;
  display: block;
}
.empresa-panel .panel-title p {
  margin-top: 7px;
}
.accounting-panel {
  border-color: #cdd1df;
  background: rgba(250,251,255,.94);
}
.accounting-panel .panel-heading {
  margin-bottom: 22px;
}
.accounting-panel .panel-title h2 {
  color: #2c2e49;
  font-size: 21px;
}
.accounting-brand {
  width: 46px;
  height: 53px;
  background: #fff;
  border: 1px solid #dedfe7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px;
}
.accounting-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.income-summaries {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.income-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #eef0f6;
  border: 1px solid #e1e4ee;
  padding: 18px;
  border-radius: 13px;
  min-width: 0;
  color: #4f526b;
}
.income-summary>span {
  font-size: 12px;
  font-weight: 600;
}
.income-summary strong {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -.8px;
  line-height: 1.2;
  color: #2c2e49;
  font-variant-numeric: tabular-nums;
}
.income-summary small {
  font-size: 11px;
}
.received-summary {
  background: #2c2e49;
  color: #e2e4ef;
  border-color: #2c2e49;
}
.received-summary strong {
  color: white;
  font-size: 30px;
}
.proventos-wordmark {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
  margin-top: 7px;
}
.income-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #65677b;
  font-size: 11px;
  margin: 0 0 17px;
}
.income-labels,.income-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 136px 112px 28px;
  gap: 10px;
  align-items: center;
}
.income-labels {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #65677b;
  margin-bottom: 10px;
}
.income-labels span:nth-child(2) {
  text-align: right;
  padding-right: 13px;
}
.income-labels span:nth-child(3) {
  text-align: center;
}
.income-row .name-field {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
}
.income-row .expense-name {
  padding-left: 43px;
  background: #f4f5f9;
}
.service-button {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}
.service-button:hover {
  background: #e2e5f1;
}
.received-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #cdd1df;
  background: #fff;
  color: #60647c;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  height: 36px;
  padding: 5px 8px;
  white-space: nowrap;
}
.received-button:hover {
  background: #f0f2f8;
  border-color: #888da9;
}
.received-button[aria-pressed=true] {
  background: #e4f2eb;
  color: #236147;
  border-color: #a6cebb;
}
.income-row.is-received .money-field {
  border-color: #b8d4c6;
  background: #f0f7f3;
}
.income-footnote {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #dde0ea;
  padding: 15px 0 18px;
  color: #6b6e82;
  font-size: 11px;
  line-height: 1.6;
}
#income-save-state {
  color: #2c2e49;
  font-weight: 600;
}
@media (max-width:767px) {
  .income-summaries {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .received-summary {
    grid-column: 1/-1;
  }
  .income-summary {
    padding: 14px;
    gap: 7px;
  }
  .income-summary strong {
    font-size: 20px;
  }
  .received-summary strong {
    font-size: 29px;
  }
  .accounting-panel .panel-title p {
    font-size: 10px;
    max-width: 180px;
    line-height: 1.5;
  }
  .accounting-panel .panel-heading {
    flex-wrap: nowrap;
  }
  .accounting-panel .count-badge {
    font-size: 9px;
    padding: 4px 6px;
  }
  .income-row {
    grid-template-columns: minmax(0,1fr) 112px 28px;
    gap: 7px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e5ef;
  }
  .income-row .name-field {
    grid-column: 1/-1;
  }
  .income-row .money-field {
    grid-column: 1;
  }
  .income-row .delete-button {
    grid-column: 3;
  }
  .income-labels {
    display: none;
  }
  .income-legend {
    gap: 12px;
    font-size: 10px;
  }
  .income-row .received-button {
    height: 40px;
  }
  .income-row .expense-name {
    padding-left: 43px;
  }
  .company-wordmark {
    width: 150px;
  }
}
@media (max-width:420px) {
  .accounting-panel .count-badge {
    display: none;
  }
  .accounting-panel .panel-title {
    min-width: 0;
  }
  .accounting-panel .panel-title>div {
    min-width: 0;
  }
  .accounting-panel .panel-title h2 {
    font-size: 20px;
  }
  .income-summary {
    padding: 13px 10px;
  }
  .income-summary strong {
    font-size: 17px;
  }
  .received-summary strong {
    font-size: 28px;
  }
}
@media (max-width:360px) {
  .income-summary strong {
    font-size: 15px;
    letter-spacing: -.4px;
  }
  .received-summary strong {
    font-size: 27px;
  }
  .income-summary>span,.income-summary small {
    font-size: 10px;
  }
  .accounting-panel .panel-title h2 {
    font-size: 18px;
  }
}
.accounting-shortcut {
  display: table;
  margin: 12px auto 0;
  padding: 9px 15px;
  border: 1px solid #cdd1df;
  border-radius: 20px;
  background: #f4f5f9;
  color: #2c2e49;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.accounting-shortcut:hover {
  background: #e7eaf3;
}
#accounting-panel {
  scroll-margin-top: 24px;
}
.month-toolbar {
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.accounting-shortcut {
  order: -1;
  display: inline-flex;
  margin: 0 auto 0 0;
}
.month-toolbar .month-block {
  padding-top: 0;
}
@media (max-width:767px) {
  .accounting-shortcut {
    order: 1;
    margin: 0;
  }
}
.name-field {
  position: relative;
  min-width: 0;
}
.expense-row .expense-name {
  padding-right: 45px;
}
.expense-row .name-field {
  grid-column: 1;
  grid-row: 1;
}
.expense-row .money-field {
  grid-column: 2;
  grid-row: 1;
}
.expense-row .delete-button {
  grid-column: 3;
  grid-row: 1;
}
.income-row .received-button {
  grid-column: 3;
  grid-row: 1;
}
.income-row .delete-button {
  grid-column: 4;
  grid-row: 1;
}
.recurrence-button {
  position: static;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin-right: 6px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #c8cfcc;
  border-radius: 8px;
  background: #eef1ef;
  color: #78837d;
  cursor: pointer;
}
.recurrence-button svg {
  width: 16px;
  height: 16px;
}
.recurrence-button[aria-pressed=true] {
  color: #276b4c;
  border-color: #a6c9b5;
  background: #def0e5;
}
.recurrence-button:hover {
  border-color: #53836b;
}
.recurrence-button:disabled {
  cursor: wait;
  opacity: .6;
}
.recurrence-help {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.6;
  color: #405d4e;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.9);
  border-radius: 10px;
}
.recurrence-help svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
@media (max-width:767px) {
  .expense-row:not(.income-row),.income-row {
    grid-template-columns: minmax(0,1fr) 32px 28px;
    gap: 7px;
    padding: 10px 0;
  }
  .expense-row:not(.income-row) {
    border-bottom: 1px solid #dce5df;
  }
  .expense-row .name-field {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .expense-row .expense-name {
    padding-right: 11px;
  }
  .expense-row .money-field {
    grid-column: 1;
    grid-row: 2;
  }
  .expense-row .recurrence-button {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    margin-right: 0;
  }
  .expense-row .delete-button {
    grid-column: 3;
    grid-row: 2;
  }
  .income-row .received-button {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .column-labels {
    display: none;
  }
}
.income-month-note {
  font-size: 12px;
  line-height: 1.7;
  color: #4f526b;
  background: #eef0f6;
  border-radius: 10px;
  padding: 12px;
  margin: 0 0 18px;
}
.income-month-note a {
  color: #2c2e49;
  font-weight: 700;
  white-space: nowrap;
}
.app-casa .summaries {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.app-empresa {
  --ink: #263444;
  --green: #344553;
  --muted: #626d76;
  --line: rgba(52,69,83,.16);
  background: #ede9e0;
}
.app-empresa .photo-background {
  background: #ede9e0 url('/empresa-bg.svg') center 45%/min(78vw,900px) auto no-repeat;
}
.app-empresa .dashboard {
  background: rgba(255,255,255,.3);
}
.company-brand {
  width: 100%;
  justify-content: space-between;
  gap: 20px;
}
.company-brand>img {
  width: 210px;
  max-width: 65%;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}
.company-brand>span {
  font-size: 17px;
  letter-spacing: -.4px;
  color: #6e582e;
}
.app-empresa .summaries {
  grid-template-columns: minmax(0,1fr);
}
.app-empresa .empresa-card {
  border-top: 3px solid #cba14d;
}
.app-empresa .recurrence-help {
  color: #405466;
}
@media (max-width:767px) {
  .app-casa .summaries {
    grid-template-columns: 1fr;
  }
  .company-brand>img {
    width: 175px;
    height: 58px;
  }
  .company-brand>span {
    font-size: 15px;
  }
  .app-empresa .photo-background {
    background-size: 94vw auto;
  }
}
.column-labels,.expense-row:not(.income-row) {
  grid-template-columns: minmax(0,1fr) 150px 32px 28px 84px;
}
.column-labels span:nth-child(2) {
  text-align: right;
  padding-right: 12px;
}
.column-labels span:nth-child(3),.column-labels span:nth-child(5) {
  text-align: left;
  padding: 0;
}
.expense-row .expense-name {
  padding-right: 11px;
}
.expense-row .recurrence-button {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  margin: 0;
}
.expense-row:not(.income-row) .money-field {
  grid-column: 2;
}
.expense-row:not(.income-row) .delete-button {
  grid-column: 4;
}
.expense-due-field {
  grid-column: 5;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
}
.expense-due-day {
  width: 44px;
  min-width: 0;
  height: 36px;
  padding: 3px 4px;
  border: 1px solid #cdd1df;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.expense-due-day::-webkit-inner-spin-button,.expense-due-day::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
@media (max-width:1023px) {
  .expense-row:not(.income-row) {
    grid-template-columns: minmax(0,1fr) 28px 26px 64px;
    gap: 5px;
  }
  .expense-row:not(.income-row) .name-field {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .expense-row:not(.income-row) .money-field {
    grid-column: 1;
    grid-row: 2;
  }
  .expense-row:not(.income-row) .recurrence-button {
    grid-column: 2;
    grid-row: 2;
    width: 28px;
  }
  .expense-row:not(.income-row) .delete-button {
    grid-column: 3;
    grid-row: 2;
    width: 26px;
  }
  .expense-due-field {
    grid-column: 4;
    grid-row: 2;
    font-size: 10px;
    gap: 3px;
  }
  .expense-due-day {
    font-size: 16px;
    width: 39px;
    height: 36px;
  }
  .column-labels {
    display: none;
  }
}
@media (max-width:360px) {
  .expense-row .money-field {
    padding: 0 6px;
  }
  .expense-row .money-field>span {
    display: none;
  }
}
