@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
:root,
.wise {
  --wise-green: #9FE870;
  --wise-green-dark: #7ED957;
  --wise-green-darker: #5EBB3F;
  --wise-green-light: #D4F4C0;
  --wise-green-bg: #F0FBE8;
  --wise-on-green: #163300;
  --wise-navy: #163300;
  --wise-navy-light: #2E4A1A;
  --wise-navy-lighter: #4A6B36;
  --wise-blue: #2E77D0;
  --wise-blue-light: #D3E5FF;
  --wise-bg: #FFFFFF;
  --wise-bg-secondary: #F2F5F2;
  --wise-bg-tertiary: #E8ECE8;
  --wise-bg-elevated: #FFFFFF;
  --wise-bg-hover: #F5F8F5;
  --wise-bg-green: #9FE870;
  --wise-text: #163300;
  --wise-text-secondary: #4A6B36;
  --wise-text-tertiary: #6B8A5A;
  --wise-text-inverted: #FFFFFF;
  --wise-text-on-green: #163300;
  --wise-border: #D4DCD0;
  --wise-border-hover: #A8B8A0;
  --wise-border-focus: #163300;
  --wise-divider: #E8ECE8;
  --wise-success: #00A843;
  --wise-success-light: #D4F4DF;
  --wise-error: #D13438;
  --wise-error-light: #FFE0E0;
  --wise-warning: #E68A00;
  --wise-warning-light: #FFF0D4;
  --wise-info: #2E77D0;
  --wise-info-light: #D3E5FF;
  --wise-radius-sm: 4px;
  --wise-radius-md: 8px;
  --wise-radius-lg: 12px;
  --wise-radius-xl: 16px;
  --wise-radius-2xl: 24px;
  --wise-radius-full: 9999px;
  --wise-font: 'Inter', -apple-system, system-ui, sans-serif;
  --wise-display: 800 3rem/1.1 var(--wise-font);
  --wise-heading-1: 700 2.25rem/1.15 var(--wise-font);
  --wise-heading-2: 700 1.5rem/1.25 var(--wise-font);
  --wise-heading-3: 700 1.25rem/1.3 var(--wise-font);
  --wise-heading-4: 600 1rem/1.4 var(--wise-font);
  --wise-body-lg: 400 1.0625rem/1.6 var(--wise-font);
  --wise-body: 400 0.9375rem/1.6 var(--wise-font);
  --wise-body-sm: 400 0.8125rem/1.55 var(--wise-font);
  --wise-label: 600 0.875rem/1.3 var(--wise-font);
  --wise-label-sm: 600 0.75rem/1.3 var(--wise-font);
  --wise-label-xs: 500 0.6875rem/1.3 var(--wise-font);
  --wise-duration-fast: 120ms;
  --wise-duration-normal: 200ms;
  --wise-duration-slow: 300ms;
  --wise-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --wise-ease-out: cubic-bezier(0, 0, 0.25, 1);
  --wise-shadow-sm: 0 1px 3px rgba(22, 51, 0, 0.06);
  --wise-shadow-md: 0 4px 12px rgba(22, 51, 0, 0.08);
  --wise-shadow-lg: 0 8px 24px rgba(22, 51, 0, 0.1);
  --wise-shadow-green: 0 4px 16px rgba(159, 232, 112, 0.3);
}

.wise.dark,
.wise[data-theme=dark],
[data-theme=dark] .wise {
  --wise-bg: #0D1F00;
  --wise-bg-secondary: #142A08;
  --wise-bg-tertiary: #1E3812;
  --wise-bg-elevated: #1A3010;
  --wise-bg-hover: #1E3812;
  --wise-bg-green: #9FE870;
  --wise-text: #F0F5EC;
  --wise-text-secondary: #B0C8A0;
  --wise-text-tertiary: #7A9A68;
  --wise-text-inverted: #163300;
  --wise-text-on-green: #163300;
  --wise-border: #2E4A1A;
  --wise-border-hover: #4A6B36;
  --wise-border-focus: #9FE870;
  --wise-divider: #2E4A1A;
  --wise-success-light: rgba(0, 168, 67, 0.15);
  --wise-error-light: rgba(209, 52, 56, 0.15);
  --wise-warning-light: rgba(230, 138, 0, 0.15);
  --wise-info-light: rgba(46, 119, 208, 0.15);
  --wise-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --wise-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --wise-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --wise-shadow-green: 0 4px 16px rgba(159, 232, 112, 0.15);
}

