/* ─────────────────────────────────────────────────────────────────
   KOMPOSE — Brand layer
   "The orchestration layer for programmable finance."

   Loaded AFTER /ds/styles.css so the Kompose foundations stay 1:1 with
   their Figma source and remain upgradable. Everything Kompose-specific
   lives here.

   Two ramps carry the identity:
     graphite — cool neutral, ivory through near-black
     jade     — mint through emerald through deep teal

   The Kompose `--slate-*` / `--purple-*` primitives are re-pointed at these
   ramps at the bottom of this file, so existing component CSS and inline
   styles inherit the rebrand without being touched.
   ───────────────────────────────────────────────────────────────── */

/* Product UI uses Fustat from /ds/colors_and_type.css (@font-face).
   Do not pull Inter here — it previously overrode the OMS type craft. */

:root {
  /* ─── Kompose: graphite (neutral) ──────────────────────────── */
  --graphite-50: #f7f6f3; /* ivory — page ground */
  --graphite-100: #edede8;
  --graphite-200: #dcddd8;
  --graphite-300: #c2c6c4;
  --graphite-400: #8e9694;
  --graphite-500: #626a6b;
  --graphite-600: #474e51;
  --graphite-700: #2a2d32; /* stone */
  --graphite-800: #1c2226; /* slate */
  --graphite-900: #141a1d;
  --graphite-950: #0f1316; /* graphite */

  /* ─── Kompose: jade (brand) ────────────────────────────────── */
  --jade-50: #eff7f3;
  --jade-100: #e4eee9; /* jade */
  --jade-200: #c3e2d6;
  --jade-300: #92ceb8;
  --jade-400: #4eb392;
  --jade-500: #17a37a; /* emerald — primary brand */
  --jade-600: #0f7a62;
  --jade-700: #106b58;
  --jade-800: #0e4746; /* deep teal */
  --jade-900: #0b3634;
  --jade-950: #072423;

  /* ─── Named brand anchors ──────────────────────────────────── */
  --k-ivory: var(--graphite-50);
  --k-graphite: var(--graphite-950);
  --k-emerald: var(--jade-500);
  --k-deep-teal: var(--jade-800);

  /* Logo mark: the dark slash reads navy-graphite, not pure black. */
  --k-mark-slash: #101a24;

  /* Signature gradient — emerald into deep teal, used on the mark,
     accent rules, and marketing surfaces. */
  --k-gradient: linear-gradient(135deg, var(--jade-500) 0%, var(--jade-700) 52%, var(--jade-800) 100%);
  --k-gradient-soft: linear-gradient(135deg, var(--jade-100) 0%, var(--jade-200) 100%);

  /* ─── Alpha, retuned to the graphite base ──────────────────── */
  --alpha-dark-12: rgba(15, 19, 22, 0.07);
  --alpha-dark-20: rgba(15, 19, 22, 0.2);
  --alpha-dark-32: rgba(15, 19, 22, 0.32);
  --alpha-dark-40: rgba(15, 19, 22, 0.4);
  --alpha-dark-48: rgba(15, 19, 22, 0.48);
  --alpha-dark-56: rgba(15, 19, 22, 0.56);
  --alpha-dark-60: rgba(15, 19, 22, 0.6);
  --alpha-dark-72: rgba(15, 19, 22, 0.72);

  /* ─── Typography (OMS craft + Kompose brand) ───────────────── */
  /* Fustat is the product face (OMS). Jade/graphite stay the brand colors. */
  --font-display: "Fustat", system-ui, sans-serif;
  --font-body: "Fustat", system-ui, sans-serif;
  --font-doc: "Fustat", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --font-main: "Fustat", system-ui, sans-serif;

  /* OMS display tracking — slightly tight, not Inter-Tight aggressive. */
  --tracking-display: -0.01em;

  /* ─── Semantic: brand ──────────────────────────────────────── */
  --brand: var(--jade-500);
  --link: var(--jade-600); /* AA on ivory — jade-500 is graphic-only */
  --link-hover: var(--jade-700);
  --brand-hover: var(--link-hover);
  --ring: var(--jade-300);
  --brand-ring: var(--ring);
  --overlay: rgba(15, 19, 22, 0.44);

  /* ─── Semantic: surfaces ───────────────────────────────────── */
  --bg-page-default: var(--graphite-50);
  --bg-surface: #ffffff;
  --bg-surface-active: var(--graphite-50);
  --bg-surface-inverse: var(--graphite-950);
  --bg-surface-selected: var(--jade-100);
  --bg-search: var(--graphite-50);
  --bg-search-active: var(--graphite-100);
  --bg-search-selected: var(--jade-200);
  --bg-info: var(--jade-50);
  --bg-info-inv: var(--jade-600);

  /* ─── Semantic: foreground ─────────────────────────────────── */
  --fg-primary: var(--graphite-950);
  --fg-secondary: var(--graphite-500);
  --fg-tertiary: var(--graphite-400);
  --fg-disabled: var(--graphite-300);
  --fg-info: var(--jade-700);

  /* ─── Semantic: borders ────────────────────────────────────── */
  --border-default: var(--graphite-300);
  --border-info: var(--jade-200);
  --border-search: var(--graphite-200);
  --border-search-active: var(--graphite-300);

  /* ─── Semantic: buttons ────────────────────────────────────── */
  /* Primary is emerald, per the brand board's CTA. jade-700 clears AA
     with white text (6.4:1); hover lifts toward the brand emerald.
     Token names match the Kompose source, which uses `-clicked` for the
     pressed state rather than `-active`. */
  --btn-primary-bg: var(--graphite-950);
  --btn-primary-bg-hover: var(--graphite-800);
  --btn-primary-bg-clicked: var(--graphite-900);
  --btn-primary-fg: #ffffff;
  --btn-secondary-border: var(--graphite-400);
  --btn-secondary-border-hover: var(--graphite-950);
  --btn-secondary-border-clicked: var(--jade-300);
  --btn-secondary-bg-clicked: var(--jade-50);
  --btn-secondary-fg: var(--graphite-950);
  --btn-danger-secondary-fg: var(--graphite-950);
  --btn-danger-secondary-border-clicked: var(--jade-200);
  --btn-focus-ring: 0 0 0 2px #fff, 0 0 0 4px var(--jade-300);

  /* modal.css / customer_profile.css declare these on :root with
     literal purple hexes; re-point them here. */
  --modal-progress-bg: var(--jade-100);
  --modal-progress-fill: var(--jade-600);
  --cp-atom-icon-bg: var(--jade-100);
  --cp-atom-hover-bg: var(--graphite-50);

  /* ─── Elevation, tuned to graphite rather than blue-black ──── */
  --shadow-popover: 0 4px 6px -4px rgba(15, 19, 22, 0.1), 0 10px 15px -3px rgba(15, 19, 22, 0.1);
  --shadow-modal: 0 8px 10px -6px rgba(15, 19, 22, 0.1), 0 20px 25px -5px rgba(15, 19, 22, 0.1);
  --shadow-drawer: -8px 0 24px -8px rgba(15, 19, 22, 0.1), -16px 0 40px -8px rgba(15, 19, 22, 0.08);
  --shadow-emerald: 0 12px 30px -10px rgba(16, 107, 88, 0.5);

  /* ═══ Compatibility aliases ═══════════════════════════════════
     The Kompose primitives are re-pointed at the Kompose ramps. This is
     what makes the rebrand reach every existing component sheet and
     inline style. Prefer --graphite-* / --jade-* in new code. */
  --slate-50: var(--graphite-50);
  --slate-100: var(--graphite-100);
  --slate-200: var(--graphite-200);
  --slate-300: var(--graphite-300);
  --slate-400: var(--graphite-400);
  --slate-500: var(--graphite-500);
  --slate-600: var(--graphite-600);
  --slate-700: var(--graphite-700);
  --slate-800: var(--graphite-800);
  --slate-900: var(--graphite-900);
  --slate-950: var(--graphite-950);

  --purple-50: var(--jade-50);
  --purple-100: var(--jade-100);
  --purple-200: var(--jade-200);
  --purple-300: var(--jade-300);
  --purple-400: var(--jade-400);
  --purple-500: var(--jade-500);
  --purple-600: var(--jade-600);
  --purple-700: var(--jade-700);
  --purple-800: var(--jade-800);
  --purple-900: var(--jade-900);
  --purple-950: var(--jade-950);

  /* Success shares the brand hue, so it is pulled onto the jade ramp
     to keep positive states from competing with the brand. */
  --emerald-50: var(--jade-50);
  --emerald-100: var(--jade-100);
  --emerald-200: var(--jade-200);
  --emerald-300: var(--jade-300);
  --emerald-400: var(--jade-400);
  --emerald-500: var(--jade-500);
  --emerald-600: var(--jade-600);
  --emerald-700: var(--jade-700);
  --emerald-800: var(--jade-800);
  --emerald-900: var(--jade-900);

  --black: #05080a;
}

