:root {
  --ink: #1e293b;
  --text: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f7f9fc;
  --accent: #4f46e5;
  --soft: #eef2ff;
  --radius: 12px;
  --shadow: 0 1px 3px #0f172a05;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  font: 15px/1.5 var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  margin-bottom: 10px;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
p {
  color: var(--muted);
  line-height: 1.65;
}
small {
  font-size: 12px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #dbe2ed;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.25;
  box-shadow: var(--shadow);
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
button:hover {
  background: #f8fafc;
  border-color: #b9c4d6;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 3px #4f46e51a;
}
button.primary:hover {
  background: #4338ca;
  border-color: #4338ca;
}
button.textbtn,
.textbtn {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 5px 0;
  min-height: 32px;
  color: var(--accent);
  font-size: 13px;
}
.textbtn:hover {
  text-decoration: underline;
  background: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
select:not([hidden]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}
input::placeholder,
textarea::placeholder {
  color: #8491a5;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px #e0e7ff;
}
label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 550;
  font-size: 13px;
  margin: 18px 0;
}
label input {
  font-weight: 400;
}
summary {
  cursor: pointer;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.sub {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 5px;
}
.formerror {
  color: #b42338;
  font-size: 13px !important;
  line-height: 1.5;
}
.formerror:empty {
  display: none;
}
.ui-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: block;
  padding: 0 12px;
  font-size: 29px;
  letter-spacing: -1.5px;
  color: #263052;
  font-weight: 750;
  line-height: 1.2;
}
.brand:before {
  content: "✳";
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: var(--accent);
  color: white;
  border-radius: 9px;
  font-size: 21px;
  margin-right: 9px;
  vertical-align: 2px;
}
.brand > span {
  display: block;
  margin: 13px 0 35px;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: #64748b;
}
aside nav {
  display: grid;
  gap: 6px;
}
aside nav button {
  justify-content: start;
  border: 0;
  box-shadow: none;
  min-height: 44px;
  color: #526076;
  font-size: 14px;
  gap: 12px;
  padding: 11px 13px;
  background: transparent;
}
aside nav button.active {
  background: var(--soft);
  color: #4338ca;
  font-weight: 600;
}
aside nav button:hover {
  background: #f4f6fb;
}
aside nav button small {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  background: #e9eef6;
  border-radius: 6px;
  font-size: 11px;
}
.sidebottom {
  margin-top: auto;
  padding-top: 25px;
}
.account-tools > summary { padding: 10px 12px; font-size: 13px; color: #526076; }
.account-tools > div { padding: 4px 0; }
.account-tools button {
  display: flex;
  justify-content: start;
  border: 0;
  box-shadow: none;
  width: 100%;
  background: transparent;
  color: #526076;
  font-size: 12px;
  padding: 10px 12px;
}
.sidebottom #signout {
  color: #64748b;
}
.profile {
  display: flex;
  gap: 11px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 8px 0;
  margin-top: 17px;
  cursor: pointer;
}
.profile b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #e7eaff;
  color: #5b5bb3;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}
.profile > div {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.commandtrigger {
  display: none !important;
}
main {
  margin-left: 232px;
  padding: 0 38px;
  max-width: 1450px;
}
main > header {
  max-width: 1120px;
  margin: 0 auto;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
header > span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.workspace-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #e9edf5;
  border-radius: 6px;
  font-size: 11px;
  color: #64748b;
}
.breadcrumb-divider {
  color: #b8c3d2;
}
#breadcrumb {
  color: #334155;
}
header > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
#add,
#import {
  font-size: 13px;
}
#add .plus {
  font-size: 19px;
}
#app {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 30px;
}
.title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.title p {
  font-size: 14px !important;
  margin: 0 !important;
}
.week {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #475569;
}
.week button {
  min-height: 34px;
  padding: 6px 10px;
  border-color: #e0e5ee;
}
.week b {
  font-weight: 550;
}
.home-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}
.home-toolbar .textbtn {
  font-size: 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
  min-width: 0;
}
.amount {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 17px 0 12px;
  color: #243047;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.amount small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.card p {
  font-size: 12px;
  margin: 0;
  color: #64748b;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.panelhead h2 {
  font-size: 17px;
  margin: 0;
}
.panelhead .sub {
  margin: 7px 0 0;
}
.homecards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
.overview-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.overview-links button { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 22px; background: white; min-width: 0; }
.overview-links b { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.overview-links small { display: block; color: #718096; margin-top: 9px; line-height: 1.6; }
.page-empty, .review-complete { text-align: center; padding: 40px 24px; }
.page-empty h2, .review-complete h3 { margin: 18px 0 10px; font-size: 21px; }
.page-empty p, .review-complete p { max-width: 480px; margin: 0 auto; line-height: 1.7; color: #718096; font-size: 14px; }
.empty-symbol { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #f0f2ff; color: #5547d6; font-size: 23px; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.reviewed-transactions > summary > span { margin-left: 16px; color: #718096; font-size: 12px; font-weight: 400; }
.tx-merchant, .merchant > div { min-width: 0; overflow-wrap: anywhere; }
.review-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f0f2ff;
  border: 1px solid #e0e5fb;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}
.review-next h2 {
  font-size: 19px;
  margin: 9px 0 7px;
}
.review-next p {
  font-size: 13px;
  margin: 0;
}
.review-next > button {
  white-space: nowrap;
}
.welcome-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 42px 34px;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}
.welcome-icon {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: #6864d8;
  border-radius: 15px;
  width: 52px;
  height: 52px;
  font-size: 28px;
  margin: 0 auto 20px;
}
.welcome-panel h2 {
  font-size: 28px;
  margin: 13px 0;
}
.welcome-panel > p {
  font-size: 15px;
  line-height: 1.75;
}
.startchoices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.startchoices button {
  text-align: left;
  justify-content: start;
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr;
  column-gap: 13px;
  padding: 23px 18px;
  min-height: 125px;
  border-radius: 12px;
}
.startchoices button:hover {
  border-color: #a5b4fc;
  background: #f7f8ff;
}
.choiceicon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  background: #eef2ff;
  color: #7774c6;
  border-radius: 8px;
  font-size: 23px;
}
.startchoices b {
  font-size: 14px;
  font-weight: 600;
}
.startchoices small {
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  color: #64748b;
  margin-top: 6px;
}
.startchoices button > span:last-child {
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: #818cf8;
}
.startnote {
  font-size: 12px;
  color: #64748b;
  margin-top: 20px;
}
.tablepanel {
  padding: 22px 0;
  margin-bottom: 20px;
  overflow: auto;
}
.tablepanel .panelhead {
  padding: 0 24px;
}
.toolbar {
  padding: 0 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.reviewed-transactions { margin-top: 20px; }
.reviewed-transactions > summary {
  cursor: pointer;
  color: var(--muted, #64748b);
  font-size: 14px;
  font-weight: 600;
  padding: 16px 24px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: white;
}
.reviewed-transactions[open] > summary { margin-bottom: 12px; }
.transaction-date-filter { margin: 0 24px 18px; font-size: 12px; }
.transaction-date-filter > summary { cursor: pointer; color: #64748b; padding: 8px 0; }
.transaction-date-filter > summary span { margin-left: 8px; color: #9299a7; }
.transaction-date-filter .transaction-dates { padding: 12px 0 0; margin-bottom: 0; }
.transaction-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 0 24px;
  margin-bottom: 20px;
}
.transaction-dates label { margin: 0; flex: 1 1 160px; }
.transaction-dates .formerror { flex-basis: 100%; }
.transaction-dates .formerror:empty { display: none; }
.toolbar input {
  flex: 1;
}
.toolbar select {
  width: auto;
  min-width: 150px;
}
#app:has(.daily-review), #app:has(.purchase-tabs) { max-width: 960px; }
.purchase-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: 0 0 24px; }
.purchase-tabs button { border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); padding: 12px 16px; border-bottom: 2px solid transparent; }
.purchase-tabs button[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.purchase-tabs small { padding: 2px 6px; border-radius: 5px; background: var(--soft); }
.daily-review { margin: 0 0 20px; }
.review-day-heading { display: grid; grid-template-columns: auto minmax(0, 260px) auto; align-items: end; justify-content: center; gap: 12px; }
.review-day-heading > button { padding: 10px 14px; min-height: 44px; }
.review-date-picker { margin: 0; gap: 5px; font-size: 12px; }
.review-date-picker input { font-size: 15px; min-width: 0; }
.review-day-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; width: 100%; max-width: 560px; margin: 18px auto 0; }
.review-day-strip button { display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 76px; padding: 8px 2px; }
.review-day-strip button > span { font-size: 11px; }
.review-day-strip button > strong { font-size: 17px; }
.review-day-strip button[aria-pressed="true"] { background: var(--soft); border-color: #a5b4fc; color: var(--accent); }
.review-day-strip button:disabled { background: #edf0f4; border-color: #e5e8ed; color: #929ba8; opacity: 1; }
.review-day-strip small { color: var(--muted); font-size: 10px; }
.review-day-progress { color: var(--muted); font-size: 13px; margin: 14px 0 18px; text-align: center; }
.daily-review .tx-date, .daily-review thead th:nth-child(2) { display: none; }
.daily-review-finish { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px; margin-top: 18px; background: #fff; border: 1px solid #e4e8ef; border-radius: 14px; box-shadow: 0 5px 20px #29324a0d; }
.daily-review-finish .primary { padding: 12px 16px; white-space: nowrap; }
.daily-review-finish strong { font-size: 14px; }
.daily-review-finish .sub { display: block; font-size: 11px; margin-top: 4px; }
.purchase-editor-context { margin: 12px 0 20px; }
.purchase-editor-context > summary { color: #647086; cursor: pointer; font-size: 12px; margin-bottom: 12px; }
.purchase-attention { display: block; color: #92522c; font-size: 12px; }
.transaction-category-control { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; align-items: center; max-width: none; }
.transaction-category-control .inline-category { min-width: 0; max-width: none; }
.merchant-remember { width: 34px; min-height: 36px; padding: 7px; border: 0; box-shadow: none; background: #eef0f3; color: #94a0b0; }
.merchant-remember.needs-update { color: var(--accent); background: var(--soft); }
.merchant-remember.needs-update:hover { background: #e0e7ff; }
.merchant-remember:disabled { opacity: 1; cursor: default; }
.merchant-remember svg { display: block; }
.purchase-allocation { display: block; font-size: 11px; line-height: 1.6; margin-top: 6px; color: #647086; }
.inline-category {
  display: grid;
  min-width: 145px;
  max-width: 195px;
}
.inline-category select {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
}
.category-picker { display: block; min-width: 0; width: 100%; }
.category-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  box-shadow: none;
  background: #fff;
  font-size: 12px;
  font-weight: 450;
  text-align: left;
  color: #44516a;
}
.category-trigger { background: var(--category-tint, #fff); }
.category-trigger:hover { border-color: #c5c9e6; background: #fafaff; }
.category-trigger[aria-expanded="true"] { border-color: #9d96e2; box-shadow: 0 0 0 3px #edeafa; }
.category-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 3px; background: var(--category-color, #8b86bd); border-radius: 50%; }
.category-chevron { color: #8992a5; font-size: 15px; margin-left: auto; }
.category-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  max-width: calc(100vw - 24px);
  padding: 6px;
  border: 1px solid #e3e6ed;
  border-radius: 12px;
  background: white;
  color: #38465c;
  box-shadow: 0 12px 36px #26344e24;
}
.category-popover input.category-search { width: 100%; min-height: 36px; padding: 9px 10px; border: 0; border-bottom: 1px solid #eef0f5; border-radius: 6px 6px 0 0; box-shadow: none; font-size: 12px; margin: 0 0 5px; }
.category-options { max-height: 216px; overflow-y: auto; }
.category-options button {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: 9px;
  padding: 9px 10px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  text-align: left;
}
.category-options button:hover, .category-options button:focus-visible { background: #f3f2fb; outline-offset: -2px; }
.category-options button[aria-selected="true"] { color: #334155; background: var(--category-tint, #f1effb); }
.category-selected { margin-left: auto; }
.category-empty { padding: 10px; color: #718096; font-size: 12px; }
.tx-note { display: block; color: #7a8192; font-size: 11px; margin-top: 4px; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merchant-links { margin-top: 20px; border-top: 1px solid #eef0f5; padding-top: 14px; }
.merchant-link-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid #eef0f5; overflow-wrap: anywhere; font-size: 12px; }
.merchant-source-variants { max-height: 220px; overflow: auto; }
.merchant-source-variants p { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.merchant-link-row > div { display: flex; gap: 14px; }
.merchant-match-list { max-height: 320px; overflow-y: auto; margin-top: 16px; }
.merchant-check-result { display: grid; gap: 7px; padding: 14px 0; border-bottom: 1px solid #eef0f5; overflow-wrap: anywhere; }
.merchant-check-result small { color: #7a8192; font-size: 12px; }
.merchant-match-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px; padding: 10px 0; margin: 0; border-bottom: 1px solid #eef0f5; }
.merchant-match-option input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 2px 0 0; }
.merchant-match-option span { overflow-wrap: anywhere; }
.merchant-match-option small { display: block; color: #7a8192; font-weight: 400; margin-top: 4px; }
.deleted-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.danger-button, button.primary.danger-button { background: #a3433e; border-color: #a3433e; color: white; }
.delete-action, .deleted-actions .delete-action { color: #a34941; }
.inline-category .textbtn {
  text-align: left;
  font-size: 11px;
}
.review-confirm, .reviewed-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
}
.review-confirm {
  padding: 6px 10px;
  min-height: 32px;
  color: #536079;
  background: #fff;
  border: 1px solid #dce2eb;
  box-shadow: none;
  border-radius: 7px;
}
.review-confirm:hover {
  color: #265d49;
  border-color: #a7c7b6;
  background: #f4faf6;
}
.review-confirm svg, .reviewed-state svg {
  width: 16px;
  height: 16px;
}
.reviewed-state {
  color: #41735c;
  padding: 6px 0;
}
.tx-date { white-space: nowrap; color: #718096; }
.tx-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tx-category { width: 38%; }
.tx-actions { width: 92px; white-space: nowrap; padding-left: 4px; padding-right: 12px; }
.transaction-icon-action { width: 34px; min-height: 36px; padding: 7px; border: 0; box-shadow: none; background: transparent; color: #64748b; }
.transaction-icon-action:hover { background: var(--soft); }
.transaction-icon-action.delete-action { color: #a34941; }
.transaction-icon-action.delete-action:hover { background: #fff0ed; }
.transaction-icon-action svg { display: block; }
.import-history-group { border-top: 1px solid #edf0f5; padding: 16px 0; }
.import-history-group > summary { cursor: pointer; font-size: 13px; }
.import-history-group table { margin-top: 14px; }
.import-summary { padding: 22px 24px; margin-bottom: 18px; }
.import-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.import-summary h2 { margin: 0 0 6px; font-size: 18px; }
.import-summary p { margin: 0; color: #718096; font-size: 12px; line-height: 1.5; }
.import-summary-actions, .import-toolbar, .review-tabs, .import-row-actions, .import-pagination { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.import-summary p.import-attention-note { margin: 16px 0 8px; color: #916532; }
.import-inbox { margin-bottom: 20px; padding: 0; }
.import-toolbar { padding: 16px 20px; }
.review-tabs { gap: 4px; }
.review-tabs button { font-size: 12px; box-shadow: none; border-color: transparent; }
.review-tabs button[aria-pressed="true"] { color: #4338ca; background: #eef0fc; }
.import-review-table td { padding: 13px 20px; }
.import-review-table .category-picker { min-width: 150px; }
.import-description { display: block; font-weight: 400; }
.import-source { display: grid; align-content: start; gap: 8px; color: #718096; font-size: 11px; overflow-wrap: anywhere; }
.import-source > span:last-child { padding-top: 9px; color: var(--ink); font-size: 12px; }
.import-review-table th, .review-tabs button, .import-row-form label { font-weight: 400; }
.import-merchant-resolution { grid-column: 1 / -1; display: grid; gap: 7px; padding: 12px; border: 1px solid #e4e1ef; border-radius: 10px; background: #faf9fc; }
.import-merchant-resolution button { justify-self: start; }
dialog:has(.mappinggrid) label, dialog:has(.mappinggrid) th, dialog:has(.uploadzone) b { font-weight: 400; }
.import-date { white-space: nowrap; font-size: 12px; color: #718096; }
.import-amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.import-compact-row > td:first-child { max-width: 270px; }
.import-editor { background: #f8f9fc; }
.import-row-form { display: grid; grid-template-columns: 1fr 2fr 1fr 1.3fr 1.3fr; gap: 12px; margin: 8px 0; }
.import-editor-hint { grid-column: 1 / -1; color: #916532; font-size: 12px; }
.import-row-form label { margin: 0; min-width: 0; font-size: 11px; }
.import-compact-actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.import-row-form input, .import-row-form select { font-size: 12px; padding: 9px 10px; width: 100%; }
.import-row-actions { grid-column: 1 / -1; }
.import-row-actions button { font-size: 12px; padding: 8px 12px; }
.import-original { grid-column: 1 / -1; font-size: 11px; color: #718096; overflow-wrap: anywhere; }
.import-original summary { cursor: pointer; }
.import-pagination { justify-content: center; border-top: 1px solid #e8edf3; padding: 14px; font-size: 12px; }
@media (max-width: 900px) {
  .tablepanel:has(.tx-row) table, .tablepanel:has(.tx-row) tbody { display: block; min-width: 0; width: 100%; }
  .tablepanel:has(.tx-row) thead { display: none; }
  .tx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 18px 24px; border-top: 1px solid #edf0f5; }
  .tx-row td { border: 0; padding: 0; }
  .tx-merchant { grid-column: 1; grid-row: 1; }
  .tx-date { grid-column: 1; grid-row: 2; font-size: 11px; }
  .tx-amount { grid-column: 2; grid-row: 1; }
  .tx-actions { grid-column: 1 / -1; grid-row: 4; display: flex; justify-content: flex-end; align-items: center; gap: 16px; width: auto; }
  .tx-category { grid-column: 1 / -1; grid-row: 3; width: auto; }
  .inline-category { max-width: none; }
  .inline-category select { padding: 8px 10px; min-height: 36px; }
  .import-row-form { grid-template-columns: 1fr 1fr; }
  .import-review-table, .import-review-table tbody { display: block; width: 100%; }
  .import-review-table thead { display: none; }
  .import-compact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; border-top: 1px solid #edf0f5; padding: 16px 20px; }
  .import-compact-row td { padding: 0; border: 0; }
  .import-compact-row td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .import-compact-row td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .import-compact-row td.import-category { grid-column: 1 / -1; grid-row: 3; }
  .import-compact-row td.import-amount { grid-column: 2; grid-row: 1; }
  .import-compact-row td.import-actions-cell { grid-column: 2; grid-row: 2; text-align: right; }
  .import-editor, .import-editor td { display: block; }
}
@media (max-width: 480px) {
  .import-summary { padding: 18px; }
  .review-tabs { flex-wrap: nowrap; }
  .review-tabs button { font-size: 11px; padding: 8px 7px; white-space: nowrap; }
  .import-row-form { grid-template-columns: 1fr; }
}
.settings-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 28px; }
.settings-nav { display: grid; gap: 5px; }
.settings-nav button { justify-content: space-between; padding: 12px; border: 0; box-shadow: none; background: transparent; color: #718096; text-align: left; }
.settings-nav button[aria-current="page"] { background: #efedf8; color: #62538d; }
.settings-nav button:hover { background: #f5f3fa; }
.settings-content { min-width: 0; }
.sidebottom > button.active { color: var(--accent); background: #efedf8; }
.settings-profile-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.settings-profile-hero h2 { font-size: 23px; margin: 0 0 8px; }
.settings-profile-hero p { margin: 0; }
.settings-avatar { display: grid; place-items: center; width: 68px; height: 68px; flex-shrink: 0; border-radius: 22px; background: #efecf8; color: #776996; font-size: 23px; }
.account-settings { max-width: 720px; }
.account-settings form { max-width: 480px; }
.account-settings form > label { margin-top: 0; }
.account-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 4px 0 24px; }
.account-identity > div { display: grid; gap: 7px; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.account-settings .password-change { border-top: 1px solid #edf0f5; padding-top: 18px; }
.account-settings-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #edf0f5; margin-top: 28px; padding-top: 16px; }
.merchant-settings .panelhead { flex-wrap: wrap; }
.merchant-list { display: grid; }
.merchant-item { display: flex; gap: 12px; width: 100%; justify-content: flex-start; text-align: left; padding: 16px 0; border: 0; border-top: 1px solid #edf0f5; border-radius: 0; box-shadow: none; font-weight: 400; }
.merchant-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; background: #f1eff8; color: #8b80a5; }
.merchant-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.merchant-name small { display: block; margin-top: 5px; color: #94a0b2; font-size: 11px; }
.merchant-category { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 16px; background: var(--category-tint); font-size: 12px; }
.merchant-empty { padding: 32px 12px; text-align: center; background: #faf9fc; border-radius: 14px; }
.merchant-empty h3 { font-size: 16px; font-weight: 500; }
.merchant-empty p { color: #8491a5; font-size: 13px; line-height: 1.6; }
@media (max-width: 900px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .settings-nav { display: flex; overflow-x: auto; padding-bottom: 5px; }
  .settings-nav button { flex-shrink: 0; gap: 10px; min-height: 38px; font-size: 12px; }
  .settings-nav button > span { display: none; }
  .merchant-item { flex-wrap: wrap; }
  .merchant-category { max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .settings-profile-hero { gap: 12px; }
  .settings-profile-hero h2 { font-size: 19px; }
  .settings-avatar { width: 48px; height: 48px; border-radius: 16px; font-size: 18px; }
  .account-identity { grid-template-columns: 1fr; gap: 16px; }
}
.category-page {
  padding: 20px;
  margin-bottom: 20px;
}
.category-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.category-form > input { flex: 1 1 180px; width: auto; min-width: 0; }
.category-form button { align-self: center; }
.category-page .panelhead { margin-bottom: 4px; }
.category-page > .category-form { max-width: 300px; gap: 8px; flex-wrap: nowrap; padding: 12px 0 20px; }
.category-page > .category-form input { min-height: 36px; padding: 7px 10px; font-size: 13px; }
.category-page > .category-form button { min-height: 36px; padding: 7px 13px; box-shadow: none; }
.category-list { display: flex; flex-wrap: wrap; gap: 9px; }
.category-chip { min-height: 36px; padding: 8px 13px; border-radius: 20px; background: var(--category-tint); border-color: transparent; box-shadow: none; font-weight: 500; }
.category-chip:hover { background: var(--category-tint); border-color: var(--category-color); }
dialog:has(.category-editor) { width: 420px; padding: 26px; border-radius: 22px; }
.category-editor h2 { font-size: 21px; margin-top: 0; margin-bottom: 22px; }
.category-editor > label { margin: 0 0 22px; }
.category-color-choices { padding: 0; margin: 0 0 22px; border: 0; min-width: 0; }
.category-color-choices legend { font-size: 13px; font-weight: 550; color: #475569; margin-bottom: 12px; }
.category-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.category-swatch { width: 30px; height: 30px; min-height: 30px; padding: 0; border: 3px solid white; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #e5e7eb; }
.category-swatch:hover { background: var(--swatch); border-color: white; box-shadow: 0 0 0 2px #aeb6c5; }
.category-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--swatch); }
.category-custom-color { display: block; margin: 0; width: 30px; height: 30px; }
.category-custom-color input { width: 30px; height: 30px; min-height: 30px; padding: 2px; border-radius: 8px; cursor: pointer; }

.category-defaults > summary { cursor: pointer; font-size: 14px; font-weight: 550; }
.category-defaults > summary .sub { margin-left: 8px; }
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #526076;
  font-weight: 600;
  background: #f8fafc;
  padding: 13px 18px;
  white-space: nowrap;
}
td {
  padding: 15px 18px;
  border-top: 1px solid #edf0f5;
  vertical-align: middle;
}
td strong {
  font-weight: 550;
}
.tablepanel tbody tr:hover {
  background: #fafbff;
}
td .merchant {
  display: flex;
  gap: 12px;
  align-items: center;
}
.merchant .icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #eef2f8;
  color: #667997;
  border-radius: 9px;
  flex-shrink: 0;
  font-size: 18px;
}
.merchant .sub {
  font-size: 11px;
  max-width: 230px;
  overflow-wrap: anywhere;
}
.pill {
  display: inline-block;
  border: 1px solid #e0e5ef;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 11px;
  color: #56647c;
  background: #f8fafc;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 5px 8px;
  background: #fff6df;
  color: #89631f;
  font-size: 11px;
  white-space: nowrap;
}
.hint {
  font-size: 12px;
  color: #28765d;
  white-space: nowrap;
}
.edit {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 32px;
  min-height: 32px;
  padding: 5px;
  font-size: 17px;
  color: #6678a1;
}
.edit:hover {
  background: #eef2ff;
  color: #4f46e5;
}
.tableoverflow {
  overflow: auto;
}
.empty {
  padding: 38px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.reportbuilder {
  margin-bottom: 20px;
}
.reportbuilder .panelhead {
  align-items: start;
}
.reportfilters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
}
.reportfilters label {
  font-size: 12px;
  margin: 13px 0;
}
.report-filter-details {
  margin-top: 12px;
}
.report-filter-details > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #fcfdff;
  list-style: none;
  font-size: 13px;
}
.report-filter-details > summary:after {
  content: "+";
  margin-left: 2px;
}
.report-filter-details[open] > summary:after {
  content: "−";
}
.report-filter-details > summary > span {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
}
.report-filter-details[open] .reportfilters {
  padding-top: 8px;
}
.reportpresets {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.reportpresets > span {
  font-size: 12px;
  color: #64748b;
}
.reportpresets button {
  border-radius: 20px;
  min-height: 32px;
  padding: 7px 11px;
  font-size: 12px;
  box-shadow: none;
  background: #f8fafc;
}
.date-shortcuts {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}
.date-shortcuts button {
  border: 0;
  box-shadow: none;
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
  background: transparent;
  color: #526076;
}
.date-shortcuts button:hover {
  background: #eef2ff;
}
.reportstats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
.reportpresets button[aria-pressed="true"] { color: #4338ca; background: #eef0fc; border-color: #d5d3f8; }
.report-review-note { color: #718096; font-size: 12px; margin: 0 0 18px; }
.report-records { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.report-records > summary { cursor: pointer; padding: 22px 24px; font-size: 15px; font-weight: 550; }
.report-records > summary span { display: inline-block; margin-left: 14px; font-size: 12px; font-weight: 400; color: #718096; }
.report-records td:first-child { max-width: 360px; overflow-wrap: anywhere; }
.report-records td:last-child { text-align: right; white-space: nowrap; }
.report-records table { min-width: 560px; }
.reportstats .card:first-child {
  background: #f4f5ff;
  border-color: #e0e4fc;
}
.reportstats .card:first-child .amount {
  color: #5145cd;
}
.reportvisual {
  margin-bottom: 22px;
}
.chart-switch {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #f4f6fb;
  border: 1px solid #e1e6f0;
  border-radius: 9px;
  margin-left: auto;
}
.chart-switch button {
  display: flex;
  gap: 6px;
  min-height: 31px;
  padding: 6px 10px;
  font-size: 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #64748b;
  border-radius: 6px;
}
.chart-switch button[aria-pressed="true"] {
  color: #4f46e5;
  background: white;
  box-shadow: 0 1px 3px #23395d13;
}
.chart-switch .ui-icon {
  width: 15px;
  height: 15px;
}
.linecontainer {
  width: 100%;
  overflow: auto;
  margin: 25px 0;
}
.linecontainer svg {
  width: 100%;
  min-width: 520px;
  display: block;
}
.horizontalbars {
  max-height: 480px;
  overflow: auto;
  margin: 25px 0;
}
.horizontalbars > div {
  display: grid;
  grid-template-columns: 145px 1fr 85px;
  gap: 15px;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
}
.horizontalbars > div > span {
  overflow-wrap: anywhere;
}
.horizontalbars > div > div {
  height: 15px;
  background: #f1f4f9;
  border-radius: 4px;
  overflow: hidden;
}
.horizontalbars i {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.horizontalbars b {
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pie-layout {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 24px 10px;
}
.pie {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.pie:after {
  content: "";
  position: absolute;
  inset: 55px;
  background: #fff;
  border-radius: 50%;
}
.pie-legend {
  flex: 1;
  min-width: 0;
  max-height: 350px;
  overflow: auto;
}
.pie-legend > div {
  display: grid;
  grid-template-columns: 9px 1fr auto 46px;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 12px;
  align-items: center;
}
.pie-legend b {
  font-weight: 500;
}
.pie-legend small {
  text-align: right;
  font-size: 11px;
  color: #64748b;
}
.legenddot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.charttable {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 22px;
}
.charttable table {
  margin-top: 15px;
}
.charttable summary {
  font-size: 13px;
}
.reportvisual > .sub {
  font-size: 12px;
  margin-top: 15px;
}
.auth-locked > aside,
.auth-locked > main,
.auth-locked > #modal,
.auth-locked > #toast {
  display: none !important;
}
#authroot:empty {
  display: none;
}
.auth-layout {
  min-height: 100vh;
  background: white;
  display: grid;
  grid-template-columns: 44% 56%;
}
.auth-story {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 44px;
  color: #fff;
  background: #24314a;
}
.auth-story:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("photos/together.jpg") center/cover no-repeat;
}
.auth-story:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    #14213c6e 0%,
    #14213c50 25%,
    #14213cce 75%,
    #14213ce6 100%
  );
}
.authbrand {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1.6px;
  color: white;
  text-decoration: none;
}
.auth-story > div {
  margin-top: auto;
  padding-top: 110px;
  padding-bottom: 60px;
}
.auth-story h1 {
  font-size: 46px;
  line-height: 1.13;
  letter-spacing: -1.8px;
  color: #fff;
  margin: 20px 0 18px;
}
.auth-story p {
  color: #e2e8f0;
  font-size: 16px;
  max-width: 320px;
  line-height: 1.7;
}
.auth-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 550;
  color: #d4ddef;
}
.auth-story > small {
  color: #d1dbea;
  font-size: 12px;
}
.auth-steps {
  display: none;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  padding: 36px 52px;
  min-height: 100vh;
}
.auth-back {
  font-size: 13px;
  color: #56647c;
}
.auth-box {
  width: 100%;
  max-width: 390px;
  margin: auto;
  padding: 42px 0;
}
.auth-box h2 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
.auth-box > p {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 28px;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #64748b;
  font-size: 12px;
  margin: 24px 0;
}
.auth-or > span {
  height: 1px;
  background: #e3e8ef;
  flex: 1;
}
.auth-box label {
  font-size: 13px;
  color: #334155;
  gap: 8px;
  margin: 20px 0;
}
.auth-box input {
  height: 46px;
  font-size: 15px;
}
.namefields {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.namefields label {
  margin-top: 0;
  margin-bottom: 0;
}
.passwordfield {
  position: relative;
}
.passwordfield input {
  padding-right: 62px;
}
.passwordfield button {
  position: absolute;
  right: 5px;
  top: 5px;
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  box-shadow: none;
  font-size: 12px;
  color: #526076;
  background: transparent;
}
.auth-submit {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  font-size: 14px;
  margin-top: 24px;
}
.auth-box .auth-bottom {
  font-size: 13px;
  text-align: center;
  margin: 24px 0 0;
  color: #64748b;
}
.auth-bottom button {
  font-size: 13px;
  min-height: 0;
  padding: 0;
  margin-left: 5px;
}
.auth-foot {
  font-size: 12px;
  color: #64748b;
  text-align: center;
}
.google-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #f8fafc;
}
.google-box {
  background: white;
  border: 1px solid var(--line);
  padding: 35px;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
}
.google-box h1 {
  font-size: 26px;
  margin-top: 22px;
}
.google-box p {
  font-size: 14px;
}
.google-box form > button {
  width: 100%;
  margin-top: 12px;
}
.simulation-label {
  display: inline-block;
  background: #f1f5f9;
  color: #64748b;
  padding: 6px 9px;
  font-size: 12px;
  border-radius: 6px;
}
dialog {
  border: 1px solid #dce3ed;
  border-radius: 16px;
  padding: 30px;
  width: 640px;
  max-width: calc(100vw - 32px);
  max-height: 90dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 25px 90px #14213b2c;
}
dialog::backdrop {
  background: #14213b66;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 24px;
  margin-right: 30px;
  margin-bottom: 13px;
}
dialog p {
  font-size: 14px;
}
dialog .sub {
  font-size: 12px;
}
dialog .eyebrow {
  margin-bottom: 10px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 15px;
  border: 0;
  background: #f1f5f9;
  box-shadow: none;
  width: 32px;
  min-height: 32px;
  padding: 0;
  color: #64748b;
  font-size: 24px;
}
.actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.row {
  display: flex;
  gap: 12px;
}
.row > * {
  flex: 1;
  min-width: 0;
}
.splitrow {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.splitrow select {
  flex: 1;
}
.splitrow input {
  width: 115px;
}
.splitrow button {
  width: 35px;
  padding: 5px;
}
.mappinggrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.uploadzone {
  text-align: center;
  background: #f8faff;
  border: 1px dashed #acb9dd;
  border-radius: 11px;
  padding: 30px;
  margin: 22px 0;
}
.uploadzone b {
  font-size: 15px;
}
.uploadzone p {
  font-size: 13px;
  margin: 12px 0 20px;
}
.skiplist {
  max-height: 180px;
  overflow: auto;
}
.builder-modal {
  width: 960px;
  max-width: calc(100vw - 24px);
}
.builder-source {
  max-width: 270px;
}
.buildertable {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 20px;
}
.buildertable table {
  min-width: 730px;
}
.buildertable td,
.buildertable th {
  display: table-cell !important;
  padding: 9px;
}
.buildertable input,
.buildertable select {
  min-height: 40px;
  font-size: 13px;
  padding: 9px;
}
.buildertable td:nth-child(1) {
  width: 160px;
}
.buildertable td:nth-child(3) {
  width: 115px;
}
.buildertable td:nth-child(4) {
  width: 175px;
}
.buildertable td:nth-child(5) {
  width: 35px;
}
.buildertable td:nth-child(5) button {
  width: 28px;
  min-height: 30px;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.builder-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.builder-actions button {
  font-size: 12px;
  min-height: 34px;
}
.builder-actions strong {
  font-size: 13px;
  font-weight: 500;
  margin-left: auto;
  color: #526076;
}
.pastearea {
  background: #f8fafc;
  padding: 18px;
  border-radius: 10px;
  margin-top: 20px;
}
.pastearea textarea {
  font-family: monospace;
  font-size: 13px;
  min-height: 110px;
  resize: vertical;
}
.helpsteps {
  display: grid;
  gap: 24px;
  margin: 26px 0;
}
.helpsteps article {
  display: flex;
  gap: 16px;
}
.helpsteps article > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eef2ff;
  color: #5d5bb1;
  font-size: 13px;
}
.helpsteps h3 {
  font-size: 15px;
}
.helpsteps p {
  font-size: 14px;
}
.helpsteps .textbtn {
  display: inline-flex;
  font-size: 13px;
  margin-right: 14px;
}
.accountpreview {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #f5f7ff;
  padding: 20px;
  border-radius: 12px;
  margin: 22px 0;
}
.avatarlarge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #e1e7ff;
  color: #5e64b3;
  border-radius: 50%;
  font-size: 23px;
  flex-shrink: 0;
}
.accountpreview h3 {
  font-size: 16px;
}
.accountpreview p {
  font-size: 13px;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.password-change {
  margin: 22px 0;
}
.signoutbutton {
  margin-top: 20px;
  color: #64748b;
  background: #f8fafc;
}
.reimbursement-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.reimbursement-heading h2 { margin: 4px 0 0; font-size: 26px; }
.reimbursement-heading label { margin: 0; width: 180px; }
.person-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 290px)); gap: 20px; align-items: start; }
.person-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 28px 22px 22px; min-height: 220px; background: #fff; border: 1px solid #e8e8ef; border-radius: 20px; box-shadow: none; text-align: center; }
.person-card:hover { background: #fcfbff; border-color: #cfc9e6; box-shadow: 0 6px 20px #4f466308; }
.person-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #efecf8; color: #776996; font-size: 20px; font-weight: 500; margin-bottom: 16px; }
.person-name { font-size: 17px; font-weight: 550; overflow-wrap: anywhere; }
.person-owed { color: #718096; font-size: 13px; margin-top: 8px; font-weight: 400; }
.person-open { color: #8b80a5; font-size: 12px; font-weight: 400; margin-top: 22px; }
dialog:has(.person-detail) { width: 540px; }
.person-purchases { margin-top: 18px; }
.person-purchase { border-top: 1px solid #edf0f5; }
.person-purchase > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; cursor: pointer; font-size: 13px; }
.person-purchase > summary > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.person-purchase > summary > span:last-child { white-space: nowrap; }
.person-purchase small, .payment-allocation small { display: block; color: #8491a5; font-size: 11px; margin-top: 4px; }
.person-purchase-detail { padding: 0 0 12px; }
.payment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.payment-fields input { min-width: 0; }
.payment-editor .panelhead { margin-bottom: 8px; flex-wrap: wrap; }
.payment-editor h3 { font-size: 14px; margin: 0; }
.payment-allocations { max-height: 260px; overflow-y: auto; }
.payment-allocation { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; gap: 16px; margin: 0; padding: 10px 0; border-top: 1px solid #edf0f5; }
.payment-allocation > span { overflow-wrap: anywhere; font-weight: 400; }
.payment-allocation input { text-align: right; }
#payment-error { color: #a34941; font-size: 13px; }
.repaycard {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 23px;
  margin: 18px 0;
}
.repaytitle {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.repaytitle h3 {
  font-size: 15px;
}
.repaytitle h3 .pill {
  margin-left: 8px;
}
.repaytitle p {
  font-size: 13px;
  margin: 9px 0 0;
}
.repaytitle > strong {
  font-size: 24px;
  font-weight: 600;
  text-align: right;
}
.repaytitle small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  margin-top: 5px;
}
.repayflow {
  display: flex;
  gap: 35px;
  margin-top: 20px;
  font-size: 12px;
  color: #64748b;
}
.repayflow b {
  display: block;
  font-size: 15px;
  color: #334155;
  margin-top: 7px;
  font-weight: 550;
}
.repaycard .actions {
  justify-content: start;
  margin: 20px 0;
}
.positive {
  color: #28765d !important;
}
.paymententry {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin: 15px 0;
}
.paymententry button {
  font-size: 12px;
}
.guidegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.guidegrid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfe;
}
.guidegrid h3 {
  font-size: 14px;
}
.guidegrid p,
.guidegrid a {
  font-size: 13px;
}
.guidegrid a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guidecheck {
  font-size: 13px;
  line-height: 1.9;
  color: #64748b;
  padding-left: 20px;
}
.commandlist {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}
.commandlist button {
  display: flex;
  justify-content: start;
  gap: 14px;
  text-align: left;
  border: 0;
  box-shadow: none;
  padding: 14px;
}
.commandlist span > small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 5px;
}
.commandlist b {
  font-size: 14px;
  font-weight: 550;
}
.cmd-arrow {
  margin-left: auto;
}
#commandfilter {
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  max-width: calc(100vw - 35px);
  transform: translateX(-50%);
  display: none;
  background: #26344c;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 25px #18223926;
  font-size: 13px;
  z-index: 100;
}
footer {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 28px 0;
  color: #64748b;
  font-size: 12px;
}
footer > span {
  font-size: 12px;
}
@media (min-width: 1600px) {
  main {
    padding-left: 55px;
    padding-right: 55px;
  }
}
@media (max-width: 1150px) {
  main {
    padding: 0 25px;
  }
  header > span {
    display: none;
  }
  header > div {
    margin-left: auto;
  }
  .pie-layout {
    gap: 25px;
    padding: 20px 0;
  }
  .pie {
    width: 180px;
    height: 180px;
  }
  .pie:after {
    inset: 45px;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 39px;
  }
  .auth-panel {
    padding: 32px 35px;
  }
  .auth-layout {
    grid-template-columns: 42% 58%;
  }
  .card {
    padding: 20px;
  }
  .cards {
    gap: 14px;
  }
  .card .amount {
    font-size: 30px;
  }
  .reportstats .card .amount {
    font-size: 25px !important;
  }
}
@media (max-width: 900px) {
  aside {
    width: 195px;
    padding: 28px 13px;
  }
  main {
    margin-left: 195px;
    padding: 0 20px;
  }
  .brand {
    font-size: 26px;
    padding: 0 6px;
  }
  .brand:before {
    width: 27px;
    height: 27px;
    font-size: 18px;
  }
  .brand > span {
    font-size: 9px;
  }
  .pie-layout {
    flex-direction: column;
    align-items: center;
  }
  .pie-legend {
    width: 100%;
    max-height: none;
  }
  .auth-layout {
    grid-template-columns: 37% 63%;
  }
  .auth-story {
    padding: 30px 24px;
  }
  .auth-story h1 {
    font-size: 34px;
  }
  .auth-story p {
    font-size: 14px;
  }
  .auth-panel {
    padding: 28px;
  }
  .auth-box h2 {
    font-size: 30px;
  }
  .auth-box {
    max-width: 380px;
  }
  .cards .eyebrow {
    font-size: 10px;
  }
  .title .week {
    font-size: 12px;
    gap: 6px;
  }
  .title .week button {
    padding: 6px 8px;
  }
  .startchoices {
    grid-template-columns: 1fr;
  }
  .welcome-panel {
    padding: 30px 24px;
  }
  .startchoices button {
    min-height: 100px;
  }
  .horizontalbars > div {
    grid-template-columns: 110px 1fr 75px;
    gap: 10px;
  }
  .reportfilters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  body {
    font-size: 14px;
  }
  .auth-layout {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    min-height: 100dvh;
    padding: 24px;
  }
  .auth-box {
    margin: auto;
    max-width: 400px;
    padding: 36px 0;
  }
  .auth-back {
    font-size: 14px;
  }
  .auth-box h2 {
    font-size: 30px;
  }
  .auth-box > p {
    font-size: 15px;
  }
  .namefields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .namefields label {
    margin: 12px 0;
  }
  .auth-foot {
    padding-bottom: 8px;
  }
  .auth-box input {
    font-size: 16px;
  }
  .auth-box .auth-bottom {
    font-size: 14px;
  }
  .auth-bottom button {
    font-size: 14px;
  }
  .auth-or {
    margin: 24px 0;
  }
  aside {
    position: relative;
    width: 100%;
    padding: 16px 16px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 0;
  }
  .brand {
    font-size: 26px;
    padding: 0 3px;
  }
  .brand > span {
    display: none;
  }
  aside nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 14px;
    overflow: visible;
  }
  aside nav button {
    flex-shrink: 0;
    font-size: 11px;
    min-height: 44px;
    padding: 8px 4px;
    gap: 4px;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
  aside nav button .ui-icon { display: none; }
  aside nav button small {
    display: none;
    font-size: 10px;
    width: 14px;
    height: 18px;
    min-width: 14px;
  }
  .sidebottom { position: absolute; right: 16px; top: 15px; padding: 0; margin: 0; }
  .account-tools > summary { padding: 6px 0; font-size: 12px; }
  .account-tools[open] > div { position: absolute; right: 0; top: 35px; width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 8px 24px #0f172a14; z-index: 10; }
  .account-tools button { display: flex; width: 100%; border: 0; background: transparent; justify-content: flex-start; min-height: 40px; box-shadow: none; }

  .profile {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 16px;
  }
  main > header {
    height: 70px;
  }
  header > div {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  #add,
  #import {
    font-size: 12px;
    min-height: 42px;
    padding: 10px 12px;
  }
  #app {
    padding-top: 20px;
  }
  .title {
    margin-bottom: 18px;
    flex-wrap: wrap;
  }
  .title h1 {
    font-size: 27px;
  }
  .title p {
    font-size: 13px !important;
  }
  .title .week {
    margin-top: 4px;
  }
  .home-toolbar {
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .home-toolbar .textbtn {
    font-size: 12px;
  }
  .home-toolbar .week {
    font-size: 12px;
    gap: 7px;
  }
  .home-toolbar .week button {
    min-height: 32px;
  }
  .welcome-panel {
    padding: 30px 20px;
  }
  .welcome-panel h2 {
    font-size: 26px;
  }
  .welcome-panel > p {
    font-size: 14px;
  }
  .welcome-panel .eyebrow {
    font-size: 10px;
  }
  .startchoices {
    gap: 13px;
    margin: 25px 0;
  }
  .startchoices button {
    padding: 21px 18px;
    min-height: 108px;
  }
  .startchoices b {
    font-size: 14px;
  }
  .startchoices small {
    font-size: 12px;
  }
  .overview-links { grid-template-columns: 1fr; gap: 12px; }
  .homecards, .reportstats { grid-template-columns: 1fr; }
  .page-empty, .review-complete { padding: 30px 20px; }
  .transaction-dates button[type="submit"] { flex: 1 1 100%; }
  .empty-actions > button { max-width: 100%; }
  .reviewed-transactions > summary > span { display: block; margin: 7px 0 0; }
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 22px;
  }
  .card .eyebrow {
    font-size: 11px;
  }
  .amount {
    font-size: 32px !important;
  }
  .review-next {
    flex-wrap: wrap;
    padding: 22px;
  }
  .review-next h2 {
    font-size: 19px;
  }
  .review-next p {
    font-size: 13px;
  }
  .review-next > button {
    width: 100%;
    margin-top: 5px;
  }
  .panel {
    padding: 20px;
  }
  .panelhead {
    gap: 12px;
    align-items: start;
    flex-wrap: wrap;
  }
  .panelhead h2 {
    font-size: 17px;
  }
  .tablepanel {
    padding: 21px 0;
  }
  .tablepanel .panelhead {
    padding: 0 20px;
  }
  .tablepanel table {
    min-width: 650px;
  }
  .transaction-date-filter { margin-left: 20px; margin-right: 20px; }
  .transaction-dates { padding: 0 20px; }
  .toolbar {
    padding: 0 20px;
    flex-wrap: wrap;
  }
  .toolbar input {
    width: 100%;
    flex: auto;
  }
  .toolbar select {
    width: 100%;
  }
  .tableoverflow {
    max-width: 100%;
  }
  .reportbuilder .panelhead button {
    font-size: 12px;
    min-height: 36px;
  }
  .report-filter-details > summary {
    font-size: 13px;
    flex-wrap: wrap;
  }
  .report-filter-details > summary > span {
    font-size: 12px;
  }
  .reportfilters {
    grid-template-columns: 1fr;
  }
  .reportfilters input,
  .reportfilters select {
    font-size: 16px;
  }
  .report-records table, .report-records tbody { display: block; min-width: 0; width: 100%; }
  .report-records thead { display: none; }
  .report-records tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 18px 20px; border-top: 1px solid var(--line); }
  .report-records td { padding: 0; border: 0; min-width: 0; }
  .report-records td:first-child { grid-column: 1; font-weight: 550; }
  .report-records td:nth-child(2) { grid-column: 1; font-size: 11px; color: #718096; white-space: nowrap; }
  .report-records td:nth-child(3) { grid-column: 1 / -1; font-size: 12px; color: #718096; }
  .report-records td:nth-child(3)::before { content: "Category · "; }
  .report-records td:last-child { grid-column: 2; grid-row: 1 / 3; }
  .reportpresets {
    gap: 8px;
  }
  .reportpresets > span {
    width: 100%;
  }
  .reportpresets button {
    font-size: 12px;
  }
  .reportvisual .panelhead {
    align-items: center;
  }
  .reportvisual .panelhead h2 {
    width: 100%;
  }
  .chart-switch {
    margin-left: 0;
  }
  .chart-switch button {
    font-size: 12px;
    padding: 7px 11px;
    min-height: 34px;
  }
  .pie-layout {
    gap: 25px;
  }
  .pie {
    width: 215px;
    height: 215px;
  }
  .pie:after {
    inset: 54px;
  }
  .pie-legend > div {
    font-size: 12px;
    gap: 9px;
  }
  .horizontalbars > div {
    grid-template-columns: 95px 1fr 75px;
    gap: 10px;
    font-size: 12px;
  }
  .linecontainer svg {
    min-width: 480px;
  }
  .repaycard {
    padding: 18px;
  }
  .repaytitle h3 {
    font-size: 14px;
  }
  .repaytitle > strong {
    font-size: 21px;
  }
  .repaytitle small {
    font-size: 11px;
  }
  .repayflow {
    gap: 20px;
    font-size: 11px;
  }
  .repayflow b {
    font-size: 14px;
  }
  .repaycard .actions {
    justify-content: start;
    gap: 8px;
  }
  .repaycard .actions button {
    font-size: 12px;
  }
  .repaycard + .panel {
    overflow: auto;
  }
  .paymententry {
    align-items: start;
    flex-wrap: wrap;
  }
  .guidegrid {
    grid-template-columns: 1fr;
  }
  .row {
    flex-wrap: wrap;
    gap: 0 12px;
  }
  .row > * {
    flex: 1 1 130px;
  }
  .mappinggrid {
    grid-template-columns: 1fr;
  }
  .builder-source {
    max-width: none;
  }
  .buildertable td,
  .buildertable th {
    display: table-cell !important;
  }
  .buildertable input,
  .buildertable select {
    font-size: 16px;
  }
  .builder-actions {
    gap: 9px;
  }
  .builder-actions strong {
    width: 100%;
    margin-left: 0;
  }
  .builder-actions button {
    font-size: 12px;
    min-height: 38px;
  }
  dialog {
    padding: 24px 20px;
    border-radius: 14px;
    max-height: 90dvh;
  }
  dialog h2 {
    font-size: 23px;
  }
  dialog p {
    font-size: 14px;
  }
  .dialog-close {
    right: 12px;
    top: 12px;
  }
  .builder-modal {
    max-width: calc(100vw - 20px);
  }
  .actions {
    gap: 9px;
    justify-content: end;
  }
  .actions button {
    font-size: 13px;
  }
  .helpsteps {
    gap: 24px;
  }
  .helpsteps p {
    font-size: 14px;
  }
  .helpsteps .textbtn {
    display: flex;
    font-size: 13px;
    margin: 7px 0;
  }
  .splitrow input {
    width: 100px;
  }
  .accountpreview {
    padding: 17px;
    gap: 12px;
  }
  .accountpreview p {
    font-size: 12px;
  }
  footer {
    font-size: 11px;
    flex-direction: column;
    gap: 4px;
    padding: 25px 0;
  }
  footer > span {
    font-size: 11px;
  }
  #toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    transform: none;
    font-size: 13px;
  }
  .google-box {
    padding: 28px;
  }
  .google-box input {
    font-size: 16px;
  }
  .google-box h1 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 681px) and (max-width: 900px) {
  aside nav {
    min-width: 0;
  }
  aside nav button {
    font-size: 12px;
    gap: 8px;
    padding: 11px 9px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  aside nav .ui-icon {
    width: 16px;
    height: 16px;
  }
  aside nav button small {
    font-size: 10px;
    min-width: 18px;
    height: 18px;
  }
  .cards {
    gap: 12px;
  }
  .card {
    padding: 18px;
  }
  .card p {
    font-size: 12px;
  }
  .card .amount {
    font-size: 29px;
  }
  .title h1 {
    font-size: 28px;
  }
}
/* Account refinement: actual Google artwork, distinct Penny action styling. */
.auth-panel {
  background: radial-gradient(ellipse at 100% 0%, #f7f7ff 0%, #fff 48%);
}
.auth-box {
  max-width: 398px;
}
.auth-box h2 {
  font-size: 34px;
  letter-spacing: -1.3px;
}
.auth-box > p {
  margin-bottom: 26px;
}
.auth-box form {
  margin-top: 0;
}
.auth-box label {
  margin: 19px 0;
  color: #38465c;
}
.auth-box input {
  height: 49px;
  border: 1px solid #d9e0eb;
  border-radius: 11px;
  padding: 13px 15px;
  background: #fcfdff;
  font-size: 15px;
  box-shadow: 0 1px 2px #0f172a02;
}
.auth-box input:hover {
  border-color: #b7c3d6;
}
.auth-box input:focus {
  background: #fff;
  border-color: #8b83f1;
  box-shadow: 0 0 0 4px #edeaff;
}
.auth-box .passwordfield input {
  padding-right: 65px;
}
.auth-box .passwordfield button {
  top: 7px;
  right: 7px;
  border-radius: 7px;
  color: #596981;
}
.auth-box .passwordfield button:hover {
  background: #eef1f8;
}
.passwordhint {
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
}
.auth-or {
  margin: 25px 0 22px;
  font-size: 12px;
  gap: 13px;
}
.auth-submit.primary {
  position: relative;
  isolation: isolate;
  border: 1px solid #4338ca;
  border-radius: 11px;
  min-height: 50px;
  background: linear-gradient(180deg, #6a58ed 0%, #5140db 100%);
  box-shadow:
    inset 0 1px 0 #ffffff40,
    0 3px 7px #5140db22;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 17px;
  transition:
    box-shadow 0.18s,
    filter 0.18s,
    transform 0.18s;
}
.auth-submit.primary:hover {
  background: linear-gradient(180deg, #7561f3 0%, #5946e5 100%);
  border-color: #5140db;
  box-shadow:
    inset 0 1px 0 #ffffff40,
    0 5px 13px #5140db2b;
  transform: translateY(-1px);
}
.auth-submit.primary:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px #3629a530;
}
.auth-submit.primary > span {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}
.auth-submit.primary:disabled {
  transform: none;
  filter: saturate(0.75);
  opacity: 0.7;
}
.auth-bottom button {
  font-weight: 600;
}
.auth-foot {
  color: #718096;
}
@media (max-width: 680px) {
  .auth-panel {
    padding: 24px;
  }
  .auth-box h2 {
    font-size: 31px;
  }
  .auth-box input {
    font-size: 16px;
  }
  .auth-box {
    padding: 35px 0;
  }
  .auth-submit.primary {
    min-height: 50px;
  }
}
.provider-buttons {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
}
.provider-buttons .provider-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  height: 50px;
  min-height: 50px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #c8cdd4;
  border-radius: 999px;
  box-shadow: none;
  color: #1f1f1f;
  font: 550 15px/20px var(--font);
  letter-spacing: 0;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.provider-buttons .provider-button:hover {
  background: #f8fafc;
  border-color: #9ca5b2;
}
.provider-buttons .provider-button:active {
  background: #f1f5f9;
  transform: none;
}
.provider-logo {
  display: block;
  position: relative;
  width: 24px;
  height: 24px;
  overflow: hidden;
  flex-shrink: 0;
}
.provider-logo img {
  position: absolute;
  display: block;
  max-width: none;
}
.google-logo img {
  width: 48px;
  height: 48px;
  left: -12px;
  top: -12px;
}
.apple-logo img {
  width: 54px;
  height: 54px;
  left: -15px;
  top: -15px;
}
.auth-box .auth-or {
  margin-top: 25px;
}
.auth-box {
  padding-top: 30px;
  padding-bottom: 30px;
}
@media (max-width: 680px) {
  .provider-buttons .provider-button {
    height: 50px;
    min-height: 50px;
    font-size: 15px;
    gap: 12px;
  }
  .provider-buttons {
    gap: 12px;
  }
  .auth-box {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* Persistent cloud save state remains visible when editing is blocked. */
#cloud-status { position: fixed; bottom: 12px; right: 16px; z-index: 10000;
  max-width: min(520px, calc(100vw - 32px)); margin: 0; padding: 8px 12px;
  border: 1px solid #d8d5cd; border-radius: 8px; background: #fffdf7;
  color: #38362f; font-size: 13px; }
#cloud-status:empty { display: none; }
.cloud-save-failed main, .cloud-save-failed aside, .cloud-save-failed #form {
  pointer-events: none; opacity: .65;
}

#cloud-status button { margin-left: 10px; padding: 4px 10px; }
#cloud-status[hidden], #cloud-status button[hidden] { display: none; }
