/* ============================================================
   Welsani app UI recreations — used as hero "product images".
   Faithful to the real app: fixed brand palette, Inter, warm grounds.
   These intentionally DON'T follow the site --accent tweak so the
   product stays authentic.
   ============================================================ */

.frame {
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.1);
  border-radius: 16px;
  box-shadow:
    0 40px 80px -32px rgba(22, 30, 60, 0.34),
    0 12px 28px -12px rgba(22, 30, 60, 0.18);
  overflow: hidden;
  font-family: "Inter", sans-serif;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #f3eedf;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
}
.frame-bar .dots {
  display: flex;
  gap: 7px;
}
.frame-bar .dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.frame-bar .dots i:nth-child(1) {
  background: #e6685e;
}
.frame-bar .dots i:nth-child(2) {
  background: #e3b341;
}
.frame-bar .dots i:nth-child(3) {
  background: #5cb85c;
}
.frame-url {
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.1);
  border-radius: 7px;
  font-size: 12px;
  color: #6f6a5d;
  padding: 5px 16px;
  font-family: ui-monospace, Menlo, monospace;
}

/* ---- App shell ---- */
.app {
  display: flex;
  background: #faf6ec;
  min-height: 480px;
}
.app-side {
  width: 196px;
  flex-shrink: 0;
  background: #faf6ec;
  border-right: 1px solid rgba(22, 22, 22, 0.08);
  padding: 16px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 6px 16px;
}
.app-brand .m {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #1e3a8a;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.app-brand .n {
  font-weight: 700;
  font-size: 16px;
  color: #1e3a8a;
  letter-spacing: -0.02em;
}
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #2a2823;
}
.app-nav-item svg {
  width: 16px;
  height: 16px;
  stroke: #4a463d;
  stroke-width: 1.7;
  fill: none;
}
.app-nav-item.on {
  background: #ebe3c9;
  color: #161616;
}
.app-nav-item.on svg {
  stroke: #161616;
}
.app-nav-item .badge {
  margin-left: auto;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: #1e3a8a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.app-side .spacer {
  flex: 1;
}
.app-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 6px 2px;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
  margin-top: 6px;
}
.app-user .av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d2c8a8;
  color: #4a3f1e;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
}
.app-user .nm {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.25;
}
.app-user div {
  line-height: 1.2;
}
.app-user .rl {
  font-size: 11px;
  color: #6f6a5d;
}

.app-main {
  flex: 1;
  padding: 24px 26px;
  min-width: 0;
}
.app-h1 {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: #161616;
}
.app-sub {
  font-size: 12.5px;
  color: #6f6a5d;
  margin-bottom: 20px;
}

/* ---- Generic app pieces ---- */
.aw-card {
  background: #f1ead6;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 13px;
  padding: 16px 18px;
}
.aw-surface {
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 13px;
}
.mono {
  font-family: ui-monospace, Menlo, monospace;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.chip.ok {
  background: #e3f3e8;
  color: #0f7a3c;
}
.chip.warn {
  background: #f7ecd6;
  color: #a85b00;
}
.chip.blue {
  background: #e7eef9;
  color: #1e3a8a;
}
.sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ---- Dashboard ---- */
.dash-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.networth .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6f6a5d;
  font-weight: 600;
}
.networth .val {
  font-family: "Inter", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
  white-space: nowrap;
}
.networth .delta {
  font-size: 12.5px;
  color: #0f7a3c;
  font-weight: 600;
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  margin-top: 14px;
}
.spark i {
  flex: 1;
  background: #1e3a8a;
  border-radius: 3px 3px 0 0;
  display: block;
  opacity: 0.88;
}
.mini-rows {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.mini-row .nm {
  flex: 1;
  font-weight: 500;
}
.mini-row .amt {
  font-weight: 600;
}
.entity-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #e1dcc7;
  display: grid;
  place-items: center;
}
.entity-ico svg {
  width: 13px;
  height: 13px;
  stroke: #5b4a14;
  stroke-width: 1.8;
  fill: none;
}

.alloc-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin: 12px 0 14px;
}
.alloc-bar i {
  display: block;
  height: 100%;
}
.legend {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legend .lr {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
}
.legend .lr .k {
  flex: 1;
  color: #2a2823;
}
.legend .lr .v {
  font-weight: 600;
  white-space: nowrap;
}

/* ---- To pay / reconciliation ---- */
.pay-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.invoice {
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 11px;
  padding: 16px 18px;
  font-size: 11.5px;
  color: #1a1a1a;
}
.invoice .ihead {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.invoice .co {
  font-weight: 700;
  font-size: 13px;
}
.invoice .meta {
  font-size: 10.5px;
  color: #6b6b6b;
}
.invoice .li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 3px 0;
}
.invoice .tot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 700;
}
.hl {
  background: rgba(255, 213, 79, 0.55);
  border-radius: 3px;
  padding: 0 4px;
  font-weight: 600;
  color: #3a2a00;
}
.hl.active {
  background: rgba(255, 196, 0, 0.85);
  box-shadow: 0 0 0 2px #a85b00;
}
.payform {
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 11px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.payform .fhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
}
.payform .fhead svg {
  width: 16px;
  height: 16px;
  stroke: #1e3a8a;
  stroke-width: 1.7;
  fill: none;
}
.payform .fhead .t {
  font-size: 13px;
  font-weight: 600;
}
.payform .fhead .by {
  margin-left: auto;
  font-size: 10.5px;
  color: #6f6a5d;
}
.fblock {
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 9px;
  padding: 8px 12px 9px;
}
.fblock.active {
  background: #fffbe9;
  border-color: #a85b00;
}
.fblock .frow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.fblock .flbl {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6f6a5d;
  font-weight: 600;
}
.fblock .fstat {
  font-size: 9.5px;
  color: #3b8a4f;
  display: flex;
  align-items: center;
  gap: 3px;
}
.fblock .fval {
  font-size: 13.5px;
  font-weight: 500;
  color: #161616;
}
.fblock .fval.big {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pay-cta {
  height: 38px;
  border-radius: 9px;
  background: #1e3a8a;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 2px;
}
.pay-cta svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 1.8;
  fill: none;
}

