:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #302b46;
  background: #f8f8fc;
  font-synthesis: none;
  --purple: #7652c7;
  --purple-dark: #6040aa;
  --border: #e8e5f0;
  --muted: #77718b;
  --green: #168568;
  --red: #b34f62;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: #514867;
  font-size: 13px;
  font-weight: 650;
  transition: background 0.15s;
}
button:hover {
  background: #f5f1fc;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #b99bea;
  outline-offset: 3px;
}
.primary {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 3px 0 #6040aa14;
}
.primary:hover {
  background: var(--purple-dark);
}
.quiet {
  background: transparent;
}
.full {
  width: 100%;
}
.icon-button {
  border: 0;
  font-size: 26px;
  line-height: 1;
  background: transparent;
  min-width: 44px;
  padding: 8px;
}
.danger {
  background: #b34154;
  color: white;
  border-color: #b34154;
}
.text-danger {
  color: var(--red) !important;
}
.topbar {
  height: 82px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
  position: relative;
  z-index: 5;
}
.brand {
  position: relative;
  color: #3c2868;
  text-decoration: none;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.9px;
  line-height: 0.9;
}
.brand-dot {
  color: #f7b852;
  font-size: 14px;
  vertical-align: super;
  margin-left: 3px;
}
.brand small {
  display: block;
  letter-spacing: 3px;
  font-size: 9px;
  text-transform: uppercase;
  margin-top: 9px;
  font-weight: 650;
  color: #8a79a9;
}
.test-label {
  font-size: 10px;
  letter-spacing: 0.6px;
  border-radius: 20px;
  background: #fff5d9;
  color: #8f6a23;
  padding: 7px 12px;
  margin-left: auto;
}
.topbar #logout {
  font-size: 12px;
  min-height: 36px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(25px, 2.4vw, 34px);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 8px;
  font-weight: 720;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.35px;
  margin-bottom: 12px;
  line-height: 1.4;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
}
.muted {
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 750;
  color: #8b6fc0;
  margin-bottom: 10px;
}
.app-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: calc(100vh - 82px);
}
.sidebar {
  border-right: 1px solid var(--border);
  background: white;
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.company-switch {
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fcfbff;
}
.company-switch label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #91899f;
  margin: 0 0 6px;
}
.company-switch select {
  font-size: 13px;
  font-weight: 650;
  border: 0;
  padding: 10px 4px;
  background: transparent;
  letter-spacing: normal;
}
.company-switch button {
  font-size: 11px;
  min-height: 34px;
  padding: 7px;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #9b94a9;
  margin: 0 12px -12px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: none;
  border-color: transparent;
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 550;
}
.nav-item > span {
  font-size: 19px;
  line-height: 1;
  min-width: 21px;
}
.nav-item.active {
  background: #f0e9fc;
  color: #6942b4;
  font-weight: 750;
}
.sidebar-note {
  background: #fff7e6;
  border: 1px solid #f5e9cc;
  border-radius: 12px;
  padding: 16px;
  margin-top: auto;
}
.sidebar-note > span {
  display: block;
  font-size: 24px;
  color: #d8a537;
  margin-bottom: 12px;
}
.sidebar-note strong {
  font-size: 12px;
}
.sidebar-note p {
  font-size: 11px;
  color: #9a8562;
  margin: 7px 0 0;
}
.account-label {
  font-size: 10px;
  overflow-wrap: anywhere;
  padding: 0 10px;
}
.content {
  padding: 34px 34px 0;
  min-width: 0;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}