.wise-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font: var(--wise-label);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--wise-duration-normal) var(--wise-ease), border-color var(--wise-duration-normal) var(--wise-ease), color var(--wise-duration-normal) var(--wise-ease), box-shadow var(--wise-duration-normal) var(--wise-ease), transform var(--wise-duration-fast) var(--wise-ease);
  border-radius: var(--wise-radius-lg);
  height: 48px;
  padding: 0 24px;
}
.wise-btn:active {
  transform: scale(0.98);
}
.wise-btn:focus-visible {
  outline: 2px solid var(--wise-border-focus);
  outline-offset: 2px;
}
.wise-btn .wise-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.wise-btn:disabled, .wise-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.wise-btn--primary,
.wise-btn {
  background: var(--wise-green);
  color: var(--wise-on-green);
  border-color: var(--wise-green);
  font-weight: 700;
}
.wise-btn--primary:hover,
.wise-btn:hover {
  background: var(--wise-green-dark);
  border-color: var(--wise-green-dark);
}
.wise-btn--primary:active,
.wise-btn:active {
  background: var(--wise-green-darker);
  border-color: var(--wise-green-darker);
}

.wise-btn--secondary {
  background: transparent;
  color: var(--wise-text);
  border-color: var(--wise-border);
}
.wise-btn--secondary:hover {
  border-color: var(--wise-border-hover);
  background: var(--wise-bg-hover);
}

.wise-btn--navy {
  background: var(--wise-navy);
  color: var(--wise-text-inverted);
  border-color: var(--wise-navy);
}
.wise-btn--navy:hover {
  background: var(--wise-navy-light);
  border-color: var(--wise-navy-light);
}

.wise-btn--ghost {
  background: transparent;
  color: var(--wise-text-secondary);
  border-color: transparent;
}
.wise-btn--ghost:hover {
  background: var(--wise-bg-hover);
  color: var(--wise-text);
}

.wise-btn--link {
  background: transparent;
  color: var(--wise-blue);
  border-color: transparent;
  padding: 0;
  height: auto;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wise-btn--link:hover {
  color: var(--wise-navy);
}

.wise-btn--danger {
  background: var(--wise-error);
  color: #FFFFFF;
  border-color: var(--wise-error);
}
.wise-btn--danger:hover {
  opacity: 0.9;
}

.wise-btn--sm {
  height: 36px;
  padding: 0 16px;
  font: var(--wise-label-sm);
  border-radius: var(--wise-radius-md);
  border-width: 1.5px;
}
.wise-btn--sm .wise-btn__icon {
  width: 16px;
  height: 16px;
}

.wise-btn--lg {
  height: 56px;
  padding: 0 32px;
  font: var(--wise-label);
  font-size: 1rem;
  border-radius: var(--wise-radius-xl);
}
.wise-btn--lg .wise-btn__icon {
  width: 20px;
  height: 20px;
}

.wise-btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
}
.wise-btn--icon.wise-btn--sm {
  width: 36px;
  height: 36px;
}
.wise-btn--icon.wise-btn--lg {
  width: 56px;
  height: 56px;
}

.wise-btn--full {
  width: 100%;
}

.wise-btn--loading {
  pointer-events: none;
}
.wise-btn--loading .wise-btn__label {
  visibility: hidden;
}
.wise-btn--loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: wise-spin 0.6s linear infinite;
}

@keyframes wise-spin {
  to {
    transform: rotate(360deg);
  }
}
.wise-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--wise-radius-xl);
  border: 1px solid var(--wise-border);
  background: var(--wise-bg);
  color: var(--wise-text);
  transition: border-color var(--wise-duration-normal) var(--wise-ease), box-shadow var(--wise-duration-normal) var(--wise-ease);
}

