:root {
  --green: #214f3b;
  --deep: #173c2c;
  --ink: #24362c;
  --muted: #69766d;
  --line: #dce4d8;
  --bg: #f6f8f4;
  --tint: #edf3e9;
  color: var(--ink);
  font:
    16px/1.5 ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select {
  font: inherit;
}
button,
input,
select,
a,
summary {
  touch-action: manipulation;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #71945d;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.2;
  font-weight: 650;
}
h1:focus {
  outline: none;
}
h2 {
  font-size: 1.075rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}
h3 {
  font-size: 1.1rem;
}
p {
  color: var(--muted);
  overflow-wrap: anywhere;
}
strong,
b {
  font-weight: 650;
}
small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button svg {
  pointer-events: none;
}
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px;
  background: white;
  border: 2px solid var(--green);
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100dvh;
}
.body {
  min-width: 0;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  background: var(--green);
  color: #fff;
  padding: 28px 14px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  padding: 0 12px;
  font-size: 1.5rem;
  letter-spacing: -0.065em;
  line-height: 1.15;
  font-weight: 650;
}
.brand strong {
  font-weight: 400;
}
.brandmark {
  width: 44px;
  height: 44px;
  color: white;
  stroke: none;
}
.brand small {
  font-size: 0.59rem;
  letter-spacing: 0.14em;
  color: #cadbc6;
  margin-top: 8px;
}
.nav-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: #acc2a5;
  margin: 32px 14px 13px;
}
.nav-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 11px 14px;
  margin: 3px 0;
  border-radius: 8px;
  color: #e1e8dc;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.25;
}
.nav-button span {
  flex: 1;
  min-width: 0;
}
.nav-button:hover {
  background: #ffffff14;
}
.nav-button.active {
  background: #ffffff19;
  color: #fff;
  box-shadow: inset 3px 0 #a7c38d;
}
.nav-button svg {
  width: 18px;
  height: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff20;
  padding-top: 10px;
}
.sidebar-plan {
  border: 1px solid #ffffff26;
  border-radius: 10px;
  margin-top: 14px;
  padding: 13px;
}
.sidebar-plan p {
  font-size: 0.8rem;
  color: #cedcc5;
  margin: 9px 0 12px;
}
.sidebar-plan .button {
  background: #e5efd8;
  color: var(--deep);
  width: 100%;
  padding: 10px;
  font-size: 0.79rem;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 5px;
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  background: #e8efd9;
  color: #465e33;
  padding: 4px 7px;
  line-height: 1.5;
}
.sidebar .demo-pill {
  color: #e8f0e0;
  background: #ffffff16;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 34px;
  gap: 15px;
}
.topbar-leading,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.topbar-title {
  font-size: 0.87rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-align: left;
  max-width: 230px;
  font-size: 0.8rem;
}
.profile-button > span:last-child {
  overflow: hidden;
  max-width: 170px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-button small {
  font-size: 0.67rem;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8eee2;
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.language {
  position: relative;
  z-index: 20;
}
.language summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.78rem;
  min-height: 44px;
  cursor: pointer;
  background: white;
}
.language summary::-webkit-details-marker {
  display: none;
}
.language > div {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: 155px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px #173c2c15;
  padding: 5px;
  border-radius: 8px;
}
.language-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 5px;
  text-align: left;
  font-size: 0.85rem;
}
.language-option:hover {
  background: var(--tint);
}
.language-option svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}
.mobile-menu {
  display: none !important;
}
#workspace {
  padding: 25px 34px 20px;
  max-width: 1440px;
  margin: auto;
  min-width: 0;
}
.demo-note {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 17px;
  margin-bottom: 28px;
}
.demo-note p {
  font-size: 0.77rem;
  flex: 1;
}
.demo-note .text-button {
  font-size: 0.76rem;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.page-heading > div {
  min-width: 0;
}
.eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6c805e;
  margin-bottom: 9px;
}
.page-heading p {
  font-size: 0.85rem;
  margin-top: 10px;
}
.page-heading .button {
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 17px;
  background: var(--green);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 8px;
  border: 1px solid transparent;
}
.button:hover {
  background: var(--deep);
}
.button.subtle {
  background: white;
  color: var(--green);
  border-color: var(--line);
}
.button.subtle:hover {
  background: var(--tint);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  flex-shrink: 0;
  font-size: 1.35rem;
}
.icon-button:hover {
  background: var(--tint);
}
.text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 5px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}
.text-button:hover {
  text-decoration: underline;
}
.text-button svg {
  width: 16px;
  height: 16px;
}
.danger {
  color: #9e3541;
}
.period {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 25px;
  text-transform: capitalize;
}
.period svg {
  width: 16px;
  height: 16px;
}
.period span:last-child {
  margin-left: auto;
  font-size: 0.7rem;
  text-transform: none;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.metric {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 21px;
  text-align: left;
  box-shadow: 0 2px 3px #24362c03;
}
.metric:hover {
  box-shadow: 0 4px 16px #24362c0b;
}
.metric-top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  gap: 8px;
  color: var(--muted);
}
.metric-top svg {
  width: 17px;
  height: 17px;
  color: #82906e;
}
.metric b {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  margin: 12px 0 5px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.metric small {
  font-size: 0.66rem;
}
.metric.featured {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.metric.featured .metric-top,
.metric.featured small,
.metric.featured svg {
  color: #cbdac0;
}
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
}
.panel-heading > div {
  min-width: 0;
}
.panel-heading p {
  font-size: 0.75rem;
  margin-top: 5px;
}
.panel p {
  font-size: 0.84rem;
}
.row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid #edf0e9;
  min-width: 0;
}
.row:first-of-type {
  border-top: 0;
}
.row-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.row-info > div,
.row > div {
  min-width: 0;
}
.row strong {
  display: block;
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}
.row small {
  margin-top: 4px;
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}
.row-icon {
  width: 37px;
  height: 37px;
  background: var(--tint);
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
  color: #688253;
}
.row-icon svg {
  width: 17px;
  height: 17px;
}
.row-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  max-width: 45%;
  flex-shrink: 0;
}
.row-end b,
.row > b {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex-wrap: wrap;
}
.row-actions .icon-button {
  width: 36px;
  height: 44px;
}
.row-actions .icon-button svg {
  width: 16px;
  height: 16px;
}
.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 5px;
  background: #f3f1e6;
  color: #827347;
  font-size: 0.64rem;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.status.paid {
  background: var(--tint);
  color: var(--green);
}
.summary-visual {
  position: relative;
  max-width: 210px;
  margin: 4px auto 12px;
  aspect-ratio: 1;
}
.summary-visual svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.summary-visual circle {
  fill: none;
  stroke-width: 14;
}
.ring-track {
  stroke: #edf2e7;
}
.ring-spent {
  stroke: #8ea675;
  stroke-linecap: round;
}
.summary-visual > div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.summary-visual small {
  font-size: 0.67rem;
}
.summary-visual strong {
  font-size: 1.3rem;
  margin-top: 6px;
  letter-spacing: -0.04em;
}
.legend > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}
.legend span {
  color: var(--muted);
}
.discover-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 23px;
  background: var(--tint);
  border: 1px solid #e1e8da;
  border-radius: 10px;
  margin-top: 24px;
}
.discover-strip > div {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.discover-strip strong {
  font-size: 0.85rem;
}
.discover-strip p {
  font-size: 0.76rem;
  margin-top: 4px;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.tab {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 7px;
  font-size: 0.8rem;
  color: var(--muted);
}
.tab.active {
  background: var(--green);
  color: white;
}
.filters {
  margin-bottom: 8px;
}
.filters input,
input,
select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cfd9c9;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 1rem;
}
.filters input {
  max-width: 420px;
  background: #f9fbf6;
}
.big-total {
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  line-height: 1.3;
  font-weight: 650;
  margin: 16px 0 7px;
  overflow-wrap: anywhere;
}
.big-total small {
  display: inline;
  margin-left: 5px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
}
.footnote {
  font-size: 0.74rem !important;
  margin-top: 17px;
  line-height: 1.6;
}
.small-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
}
.small-stats b {
  display: block;
  margin-top: 7px;
}
.empty {
  padding: 25px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}