/* ─── Display typography ─────────────────────────────────────── */
h1,
h2,
h3,
.t-h1,
.t-h2,
.t-h3,
.t-h4 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
}

/* Eyebrow / label voice from the board: uppercase, wide, small. */
.k-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite-500);
}

/* Tabular figures for every number in the product — balances,
   APYs, and weights should never shift width as they update. */
.k-num,
.t-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ─── Brand surfaces ─────────────────────────────────────────── */
/* Graphite panel: the dark statement surface from the board. */
.k-dark {
  background: var(--graphite-950);
  color: var(--graphite-50);
}
.k-dark h1,
.k-dark h2,
.k-dark h3 {
  color: var(--graphite-50);
}

/* The engineering grid that sits behind dark statement panels. */
.k-grid-bg {
  position: relative;
  isolation: isolate;
}
.k-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(146, 206, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 206, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 78% 72% at 50% 42%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 42%, #000 30%, transparent 78%);
}

/* ─── Overrides for literal hexes in the Kompose component sheets ───
   A handful of sheets bake purple/slate hex values in directly rather
   than reading a token, so the ramp aliases above cannot reach them.
   These re-point the ones that are visible in this product. */

/* buttons.css paints `.btn-primary` from `--slate-950` rather than from
   `--btn-primary-bg`, and bakes the hover/pressed tints in as literals. Kompose
   keeps primary CTAs black/white, so primary is re-pointed at the token and the
   whole set is made token-driven. */