.page-heading p:last-child {
  margin-bottom: 0;
}
.page-heading .primary {
  white-space: nowrap;
}
.toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 24px;
}
.month-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 11px;
  flex-shrink: 0;
}
.month-picker button {
  border: 0;
  min-width: 32px;
  min-height: 34px;
  padding: 2px 9px;
  font-size: 22px;
}
.month-picker input {
  border: 0;
  min-height: 34px;
  padding: 4px 3px;
  max-width: 157px;
  font-size: 12px;
  font-weight: 650;
}
.period-note {
  font-size: 11px;
  color: #9a91a9;
}
.toolbar > #export {
  margin-left: auto;
  font-size: 11px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 3px #32255203;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.card {
  padding: 19px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 13px;
  min-width: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 12px;
  font-weight: 550;
}
.card-icon {
  height: 28px;
  min-width: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.card strong {
  display: block;
  font-size: clamp(19px, 1.9vw, 29px);
  letter-spacing: -0.9px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.card small {
  display: block;
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.5;
}
.card.purple {
  background: #eee7fc;
  border-color: #e3d7f7;
  color: #523485;
}
.purple .card-icon {
  background: #dfd1f7;
  color: #7050b7;
}
.card.mint {
  background: #ecf8f3;
  border-color: #d8eee5;
}
.mint .card-icon {
  background: #d4eee2;
  color: #318e6f;
}
.card.peach {
  background: #fff1e9;
  border-color: #f7e0d1;
}
.peach .card-icon {
  background: #f9dfce;
  color: #c9794a;
}
.card.butter {
  background: #fff8e5;
  border-color: #f3e9c9;
}
.butter .card-icon {
  background: #f8eac0;
  color: #b9942d;
}
.card.rose {
  background: #fff0f2;
  border-color: #f6dfe4;
}
.rose .card-icon {
  background: #f8dce2;
  color: #b55672;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0 0 4px;
}
.section-heading p {
  font-size: 11px;
  margin: 0;
}
.legend {
  display: flex;
  gap: 14px;
  font-size: 10px;
  white-space: nowrap;
  padding-top: 5px;
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 5px;
}
.income-key:before {
  background: #8663ce;
}
.expense-key:before {
  background: #edb17a;
}
#chart {
  min-height: 204px;
  display: grid;
  align-items: center;
}
#chart svg {
  width: 100%;
  display: block;
  overflow: visible;
}
.grid-line {
  stroke: #f0edf5;
  stroke-width: 1;
}
.axis-label {
  fill: #948b9f;
  font-size: 9px;
  font-family: inherit;
}
.bar-income {
  fill: #8663ce;
}
.bar-expense {
  fill: #edb17a;
}
.chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f1edf6;
  font-size: 10px;
  color: #8f859f;
  margin-top: 12px;
  line-height: 1.5;
}
.chart-footer strong {
  color: #65577e;
  white-space: nowrap;
}
.mini-icon {
  font-size: 23px;
  color: #b097d5;
}
.next-panel > .muted {
  font-size: 11px;
  margin-top: -14px;
}
.next-panel {
  display: flex;
  flex-direction: column;
}
.next-panel > .full {
  margin-top: auto;
  border: 0;
  font-size: 11px;
  color: #7652c7;
}
.upcoming-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f1edf6;
  border-radius: 0;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  min-width: 0;
}
.upcoming-row > span {
  min-width: 0;
}
.upcoming-row strong {
  font-size: 11px;
  display: block;
  overflow-wrap: anywhere;
}
.upcoming-row small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.upcoming-row > strong {
  white-space: nowrap;
}
.recent-panel {
  margin-bottom: 24px;
}
.soft-tag {
  display: inline-block;
  background: #f5f1fc;
  color: #8a70b4;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 9px;
  white-space: nowrap;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px 12px;
  color: #90859f;
  min-height: 160px;
}
.empty .empty-icon {
  color: #a48bcc;
  background: #f5f0fc;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.empty strong {
  color: #675c7c;
  font-size: 13px;
  font-weight: 650;
}
.empty p {
  font-size: 11px;
  margin: 8px auto 0;
  max-width: 290px;
}
.empty-icon {
  font-size: 30px;
  color: #9d7acf;
}
.onboarding {
  text-align: center;
  padding: 70px 24px;
}
.onboarding h2 {
  font-size: 23px;
  margin-top: 20px;
}
.onboarding button {
  margin-top: 12px;
}
.list-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 20px;
}
.list-toolbar label {
  margin: 0;
}
.search-box {
  flex: 1;
}
.search-box input {
  font-size: 12px;
  background: #fcfbfe;
}
.status-filter {
  width: 174px;
}
.status-filter select {
  font-size: 11px;
}
.list-toolbar > #row-count {
  white-space: nowrap;
  font-size: 10px;
}
.accounts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.accounts-table th {
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 0.65px;
  font-weight: 600;
  color: #9489a3;
  text-align: left;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 10px;
  background: #fcfbfe;
}
.accounts-table td {
  padding: 16px 10px;
  border-bottom: 1px solid #f0ecf5;
  vertical-align: middle;
}
.accounts-table th:first-child {
  width: 103px;
}
.accounts-table th:nth-child(2) {
  width: auto;
}
.accounts-table th:nth-child(3) {
  width: 110px;
}
.accounts-table th:nth-child(4) {
  width: 122px;
  text-align: right;
}
.accounts-table th:nth-child(5) {
  width: 131px;
  text-align: right;
}
.description-cell {
  overflow-wrap: anywhere;
}
.description-cell strong {
  display: block;
  font-weight: 600;
  font-size: 12px;
}
.description-cell small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
  line-height: 1.5;
}
.date-cell {
  color: #857a93;
  font-size: 11px;
  white-space: nowrap;
}
.amount-cell {
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.positive {
  color: var(--green);
}
.status {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.status.settled {
  background: #dff7eb;
  color: #378265;
}
.status.pending {
  background: #f0ecf7;
  color: #85729e;
}
.status.today {
  background: #fff1d3;
  color: #aa7c23;
}
.status.late {
  background: #fce9ed;
  color: #b15c73;
}
.actions-cell {
  text-align: right;
  white-space: nowrap;
}
.settle-button {
  color: var(--purple);
  border-color: #d8caef;
  font-size: 10px;
  min-height: 32px;
  border-radius: 8px;
  padding: 6px 10px;
}
.row-menu {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  margin-left: 6px;
}
.row-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 5px;
  font-weight: 750;
  letter-spacing: 1px;
  color: #a79db8;
  min-width: 30px;
  text-align: center;
  min-height: 36px;
  border-radius: 6px;
}
.row-menu summary::-webkit-details-marker {
  display: none;
}
.row-menu[open] summary {
  background: #f1ebfa;
  color: #7954ce;
}
.row-menu-items {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 6;
  width: 170px;
  padding: 6px;
  background: white;
  box-shadow: 0 8px 30px #30204a20;
  border: 1px solid var(--border);
  border-radius: 9px;
  white-space: normal;
  text-align: left;
}
.row-menu-items button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  padding: 10px;
  font-size: 11px;
  border-radius: 5px;
  min-height: 36px;
}
.dre-banner {
  background: #eee7fc;
  color: #61418d;
  border-radius: 14px;
  padding: 27px 30px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.dre-banner h2 {
  font-size: 25px;
  margin: 12px 0 8px;
  letter-spacing: -0.7px;
}
.dre-banner p {
  margin: 0;
  font-size: 12px;
  color: #8f78a9;
}
.banner-flower {
  font-size: 86px;
  color: #b49adf;
  line-height: 1;
}
.dre-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 10px;
  font-size: 13px;
  border-bottom: 1px solid #f1edf6;
  overflow-wrap: anywhere;
}
.dre-row > span:last-child,
.dre-row > strong:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dre-heading {
  background: #faf8fe;
  border-radius: 8px;
  margin-top: 14px;
  color: #7c5ba9;
}
.total {
  margin-top: 22px;
  background: #edf8f2;
  border: 1px solid #d8eee2;
  border-radius: 10px;
  padding: 20px;
  font-size: 17px;
  color: #358365;
}
.footnote {
  font-size: 10px;
  color: #a096ac;
  margin: 22px 0 0;
  line-height: 1.7;
}
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 34px;
  font-size: 10px;
  color: #aca3b8;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 18px;
  min-width: 0;
}
input,
select {
  color: #514765;
  background: white;
  border: 1px solid #e3ddea;
  border-radius: 9px;
  padding: 12px 13px;
  width: 100%;
  min-height: 43px;
  font-size: 13px;
}
input::placeholder {
  color: #b6adbf;
  font-size: 12px;
}
input:focus,
select:focus {
  outline: 3px solid #e9defb;
  border-color: #b49adf;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  color: #302b46;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 70px #25153924;
  max-width: calc(100vw - 28px);
}
dialog::backdrop {
  background: #281a4550;
  backdrop-filter: blur(2px);
}
.small-dialog {
  width: 460px;
}
.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  font-size: 20px;
  margin: 0;
}
.dialog-heading .eyebrow {
  display: block;
  font-size: 9px;
  margin-bottom: 8px;
}
.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 12px;
  margin-top: 28px;
}
.dialog-actions button {
  flex: 1;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.optional {
  font-weight: 400;
  color: #a095ad;
  font-size: 10px;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 520px;
  max-width: 100vw;
  height: 100%;
  max-height: 100%;
  margin: 0;
  border-radius: 18px 0 0 18px;
  padding: 0;
  border-right: 0;
}
.drawer form {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.drawer .dialog-heading {
  margin: 0;
  padding: 27px 28px;
  border-bottom: 1px solid var(--border);
}
.drawer-body {
  overflow-y: auto;
  padding: 26px 28px;
  flex: 1;
}
.drawer-actions {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  background: white;
}
.drawer-actions .primary {
  flex: 1;
}
.form-tip {
  display: flex;
  align-items: start;
  gap: 12px;
  background: #f6f2fc;
  padding: 16px;
  border-radius: 10px;
  color: #8b6bb4;
  margin-top: 24px;
}
.form-tip > span {
  font-size: 20px;
}
.form-tip p {
  font-size: 11px;
  margin: 0;
}
.notice {
  position: fixed;
  z-index: 20;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 15px 22px;
  background: #e1f5e9;
  border: 1px solid #bedecb;
  border-radius: 12px;
  font-size: 13px;
  color: #34745a;
  box-shadow: 0 4px 24px #31204510;
}
.notice.error,
.form-error {
  background: #fff0f1;
  border: 1px solid #f0d0d8;
  color: #ac4663;
}
.form-error {
  padding: 14px;
  border-radius: 8px;
  font-size: 12px;
  margin: 12px 20px;
  line-height: 1.6;
}
.auth {
  max-width: 1130px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 90px;
}
.welcome h1 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 28px 0 22px;
}
.welcome h1 em {
  font-style: normal;
  color: #8660c9;
}
.welcome > p {
  font-size: 14px;
  color: #91859f;
  line-height: 1.9;
}
.sticker {
  display: inline-block;
  background: #fff1c9;
  color: #a3894c;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 10px;
}
.welcome-tags {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.welcome-tags span {
  border-radius: 20px;
  padding: 9px 15px;
  font-size: 11px;
  background: #e5f5ed;
  color: #5d9b80;
}
.welcome-tags span:nth-child(2) {
  background: #fce9df;
  color: #c98d6a;
}
.welcome-tags span:nth-child(3) {
  background: #eee6fa;
  color: #9d7dbf;
}
.auth .panel {
  padding: 32px;
}
.auth h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
  margin: 10px 0;
}
.auth .panel > .muted {
  margin-bottom: 28px;
}
.auth .primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding: 13px 18px;
}
.registration {
  margin-top: 22px;
  font-size: 11px;
  color: #8d7ba8;
}
.registration summary {
  cursor: pointer;
  min-height: 30px;
}
.registration p {
  font-size: 11px;
}
.privacy-note {
  display: block;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
  font-size: 9px;
  color: #aaa0b6;
}
@media (min-width: 1700px) {
  .content {
    padding-left: 50px;
    padding-right: 50px;
  }
  .card strong {
    font-size: 32px;
  }
}
@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .content {
    padding: 28px 22px 0;
  }
  .sidebar {
    padding: 24px 12px;
  }
  .nav-item {
    padding: 12px 9px;
    font-size: 11px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 15px 12px;
  }
  .card strong {
    font-size: 22px;
  }
  .accounts-table th:nth-child(3) {
    width: 90px;
  }
  .accounts-table th:nth-child(4) {
    width: 105px;
  }
  .accounts-table th:nth-child(5) {
    width: 116px;
  }
  .accounts-table td {
    padding: 15px 6px;
  }
  .accounts-table th:first-child {
    width: 88px;
  }
  .period-note {
    display: none;
  }
  .auth {
    gap: 45px;
  }
  .next-panel #upcoming {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 72px;
    padding: 0 20px;
    gap: 12px;
  }
  .brand {
    font-size: 30px;
  }
  .test-label {
    font-size: 9px;
    padding: 7px 10px;
  }
  .app-layout {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    padding: 15px 16px 0;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .company-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 0;
    gap: 12px;
  }
  .company-switch label {
    flex: 1;
    margin: 0;
    gap: 3px;
    min-width: 0;
  }
  .company-switch select {
    padding: 5px 0;
    max-width: 100%;
    font-size: 13px;
    min-height: 32px;
  }
  .company-switch button {
    width: auto;
    flex-shrink: 0;
    font-size: 10px;
  }
  .nav-caption,
  .sidebar-note,
  .account-label {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .nav-item {
    border-radius: 9px 9px 0 0;
    min-height: 61px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 8px 2px;
    font-size: 9px;
    line-height: 1.4;
  }
  .nav-item > span {
    font-size: 18px;
  }
  .nav-item.active {
    box-shadow: inset 0 -2px #9878d0;
    background: #f5f0fd;
  }
  .content {
    padding: 24px 16px 0;
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 19px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .primary {
    align-self: start;
    font-size: 12px;
  }
  .page-heading .muted {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.1px;
  }
  .toolbar {
    gap: 10px;
    justify-content: space-between;
    padding-bottom: 20px;
  }
  .month-picker {
    gap: 2px;
  }
  .month-picker input {
    font-size: 11px;
    width: 135px;
  }
  .month-picker button {
    min-width: 28px;
    padding: 0 6px;
  }
  .toolbar > #export {
    font-size: 10px;
    padding: 9px 10px;
    white-space: nowrap;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }
  .card {
    padding: 15px 13px;
  }
  .card-heading {
    font-size: 10px;
    gap: 5px;
    margin-bottom: 12px;
  }
  .card-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 14px;
    border-radius: 8px;
  }
  .card strong {
    font-size: 23px;
    letter-spacing: -0.8px;
  }
  .card small {
    font-size: 9px;
    margin-top: 9px;
    line-height: 1.5;
  }
  .panel {
    padding: 19px 16px;
  }
  .dashboard-grid {
    gap: 16px;
    margin-bottom: 16px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 16px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .chart-panel .section-heading {
    flex-direction: column;
    gap: 6px;
  }
  .legend {
    padding-top: 0;
    gap: 12px;
  }
  .chart-panel #chart {
    min-height: 170px;
  }
  .chart-footer {
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
  }
  .next-panel #upcoming {
    display: block;
  }
  .next-panel > .muted {
    margin-top: -7px;
  }
  .list-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .search-box {
    grid-column: 1/-1;
  }
  .status-filter {
    width: 170px;
  }
  .account-list {
    padding: 16px 13px;
  }
  .accounts-table,
  .accounts-table tbody {
    display: block;
  }
  .accounts-table thead {
    display: none;
  }
  .accounts-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 10px;
    border-top: 1px solid var(--border);
    padding: 18px 2px;
  }
  .accounts-table td {
    display: block;
    border: 0;
    padding: 0;
  }
  .accounts-table td:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .description-cell {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  .accounts-table .date-cell {
    grid-column: 1;
    grid-row: 3;
    font-size: 10px;
  }
  .accounts-table .date-cell:before {
    content: "Vencimento: ";
    color: #a397b1;
  }
  .recent-table .date-cell:before {
    content: "Realizada: ";
  }
  .accounts-table .amount-cell {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
  }
  .accounts-table .actions-cell {
    grid-column: 2;
    grid-row: 2/4;
    align-self: end;
  }
  .description-cell strong {
    font-size: 12px;
  }
  .description-cell small {
    font-size: 10px;
  }
  .settle-button {
    min-height: 38px;
  }
  .row-menu summary {
    min-height: 40px;
    min-width: 34px;
    padding-top: 12px;
  }
  .row-menu-items {
    top: auto;
    bottom: 100%;
    width: 167px;
  }
  .row-menu-items button {
    min-height: 42px;
    font-size: 12px;
  }
  .status {
    font-size: 9px;
  }
  .dre-banner {
    padding: 22px 19px;
    gap: 12px;
  }
  .dre-banner .eyebrow {
    font-size: 8px;
  }
  .dre-banner h2 {
    font-size: 21px;
  }
  .dre-banner p {
    font-size: 11px;
  }
  .banner-flower {
    font-size: 56px;
  }
  .dre-row {
    font-size: 12px;
    padding: 14px 5px;
  }
  .total {
    font-size: 15px;
    padding: 17px 12px;
  }
  footer {
    font-size: 9px;
    flex-direction: column;
    gap: 6px;
    margin-top: 26px;
  }
  .auth {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 28px;
    max-width: 500px;
  }
  .welcome h1 {
    font-size: 38px;
    letter-spacing: -1.6px;
    margin: 22px 0 15px;
  }
  .welcome > p {
    font-size: 12px;
  }
  .sticker {
    font-size: 9px;
    padding: 8px 11px;
  }
  .welcome-tags {
    margin-top: 20px;
  }
  .auth .panel {
    padding: 25px 22px;
  }
  .auth h2 {
    font-size: 22px;
  }
  .drawer {
    width: 100%;
    border-radius: 0;
  }
  .drawer .dialog-heading {
    padding: 22px 20px;
  }
  .drawer-body {
    padding: 22px 20px;
  }
  .drawer-actions {
    padding: 16px 20px;
  }
  .small-dialog {
    padding: 24px 20px;
  }
  .small-dialog .dialog-heading h2 {
    font-size: 18px;
  }
  .pair {
    gap: 12px;
  }
  .dialog-actions {
    gap: 10px;
  }
  .dialog-actions button {
    padding: 10px;
  }
  .notice {
    top: 10px;
    font-size: 12px;
    padding: 12px 16px;
  }
  .soft-tag {
    font-size: 8px;
    padding: 5px 8px;
  }
  .onboarding {
    padding: 45px 18px;
  }
  .onboarding h2 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.svg-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.card-icon .svg-icon {
  width: 16px;
  height: 16px;
}
.nav-item > span .svg-icon {
  width: 19px;
  height: 19px;
}
@media (max-width: 760px) {
  .toolbar {
    flex-wrap: wrap;
  }
  .nav-item > span .svg-icon {
    width: 18px;
    height: 18px;
  }
}
textarea {
  font: inherit;
  resize: vertical;
  width: 100%;
  border: 1px solid #e3ddea;
  border-radius: 9px;
  padding: 13px;
  color: #514765;
  font-size: 13px;
  line-height: 1.7;
  background: white;
}
textarea:focus {
  outline: 3px solid #e9defb;
  border-color: #b49adf;
}
.assistant-nav {
  margin-top: 12px;
  border-top: 1px solid var(--border);
}
.draft-badge {
  margin-left: auto !important;
  min-width: 20px !important;
  font-size: 10px !important;
  background: #7954ce;
  color: white;
  padding: 4px 6px;
  border-radius: 20px;
  line-height: 1;
}
.assistant-hero {
  padding: 30px;
  background: linear-gradient(120deg, #eaf7f0, #f0e8fc);
  border: 1px solid #e1e8ed;
  border-radius: 15px;
  margin-bottom: 22px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.assistant-hero h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 13px 0;
}
.assistant-hero p {
  max-width: 570px;
  font-size: 12px;
  color: #81718f;
  margin: 0;
}
.assistant-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.setup-note {
  padding: 17px;
  background: #fff8e4;
  border: 1px solid #f0e3bf;
  border-radius: 10px;
  margin-bottom: 20px;
}
.setup-note strong {
  font-size: 12px;
}
.setup-note p {
  font-size: 11px;
  color: #9a865c;
  margin: 7px 0 0;
}
.connection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
}
.connection-row strong {
  font-size: 11px;
}
.connection-row button {
  font-size: 10px;
}
.draft-card {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.draft-card:first-child {
  border-top: 0;
}
.draft-card h3 {
  font-size: 16px;
  margin: 8px 0 0;
}
.draft-card .section-heading {
  margin-bottom: 12px;
}
.draft-summary {
  font-size: 13px;
  font-weight: 600;
}
.draft-warning {
  font-size: 12px;
  color: #a46b38;
  background: #fff8e5;
  padding: 12px;
  border-radius: 8px;
  line-height: 1.6;
}
.draft-original {
  font-size: 11px;
  color: #8f809f;
  margin: 15px 0;
}
.draft-original summary {
  cursor: pointer;
  min-height: 32px;
  padding-top: 5px;
}
.draft-original p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f8f6fc;
  padding: 14px;
  border-radius: 8px;
  max-height: 240px;
  overflow: auto;
}
.draft-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.draft-actions button {
  font-size: 11px;
}
#pairing-code {
  display: block;
  background: #f4eefb;
  border: 1px dashed #bba6db;
  border-radius: 9px;
  padding: 16px;
  font-size: 13px;
  overflow-wrap: anywhere;
  user-select: all;
}
#draft-review-note {
  margin-top: 0;
  margin-bottom: 20px;
}
#draft-review-note p {
  white-space: pre-wrap;
}
@media (max-width: 760px) {
  .sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .assistant-nav {
    grid-column: 1/-1;
    flex-direction: row;
    gap: 10px;
    margin-top: 0;
    min-height: 42px;
    border-radius: 8px;
    font-size: 11px;
  }
  .assistant-nav .draft-badge {
    margin-left: 0 !important;
  }
  .assistant-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .assistant-hero {
    padding: 23px 19px;
  }
  .assistant-hero h2 {
    font-size: 24px;
  }
  .assistant-hero .banner-flower {
    font-size: 44px;
  }
  .assistant-hero .eyebrow {
    font-size: 8px;
  }
  .assistant-hero p {
    font-size: 11px;
  }
  .draft-card h3 {
    font-size: 14px;
  }
  .draft-summary {
    font-size: 12px;
  }
}
.registry-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.registry-tabs .active {
  background: #eee6fa;
  color: #7954ce;
  border-color: #d9c9f1;
}
.registry-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.registry-row > div:first-child {
  flex: 1;
  min-width: 0;
}
.registry-row strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.registry-row small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.registry-actions {
  display: flex;
  gap: 8px;
}
.registry-actions button {
  font-size: 11px;
}
.registry-row > .positive {
  white-space: nowrap;
}
.connection-row span {
  font-size: 11px;
  line-height: 1.6;
}
#payment-history {
  margin-top: 25px;
}
#payment-history h3 {
  font-size: 14px;
}
.registry-row:first-child {
  border: 0;
}
@media (max-width: 760px) {
  .sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .assistant-nav {
    grid-column: auto;
    flex-direction: column;
    font-size: 9px;
    min-height: 61px;
    gap: 5px;
  }
  .assistant-nav .draft-badge {
    display: none;
  }
  .registry-tabs {
    gap: 6px;
  }
  .registry-tabs button {
    font-size: 10px;
    flex: 1;
    padding: 10px 8px;
  }
  .registry-row {
    flex-wrap: wrap;
    gap: 13px;
  }
  .registry-actions {
    flex-basis: 100%;
    justify-content: end;
  }
  .registry-actions button {
    min-height: 38px;
  }
  .registry-row strong {
    font-size: 12px;
  }
}
.button-link {
  display: block;
  text-decoration: none;
  text-align: center;
  margin-top: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  background: #7954ce;
  color: white;
  font-size: 12px;
  font-weight: 650;
}
.button-link:hover {
  background: #6040aa;
}
.photo-capture {
  border: 1px dashed #d4c3ed;
  border-radius: 12px;
  background: #faf7ff;
  padding: 16px;
  margin: 0 0 22px;
}
.photo-capture > strong {
  font-size: 13px;
}
.photo-caption {
  font-size: 11px;
  color: #8b7c9d;
  line-height: 1.6;
  margin: 8px 0 12px;
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.photo-actions button {
  font-size: 11px;
  background: white;
  min-height: 42px;
}
.photo-preview {
  display: block;
  max-height: 140px;
  max-width: 100%;
  border-radius: 9px;
  margin-top: 14px;
  object-fit: contain;
  background: white;
}
.photo-feedback {
  font-size: 12px;
  color: #66517e;
  line-height: 1.7;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.photo-feedback.error {
  color: #a34860;
}
.accounts-table th:nth-child(5) {
  width: 180px;
}
.recent-table th:last-child {
  width: 80px;
}
input[data-money] {
  font-variant-numeric: tabular-nums;
}
input[data-money][readonly] {
  background: #f7f4fc;
  color: #675080;
  font-weight: 650;
}
@media (max-width: 1100px) {
  .accounts-table th:nth-child(5) {
    width: 170px;
  }
  .recent-table th:last-child {
    width: 70px;
  }
}
@media (max-width: 760px) {
  .photo-capture {
    padding: 14px;
  }
  .photo-actions button {
    flex: 1;
  }
  .settle-button {
    white-space: normal;
    max-width: 130px;
    line-height: 1.4;
  }
}

.bill-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.bill-controls label{margin:0}.bill-list{display:grid;gap:14px;margin-top:20px}
.bill-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px;border:1px solid #e3d9f2;border-radius:12px;background:#fcfaff}
.bill-row>strong{grid-column:1/-1;color:#7954ce;font-size:13px}
.bill-row label{margin:0}.bill-paid{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;justify-content:space-between}
.bill-paid input{width:20px;min-height:20px}.bill-total{display:block;font-size:16px;margin:20px 0;color:#7954ce}
.bill-actions{display:flex;gap:10px;flex-wrap:wrap}
.install-trigger{font-size:11px;padding:8px 12px;min-height:36px}
@media(max-width:760px){.bill-controls,.bill-row{grid-template-columns:1fr}.can-install-app .topbar .test-label{display:none}.can-install-app .topbar{padding:0 14px;gap:8px}.install-trigger{margin-left:auto}}

.supplier-quick {
  margin: 8px 0 16px;
  padding: 14px;
  background: #f5efff;
  border: 1px solid #d9ccef;
  border-radius: 14px;
}
.supplier-quick [hidden] { display: none; }
.supplier-quick label { display: block; margin: 12px 0; }
.supplier-quick input, .supplier-quick textarea {
  width: 100%; box-sizing: border-box;
}
.supplier-quick button { margin: 6px 6px 6px 0; }
.supplier-quick p { font-size: .9rem; }

.supplier-quick input[type="checkbox"] {
 width: auto; margin-right: 8px;
}
.supplier-quick select {
 width: 100%; box-sizing: border-box;
}
.supplier-quick details { margin: 14px 0; }
