*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;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:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.responsive-table{width:100%;border-collapse:collapse}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.relative{position:relative}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-wrap{flex-wrap:wrap}.border{border-width:1px}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.outline{outline-style:solid}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@media (max-width:640px){nav.topbar .inner{flex-wrap:wrap;row-gap:.25rem}nav.topbar a.nav{padding:.35rem .55rem;font-size:.85rem}nav.topbar .brand{margin-right:.5rem;font-size:1.05rem}.container{padding:1rem .75rem}h1{font-size:1.35rem}h2{font-size:1.05rem}.huge{font-size:1.5rem}.big{font-size:1.2rem}}@media (max-width:720px){table.responsive-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}table.responsive-table,table.responsive-table tbody,table.responsive-table td,table.responsive-table tr{display:block;width:100%}table.responsive-table tr{background:var(--surface);border:1px solid var(--border);border-radius:.6rem;margin-bottom:.6rem;padding:.4rem .6rem}table.responsive-table td{border:none;padding:.35rem 0;display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;text-align:right}table.responsive-table td:before{content:attr(data-label);color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;font-weight:600;flex:0 0 auto;text-align:left}table.responsive-table td:not([data-label]):before{content:none}table.responsive-table td:not([data-label]){justify-content:flex-end}table.responsive-table td form.row{flex-wrap:wrap;width:100%;justify-content:flex-end}table.responsive-table tr:last-child td:last-child{border-bottom:none}}
/* ============================================================
 * v0.15.3 — UI polish additions.
 * Appended to the compiled bundle so no Tailwind rebuild is needed.
 * Matches the documentation in app/static/src/input.css.
 * ============================================================ */

/* M6: mobile transactions counterparty cell — stack two-line content
   left-aligned inside the responsive-table flex slot instead of
   right-aligning and wrapping under the wrong column. The selector
   intentionally targets the live counterparty cell from
   transactions.html (data-label="Counterparty"). */
@media (max-width: 720px) {
  table.responsive-table td[data-label="Counterparty"],
  table.responsive-table td[data-label="Description"] {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  table.responsive-table td[data-label="Counterparty"]::before,
  table.responsive-table td[data-label="Description"]::before {
    margin-bottom: 0.2rem;
  }
  /* H1 helper: recent-activity cell on the accounts page. The pills
     inside should wrap onto their own lines instead of crashing into
     the right-aligned flex slot. */
  table.responsive-table td[data-label="Recent"] {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  table.responsive-table td[data-label="Recent"] .recent-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.2rem;
  }
}

/* H4 follow-on: more breathing room between wrapped nav rows on phones
   so the overflow rows don't fuse together into one solid block. */
@media (max-width: 640px) {
  nav.topbar .inner {
    row-gap: 0.4rem;
  }
  nav.topbar details.more-menu .more-panel {
    /* On a small viewport the absolute panel should stay inside the
       viewport, not float off to the right. */
    left: 0; right: auto;
    min-width: 8rem;
  }
}

/* H2: KPI tier mobile sizes. .kpi joins .big and .huge in the
   responsive scale so all three KPI levels shrink predictably. */
@media (max-width: 640px) {
  .kpi { font-size: 1.3rem; }
  .big { font-size: 1.1rem; }
}

/* L9: dashed empty-state on mobile gets a slightly tighter padding
   so it doesn't dominate small screens. */
@media (max-width: 640px) {
  .empty-state {
    padding: 1.1rem 0.75rem;
  }
}

/* H3: equalized form-card width helper.
   Use .form-shell on a wrapper inside a card to constrain the form
   itself without shrinking the card. */
.form-shell { max-width: 36rem; }

/* L1: $ prefix + decimal numeric input style. */
.money-input {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: 100%;
}
.money-input::before {
  content: "$";
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 0.4rem 0 0 0.4rem;
  background: var(--input-bg);
  color: var(--muted);
  font-size: 0.92rem;
}
.money-input > input {
  border-radius: 0 0.4rem 0.4rem 0;
  border-left: none;
}

/* L5: active filter chip variant for Reports tab strip. */
.chip-active {
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  font-weight: 600;
}
.chip-active:hover { background: color-mix(in srgb, var(--primary) 30%, transparent); }

/* H1: desktop layout for the new "Recent" cell on accounts list.
   On desktop the cell is a normal table cell; pills wrap inside it
   rather than spilling out into a long horizontal row. */
table.responsive-table td.recent-cell .recent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
table.responsive-table td.recent-cell {
  max-width: 22rem;
}

/* M5: action cells with two ghost buttons should read as two distinct
   buttons. Default table cell layout collapses the gap. */
td.row-actions {
  white-space: nowrap;
}
td.row-actions .btn + .btn { margin-left: 0.4rem; }
@media (max-width: 720px) {
  td.row-actions .btn + .btn { margin-left: 0; }
}

/* L7: Settings page section bands.
   Used to group multiple cards under a common header (Account / Data /
   Admin) so the user can scan large vertical stacks. */
h2.section-band {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

/* ========== v1.0 polish appendix ========== */
/* M6: row-actions cells should wrap on phones, not push off-card. */
@media (max-width: 640px) {
  td.row-actions { white-space: normal; }
  td.row-actions .btn + .btn { margin-left: 0; margin-top: 0.35rem; }
}

/* L7: recent-activity cells lead with amount, then muted date suffix,
   then counterparty on its own line. The .recent-amount and
   .recent-date classes are applied in accounts.html. */
.recent-row { display: flex; flex-direction: column; gap: 0.15rem; line-height: 1.35; }
.recent-row .recent-head { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.recent-row .recent-amount { font-weight: 600; font-size: 0.92rem; }
.recent-row .recent-date { color: var(--muted); font-size: 0.78rem; }
.recent-row .recent-text { font-size: 0.85rem; color: var(--text); }

/* L8: dashed action-disclosure surfaces (also defined in base.html for
   the inline cascade). Kept here so the docs stay parity with dist. */

/* H5: chart-shell mobile readability — the data-tick-density helper
   is read by Chart.js options in dashboard.html. */

/* L4: inline-edit accent border. */