.btn-primary,
.btn-primary:disabled,
.btn-primary.is-disabled {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}
.btn-primary:hover {
  background-color: var(--btn-primary-bg-hover);
}
.btn-primary:active,
.btn-primary.is-active {
  background-color: var(--btn-primary-bg-clicked);
}
.btn-secondary:active,
.btn-secondary.is-active {
  background-color: var(--btn-secondary-bg-clicked);
  border-color: var(--btn-secondary-border-clicked);
}
.btn-ghost:hover {
  background-color: var(--jade-50);
}
.btn-ghost:active,
.btn-ghost.is-active {
  background-color: var(--jade-100);
}

/* Sidebar selected state. */
.cm-sb-item:hover {
  background: var(--graphite-50);
}
.cm-sb-item.is-selected,
.cm-sb-item.is-selected .cm-sb-item__icon,
.cm-sb-item.is-selected .cm-sb-item__chev {
  color: var(--jade-700);
}

/* Area chart tooltip crosshair + marker. */
.cm-act__line,
.cm-act__dot {
  background: var(--jade-600);
}
.cm-act__dot {
  box-shadow: 0 0 0 1px var(--jade-600);
}
.cm-act__link {
  color: var(--jade-700);
}

/* Emerald text gradient for accent phrases. */
.k-emerald-text {
  background: linear-gradient(96deg, var(--jade-400) 0%, var(--jade-500) 46%, var(--jade-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── OMS page craft (Kompose colors) ──────────────────────────
   Layout / type recipes from OMS; surfaces stay ivory / white / jade. */
.oms-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 28px 80px;
  width: 100%;
  font-family: var(--font-body);
}

.oms-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.oms-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: var(--tracking-display);
  color: var(--fg-primary);
}

.oms-page__lede {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg-secondary);
}