.wise-card--interactive {
  cursor: pointer;
}
.wise-card--interactive:hover {
  border-color: var(--wise-border-hover);
  box-shadow: var(--wise-shadow-md);
}
.wise-card--interactive:focus-visible {
  outline: 2px solid var(--wise-border-focus);
  outline-offset: 2px;
}

.wise-card--elevated {
  border-color: transparent;
  box-shadow: var(--wise-shadow-md);
}
.wise-card--elevated:hover {
  box-shadow: var(--wise-shadow-lg);
}

.wise-card--green {
  background: var(--wise-green);
  color: var(--wise-on-green);
  border-color: transparent;
}
.wise-card--green .wise-card__title {
  color: var(--wise-on-green);
}
.wise-card--green .wise-card__subtitle {
  color: var(--wise-navy-lighter);
}
.wise-card--green .wise-card__body {
  color: var(--wise-navy-light);
}

.wise-card--navy {
  background: var(--wise-navy);
  color: var(--wise-text-inverted);
  border-color: transparent;
}
.wise-card--navy .wise-card__title {
  color: var(--wise-text-inverted);
}
.wise-card--navy .wise-card__subtitle {
  color: rgba(255, 255, 255, 0.7);
}
.wise-card--navy .wise-card__body {
  color: rgba(255, 255, 255, 0.6);
}

.wise-card--flat {
  background: var(--wise-bg-secondary);
  border-color: transparent;
}

.wise-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 0;
}

.wise-card__header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wise-card__title {
  font: var(--wise-heading-4);
  color: var(--wise-text);
  margin: 0;
}

.wise-card__subtitle {
  font: var(--wise-body-sm);
  color: var(--wise-text-tertiary);
  margin: 0;
}

.wise-card__body {
  padding: 12px 20px 20px;
  font: var(--wise-body);
  color: var(--wise-text-secondary);
}

.wise-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--wise-divider);
}

.wise-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wise-card__divider {
  height: 1px;
  background: var(--wise-divider);
  margin: 0;
  border: none;
}

.wise-card__amount {
  font: var(--wise-heading-1);
  color: var(--wise-text);
  padding: 8px 20px;
}

.wise-card__amount-label {
  font: var(--wise-body-sm);
  color: var(--wise-text-tertiary);
  padding: 0 20px;
}

.wise-card--horizontal {
  flex-direction: row;
}
.wise-card--horizontal .wise-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.wise-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.wise-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  font: var(--wise-body);
  color: var(--wise-text);
  background: var(--wise-bg);
  border: 1.5px solid var(--wise-border);
  border-radius: var(--wise-radius-lg);
  padding: 0 14px;
  transition: border-color var(--wise-duration-normal) var(--wise-ease), box-shadow var(--wise-duration-normal) var(--wise-ease);
}
.wise-input input, .wise-input textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0;
  width: 100%;
}
.wise-input input::placeholder, .wise-input textarea::placeholder {
  color: var(--wise-text-tertiary);
}
.wise-input textarea {
  min-height: 80px;
  resize: vertical;
  padding: 10px 0;
}
.wise-input:hover {
  border-color: var(--wise-border-hover);
}
.wise-input:focus-within {
  border-color: var(--wise-navy);
  box-shadow: 0 0 0 1px var(--wise-navy);
}

.wise-input--amount {
  min-height: 64px;
  font: var(--wise-heading-2);
  padding: 0 16px;
}
.wise-input--amount input {
  font: inherit;
}
.wise-input--amount input::placeholder {
  color: var(--wise-text-tertiary);
}

.wise-input__currency {
  font: var(--wise-heading-3);
  color: var(--wise-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.wise-input--filled {
  background: var(--wise-bg-secondary);
  border-color: transparent;
}
.wise-input--filled:hover {
  border-color: var(--wise-border);
}
.wise-input--filled:focus-within {
  border-color: var(--wise-navy);
  background: var(--wise-bg);
}

.wise-input__leading,
.wise-input__trailing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--wise-text-tertiary);
}

.wise-input__trailing {
  cursor: pointer;
}
.wise-input__trailing:hover {
  color: var(--wise-text);
}

.wise-field__label {
  font: var(--wise-label-sm);
  color: var(--wise-text-secondary);
}