.empty svg {
  color: #8b9d7c;
  margin-bottom: 8px;
}
.empty .button {
  margin-top: 16px;
}
progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 9px;
  background: #edf2e7;
  color: #8ea675;
  margin: 22px 0;
}
progress::-webkit-progress-bar {
  background: #edf2e7;
  border-radius: 9px;
}
progress::-webkit-progress-value {
  background: #8ea675;
  border-radius: 9px;
}
progress::-moz-progress-bar {
  background: #8ea675;
  border-radius: 9px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.round-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: #6c8855;
  border-radius: 10px;
}
.account-card h2,
.activity-card h2 {
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.account-card .eyebrow,
.activity-card .eyebrow {
  font-size: 0.6rem;
}
.account-equivalent {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.76rem;
}
.currency-note {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 15px 18px;
  border-radius: 8px;
  background: var(--tint);
  margin-bottom: 20px;
  color: #6c8855;
}
.currency-note p {
  font-size: 0.77rem;
}
.fx-panel {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.fx-panel h2 {
  margin-bottom: 7px;
}
.fx-panel .button {
  flex-shrink: 0;
}
.activity-schedule {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 19px 0 13px;
  color: var(--muted);
  font-size: 0.75rem;
}
.activity-schedule svg {
  width: 16px;
  height: 16px;
}
.sharing-switch {
  display: flex;
  padding: 4px;
  background: #f2f5ed;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 22px 0;
  gap: 4px;
}
.sharing-switch button {
  flex: 1;
  min-height: 44px;
  padding: 10px;
  font-size: 0.82rem;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.3;
}
.sharing-switch .selected {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 5px #173c2c12;
}
.sharing-help {
  margin-bottom: 20px;
}
.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.puzzle-piece {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfdfb;
  min-width: 0;
}
.puzzle-piece.chosen {
  border-color: #9eb88b;
  background: #f5f9ef;
}
.puzzle-piece > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  min-height: 76px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
}
.puzzle-piece > summary::-webkit-details-marker {
  display: none;
}
.puzzle-piece > summary > span:not(.piece-plus) {
  flex: 1;
  min-width: 0;
}
.puzzle-piece summary svg {
  color: #849b70;
}
.puzzle-piece summary small {
  font-weight: 400;
  font-size: 0.7rem;
  margin-top: 4px;
}
.piece-plus {
  font-size: 1.4rem;
  font-weight: 400;
  color: #8b9e7b;
}
.puzzle-piece[open] .piece-plus {
  transform: rotate(45deg);
}
.piece-body {
  padding: 0 16px 16px;
}
.piece-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 7px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 8px;
}
.piece-fields strong {
  grid-column: 1/-1;
  font-size: 0.72rem;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 0.8rem;
  cursor: pointer;
  min-width: 0;
}
.check-field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex-shrink: 0;
  margin: 3px 0 0;
  accent-color: var(--green);
  padding: 0;
}
.check-field > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.record-choice small {
  font-size: 0.7rem;
  margin-top: 4px;
}
.future-choice {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 16px;
  font-size: 0.73rem;
  color: var(--muted);
}
.sharing-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.shared-preview {
  margin-top: 24px;
}
.notice {
  padding: 15px 17px;
  border: 1px solid #e1e8da;
  background: var(--tint);
  border-radius: 8px;
  margin-top: 17px;
}
.notice strong {
  font-size: 0.84rem;
}
.notice p {
  font-size: 0.79rem;
  line-height: 1.6;
  margin-top: 5px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-size: 0.69rem;
  color: var(--muted);
  padding: 25px 0 0;
}
.navigation-dialog {
  display: none;
}
.drawer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.drawer-heading strong {
  letter-spacing: -0.05em;
  font-size: 1.5rem;
}
.drawer-heading small {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}
.navigation-dialog nav {
  display: flex;
  flex-direction: column;
}
.navigation-dialog .nav-button {
  color: var(--ink);
}
.navigation-dialog .nav-button.active,
.navigation-dialog .nav-button:hover {
  background: var(--tint);
  color: var(--green);
}
#mobile-plan {
  margin-top: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  color: var(--ink);
  background: white;
  box-shadow: 0 20px 80px #122c2430;
}
dialog::backdrop {
  background: #142f2b70;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.dialog-heading h2 {
  font-size: 1.18rem;
  line-height: 1.35;
  min-width: 0;
}
.dialog-heading .icon-button {
  margin: -5px -8px -5px 0;
}
#dialog-content > p {
  font-size: 0.9rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  font-size: 0.82rem;
  font-weight: 550;
  min-width: 0;
}
.field input[type="date"] {
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-inline-size: 0;
  line-height: 1.4;
  min-height: 46px;
}
.field input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}
.form-intro {
  font-size: 0.78rem;
  margin-bottom: 19px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-error {
  color: #9e3541;
  font-size: 0.8rem;
  margin: 12px 0;
}
.readonly {
  display: block;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f4f7ef;
}
.locked-hero {
  text-align: center;
  padding: 15px 5px 20px;
}
.locked-hero > svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--tint);
  border-radius: 12px;
  margin-bottom: 16px;
}
.locked-hero h3 {
  margin-bottom: 12px;
}
.locked-hero p {
  font-size: 0.85rem;
}
.guide-grid {
  display: grid;
  gap: 16px;
}
.guide-grid > div {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 9px;
  background: #f7f9f3;
}
.guide-grid svg {
  color: #849b70;
}
.guide-grid p {
  font-size: 0.83rem;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--tint);
  border-radius: 9px;
  padding: 18px;
  margin-top: 22px;
}
.quote-grid small {
  font-size: 0.72rem;
}
.quote-grid b {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep);
  color: white;
  padding: 13px 18px;
  border-radius: 10px;
  box-shadow: 0 5px 25px #123c2c20;
  font-size: 0.82rem;
  max-width: calc(100vw - 32px);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