/* ---- Bank accounts (entity-first) ---- */
.ent-group {
  background: #f1ead6;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 13px;
  overflow: hidden;
}
.ent-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
}
.ent-head .ttl {
  font-size: 13.5px;
  font-weight: 600;
  flex: 1;
}
.ent-head .cnt {
  font-size: 12px;
  color: #6f6a5d;
}
.acct-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
  background: #f1ead6;
}
.bank-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.acct-row .info {
  flex: 1;
  min-width: 0;
}
.acct-row .top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.acct-row .bk {
  font-size: 13px;
  font-weight: 600;
}
.acct-row .ib {
  font-size: 11.5px;
  color: #6f6a5d;
}
.acct-row .st {
  font-size: 11.5px;
  color: #6f6a5d;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.cov {
  display: flex;
  gap: 1.5px;
}
.cov i {
  width: 5px;
  height: 11px;
  border-radius: 1.5px;
  display: block;
}
.upd-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(22, 22, 22, 0.14);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.upd-btn svg {
  width: 12px;
  height: 12px;
  stroke: #161616;
  stroke-width: 1.8;
  fill: none;
}

/* ---- Transactions ledger ---- */
.txn-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.txn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 150px;
  height: 32px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 9px;
  color: #9a9486;
  font-size: 12.5px;
}
.txn-search svg {
  width: 14px;
  height: 14px;
  stroke: #9a9486;
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
}
.txn-fil {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(22, 22, 22, 0.12);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #2a2823;
}
.txn-fil.on {
  background: #ebe3c9;
  border-color: rgba(22, 22, 22, 0.14);
  color: #161616;
}
.txn-fil svg {
  width: 13px;
  height: 13px;
  stroke: #4a463d;
  stroke-width: 1.8;
  fill: none;
}
.txn-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px 7px;
}
.txn-day .d {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8a8475;
  font-weight: 700;
}
.txn-day .sum {
  font-size: 11.5px;
  color: #8a8475;
  font-weight: 500;
}
.txn-list {
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 13px;
  overflow: hidden;
}
.txn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border-top: 1px solid rgba(22, 22, 22, 0.07);
}
.txn-row:first-child {
  border-top: none;
}
.mrch {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}
.txn-row .body {
  flex: 1;
  min-width: 0;
}
.txn-row .nm {
  font-size: 13px;
  font-weight: 600;
  color: #161616;
}
.txn-row .meta {
  font-size: 11.5px;
  color: #6f6a5d;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.txn-row .meta .acct {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.txn-row .meta .acct .d {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.txn-row .amt {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.txn-row .amt.in {
  color: #0f7a3c;
}
.txn-row .amt.out {
  color: #2a2823;
}

/* ---- Net worth breakdown bars ---- */
.brk {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.brk-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  margin-bottom: 6px;
}
.brk-k {
  color: #2a2823;
  font-weight: 500;
}
.brk-v {
  font-weight: 600;
  white-space: nowrap;
}
.brk-track {
  height: 7px;
  border-radius: 4px;
  background: #e6dfc9;
  overflow: hidden;
}
.brk-track i {
  display: block;
  height: 100%;
  border-radius: 4px;
}

/* ---- Scenarios chart ---- */
.scn-chart {
  position: relative;
  height: 200px;
  margin-top: 10px;
}
.scn-chart svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.scn-legend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
  color: #2a2823;
}
.scn-legend .li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.scn-legend .sw {
  width: 16px;
  height: 3px;
  border-radius: 2px;
}

/* Coverage / accent colors used inside mocks (literal, not tweaked) */
.c-live {
  background: #1e3a8a;
}
.c-file {
  background: #c98910;
}
.c-both {
  background: #0f7a3c;
}
.c-gap {
  background: #e6dfc9;
}

.bd-ok {
  background: #3b8a4f;
}
.bd-warn {
  background: #c98910;
}
.bd-err {
  background: #c23a31;
}

/* Compact scaling helper for tight columns */
.frame.tight .app-main {
  padding: 18px 18px;
}
.frame.tight .app-side {
  width: 168px;
}

@media (max-width: 640px) {
  .pay-split {
    grid-template-columns: 1fr;
  }
  .dash-top {
    grid-template-columns: 1fr;
  }
  .app-side {
    display: none;
  }
}