.wise-field:focus-within .wise-field__label {
  color: var(--wise-text);
}

.wise-field__supporting {
  font: var(--wise-body-sm);
  color: var(--wise-text-tertiary);
}

.wise-field--error .wise-input {
  border-color: var(--wise-error);
}
.wise-field--error .wise-input:focus-within {
  box-shadow: 0 0 0 1px var(--wise-error);
}
.wise-field--error .wise-field__label {
  color: var(--wise-error);
}
.wise-field--error .wise-field__supporting {
  color: var(--wise-error);
}

.wise-field--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.wise-input--sm {
  min-height: 40px;
  font: var(--wise-body-sm);
  border-radius: var(--wise-radius-md);
}

.wise-input--lg {
  min-height: 56px;
  font: var(--wise-body-lg);
}

.wise-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: var(--wise-label-xs);
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
  border-radius: var(--wise-radius-full);
  padding: 2px 10px;
  min-height: 22px;
  vertical-align: middle;
}

.wise-badge--tonal, .wise-badge {
  background: var(--wise-bg-tertiary);
  color: var(--wise-text-secondary);
}

.wise-badge--green {
  background: var(--wise-green-bg);
  color: var(--wise-navy);
}

.wise-badge--green-filled {
  background: var(--wise-green);
  color: var(--wise-on-green);
}

.wise-badge--outlined {
  background: transparent;
  border: 1px solid var(--wise-border);
  color: var(--wise-text-secondary);
}

.wise-badge--success {
  background: var(--wise-success-light);
  color: var(--wise-success);
}

.wise-badge--warning {
  background: var(--wise-warning-light);
  color: var(--wise-warning);
}

.wise-badge--error {
  background: var(--wise-error-light);
  color: var(--wise-error);
}

.wise-badge--info {
  background: var(--wise-info-light);
  color: var(--wise-info);
}

.wise-badge--sm {
  font-size: 0.5625rem;
  padding: 1px 6px;
  min-height: 18px;
}

.wise-badge--lg {
  font: var(--wise-label-sm);
  padding: 4px 12px;
  min-height: 26px;
}

.wise-badge--dot {
  width: 8px;
  height: 8px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--wise-green);
}

.wise-badge--dot.wise-badge--success {
  background: var(--wise-success);
}

.wise-badge--dot.wise-badge--error {
  background: var(--wise-error);
}

.wise-badge--dot.wise-badge--warning {
  background: var(--wise-warning);
}

.wise-badge__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.wise-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
  background: var(--wise-green-bg);
  color: var(--wise-navy);
  font: var(--wise-label);
  font-weight: 700;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.wise-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.wise-avatar__initials {
  text-transform: uppercase;
}

.wise-avatar__icon {
  width: 20px;
  height: 20px;
}

.wise-avatar--xs {
  width: 24px;
  height: 24px;
  font: var(--wise-label-xs);
}
.wise-avatar--xs .wise-avatar__icon {
  width: 14px;
  height: 14px;
}

.wise-avatar--sm {
  width: 32px;
  height: 32px;
  font: var(--wise-label-sm);
}
.wise-avatar--sm .wise-avatar__icon {
  width: 16px;
  height: 16px;
}

.wise-avatar--lg {
  width: 56px;
  height: 56px;
  font: var(--wise-heading-3);
}
.wise-avatar--lg .wise-avatar__icon {
  width: 24px;
  height: 24px;
}

.wise-avatar--xl {
  width: 80px;
  height: 80px;
  font: var(--wise-heading-2);
}
.wise-avatar--xl .wise-avatar__icon {
  width: 32px;
  height: 32px;
}

.wise-avatar--green {
  background: var(--wise-green);
  color: var(--wise-on-green);
}

.wise-avatar--navy {
  background: var(--wise-navy);
  color: var(--wise-text-inverted);
}

.wise-avatar--surface {
  background: var(--wise-bg-secondary);
  color: var(--wise-text-secondary);
}

.wise-avatar--square {
  border-radius: var(--wise-radius-md);
}

.wise-avatar--bordered {
  border: 2px solid var(--wise-bg);
}

