.expense-organizer {
  margin: 0;
  padding: 14px;
  background: #fff;
}
.dashboard-section .expense-organizer {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.export-help {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}
.organizer-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.organizer-head h2 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}
.organizer-head .eyebrow {
  margin-bottom: 4px;
}
.statement-button {
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
}
.organizer-copy {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 10px 0 14px;
}
.organizer-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e5ebe7;
  border-radius: 15px;
  overflow: hidden;
}
.organizer-stats div {
  padding: 12px;
}
.organizer-stats div + div {
  border-left: 1px solid #e5ebe7;
}
.organizer-stats strong,
.organizer-stats span {
  display: block;
}
.organizer-stats strong {
  font-size: 1.05rem;
}
.organizer-stats span {
  font-size: 0.67rem;
  color: var(--muted);
  margin-top: 2px;
}
.category-summary {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}
.category-summary p {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0;
}
.category-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}
.category-line strong {
  font-size: 0.78rem;
}
.export-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.export-button {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 12px 8px;
  background: #e5f8ed;
  color: #0a5c38;
  font-size: 0.76rem;
  font-weight: 800;
}
.secondary-export {
  background: #eef2ef;
  color: #39483f;
}
.export-button:disabled {
  opacity: 0.48;
}
.statement-overlay {
  position: fixed;
  z-index: 35;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 12px 10px max(12px, env(safe-area-inset-bottom));
  background: rgba(1, 12, 7, 0.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.statement-overlay[hidden] {
  display: none;
}
.statement-sheet {
  width: min(100%, 460px);
  max-height: calc(100dvh - 24px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.statement-drop {
  display: grid !important;
  place-items: center;
  gap: 5px !important;
  margin: 0 !important;
  padding: 22px !important;
  border: 2px dashed #b8c9bf !important;
  border-radius: 18px;
  background: #f5faf7;
  color: var(--ink) !important;
  text-align: center;
  cursor: pointer;
}
.statement-drop small {
  color: var(--muted);
  font-weight: 500;
}
.statement-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #dff6e9;
  color: #0a633d;
  font-size: 1.35rem;
}
.statement-progress {
  margin: 16px 0;
}
.statement-progress > div {
  height: 8px;
  background: #e5ebe7;
  border-radius: 9px;
  overflow: hidden;
}
.statement-progress span {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--green);
  transition: width 0.2s;
}
.statement-progress p {
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
}
.statement-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 17px 0 9px;
}
.statement-results-head div {
  display: grid;
  gap: 2px;
}
.statement-results-head span {
  font-size: 0.7rem;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  color: #0a633d;
  font-size: 0.75rem;
  font-weight: 800;
}
.statement-transaction-list {
  display: grid;
  gap: 9px;
}
.statement-transaction {
  border: 1px solid #dfe6e2;
  border-radius: 15px;
  padding: 11px;
  background: #fbfcfb;
}
.transaction-top {
  display: grid;
  grid-template-columns: auto 112px 1fr;
  gap: 8px;
  align-items: center;
}
.transaction-top input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #15965a;
}
.transaction-top input {
  min-width: 0 !important;
  padding: 9px !important;
}
.transaction-amount {
  position: relative;
}
.transaction-amount:before {
  content: "$";
  position: absolute;
  left: 9px;
  top: 9px;
  color: #647168;
}
.transaction-amount input {
  padding-left: 21px !important;
}
.transaction-description {
  margin: 8px 0 !important;
  padding: 10px !important;
}
.transaction-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.transaction-bottom select {
  padding: 9px !important;
}
.business-toggle {
  display: flex !important;
  grid-auto-flow: column !important;
  align-items: center;
  gap: 5px !important;
  margin: 0 !important;
  font-size: 0.7rem !important;
  white-space: nowrap;
}
.business-toggle input {
  width: 18px !important;
  height: 18px;
  accent-color: #15965a;
}
.statement-error {
  padding: 13px;
  border-radius: 13px;
  background: #fff4e4;
  color: #76551b;
  font-size: 0.78rem;
  line-height: 1.4;
}
@media (max-width: 380px) {
  .transaction-top {
    grid-template-columns: auto 104px 1fr;
  }
  .transaction-bottom {
    grid-template-columns: 1fr;
  }
  .business-toggle {
    justify-content: start;
  }
}
.period-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 5px;
}
.period-filters label {
  display: grid;
  gap: 5px;
}
.period-filters span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}
.period-filters select {
  width: 100%;
  min-width: 0;
  padding: 11px 34px 11px 11px;
  border: 1px solid #ccd6d0;
  border-radius: 12px;
  background: #f8faf9;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}
.period-label {
  margin: 0 0 12px;
  color: #0a633d;
  font-size: 0.72rem;
  font-weight: 800;
}
.saved-expense-list {
  display: grid;
  gap: 7px;
  max-height: 290px;
  overflow: auto;
  margin: 0 0 12px;
}
.saved-expense {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5ebe7;
  border-radius: 13px;
  background: #fbfcfb;
}
.saved-expense h4 {
  font-size: 0.78rem;
  margin: 0 0 3px;
}
.saved-expense p {
  font-size: 0.66rem;
  color: var(--muted);
  margin: 0;
}
.saved-expense-side {
  text-align: right;
}
.saved-expense-side strong {
  display: block;
  font-size: 0.8rem;
}
.expense-kind {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 8px;
  background: #e6f8ee;
  color: #0a5c38;
  font-size: 0.58rem;
  font-weight: 800;
}
.expense-kind.personal {
  background: #f0f2f1;
  color: #56635c;
}
.remove-expense {
  border: 0;
  background: none;
  color: #b6424b;
  padding: 4px 0 0;
  font-size: 0.65rem;
  font-weight: 800;
}
.duplicate-notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff6df;
  color: #6b531a;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 700;
}
.organizer-stats .income-stat strong {
  color: #0a7a48;
}
.organizer-stats .transaction-stat {
  grid-column: 1/-1;
  border-top: 1px solid #e5ebe7;
  border-left: 0;
}
.organizer-stats .transaction-stat strong {
  font-size: 0.9rem;
}
.saved-income-list {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
.saved-income-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3px;
  color: #0a633d;
  font-size: 0.76rem;
}
.saved-income {
  background: #eefaf3;
  border-color: #ccebd9;
}
.saved-income-side strong,
.saved-income .saved-expense-side strong {
  color: #0a7a48;
}
.statement-income-results {
  margin: 12px 0;
}
.statement-income-results > strong {
  font-size: 0.82rem;
  color: #0a633d;
}
.statement-income-results > p {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: 0.7rem;
}
.income-transaction {
  background: #eefaf3;
  border-color: #ccebd9;
}
.earning-panel {
  display: grid;
  gap: 12px;
}
.earning-intro {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c8ebd7;
  border-radius: 15px;
  background: #eaf9f0;
}
.earning-lock {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #0d3928;
  color: var(--green);
  font-weight: 900;
}
.earning-intro strong {
  font-size: 0.8rem;
}
.earning-intro p {
  margin: 3px 0 0;
  color: #496057;
  font-size: 0.7rem;
  line-height: 1.45;
}
.earning-list {
  display: grid;
  gap: 10px;
}
.earning-card {
  padding: 14px;
  border: 1px solid #dfe6e2;
  border-radius: 16px;
  background: #fbfcfb;
}
.earning-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.earning-card-head span {
  color: #0a633d;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.earning-card-head em {
  padding: 4px 7px;
  border-radius: 9px;
  background: #fff1cd;
  color: #6b531a;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
}
.earning-card h3 {
  margin: 10px 0 4px;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.earning-card p {
  margin: 0;
  color: #56635c;
  font-size: 0.73rem;
  line-height: 1.5;
}
.earning-card .earning-match {
  margin-bottom: 7px;
  color: #0a633d;
  font-size: 0.68rem;
  font-weight: 750;
}
.earning-card ol {
  display: grid;
  gap: 5px;
  margin: 11px 0 0;
  padding-left: 20px;
}
.earning-card li {
  padding-left: 2px;
  color: #35463d;
  font-size: 0.7rem;
  line-height: 1.4;
}
.earning-empty {
  padding: 20px 16px;
  border: 1px dashed #c8d3cc;
  border-radius: 16px;
  text-align: center;
}
.earning-empty strong {
  font-size: 0.82rem;
}
.earning-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}
.earning-disclaimer {
  margin: 0;
  color: #6b716d;
  font-size: 0.65rem;
  line-height: 1.45;
}
.savings-panel {
  display: grid;
  gap: 11px;
}
.savings-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #0c2b20;
  color: #fff;
}
.savings-overview span,
.savings-overview strong {
  display: block;
}
.savings-overview span {
  color: var(--mint);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}
