:root {
  --accent: #c6ff3b;
  --accent-hover: #d5ff6a;
  --ink: #111;
  --bg: #0a0a0a;
  --side: #101010;
  --panel: #161616;
  --field: #202020;
  --hover: #272727;
  --text: #f8f8f3;
  --secondary: #c1c1b8;
  --muted: #9a9a92;
  --line: #2b2b2b;
  --strong: #45453f;
  --positive: #b0e87e;
  --negative: #ff9e91;
  --focus: #c6ff3b;
  --sidebar: 224px;
  --radius: 22px;
  --sans: "Onest", system-ui, sans-serif;
  --display: "Unbounded", "Onest", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f6f0;
  --side: #fcfcf8;
  --panel: #fff;
  --field: #f3f3ee;
  --hover: #eaeae2;
  --text: #151612;
  --secondary: #505149;
  --muted: #6b6d62;
  --line: #e0e1d7;
  --strong: #a7aa9b;
  --positive: #426b20;
  --negative: #af3f30;
  --focus: #557a00;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
button:active:not(:disabled) {
  filter: brightness(0.92);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
h1 {
  font-size: 30px;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 17px;
}
img {
  max-width: 100%;
  display: block;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  background: var(--accent);
  color: var(--ink);
  padding: 12px 20px;
  transform: translateY(-200%);
  border-radius: 12px;
}
.skip-link:focus {
  transform: none;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  border-right: 1px solid var(--line);
  background: var(--side);
  display: flex;
  flex-direction: column;
  padding: 30px 16px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  width: max-content;
  height: 44px;
}
.brand > span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -2px;
}
.brand img {
  width: 40px;
  height: 32px;
  object-fit: contain;
}
.brand-dot {
  color: var(--accent);
}
.workspace-label {
  padding: 34px 16px 14px;
  color: var(--muted);
  font-size: 12px;
}
.primary-nav,
.utility-nav {
  display: grid;
  gap: 6px;
}
.nav-link {
  height: 48px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--secondary);
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-link:hover {
  background: var(--field);
  color: var(--text);
}
.nav-link[aria-current="page"] {
  background: var(--hover);
  color: var(--text);
  font-weight: 550;
}
.nav-link[data-page="home"][aria-current="page"] > .icon,
.nav-link[data-page="home"][aria-current="page"] > [data-icon] {
  color: var(--accent);
}
[data-theme="light"]
  .nav-link[data-page="home"][aria-current="page"]
  > [data-icon] {
  color: #557a00;
}
.nav-badge {
  font-size: 10px;
  line-height: 18px;
  font-weight: 600;
  border: 1px solid var(--strong);
  border-radius: 5px;
  padding: 0 5px;
  margin-left: auto;
  color: var(--muted);
}
.sidebar-bottom {
  margin-top: auto;
}
.side-note {
  position: relative;
  padding: 78px 16px 18px;
  margin: 65px 5px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 14px;
}
.side-note > img {
  position: absolute;
  width: 69px;
  height: 85px;
  object-fit: contain;
  top: -23px;
  left: 18px;
}
.side-note p {
  font-weight: 550;
}
.side-note p span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.side-note > a {
  position: absolute;
  right: 10px;
  top: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--secondary);
}
.profile {
  margin-top: 20px;
  padding: 18px 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: none;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #30342a;
  color: #e3ebd3;
  font-size: 15px;
  font-weight: 500;
  flex: none;
}
.profile-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.profile-text strong {
  font-size: 13px;
  font-weight: 550;
}
.profile-text > span {
  font-size: 11px;
  color: var(--muted);
}
.profile-more {
  margin-left: auto;
  color: var(--muted);
}
.profile-more .icon {
  width: 16px;
}
.app-shell {
  margin-left: var(--sidebar);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 82px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--text);
}
.slash {
  color: var(--strong);
}
.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.concept-label {
  color: var(--muted);
  font-size: 11px;
  margin-right: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
}
.icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition:
    background 0.18s,
    border-color 0.18s;
}
.icon-button:hover {
  background: var(--field);
  border-color: var(--strong);
  color: var(--text);
}
.icon-button.small {
  border: 0;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
}
.icon-button.small .icon {
  width: 17px;
  height: 17px;
}
.notification-button {
  position: relative;
}
.notification-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  right: 12px;
  top: 11px;
  border-radius: 50%;
  background: var(--accent);
}
main {
  padding: 32px 36px 24px;
  width: 100%;
  max-width: 1510px;
  margin: 0 auto;
  flex: 1;
  min-width: 0;
  outline: none !important;
}
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.page-title-row .text-button {
  color: var(--muted);
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 3px;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}
.text-button:hover {
  color: var(--text);
}
.text-button .icon {
  width: 16px;
  height: 16px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
  align-items: start;
}
.main-column,
.rail {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card-overview {
  padding: 25px 26px 28px;
}
.card-heading {
  margin-bottom: 25px;
}
.card-heading-left {
  display: flex;
  gap: 11px;
  align-items: center;
}
.card-heading h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.status {
  font-size: 11px;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--field);
}
.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--positive);
}
.status.frozen i {
  background: #7ceeff;
}
.card-hero-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) minmax(220px, 1.05fr);
  gap: 28px;
  align-items: start;
}
.card-art-wrap {
  min-width: 0;
  padding-top: 7px;
}
.card-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1.68;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px #0003);
  transition:
    opacity 0.2s,
    filter 0.2s;
}
.card-art.frozen {
  filter: grayscale(0.8);
  opacity: 0.6;
}
.card-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 18px;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.card-caption .icon {
  width: 14px;
  height: 14px;
}
.inline-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.quiet-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.3;
  transition: background 0.18s;
}
.quiet-button:hover {
  background: var(--hover);
  color: var(--text);
}
.quiet-button .icon {
  width: 16px;
  height: 16px;
}
.balance-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.currency-label {
  color: var(--secondary);
  font-size: 11px;
  border: 1px solid var(--strong);
  border-radius: 5px;
  padding: 1px 5px;
}
.balance {
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 500;
  letter-spacing: -1.8px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin-bottom: 20px;
  white-space: nowrap;
}
.balance-symbol {
  font-family: var(--sans);
  font-size: 0.8em;
  margin-right: 5px;
  color: var(--secondary);
  font-weight: 500;
}
.balance-decimals {
  color: var(--muted);
}
.primary-button {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--ink);
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.18s;
}
.primary-button:hover {
  background: var(--accent-hover);
}
.primary-button .icon {
  width: 18px;
  height: 18px;
}
.topup-button {
  width: 100%;
  justify-content: space-between;
  padding-left: 17px;
}
.details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 21px 0 8px;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.details-heading .text-button {
  min-height: 28px;
  font-size: 11px;
  gap: 5px;
}
.details-heading .icon {
  width: 14px;
  height: 14px;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.detail-field {
  min-width: 0;
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 10px 8px 12px;
  position: relative;
}
.detail-field.wide {
  grid-column: 1/-1;
}
.field-label {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 3px;
}
.field-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-height: 27px;
}
.field-value > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.field-value.masked > span {
  letter-spacing: 2px;
  font-size: 14px;
}
.field-value .icon-button {
  margin: -4px -5px -4px 0;
  flex: none;
}
.field-value .icon-button .icon {
  width: 14px;
  height: 14px;
}
.card-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-note .icon {
  width: 13px;
  height: 13px;
}
.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1px 0 16px;
}
.rail-title h2 {
  font-size: 17px;
}
.rail-title > span {
  font-size: 11px;
  color: var(--muted);
}
.card-list {
  display: grid;
  gap: 10px;
}
.card-selector {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 15px;
  padding: 18px 14px;
  color: var(--text);
  position: relative;
  min-height: 104px;
}
.card-selector.selected {
  border-color: #728b39;
  background: linear-gradient(110deg, #c6ff3b07, transparent), var(--panel);
}
.card-selector img {
  width: 65px;
  height: 40px;
  object-fit: contain;
}
.card-selector-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.card-selector-text strong {
  font-weight: 500;
  font-size: 13px;
}
.card-selector-text > span {
  font-size: 11px;
  color: var(--muted);
}
.card-selector-text b {
  font-weight: 550;
  font-size: 14px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.card-selector .selected-mark {
  width: 14px;
  height: 14px;
  position: absolute;
  right: 12px;
  top: 13px;
  color: var(--accent);
}
[data-theme="light"] .selected-mark {
  color: #557a00;
}
.issue-button {
  width: 100%;
  margin-top: 12px;
  min-height: 44px;
  font-size: 12px;
}
.billing-panel {
  padding: 21px 20px;
}
.billing-panel h2 {
  font-size: 17px;
}
.billing-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  margin: 8px 0 17px;
  max-width: 29ch;
}
.billing-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 10px;
}
.billing-field {
  min-width: 0;
  position: relative;
}
.billing-field.full {
  grid-column: 1/-1;
}
.billing-field dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 3px;
}
.billing-field dd {
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--secondary);
}
.billing-field dd strong {
  color: var(--text);
  font-weight: 500;
}
.billing-panel .panel-heading .icon-button {
  margin: -6px -6px -6px 0;
}
.billing-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 18px;
}
.billing-footer .icon {
  width: 13px;
  height: 13px;
}
.history-panel {
  overflow: hidden;
}
.history-top {
  padding: 22px 26px 17px;
}
.history-top h2 {
  font-size: 18px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 17px;
}
.filter {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 11px;
}
.filter:hover {
  color: var(--text);
  background: var(--field);
}
.filter[aria-pressed="true"] {
  background: var(--hover);
  color: var(--text);
  border-color: var(--line);
}
.transaction-list {
  padding: 0 26px;
}
.transaction {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.transaction:hover .merchant-name {
  color: var(--secondary);
}
.merchant-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--secondary);
}
.merchant-icon img {
  width: 21px;
  height: 21px;
  filter: none;
}
[data-theme="light"] .merchant-icon img {
  filter: none;
}
.merchant-icon.claude {
  background: #f6dfd3;
  border-color: transparent;
}
.merchant-icon.claude img {
  filter: none;
}
.merchant-icon.topup {
  background: #c6ff3b0a;
  color: var(--positive);
}
.merchant-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.merchant-name {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
}
.merchant-caption {
  font-size: 11px;
  color: var(--muted);
}
.transaction-amount {
  margin-left: auto;
  text-align: right;
  display: grid;
  gap: 3px;
  padding-left: 8px;
  flex: none;
}
.transaction-amount strong {
  font-size: 14px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.transaction-amount strong.positive {
  color: var(--positive);
}
.transaction-amount > span {
  font-size: 10px;
  color: var(--muted);
}
.history-bottom {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding: 7px 24px;
}
.help-strip {
  padding: 20px 24px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.help-strip > span {
  height: 40px;
  width: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--secondary);
}
.help-strip p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.help-strip strong {
  font-weight: 500;
  font-size: 14px;
}
.help-strip .text-button {
  margin-left: auto;
  white-space: nowrap;
}
.app-footer {
  padding: 16px 36px 24px;
  max-width: 1510px;
  margin: auto auto 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
}
.mobile-nav {
  display: none;
}
.page-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 9px;
}
.activity-heading {
  margin-bottom: 28px;
}
.activity-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.search-field {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  min-height: 46px;
  max-width: 360px;
  flex: 1;
  color: var(--muted);
}
.search-field input {
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
.search-field:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.search-field input:focus-visible {
  outline: none;
}
.select-control {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--secondary);
  font-size: 12px;
}
.activity-table .transaction {
  padding: 20px 0;
}
.activity-date {
  color: var(--muted);
  font-size: 11px;
  padding: 20px 26px 10px;
}
.empty-state {
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--text);
  margin-bottom: 8px;
}
.activity-table .transaction-list + .activity-date {
  border-top: 1px solid var(--line);
}
/* The chat shares the same shell, with the input as the centre of attention. */
.chat-page {
  min-height: calc(100dvh - 175px);
  display: flex;
  flex-direction: column;
  max-width: 880px;
  margin: 0 auto;
}
.chat-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.chat-page-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-page-header h1 {
  font-size: 20px;
}
.soft-badge {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
}
.chat-welcome {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 0 28px;
  text-align: center;
}
.chat-welcome > img {
  width: 126px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 23px;
}
.chat-welcome h2 {
  font-size: 35px;
  letter-spacing: -1.25px;
}
.chat-welcome > p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 34px;
  text-align: left;
}
.prompt-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 19px 18px 17px;
  border-radius: 16px;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
  color: var(--secondary);
  transition:
    background 0.18s,
    border-color 0.18s;
}
.prompt-card:hover {
  background: var(--field);
  border-color: var(--strong);
}
.prompt-card .icon {
  color: var(--text);
  width: 19px;
}
.prompt-card > span:last-child {
  max-width: 21ch;
}
.composer-wrap {
  padding-bottom: 3px;
}
.composer {
  padding: 16px;
  border: 1px solid var(--strong);
  border-radius: 20px;
  background: var(--panel);
}
.composer:focus-within {
  border-color: var(--muted);
}
.composer textarea {
  width: 100%;
  min-height: 50px;
  max-height: 160px;
  resize: vertical;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
.composer textarea:focus-visible {
  outline: none;
}
.composer textarea::placeholder {
  color: var(--muted);
}
.composer-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.model-button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  padding: 6px 10px;
}
.model-dot {
  width: 6px;
  height: 6px;
  background: #7ceeff;
  border-radius: 50%;
}
.model-button .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.send-button {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--bg);
  border: 0;
  border-radius: 10px;
  margin-left: auto;
}
.composer-caption {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.conversation {
  display: grid;
  gap: 26px;
  padding: 40px 0 50px;
  flex: 1;
  align-content: start;
}
.message-user {
  justify-self: end;
  max-width: 82%;
  padding: 14px 19px;
  background: var(--hover);
  border-radius: 18px 18px 5px 18px;
  font-size: 14px;
  line-height: 1.7;
}
.message-assistant {
  display: flex;
  gap: 14px;
  align-items: start;
}
.message-assistant > img {
  width: 34px;
  height: 30px;
  object-fit: contain;
  margin-top: 3px;
}
.message-body {
  font-size: 14px;
  line-height: 1.9;
  max-width: 630px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.message-body h2,
.message-body h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.message-body ol {
  padding-left: 20px;
}
.message-body li {
  padding-left: 4px;
  margin-bottom: 8px;
}
.message-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.chat-page.has-messages .chat-welcome {
  display: none;
}
.chat-page.has-messages .composer-wrap {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding-top: 12px;
}
.typing {
  display: flex;
  gap: 5px;
  padding: 12px 0;
}
.typing i {
  width: 5px;
  height: 5px;
  background: var(--muted);
  border-radius: 50%;
  animation: blink 1s infinite alternate;
}
.typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  to {
    opacity: 0.25;
  }
}
.support-hero {
  display: flex;
  gap: 35px;
  align-items: center;
  margin: 18px 0 36px;
}
.support-hero img {
  width: 145px;
  height: 166px;
  object-fit: contain;
}
.support-hero h1 {
  font-size: 34px;
  max-width: 15ch;
  line-height: 1.15;
}
.support-hero p {
  max-width: 48ch;
  color: var(--muted);
  margin-top: 14px;
}
.support-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  max-width: 1000px;
}
.support-block {
  padding: 27px;
}
.support-block > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 11px 0 20px;
}
.support-block .primary-button {
  background: var(--text);
  color: var(--bg);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-item summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  min-height: 30px;
  line-height: 1.7;
}
.faq-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  padding-top: 10px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  gap: 22px;
}
.settings-block {
  padding: 25px;
}
.settings-block h2 {
  font-size: 18px;
  margin-bottom: 22px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.settings-row strong {
  font-size: 13px;
  font-weight: 500;
}
.settings-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.settings-row .quiet-button {
  min-width: 105px;
}
.toggle {
  width: 44px;
  height: 26px;
  min-width: 44px;
  background: var(--strong);
  border: 0;
  border-radius: 20px;
  padding: 3px;
  position: relative;
}
.toggle:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--text);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.toggle[aria-checked="true"] {
  background: var(--text);
}
.toggle[aria-checked="true"]:before {
  transform: translateX(18px);
  background: var(--bg);
}
/* Dialogs use native focus management and Escape behaviour. */
dialog {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--strong);
  border-radius: 24px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 35px 120px #0007;
  overflow: auto;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(5px);
}
dialog[open] {
  animation: dialog-in 0.2s var(--ease);
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-inner {
  padding: 27px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  gap: 12px;
}
.modal-header h2 {
  font-size: 22px;
}
.modal-header .icon-button {
  margin: -8px -8px -8px 0;
}
.modal-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.modal-inner label.form-label {
  font-size: 12px;
  display: block;
  color: var(--secondary);
  margin-bottom: 8px;
}
.amount-input-wrap {
  background: var(--field);
  border: 1px solid var(--strong);
  border-radius: 13px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.amount-input-wrap input {
  min-width: 0;
  width: 100%;
  background: none;
  outline: 0;
  border: 0;
  color: var(--text);
  font-size: 29px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.amount-input-wrap input:focus-visible {
  outline: none;
}
.amount-input-wrap > span {
  font-size: 14px;
  color: var(--muted);
}
.amount-input-wrap:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.amount-presets {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.amount-presets button {
  flex: 1;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 40px;
  font-size: 12px;
}
.amount-presets button.active {
  border-color: var(--strong);
  background: var(--hover);
}
.form-footnote {
  font-size: 11px;
  color: var(--muted);
  margin: 16px 0 23px;
  line-height: 1.7;
}
.modal-inner > .primary-button,
.modal-inner form > .primary-button {
  width: 100%;
  margin-top: 8px;
}
.form-error {
  color: var(--negative);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 10px;
}
.plain-input {
  width: 100%;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--strong);
  border-radius: 11px;
  padding: 12px 14px;
  min-height: 46px;
}
.modal-inner .card-art {
  max-width: 260px;
  margin: 12px auto 24px;
}
.modal-menu {
  display: grid;
  gap: 8px;
}
.modal-menu button,
.modal-menu a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
}
.modal-menu .icon {
  color: var(--secondary);
}
.notification-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.notification-item strong {
  font-weight: 500;
  font-size: 14px;
}
.notification-item p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.7;
}
.notification-item time {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.modal-amount {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -1px;
  margin: 25px 0;
}
.detail-list {
  margin: 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  text-align: right;
}
.success-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c6ff3b15;
  color: var(--accent);
  margin: 20px 0;
}
.success-icon .icon {
  width: 27px;
  height: 27px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + var(--sidebar) / 2);
  transform: translate(-50%, 14px);
  max-width: calc(100% - var(--sidebar) - 48px);
  padding: 13px 18px;
  border: 1px solid var(--strong);
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  box-shadow: 0 10px 35px #0003;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
  z-index: 90;
  line-height: 1.6;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1650px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 322px;
    gap: 28px;
  }
  .card-overview {
    padding: 29px 32px 32px;
  }
  .card-hero-grid {
    gap: 38px;
    grid-template-columns: minmax(250px, 1fr) minmax(280px, 1fr);
  }
  .balance {
    font-size: 48px;
  }
  .card-art-wrap {
    padding-top: 5px;
  }
  .card-caption {
    margin-top: 20px;
  }
  .card-tools {
    margin-top: 23px;
  }
  .billing-panel {
    padding: 25px;
  }
  .billing-field dd {
    font-size: 13px;
  }
  .history-top {
    padding: 25px 32px 18px;
  }
  .transaction-list {
    padding: 0 32px;
  }
  .transaction {
    padding: 20px 0;
  }
}
@media (max-width: 1220px) {
  :root {
    --sidebar: 194px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand {
    padding-left: 10px;
  }
  .brand > span {
    font-size: 28px;
  }
  .nav-link {
    padding-left: 14px;
  }
  .topbar {
    padding: 0 26px;
  }
  main {
    padding: 28px 26px 20px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 254px;
    gap: 18px;
  }
  .main-column,
  .rail {
    gap: 18px;
  }
  .card-overview {
    padding: 20px;
  }
  .card-hero-grid {
    gap: 20px;
    grid-template-columns: minmax(155px, 0.9fr) minmax(185px, 1.1fr);
  }
  .card-heading-left {
    gap: 7px;
  }
  .balance {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .card-tools {
    grid-template-columns: 1fr;
  }
  .card-tools .quiet-button {
    min-height: 36px;
  }
  .card-caption {
    font-size: 10px;
  }
  .card-heading {
    margin-bottom: 20px;
  }
  .billing-panel {
    padding: 19px 17px;
  }
  .history-top {
    padding: 20px 20px 16px;
  }
  .transaction-list {
    padding: 0 20px;
  }
  .concept-label {
    margin-right: 4px;
  }
  .help-strip {
    padding: 18px;
  }
  .help-strip > span {
    display: none;
  }
  .help-strip .text-button {
    font-size: 11px;
  }
  .app-footer {
    padding-left: 26px;
    padding-right: 26px;
  }
  .transaction-amount strong {
    font-size: 13px;
  }
}
@media (max-width: 1050px) {
  :root {
    --sidebar: 76px;
  }
  .sidebar {
    padding: 23px 12px 18px;
  }
  .brand {
    padding: 0;
    width: 52px;
    justify-content: center;
  }
  .brand > span,
  .workspace-label,
  .nav-text,
  .nav-badge,
  .profile-text,
  .profile-more,
  .side-note {
    display: none;
  }
  .brand img {
    width: 41px;
    height: 34px;
  }
  .primary-nav {
    margin-top: 40px;
  }
  .nav-link {
    justify-content: center;
    padding: 0;
    width: 50px;
    height: 50px;
  }
  .utility-nav {
    gap: 8px;
  }
  .profile {
    justify-content: center;
    padding: 20px 0 0;
  }
  .topbar {
    height: 74px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
  }
  .card-tools {
    grid-template-columns: 1fr 1fr;
  }
  .card-hero-grid {
    grid-template-columns: minmax(150px, 0.95fr) minmax(210px, 1.05fr);
  }
  .support-grid {
    gap: 20px;
  }
}
@media (max-width: 880px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 20px;
  }
  .card-overview {
    padding: 25px;
  }
  .card-hero-grid {
    gap: 32px;
    grid-template-columns: 1fr 1fr;
  }
  .balance {
    font-size: 40px;
  }
  .card-caption {
    font-size: 12px;
  }
  .card-tools {
    margin-top: 20px;
  }
  .billing-panel {
    padding: 20px;
  }
  .page-title-row {
    margin-bottom: 22px;
  }
  .chat-page {
    min-height: calc(100dvh - 160px);
  }
  .chat-welcome h2 {
    font-size: 30px;
  }
  .prompt-grid {
    gap: 9px;
  }
  .prompt-card {
    padding: 15px 13px;
    font-size: 11px;
  }
  .help-strip > span {
    display: grid;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .support-hero {
    gap: 24px;
  }
  .support-hero h1 {
    font-size: 30px;
  }
}
@media (max-width: 640px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    display: none;
  }
  .app-shell {
    margin-left: 0;
    padding-bottom: calc(77px + env(safe-area-inset-bottom, 0px));
  }
  .topbar {
    height: 67px;
    padding: 0 20px;
    gap: 8px;
  }
  .breadcrumb > span:first-child {
    display: none;
  }
  .breadcrumb .slash {
    display: none;
  }
  .breadcrumb:before {
    content: "qupi.";
    color: var(--text);
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -1.3px;
  }
  .breadcrumb strong {
    display: none;
  }
  .topbar-actions {
    gap: 7px;
  }
  .concept-label {
    font-size: 9px;
    margin-right: 2px;
    padding: 2px 5px;
  }
  .topbar .icon-button {
    border: 0;
    width: 38px;
    min-width: 38px;
    height: 40px;
  }
  .topbar .icon {
    width: 19px;
  }
  .notification-dot {
    right: 9px;
    top: 9px;
  }
  main {
    padding: 23px 18px 16px;
  }
  h1 {
    font-size: 25px;
  }
  .page-title-row {
    margin-bottom: 19px;
    gap: 12px;
  }
  .page-title-row .text-button {
    font-size: 11px;
  }
  .card-overview {
    padding: 20px;
  }
  .card-heading {
    margin-bottom: 20px;
  }
  .card-heading h2 {
    font-size: 15px;
  }
  .status {
    font-size: 10px;
  }
  .card-hero-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .card-art-wrap {
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .card-art {
    max-width: 320px;
  }
  .card-caption {
    width: 100%;
    max-width: 320px;
    margin: 14px 0 15px;
  }
  .card-tools {
    width: 100%;
    max-width: 320px;
    margin-top: 0;
    gap: 10px;
  }
  .card-tools .quiet-button {
    min-height: 40px;
    font-size: 12px;
  }
  .balance-section {
    border-top: 1px solid var(--line);
    padding-top: 21px;
  }
  .balance-label {
    font-size: 12px;
  }
  .balance {
    font-size: 43px;
    margin: 7px 0 18px;
  }
  .topup-button {
    min-height: 48px;
  }
  .details-heading {
    margin-top: 22px;
    font-size: 12px;
  }
  .details-heading .text-button {
    font-size: 11px;
  }
  .field-label {
    font-size: 11px;
  }
  .field-value {
    font-size: 16px;
    min-height: 33px;
  }
  .field-value.masked > span {
    font-size: 16px;
  }
  .detail-field {
    padding: 11px 12px;
  }
  .card-note {
    font-size: 10px;
    margin-top: 17px;
  }
  .dashboard-grid,
  .main-column,
  .rail {
    gap: 18px;
  }
  .history-top {
    padding: 20px 19px 15px;
  }
  .history-top h2 {
    font-size: 17px;
  }
  .history-top .text-button {
    font-size: 11px;
  }
  .filter-row {
    gap: 4px;
    margin-top: 14px;
  }
  .filter {
    min-height: 37px;
    font-size: 11px;
    padding: 5px 12px;
  }
  .transaction-list {
    padding: 0 19px;
  }
  .transaction {
    gap: 11px;
    padding: 16px 0;
  }
  .merchant-icon {
    width: 37px;
    height: 37px;
    border-radius: 11px;
  }
  .merchant-name {
    font-size: 13px;
  }
  .merchant-caption {
    font-size: 10px;
  }
  .transaction-amount {
    padding-left: 2px;
  }
  .transaction-amount strong {
    font-size: 13px;
  }
  .transaction-amount > span {
    font-size: 9px;
  }
  .rail {
    grid-template-columns: 1fr;
  }
  .rail-title h2 {
    font-size: 17px;
  }
  .cards-section {
    margin-top: 6px;
  }
  .card-selector {
    min-height: 96px;
    padding: 16px;
  }
  .card-selector img {
    width: 83px;
    height: 50px;
  }
  .card-selector-text strong {
    font-size: 14px;
  }
  .card-selector-text b {
    font-size: 15px;
  }
  .card-selector-text > span {
    font-size: 11px;
  }
  .issue-button {
    min-height: 46px;
  }
  .billing-panel {
    padding: 22px;
  }
  .billing-hint {
    font-size: 12px;
    max-width: 36ch;
  }
  .billing-fields {
    gap: 19px 15px;
  }
  .billing-field dt {
    font-size: 11px;
  }
  .billing-field dd {
    font-size: 14px;
  }
  .billing-footer {
    font-size: 11px;
  }
  .help-strip {
    padding: 18px;
  }
  .help-strip > span {
    display: none;
  }
  .help-strip p {
    font-size: 11px;
  }
  .help-strip .text-button {
    font-size: 11px;
  }
  .app-footer {
    padding: 14px 20px 8px;
    display: grid;
    gap: 4px;
    text-align: center;
    font-size: 9px;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--side);
    border-top: 1px solid var(--line);
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
  }
  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    min-height: 49px;
    color: var(--muted);
    border: 0;
    border-radius: 10px;
    background: none;
    font-size: 10px;
  }
  .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  .mobile-nav [aria-current="page"] {
    color: var(--text);
    background: var(--field);
  }
  .mobile-nav [data-page="home"][aria-current="page"] {
    color: var(--text);
  }
  .chat-page {
    min-height: calc(100dvh - 196px);
  }
  .chat-page-header h1 {
    font-size: 18px;
  }
  .soft-badge {
    font-size: 9px;
  }
  .chat-welcome {
    padding: 30px 0 24px;
  }
  .chat-welcome > img {
    width: 103px;
    height: 100px;
    margin-bottom: 20px;
  }
  .chat-welcome h2 {
    font-size: 29px;
    max-width: 13ch;
    line-height: 1.2;
  }
  .chat-welcome > p {
    max-width: 28ch;
    font-size: 12px;
    line-height: 1.8;
    margin-top: 12px;
  }
  .prompt-grid {
    grid-template-columns: 1fr;
    margin-top: 26px;
    gap: 8px;
  }
  .prompt-card {
    min-height: 49px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    font-size: 12px;
    border-radius: 11px;
  }
  .prompt-card > span:last-child {
    max-width: none;
  }
  .prompt-card .icon {
    width: 17px;
  }
  .composer {
    border-radius: 17px;
    padding: 13px;
  }
  .composer textarea {
    font-size: 16px;
    min-height: 52px;
  }
  .composer-toolbar {
    gap: 5px;
  }
  .composer-toolbar .icon-button.small {
    width: 34px;
    min-width: 34px;
  }
  .model-button {
    min-height: 35px;
    font-size: 10px;
    padding: 5px 9px;
  }
  .send-button {
    height: 36px;
    width: 36px;
  }
  .composer-caption {
    font-size: 9px;
    line-height: 1.6;
  }
  .chat-page.has-messages .composer-wrap {
    bottom: 68px;
  }
  .conversation {
    padding: 32px 0;
  }
  .message-user {
    font-size: 13px;
    max-width: 92%;
  }
  .message-body {
    font-size: 13px;
  }
  .message-assistant {
    gap: 10px;
  }
  .message-assistant > img {
    width: 28px;
    height: 27px;
  }
  .activity-tools {
    gap: 12px;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
    min-height: 46px;
  }
  .select-control {
    font-size: 12px;
    flex: 1;
  }
  .activity-heading {
    margin-bottom: 22px;
  }
  .activity-table .transaction {
    padding: 17px 0;
  }
  .activity-date {
    padding-left: 19px;
  }
  .page-subtitle {
    font-size: 12px;
  }
  .support-hero {
    display: block;
    margin-top: 5px;
  }
  .support-hero img {
    width: 111px;
    height: 125px;
    margin-bottom: 22px;
  }
  .support-hero h1 {
    font-size: 30px;
    max-width: 14ch;
  }
  .support-hero p {
    font-size: 13px;
    line-height: 1.8;
  }
  .support-block {
    padding: 23px;
  }
  .settings-block {
    padding: 22px;
  }
  .settings-row {
    gap: 15px;
  }
  .settings-row strong {
    font-size: 13px;
  }
  .settings-row p {
    max-width: 25ch;
  }
  .settings-row .quiet-button {
    font-size: 11px;
    min-width: 90px;
  }
  .toast {
    left: 50%;
    bottom: 90px;
    max-width: calc(100% - 32px);
    width: max-content;
    font-size: 11px;
  }
  .modal-inner {
    padding: 24px;
  }
  .modal-header h2 {
    font-size: 20px;
  }
  dialog {
    max-height: calc(100dvh - 40px);
  }
  .form-footnote {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .topbar .icon-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .icon-button.small {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .card-tools .quiet-button,
  .filter,
  .details-heading .text-button {
    min-height: 44px;
  }
  .composer-toolbar .icon-button.small {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .model-button {
    min-height: 44px;
  }
  .send-button {
    width: 44px;
    height: 44px;
  }
  .field-value .icon-button {
    margin: -7px -6px -7px 0;
  }
  .toggle::after {
    content: "";
    position: absolute;
    inset: -9px 0;
  }
}

:root {
  --control-border: #686860;
}
[data-theme="light"] {
  --control-border: #818575;
}
.composer,
.plain-input,
.amount-input-wrap {
  border-color: var(--control-border);
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: none;
}
.primary-nav,
.brand,
.sidebar-bottom {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .chat-welcome {
    padding: 16px 0;
  }
  .chat-welcome > img {
    width: 84px;
    height: 72px;
    margin-bottom: 14px;
  }
  .chat-welcome h2 {
    font-size: 26px;
  }
  .chat-welcome > p {
    max-width: 34ch;
    line-height: 1.7;
    margin-top: 10px;
  }
  .prompt-grid {
    margin-top: 20px;
  }
  .prompt-card:nth-child(3) {
    display: none;
  }
}

/* Account design v2: subscriptions, whole-field copying, task-led AI selection. */
.detail-field {
  width: 100%;
  text-align: left;
  color: var(--text);
  transition:
    background 0.18s,
    border-color 0.18s;
}
.detail-field:hover {
  background: var(--hover);
  border-color: var(--strong);
}
.detail-field > .field-value > .icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--muted);
}
.billing-fields {
  gap: 6px;
  margin: 0 -7px;
}
.billing-field {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 7px 22px 7px 7px;
  min-height: 50px;
}
.billing-field:hover {
  background: var(--field);
  border-color: var(--line);
}
.billing-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 3px;
}
.billing-value {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.billing-field > .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
  position: absolute;
  right: 5px;
  bottom: 12px;
}
.merchant-icon.openai {
  background: #11816a;
  border-color: transparent;
}
.merchant-icon.github {
  background: #6b51ad;
  border-color: transparent;
}
.merchant-icon.cursor {
  background: #bfddf4;
  border-color: transparent;
}
.merchant-icon.suno {
  background: #f5bed4;
  border-color: transparent;
}
.merchant-icon.midjourney {
  background: #c4d2ff;
  border-color: transparent;
}
.tracking-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--positive);
  display: inline-block;
  vertical-align: middle;
  margin-left: 7px;
}
.history-search {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.history-search .search-field {
  min-width: 0;
  max-width: none;
}
.history-bottom {
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 10px;
}
.history-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}
.history-count .icon {
  width: 13px;
  height: 13px;
}
.history-bottom .text-button {
  font-size: 11px;
}
.subscription-preview {
  padding: 22px 26px 0;
  overflow: hidden;
}
.subscription-preview > .panel-heading h2 {
  font-size: 18px;
}
.tracked-subscription {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 22px;
}
.tracked-subscription.compact {
  padding: 20px 0 22px;
  background: none;
  border: 0;
  border-radius: 0;
}
.subscription-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.subscription-name {
  min-width: 0;
}
.subscription-name h3 {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
}
.subscription-name p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.subscription-price {
  display: grid;
  text-align: right;
  gap: 2px;
  margin-left: auto;
}
.subscription-price strong {
  font-size: 16px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.subscription-price span {
  color: var(--muted);
  font-size: 10px;
}
.subscription-top > .icon-button {
  margin: -4px -8px -4px 0;
  align-self: start;
}
.subscription-timeline {
  margin-top: 20px;
}
.timeline-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.timeline-caption strong {
  font-weight: 500;
  color: var(--text);
}
.timeline-caption > span:last-child {
  white-space: nowrap;
}
.month-track {
  height: 4px;
  background: var(--hover);
  border-radius: 5px;
  margin-top: 12px;
  overflow: hidden;
}
.month-track > span {
  height: 100%;
  min-width: 4px;
  display: block;
  background: var(--accent);
  border-radius: inherit;
}
[data-theme="light"] .month-track > span {
  background: #6a8e13;
}
.timeline-dates {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-top: 8px;
}
.possible-nudge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -26px;
  padding: 16px 26px;
  background: var(--field);
  border-top: 1px solid var(--line);
}
.nudge-icon {
  display: grid;
  place-items: center;
  color: var(--secondary);
}
.nudge-icon .icon {
  width: 21px;
  height: 21px;
}
.possible-nudge strong {
  font-size: 12px;
  font-weight: 500;
}
.possible-nudge p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.possible-nudge .text-button {
  margin-left: auto;
  font-size: 11px;
}
.subscriptions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 30px;
  align-items: start;
}
.subscription-main {
  min-width: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 0 0 18px;
}
.section-heading h2 {
  font-size: 17px;
  font-weight: 550;
}
.section-heading h2 > span {
  color: var(--muted);
  font-size: 12px;
  margin-left: 6px;
}
.section-heading > .text-button {
  font-size: 11px;
}
.monthly-total {
  font-size: 19px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.monthly-total small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.tracked-list {
  display: grid;
  gap: 12px;
}
.possible-section {
  margin-top: 36px;
}
.possible-section > .section-heading {
  margin-bottom: 8px;
}
.section-description {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 62ch;
}
.candidate-list {
  display: grid;
  gap: 12px;
}
.subscription-candidate {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.candidate-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
}
.candidate-summary > .icon-button {
  margin-right: -8px;
}
.candidate-price {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.candidate-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 16px;
}
.candidate-bottom > span {
  color: var(--muted);
  font-size: 10px;
}
.candidate-bottom .quiet-button {
  font-size: 11px;
  min-height: 36px;
  background: var(--field);
  color: var(--text);
}
.subscription-guide {
  padding: 24px;
}
.guide-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 12px;
  margin-bottom: 21px;
}
.subscription-guide h2 {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.7px;
}
.subscription-guide ol {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 24px;
}
.subscription-guide li {
  display: flex;
  align-items: start;
  gap: 12px;
}
.subscription-guide li > span {
  font-size: 10px;
  color: var(--muted);
  padding-top: 3px;
}
.subscription-guide strong {
  font-size: 12px;
  font-weight: 550;
}
.subscription-guide li p {
  font-size: 11px;
  line-height: 1.75;
  margin-top: 4px;
  color: var(--muted);
}
.guide-note {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.subscription-empty {
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
}
.subscription-empty > .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
}
.subscription-empty h3 {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 7px;
}
.subscription-empty p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 42ch;
  margin: auto;
}
.subscription-empty .text-button {
  margin-top: 12px;
}
.tracking-service {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 26px;
}
.tracking-service h3 {
  font-size: 16px;
  font-weight: 550;
}
.tracking-service p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.modal-secondary {
  margin: 8px auto 0;
  display: flex;
}
.transaction-tracking {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
}
.transaction-tracking > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.transaction-tracking > div > .icon {
  flex: none;
  width: 18px;
  height: 18px;
}
.transaction-tracking .quiet-button {
  margin-top: 12px;
  width: 100%;
}
.picker-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-size: 11px;
  white-space: nowrap;
}
.picker-mode .icon {
  width: 15px;
  height: 15px;
}
.budget-button {
  margin-left: 6px;
}
.picker-page .message-body {
  max-width: none;
  width: 100%;
}
.recommendation-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}
.recommendation-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.recommendation-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.recommendation-heading h3 {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}
.recommendation-heading > div > span {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.recommendation-index {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  align-self: start;
}
.recommendation-card > p {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.75;
  margin: 18px 0 14px;
}
.recommendation-start {
  display: flex;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.recommendation-start .icon {
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: var(--positive);
}
.recommendation-card > .quiet-button {
  margin-top: auto;
  width: 100%;
  font-size: 11px;
}
.picker-question {
  font-size: 13px;
}
.payment-steps {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--secondary);
}
.payment-steps li {
  padding-left: 4px;
  margin: 12px 0;
}
.payment-card-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
  font-size: 12px;
}
.payment-card-summary strong {
  margin-left: auto;
  font-weight: 550;
}
.payment-card-summary .icon {
  width: 18px;
  height: 18px;
}
@media (max-width: 1220px) {
  .subscriptions-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 22px;
  }
  .subscription-guide {
    padding: 21px;
  }
}
@media (max-width: 880px) {
  .subscriptions-layout {
    grid-template-columns: 1fr;
  }
  .subscription-guide {
    display: none;
  }
}
@media (max-width: 640px) {
  .billing-field {
    min-height: 55px;
  }
  .billing-label {
    font-size: 11px;
  }
  .billing-value {
    font-size: 13px;
  }
  .subscription-preview {
    padding: 20px 18px 0;
  }
  .possible-nudge {
    margin: 0 -18px;
    padding: 14px 18px;
    gap: 10px;
  }
  .possible-nudge .text-button {
    min-height: 44px;
  }
  .possible-nudge .text-button .icon {
    display: none;
  }
  .possible-nudge p {
    max-width: 23ch;
  }
  .timeline-caption {
    font-size: 10px;
  }
  .timeline-caption > span:first-child {
    max-width: 21ch;
  }
  .subscription-top {
    gap: 10px;
  }
  .subscription-price strong {
    font-size: 15px;
  }
  .section-heading {
    gap: 8px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .monthly-total {
    font-size: 17px;
    white-space: nowrap;
  }
  .monthly-total small {
    font-size: 10px;
  }
  .tracked-subscription {
    padding: 18px;
  }
  .tracked-subscription.compact {
    padding: 20px 0;
  }
  .subscription-name h3 {
    font-size: 14px;
  }
  .subscription-top > .icon-button {
    margin-left: -4px;
    min-width: 44px;
    width: 44px;
  }
  .candidate-summary {
    padding: 15px 16px 10px;
    gap: 10px;
  }
  .candidate-summary .icon-button {
    width: 44px;
    min-width: 44px;
    margin-left: -4px;
  }
  .candidate-price {
    font-size: 13px;
  }
  .candidate-bottom {
    padding: 0 16px 14px;
    align-items: end;
  }
  .candidate-bottom > span {
    max-width: 18ch;
    line-height: 1.6;
  }
  .candidate-bottom .quiet-button {
    min-height: 44px;
    white-space: nowrap;
  }
  .history-search {
    flex-wrap: wrap;
  }
  .history-search .search-field {
    flex-basis: 100%;
  }
  .history-search .select-control {
    width: 100%;
  }
  .picker-mode {
    display: none;
  }
  .picker-page .chat-welcome h2 {
    max-width: 13ch;
    font-size: 28px;
    line-height: 1.3;
  }
  .picker-page .chat-welcome > p {
    font-size: 12px;
    max-width: 35ch;
  }
  .picker-page .chat-welcome > p br {
    display: none;
  }
  .picker-page .prompt-card {
    min-height: 66px;
    padding: 12px;
    gap: 12px;
    flex-direction: row;
    align-items: center;
  }
  .picker-page .prompt-card .icon {
    flex: none;
  }
  .picker-page .prompt-card br {
    display: none;
  }
  .picker-page .prompt-card > span {
    max-width: none;
  }
  .picker-page .prompt-grid {
    gap: 8px;
    margin-top: 18px;
  }
  .recommendation-list {
    grid-template-columns: 1fr;
  }
  .recommendation-card {
    padding: 18px;
  }
  .recommendation-card .quiet-button {
    min-height: 44px;
  }
  .picker-page .message-assistant {
    gap: 8px;
  }
  .picker-page .message-assistant > img {
    width: 25px;
    height: 24px;
  }
  .picker-page .message-body > h2 {
    line-height: 1.5;
  }
}
@media (min-width: 641px) and (max-height: 800px) {
  .picker-page .chat-welcome {
    padding: 12px 0;
  }
  .picker-page .chat-welcome > img {
    width: 72px;
    height: 64px;
    margin-bottom: 10px;
  }
  .picker-page .chat-welcome h2 {
    font-size: 30px;
    line-height: 1.3;
  }
  .picker-page .chat-welcome > p {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 8px;
  }
  .picker-page .prompt-grid {
    margin-top: 18px;
  }
  .picker-page .prompt-card {
    min-height: 84px;
    padding: 14px;
    gap: 8px;
  }
}
.tracked-subscription.compact + .tracked-subscription.compact {
  border-top: 1px solid var(--line);
}
.panel-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-left: 7px;
}
.page-title-row > .soft-badge {
  white-space: nowrap;
  flex: none;
}
.timeline-caption strong {
  white-space: nowrap;
}
.detail-field.is-copied,
.billing-field.is-copied,
.icon-button.is-copied {
  background: #25351b;
  border-color: #87ae4b;
}
[data-theme="light"] .detail-field.is-copied,
[data-theme="light"] .billing-field.is-copied,
[data-theme="light"] .icon-button.is-copied {
  background: #e6f3d2;
  border-color: #5f8534;
}
.is-copied .field-label,
.is-copied .billing-label,
.detail-field.is-copied > .field-value > .icon,
.billing-field.is-copied > .icon,
.icon-button.is-copied > .icon {
  color: var(--positive);
}
.is-copied .field-label,
.is-copied .billing-label {
  font-weight: 600;
}
.icon-button[data-copy] {
  position: relative;
}
.copy-confirmation {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 640px) {
  .timeline-caption > span:first-child {
    max-width: none;
  }
}