.wise-avatar__status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--wise-bg);
}
.wise-avatar__status--online {
  background: var(--wise-success);
}
.wise-avatar__status--offline {
  background: var(--wise-border);
}
.wise-avatar__status--busy {
  background: var(--wise-error);
}

.wise-avatar-group {
  display: flex;
  align-items: center;
}
.wise-avatar-group .wise-avatar {
  border: 2px solid var(--wise-bg);
  margin-left: -8px;
}
.wise-avatar-group .wise-avatar:first-child {
  margin-left: 0;
}

.wise-avatar-group__overflow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wise-bg-tertiary);
  color: var(--wise-text-tertiary);
  font: var(--wise-label-sm);
  border: 2px solid var(--wise-bg);
  margin-left: -8px;
}

.wise-alert {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--wise-radius-lg);
  font: var(--wise-body);
  color: var(--wise-text);
  background: var(--wise-bg-secondary);
  border: 1px solid var(--wise-divider);
}

.wise-alert__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.wise-alert__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wise-alert__title {
  font: var(--wise-label);
  margin: 0;
}

.wise-alert__body {
  font: var(--wise-body-sm);
  margin: 0;
  color: var(--wise-text-secondary);
}

.wise-alert__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.wise-alert__dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--wise-text-tertiary);
  cursor: pointer;
  border-radius: var(--wise-radius-md);
  padding: 0;
  margin: -4px -4px -4px 0;
}
.wise-alert__dismiss:hover {
  color: var(--wise-text);
  background: var(--wise-bg-hover);
}

.wise-alert--info, .wise-alert {
  background: var(--wise-info-light);
  border-color: transparent;
}
.wise-alert--info .wise-alert__icon, .wise-alert .wise-alert__icon {
  color: var(--wise-info);
}
.wise-alert--info .wise-alert__title, .wise-alert .wise-alert__title {
  color: var(--wise-info);
}

.wise-alert--success {
  background: var(--wise-success-light);
  border-color: transparent;
}
.wise-alert--success .wise-alert__icon {
  color: var(--wise-success);
}
.wise-alert--success .wise-alert__title {
  color: var(--wise-success);
}

.wise-alert--warning {
  background: var(--wise-warning-light);
  border-color: transparent;
}
.wise-alert--warning .wise-alert__icon {
  color: var(--wise-warning);
}
.wise-alert--warning .wise-alert__title {
  color: var(--wise-warning);
}

.wise-alert--error {
  background: var(--wise-error-light);
  border-color: transparent;
}
.wise-alert--error .wise-alert__icon {
  color: var(--wise-error);
}
.wise-alert--error .wise-alert__title {
  color: var(--wise-error);
}

.wise-alert--green {
  background: var(--wise-green-bg);
  border-color: transparent;
}
.wise-alert--green .wise-alert__icon {
  color: var(--wise-navy);
}
.wise-alert--green .wise-alert__title {
  color: var(--wise-navy);
}

.wise-alert--outlined {
  background: transparent;
  border: 1px solid var(--wise-border);
}
.wise-alert--outlined.wise-alert--info {
  border-color: var(--wise-info);
}
.wise-alert--outlined.wise-alert--success {
  border-color: var(--wise-success);
}
.wise-alert--outlined.wise-alert--warning {
  border-color: var(--wise-warning);
}
.wise-alert--outlined.wise-alert--error {
  border-color: var(--wise-error);
}

.wise-alert--enter {
  animation: wise-alert-in var(--wise-duration-slow) var(--wise-ease);
}

.wise-alert--exit {
  animation: wise-alert-out var(--wise-duration-slow) var(--wise-ease) forwards;
}

@keyframes wise-alert-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes wise-alert-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.wise-appbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  background: var(--wise-bg);
  color: var(--wise-text);
  border-bottom: 1px solid var(--wise-divider);
  z-index: 10;
}

.wise-appbar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--wise-text);
  cursor: pointer;
  border-radius: var(--wise-radius-md);
  padding: 0;
}
.wise-appbar__nav:hover {
  background: var(--wise-bg-hover);
}
.wise-appbar__nav svg {
  width: 20px;
  height: 20px;
}