.savings-overview strong {
  margin-top: 4px;
  color: var(--green);
  font-size: 1.08rem;
}
.savings-overview p {
  max-width: 145px;
  margin: 0;
  color: #b8c7bf;
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: right;
}
.savings-insights {
  display: grid;
  gap: 9px;
}
.savings-insight {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dfe6e2;
  border-radius: 15px;
  background: #fbfcfb;
}
.savings-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e3f8ec;
  color: #0a633d;
  font-size: 0.78rem;
  font-weight: 900;
}
.savings-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.savings-card-head span {
  color: #66736c;
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.savings-card-head strong {
  color: #0a7a48;
  font-size: 0.72rem;
}
.savings-insight h3 {
  margin: 7px 0 4px;
  font-size: 0.9rem;
}
.savings-insight p {
  margin: 0;
  color: #56635c;
  font-size: 0.72rem;
  line-height: 1.45;
}
.savings-insight ul {
  display: grid;
  gap: 4px;
  margin: 9px 0 0;
  padding-left: 17px;
}
.savings-insight li {
  color: #35463d;
  font-size: 0.69rem;
  line-height: 1.4;
}
.savings-footnote {
  margin: 0;
  color: #6b716d;
  font-size: 0.65rem;
  line-height: 1.45;
}
.checkup-panel {
  display: grid;
  gap: 11px;
}
.checkup-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.checkup-toolbar label {
  display: grid;
  gap: 5px;
}
.checkup-toolbar label span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}
.checkup-toolbar select {
  min-width: 0;
  padding: 10px;
  border: 1px solid #ccd6d0;
  border-radius: 11px;
  background: #f8faf9;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
}
.report-button {
  border: 0;
  border-radius: 11px;
  padding: 11px 10px;
  background: #e4f8ec;
  color: #0a633d;
  font-size: 0.75rem;
  font-weight: 850;
}
.report-button:disabled {
  opacity: 0.45;
}
.checkup-net {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 16px;
  background: #0c2b20;
  color: #fff;
}
.checkup-net > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.45rem;
  font-weight: 950;
}
.checkup-net small,
.checkup-net strong {
  display: block;
}
.checkup-net small {
  color: #b8c7bf;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.07em;
}
.checkup-net strong {
  margin-top: 3px;
  font-size: 1.35rem;
}
.checkup-net p {
  margin: 2px 0 0;
  color: #b8c7bf;
  font-size: 0.75rem;
}
.checkup-net.ahead > span,
.checkup-net.ahead strong {
  color: var(--green);
}
.checkup-net.deficit > span,
.checkup-net.deficit strong {
  color: var(--rose);
}
.checkup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e0e7e3;
  border-radius: 15px;
  overflow: hidden;
}
.checkup-grid article {
  padding: 12px;
}
.checkup-grid article:nth-child(even) {
  border-left: 1px solid #e0e7e3;
}
.checkup-grid article:nth-child(n + 3) {
  border-top: 1px solid #e0e7e3;
}
.checkup-grid span,
.checkup-grid strong {
  display: block;
}
.checkup-grid span {
  color: var(--muted);
  font-size: 0.75rem;
}
.checkup-grid strong {
  margin-top: 3px;
  font-size: 0.9rem;
}
.checkup-block {
  padding: 12px;
  border: 1px solid #e4e9e6;
  border-radius: 14px;
  background: #fbfcfb;
}
.checkup-block span,
.checkup-goal span {
  display: block;
  color: #708078;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.07em;
}
.checkup-block strong {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
}
.checkup-block p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}
.checkup-goal {
  padding: 13px;
  border: 1px solid #f0dba9;
  border-radius: 14px;
  background: #fff7e3;
}
.checkup-goal strong {
  display: block;
  margin-top: 5px;
  color: #5f4a18;
  font-size: 0.78rem;
  line-height: 1.45;
}
.checkup-note {
  margin: 0;
  color: #6b716d;
  font-size: 0.75rem;
  line-height: 1.45;
}
.spending-wheel {
  padding: 14px;
  border: 1px solid #e0e7e3;
  border-radius: 16px;
  background: #fbfcfb;
}
.spending-wheel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.spending-wheel-head small,
.spending-wheel-head strong {
  display: block;
}
.spending-wheel-head small {
  color: #708078;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.07em;
}
.spending-wheel-head strong {
  margin-top: 4px;
  font-size: 0.9rem;
}
.spending-wheel-head > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  text-align: right;
}
.spending-wheel-layout {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}
.spending-donut {
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dfe7e2;
  position: relative;
}
.spending-donut::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(8, 23, 17, 0.04);
}
.spending-donut > div {
  position: relative;
  z-index: 1;
  text-align: center;
}
.spending-donut strong,
.spending-donut span {
  display: block;
}
.spending-donut strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.spending-donut span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
}
.spending-donut.empty {
  background: #dfe7e2 !important;
}
.spending-legend {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.spending-legend p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}
.spending-legend-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}
.spending-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.spending-legend-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #35453c;
  font-size: 0.7rem;
}
.spending-legend-value {
  text-align: right;
}
.spending-legend-value strong,
.spending-legend-value small {
  display: block;
}
.spending-legend-value strong {
  font-size: 0.7rem;
}
.spending-legend-value small {
  color: var(--muted);
  font-size: 0.61rem;
}
@media (max-width: 360px) {
  .spending-wheel-layout {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }
  .spending-donut {
    width: 100px;
  }
  .spending-donut::before {
    inset: 17px;
  }
}
@media print {
  body.printing-checkup {
    background: #fff;
  }
  .printing-checkup * {
    visibility: hidden !important;
  }
  .printing-checkup #checkupSection,
  .printing-checkup #checkupSection * {
    visibility: visible !important;
  }
  .printing-checkup #checkupSection {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }
  .printing-checkup #checkupSection > summary,
  .printing-checkup .report-button {
    display: none !important;
  }
  .printing-checkup .checkup-panel {
    padding: 24px;
  }
  .printing-checkup .checkup-toolbar {
    grid-template-columns: 1fr;
  }
  .printing-checkup .checkup-toolbar select {
    appearance: none;
    border: 0;
    padding: 0;
    font-size: 1.4rem;
  }
  .printing-checkup .checkup-note {
    margin-top: 12px;
  }
}
#taxPrintSheet {
  display: none;
}
@media print {
  body.printing-taxes {
    background: #fff;
  }
  .printing-taxes > * {
    display: none !important;
  }
  .printing-taxes #taxPrintSheet {
    display: block !important;
    padding: 12px;
    color: #111;
    font-family: Arial, sans-serif;
  }
  .printing-taxes #taxPrintSheet h1 {
    margin: 0 0 6px;
    font-size: 20px;
  }
  .printing-taxes #taxPrintSheet > p {
    margin: 0 0 18px;
    color: #444;
    font-size: 12px;
  }
  .printing-taxes #taxPrintSheet table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
  }
  .printing-taxes #taxPrintSheet th,
  .printing-taxes #taxPrintSheet td {
    padding: 7px 5px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
  }
  .printing-taxes #taxPrintSheet th:last-child,
  .printing-taxes #taxPrintSheet td:last-child {
    text-align: right;
  }
  .printing-taxes #taxPrintSheet small {
    display: block;
    margin-top: 18px;
    color: #555;
    font-size: 9px;
  }
}
.csv-preview-overlay {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 12px 10px max(12px, env(safe-area-inset-bottom));
  background: rgba(1, 12, 7, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.csv-preview-overlay[hidden] {
  display: none;
}
.csv-preview-sheet {
  width: min(100%, 460px);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  outline: 0;
}
.csv-preview-head {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 58px 12px 20px;
}
.csv-preview-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}
.csv-preview-head .close {
  top: 18px;
}
.csv-file-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 20px 10px;
  padding: 12px;
  border: 1px solid #dce5df;
  border-radius: 15px;
  background: #f7faf8;
}
.csv-file-icon {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #0c2b20;
  color: var(--green);
  font-size: 0.67rem;
  font-weight: 900;
}
.csv-file-card div {
  min-width: 0;
}
.csv-file-card strong,
.csv-file-card small {
  display: block;
}
.csv-file-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}
.csv-file-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}
.csv-preview-copy {
  margin: 0;
  padding: 0 20px 11px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}