#toast.show {
  opacity: 1;
}
@media (max-width: 1100px) and (min-width: 701px) {
  .shell {
    grid-template-columns: 202px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 10px;
  }
  .brand {
    padding-inline: 6px;
    font-size: 1.3rem;
  }
  .brandmark {
    width: 36px;
    height: 36px;
  }
  #workspace {
    padding: 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-button {
    font-size: 0.8rem;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .mobile-menu {
    display: inline-flex !important;
  }
  .topbar {
    height: 68px;
    padding: 10px 14px;
    gap: 8px;
  }
  .topbar-leading,
  .topbar-actions {
    gap: 7px;
  }
  .topbar-title {
    display: none;
  }
  .profile-button {
    max-width: 60px;
    padding: 0;
  }
  .profile-button > span:last-child {
    display: none;
  }
  .avatar {
    width: 32px;
    height: 32px;
  }
  .language summary {
    padding: 7px 9px;
  }
  .topbar .demo-pill {
    font-size: 0.55rem;
  }
  #workspace {
    padding: 20px 18px 15px;
  }
  .demo-note {
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 15px;
    margin-bottom: 23px;
  }
  .demo-note p {
    font-size: 0.72rem;
    flex-basis: calc(100% - 145px);
  }
  .demo-note .text-button {
    margin-left: auto;
    min-height: 32px;
    padding: 4px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 1.7rem;
  }
  .page-heading p {
    font-size: 0.82rem;
    margin-top: 9px;
  }
  .eyebrow {
    font-size: 0.59rem;
    margin-bottom: 8px;
  }
  .page-heading .button {
    font-size: 0.79rem;
    padding: 10px 14px;
  }
  .period {
    gap: 6px;
    font-size: 0.77rem;
    margin-bottom: 20px;
  }
  .period span:last-child {
    flex-basis: 100%;
    margin: 3px 0 0 23px;
    font-size: 0.66rem;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 15px 13px;
  }
  .metric-top {
    font-size: 0.65rem;
    gap: 3px;
    align-items: flex-start;
  }
  .metric-top svg {
    width: 14px;
    height: 14px;
  }
  .metric b {
    font-size: 1.35rem;
    margin-top: 13px;
  }
  .metric small {
    font-size: 0.6rem;
    line-height: 1.5;
  }
  .two-columns,
  .card-grid,
  .account-grid,
  .puzzle-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .panel {
    padding: 18px;
  }
  .panel-heading {
    gap: 8px;
  }
  .panel-heading .text-button {
    font-size: 0.72rem;
    max-width: 82px;
  }
  .panel-heading h2 {
    font-size: 1rem;
  }
  .row {
    gap: 10px;
    padding-block: 15px;
  }
  .row-info {
    gap: 9px;
  }
  .row-icon {
    display: none;
  }
  .row strong {
    font-size: 0.79rem;
  }
  .row small {
    font-size: 0.66rem;
  }
  .row-end {
    max-width: 45%;
    gap: 5px;
  }
  .row-end b {
    font-size: 0.84rem;
  }
  .status {
    font-size: 0.59rem;
  }
  .row-actions .text-button {
    font-size: 0.7rem;
  }
  .summary-visual {
    max-width: 190px;
  }
  .discover-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    margin-top: 18px;
    gap: 15px;
  }
  .discover-strip > div {
    align-items: flex-start;
  }
  .discover-strip .button {
    align-self: flex-start;
  }
  .discover-strip strong {
    font-size: 0.81rem;
  }
  .discover-strip p {
    font-size: 0.73rem;
  }
  .tabs {
    gap: 3px;
  }
  .tab {
    flex: 1;
    padding: 9px 8px;
    font-size: 0.77rem;
  }
  .currency-note {
    padding: 13px;
    align-items: flex-start;
  }
  .currency-note p {
    font-size: 0.73rem;
  }
  .fx-panel {
    display: block;
  }
  .fx-panel .button {
    margin-top: 18px;
  }
  .fx-panel p {
    font-size: 0.79rem;
  }
  .sharing-panel > .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .sharing-panel > .panel-heading h2 {
    font-size: 1.05rem;
  }
  .sharing-switch {
    gap: 3px;
  }
  .sharing-switch button {
    font-size: 0.73rem;
    padding: 9px 6px;
  }
  .sharing-help {
    font-size: 0.8rem !important;
  }
  .puzzle-piece > summary {
    padding: 14px;
    min-height: 74px;
  }
  .piece-body {
    padding-inline: 14px;
  }
  .sharing-actions {
    gap: 8px;
  }
  .sharing-actions .button {
    flex: 1;
    min-width: 105px;
    font-size: 0.75rem;
    padding: 10px 9px;
  }
  .shared-preview .row > b {
    font-size: 0.83rem;
  }
  .navigation-dialog[open] {
    display: block;
    margin: 0;
    height: 100dvh;
    max-height: 100dvh;
    width: min(290px, 88vw);
    max-width: none;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: 22px 15px;
  }
  .navigation-dialog .nav-button {
    min-height: 47px;
    font-size: 0.88rem;
  }
  .drawer-heading {
    padding-left: 12px;
  }
  dialog {
    padding: 19px;
    max-height: calc(100dvh - 24px);
    width: calc(100% - 24px);
    border-radius: 12px;
  }
  .dialog-heading {
    margin-bottom: 14px;
  }
  .dialog-heading h2 {
    font-size: 1.05rem;
  }
  .form-actions {
    position: sticky;
    bottom: -19px;
    background: white;
    padding-bottom: 16px;
  }
  .field {
    font-size: 0.8rem;
  }
  .check-field {
    font-size: 0.77rem;
  }
  .quote-grid {
    padding: 14px;
    gap: 17px 10px;
  }
  .quote-grid b {
    font-size: 0.95rem;
  }
  footer {
    display: block;
    font-size: 0.64rem;
    line-height: 1.7;
    padding-top: 21px;
  }
  footer .text-button {
    margin-top: 8px;
    font-size: 0.73rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.mobile-brand {
  display: none;
}
@media (max-width: 700px) {
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 650;
    color: var(--green);
  }
  .mobile-brand strong {
    font-weight: 400;
  }
  .mobile-brand svg {
    width: 27px;
    height: 27px;
    stroke: none;
  }
  .topbar-leading > .demo-pill {
    display: none;
  }
  .mobile-menu {
    width: 35px;
  }
  .topbar-leading {
    gap: 5px;
  }
}

/* Keep supporting copy legible on compact cards and phones. */
.demo-pill,
.metric small,
.metric-top,
.row small,
.status,
.period span:last-child,
.currency-note p,
footer,
.piece-fields strong,
.puzzle-piece summary small,
.account-card .eyebrow,
.activity-card .eyebrow,
.footnote {
  font-size: 0.75rem !important;
}
/* Separate the reset action from the informational footer on narrow screens. */
@media (max-width: 700px) {
  footer .text-button {
    display: flex;
    width: fit-content;
  }
}