.wise-appbar__logo {
  display: flex;
  align-items: center;
  font: var(--wise-heading-4);
  color: var(--wise-green-darker);
  text-decoration: none;
  margin-right: 8px;
}

.wise-appbar__title {
  flex: 1;
  font: var(--wise-heading-4);
  color: var(--wise-text);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wise-appbar__links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.wise-appbar__link {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 12px;
  font: var(--wise-body);
  color: var(--wise-text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--wise-duration-fast) var(--wise-ease);
}
.wise-appbar__link:hover {
  color: var(--wise-text);
}

.wise-appbar__link--active {
  color: var(--wise-text);
  font-weight: 600;
  border-bottom-color: var(--wise-green);
}

.wise-appbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wise-appbar__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--wise-text-secondary);
  cursor: pointer;
  border-radius: var(--wise-radius-md);
  padding: 0;
}
.wise-appbar__action:hover {
  background: var(--wise-bg-hover);
  color: var(--wise-text);
}
.wise-appbar__action svg {
  width: 20px;
  height: 20px;
}

.wise-sidebar {
  display: flex;
  flex-direction: column;
  width: 260px;
  min-height: 100%;
  padding: 12px;
  background: var(--wise-bg);
  border-right: 1px solid var(--wise-divider);
  flex-shrink: 0;
  overflow-y: auto;
}

.wise-sidebar__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font: var(--wise-heading-4);
  color: var(--wise-text);
}

.wise-sidebar__section-title {
  font: var(--wise-label-xs);
  color: var(--wise-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 10px 6px;
}

.wise-sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--wise-text-secondary);
  font: var(--wise-body);
  border-radius: var(--wise-radius-lg);
  transition: background-color var(--wise-duration-fast) var(--wise-ease), color var(--wise-duration-fast) var(--wise-ease);
}
.wise-sidebar__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.6;
}
.wise-sidebar__item:hover {
  background: var(--wise-bg-hover);
  color: var(--wise-text);
}

.wise-sidebar__item--active {
  background: var(--wise-green-bg);
  color: var(--wise-navy);
  font-weight: 600;
}
.wise-sidebar__item--active svg {
  opacity: 1;
  color: var(--wise-navy);
}
.wise-sidebar__item--active:hover {
  background: var(--wise-green-bg);
}

.wise-sidebar__badge {
  margin-left: auto;
  font: var(--wise-label-xs);
  color: var(--wise-text-tertiary);
}

.wise-sidebar__divider {
  height: 1px;
  background: var(--wise-divider);
  margin: 8px 0;
}

.wise-bottomnav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 64px;
  background: var(--wise-bg);
  border-top: 1px solid var(--wise-divider);
  padding: 4px 0;
}

.wise-bottomnav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--wise-text-tertiary);
  padding: 0;
}
.wise-bottomnav__item svg {
  width: 22px;
  height: 22px;
}

.wise-bottomnav__label {
  font: var(--wise-label-xs);
}

.wise-bottomnav__item--active {
  color: var(--wise-navy);
}
.wise-bottomnav__item--active .wise-bottomnav__label {
  font-weight: 700;
}

.wise-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--wise-divider);
}

.wise-tabs--scrollable {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wise-tabs--scrollable::-webkit-scrollbar {
  display: none;
}

.wise-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--wise-text-secondary);
  font: var(--wise-label);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color var(--wise-duration-fast) var(--wise-ease);
}
.wise-tab:hover {
  color: var(--wise-text);
}
.wise-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--wise-green);
  transform: scaleX(0);
  transition: transform var(--wise-duration-normal) var(--wise-ease);
}
.wise-tab svg {
  width: 16px;
  height: 16px;
}

.wise-tab--active {
  color: var(--wise-text);
}
.wise-tab--active::after {
  transform: scaleX(1);
}