.csv-table-wrap {
  flex: 1;
  min-height: 190px;
  margin: 0 12px;
  overflow: auto;
  border: 1px solid #dfe6e2;
  border-radius: 14px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.csv-preview-table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.7rem;
  white-space: nowrap;
}
.csv-preview-table th,
.csv-preview-table td {
  max-width: 220px;
  padding: 10px 11px;
  border-right: 1px solid #edf0ee;
  border-bottom: 1px solid #edf0ee;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.csv-preview-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef7f1;
  color: #0a5c38;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.csv-preview-table tr:last-child td {
  border-bottom: 0;
}
.csv-preview-table th:last-child,
.csv-preview-table td:last-child {
  border-right: 0;
}
.csv-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  background: #fff;
}
.csv-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 13px;
  padding: 12px 8px;
  background: #eef2ef;
  color: #39483f;
  font-size: 0.75rem;
  font-weight: 850;
}
.csv-action span {
  font-size: 1rem;
}
.primary-csv-action {
  grid-column: 1/-1;
  background: var(--green);
  color: #052415;
}
.csv-action:focus-visible {
  outline: 3px solid rgba(36, 223, 135, 0.42);
  outline-offset: 2px;
}
@media (max-height: 620px) {
  .csv-preview-copy {
    display: none;
  }
  .csv-file-card {
    margin-bottom: 8px;
  }
  .csv-table-wrap {
    min-height: 150px;
  }
}

@media (min-width: 600px) {
  .expense-organizer {
    padding: 22px;
  }
  .statement-overlay,
  .csv-preview-overlay {
    align-items: center;
    padding: 24px;
  }
  .statement-sheet,
  .csv-preview-sheet {
    width: min(100%, 720px);
    max-height: calc(100dvh - 48px);
  }
  .statement-drop {
    padding: 30px !important;
  }
  .transaction-top {
    grid-template-columns: auto 160px minmax(0, 1fr);
    gap: 12px;
  }
  .transaction-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .organizer-stats div {
    padding: 16px;
  }
  .saved-expense-list {
    max-height: 380px;
  }
  .spending-wheel-layout {
    grid-template-columns: 150px 1fr;
    gap: 24px;
  }
  .spending-donut {
    width: 150px;
  }
  .spending-donut::before {
    inset: 25px;
  }
  .csv-preview-head {
    padding-left: 30px;
  }
  .csv-file-card {
    margin-left: 30px;
    margin-right: 30px;
  }
  .csv-preview-copy {
    padding-left: 30px;
    padding-right: 30px;
  }
  .csv-table-wrap {
    margin-left: 22px;
    margin-right: 22px;
  }
  .csv-preview-actions {
    padding: 16px 22px;
  }
}