.oms-page__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.oms-metric {
  text-align: right;
}

.oms-metric__label {
  font-family: var(--font-doc);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

.oms-metric__value {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking-display);
  color: var(--fg-primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.oms-search {
  position: relative;
  width: 100%;
  height: 40px;
  margin-bottom: 14px;
}

.oms-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-secondary);
  display: inline-flex;
  pointer-events: none;
}

.oms-search__input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--fg-primary);
  outline: none;
  transition:
    border-color var(--dur-fast, 120ms) var(--ease-out, ease-out),
    box-shadow var(--dur-fast, 120ms) var(--ease-out, ease-out);
}

.oms-search__input::placeholder {
  color: var(--fg-tertiary);
}

.oms-search__input:focus {
  border-color: var(--slate-500);
  box-shadow: 0 0 0 2px var(--ring);
}

.oms-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.oms-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--slate-100);
  border-radius: 12px;
  flex: 0 0 auto;
}

.oms-tab {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  background: transparent;
  color: var(--fg-secondary);
  box-shadow: none;
  transition:
    background-color var(--dur-fast, 120ms) var(--ease-out, ease-out),
    color var(--dur-fast, 120ms) var(--ease-out, ease-out);
}

.oms-tab.is-active {
  background: var(--bg-elevated);
  color: var(--fg-primary);
  box-shadow: 0 1px 2px rgba(15, 19, 22, 0.06);
}

.oms-empty {
  padding: 72px 24px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px dashed var(--slate-200);
  border-radius: 24px;
}

.oms-empty__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-700);
  margin-bottom: 4px;
}

.oms-empty__body {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg-tertiary);
}

.oms-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
}

.oms-pager__meta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-secondary);
  font-variant-numeric: tabular-nums;
}

.oms-pager__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oms-pager__page {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  text-align: center;
}

.oms-card {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: 24px;
}

.oms-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-family: var(--font-doc);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-secondary);
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 14px;
}

.oms-back:hover {
  color: var(--fg-primary);
}

.oms-detail__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: var(--tracking-display);
  color: var(--fg-primary);
}

/* Vault detail hero — Morpho-like hierarchy, Kompose type + jade. */
@keyframes k-vault-hero-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.k-vault-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.k-vault-hero > * {
  animation: k-vault-hero-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.k-vault-hero > *:nth-child(2) { animation-delay: 40ms; }
.k-vault-hero > *:nth-child(3) { animation-delay: 80ms; }
.k-vault-hero > *:nth-child(4) { animation-delay: 120ms; }

.k-vault-hero__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
}

.k-vault-hero__lead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  min-width: 0;
  flex: 1 1 16rem;
}

.k-vault-hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: var(--tracking-display);
  color: var(--fg-primary);
  min-width: 0;
}

.k-vault-hero__name-text {
  margin-right: 0.35em;
}

.k-vault-hero__by {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: 0.12em;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--fg-secondary);
  white-space: nowrap;
}

.k-vault-hero__by-link {
  color: inherit;
  text-decoration: none;
}

.k-vault-hero__by-link:hover {
  color: var(--fg-primary);
}

.k-vault-hero__by-name {
  font-weight: 700;
  color: var(--fg-primary);
}

.k-vault-hero__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.k-vault-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-end;
  gap: 8px 18px;
  flex: 0 1 auto;
  max-width: 100%;
  margin: 0;
  padding: 0 0 2px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-secondary);
}