.wise-tabs--pill {
  border-bottom: none;
  gap: 8px;
  padding: 4px 0;
}
.wise-tabs--pill .wise-tab {
  height: 36px;
  padding: 0 16px;
  background: var(--wise-bg-secondary);
  border-radius: var(--wise-radius-full);
  font: var(--wise-label-sm);
}
.wise-tabs--pill .wise-tab::after {
  display: none;
}
.wise-tabs--pill .wise-tab:hover {
  background: var(--wise-bg-tertiary);
}
.wise-tabs--pill .wise-tab--active {
  background: var(--wise-navy);
  color: var(--wise-text-inverted);
}
.wise-tabs--pill .wise-tab--active:hover {
  background: var(--wise-navy);
}

.wise-tabs--scrollable .wise-tab {
  flex: none;
}

.wise-tab__badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--wise-green);
  color: var(--wise-on-green);
  font: var(--wise-label-xs);
  font-size: 0.5625rem;
  border-radius: var(--wise-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wise-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1.5px solid var(--wise-border);
  border-radius: var(--wise-radius-full);
  background: var(--wise-bg);
  color: var(--wise-text);
  font: var(--wise-label-sm);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color var(--wise-duration-fast) var(--wise-ease), background-color var(--wise-duration-fast) var(--wise-ease);
}
.wise-chip:hover {
  border-color: var(--wise-border-hover);
  background: var(--wise-bg-hover);
}
.wise-chip:focus-visible {
  outline: 2px solid var(--wise-border-focus);
  outline-offset: 2px;
}
.wise-chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.wise-chip__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.wise-chip__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: -4px;
  border: none;
  background: transparent;
  color: var(--wise-text-tertiary);
  cursor: pointer;
  padding: 0;
}
.wise-chip__remove:hover {
  color: var(--wise-text);
}

.wise-chip--selected {
  background: var(--wise-green);
  border-color: var(--wise-green);
  color: var(--wise-on-green);
}
.wise-chip--selected:hover {
  background: var(--wise-green-dark);
  border-color: var(--wise-green-dark);
}

.wise-chip--navy {
  background: var(--wise-navy);
  border-color: var(--wise-navy);
  color: var(--wise-text-inverted);
}

.wise-chip:disabled, .wise-chip[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.wise-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wise-chip-group--scrollable {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wise-chip-group--scrollable::-webkit-scrollbar {
  display: none;
}

.wise-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 51, 0, 0.4);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--wise-duration-slow) var(--wise-ease), visibility var(--wise-duration-slow);
}
.wise-modal-backdrop.wise-modal-backdrop--open {
  opacity: 1;
  visibility: visible;
}

.wise-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(480px, 100vw - 32px);
  max-height: calc(100vh - 48px);
  background: var(--wise-bg);
  color: var(--wise-text);
  border-radius: var(--wise-radius-2xl);
  box-shadow: var(--wise-shadow-lg);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform var(--wise-duration-slow) var(--wise-ease-out), opacity var(--wise-duration-slow) var(--wise-ease);
}
.wise-modal-backdrop--open .wise-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.wise-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 12px;
}

.wise-modal__title {
  font: var(--wise-heading-3);
  color: var(--wise-text);
  margin: 0;
}

.wise-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--wise-text-tertiary);
  cursor: pointer;
  border-radius: var(--wise-radius-md);
  padding: 0;
  flex-shrink: 0;
}
.wise-modal__close:hover {
  color: var(--wise-text);
  background: var(--wise-bg-hover);
}
.wise-modal__close svg {
  width: 18px;
  height: 18px;
}

.wise-modal__body {
  padding: 0 24px 24px;
  font: var(--wise-body);
  color: var(--wise-text-secondary);
  overflow-y: auto;
  flex: 1;
}

.wise-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--wise-divider);
}

.wise-modal__divider {
  height: 1px;
  background: var(--wise-divider);
  margin: 0;
  border: none;
}

.wise-modal--fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
}
.wise-modal--fullscreen .wise-modal__body {
  padding: 24px;
}

.wise-modal-backdrop--bottom {
  align-items: flex-end;
}

.wise-modal--bottom-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  border-radius: var(--wise-radius-2xl) var(--wise-radius-2xl) 0 0;
  transform: translateY(100%);
}
.wise-modal-backdrop--open .wise-modal--bottom-sheet {
  transform: translateY(0);
}

.wise-modal__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 0;
}
.wise-modal__handle::before {
  content: "";
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--wise-border);
}