@media (max-width: 720px) {
  .k-vault-hero__meta {
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

.k-vault-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: inherit;
}

.k-vault-hero__meta-link {
  text-decoration: none;
}

.k-vault-hero__meta-link:hover {
  color: var(--fg-primary);
}

.k-vault-hero__meta-strong {
  font-weight: 650;
  color: var(--fg-primary);
}

.k-vault-hero__mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.k-vault-hero__mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.k-vault-hero__lede {
  margin: 0;
  max-width: 52rem;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--fg-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.k-vault-hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  padding: 8px 0 4px;
}

.k-vault-hero__metrics--with-apy {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.k-vault-hero__metric-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-secondary);
}

.k-vault-hero__metric-value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--fg-primary);
}

.k-vault-hero__metric-hint {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-tertiary);
  font-variant-numeric: tabular-nums;
}

.k-vault-hero__metric-exposure {
  margin-top: 8px;
  min-height: 36px;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.k-vault-hero__exposure-trigger {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 2px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
}

.k-vault-hero__exposure-trigger:hover {
  background: var(--graphite-100);
}

.k-vault-hero__exposure-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--jade-200);
}

.k-vault-hero__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--graphite-400);
  cursor: help;
}

.k-vault-hero__info:hover {
  color: var(--fg-secondary);
}

@media (max-width: 840px) {
  .k-vault-hero__metrics,
  .k-vault-hero__metrics--with-apy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .k-vault-hero > * {
    animation: none;
  }
}

.k-profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.k-profile > * {
  animation: k-vault-hero-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.k-profile > *:nth-child(2) { animation-delay: 40ms; }
.k-profile > *:nth-child(3) { animation-delay: 80ms; }
.k-profile > *:nth-child(4) { animation-delay: 120ms; }
.k-profile > *:nth-child(5) { animation-delay: 160ms; }

.k-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 24px;
}

.k-profile-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.k-profile-card__identity {
  min-width: 0;
  flex: 1;
}

.k-profile-copy {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.k-profile-copy svg {
  width: 14px;
  height: 14px;
  color: var(--slate-400);
}

.k-profile-card__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-950);
  letter-spacing: -0.01em;
}

.k-profile-card__pnl {
  margin: 0 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.k-profile-card__pnl-label {
  font-weight: 600;
  color: var(--slate-500);
}

.k-profile-card__wallet {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--slate-500);
}

.k-profile-badge {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald-700);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  border-radius: 999px;
  padding: 4px 10px;
}

.k-profile-badge svg {
  width: 13px;
  height: 13px;
}

.k-profile-fields {
  display: grid;
  gap: 14px;
}

.k-profile-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 20px;
  align-items: end;
}

@media (max-width: 640px) {
  .k-profile-meta {
    grid-template-columns: 1fr;
  }
}

.k-profile-field {
  display: grid;
  gap: 6px;
}

.k-profile-field__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-600);
}

.k-profile-static {
  margin: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-900);
}

.k-profile-field__control {
  position: relative;
  max-width: 320px;
}

.k-profile-fields > .k-profile-field .k-profile-field__control {
  max-width: none;
}

.k-profile-field__control input,
.k-profile-field__control textarea {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 8px 36px 8px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate-900);
  background: var(--bg-surface);
  font-family: inherit;
}

.k-profile-field__control input {
  height: 36px;
}

.k-profile-field__control textarea {
  resize: vertical;
  line-height: 1.45;
  min-height: 84px;
}

.k-profile-field__icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--slate-400);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.k-profile-field__control textarea ~ .k-profile-field__icon {
  top: auto;
  bottom: 12px;
  transform: none;
}

.k-profile-field__icon--static {
  cursor: default;
  pointer-events: none;
}

.k-profile-field__icon svg {
  width: 16px;
  height: 16px;
}

.k-profile-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.k-profile-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.k-profile-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-500);
}

.k-profile-stat__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--slate-900);
}

.k-profile-stat svg {
  width: 15px;
  height: 15px;
  color: var(--slate-400);
}

.k-profile-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.k-profile-section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-950);
}

.k-profile-section__link {
  border: 1px solid var(--emerald-200);
  background: transparent;
  color: var(--emerald-700);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.k-profile-section__link:hover {
  background: var(--emerald-50);
}

