/* ═══════════════════════════════════════════════════════════════
   CLOUDED — DESIGN SYSTEM
   style.css  ·  Modular, token-driven CSS  ·  Light Green Theme
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   MODULE 1 · DESIGN TOKENS
   ───────────────────────────────────────────────────────────── */
:root {
  /* ── Backgrounds ── */
  --bg:              #e8eceb;   /* light gray, faint green undertone to echo brand */
  --surface:         #ffffff;
  --surface-hover:   #f6faf8;
  --surface-active:  #edf5f0;

  /* ── Borders ── */
  --border:          #dce8e2;
  --border-strong:   #254131;   /* brand deep green (Webflow source) */
  --border-hover:    #1b3528;

  /* ── Brand (sourced from Webflow CSS variables) ── */
  --brand:           #254131;   /* deep forest green */
  --brandfont:       #bff7e6;   /* mint green — use as chip/badge accent */
  --accent:          #1b5c3a;   /* actionable, slightly lighter for contrast */
  --accent-dim:      rgba(37, 65, 49, 0.07);
  --accent-hover:    #153f28;

  /* ── Text ── */
  --text:            #0c1e15;   /* near-black, green-tinted */
  --text-muted:      #4a6a58;
  --text-dim:        #93b5a2;
  --text-white:      #ffffff;   /* for text on filled brand bg */

  /* ── Status ── */
  --status-ongoing:          #15803d;
  --status-ongoing-bg:       rgba(21, 128, 61, 0.07);
  --status-ongoing-border:   rgba(21, 128, 61, 0.22);

  --status-challenge:        #b45309;
  --status-challenge-bg:     rgba(180, 83, 9, 0.07);
  --status-challenge-border: rgba(180, 83, 9, 0.22);

  --status-voting:           #6d28d9;
  --status-voting-bg:        rgba(109, 40, 217, 0.07);
  --status-voting-border:    rgba(109, 40, 217, 0.20);

  --status-outdated:         #991b1b;
  --status-outdated-bg:      rgba(153, 27, 27, 0.07);
  --status-outdated-border:  rgba(153, 27, 27, 0.18);

  /* ── Spacing & Shape ── */
  --header-h:        58px;
  --page-max-w:      1280px;
  --page-px:         28px;
  --card-radius:     10px;
  --btn-radius:      7px;
  --input-radius:    8px;

  /* ── Typography ── */
  --font:            'Inter', system-ui, -apple-system, sans-serif;

  /* ── Motion ── */
  --t-fast:          0.12s ease;
  --t-normal:        0.20s ease;
}


/* ─────────────────────────────────────────────────────────────
   MODULE 2 · RESET & BASE
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a        { color: inherit; text-decoration: none; }
button   { font-family: inherit; cursor: pointer; border: none; background: none; line-height: 1; }
input    { font-family: inherit; }
img, svg { display: block; flex-shrink: 0; }
ul, ol   { list-style: none; }

/* Scrollbar — subtle light */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); opacity: 0.5; }
*                          { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }


/* ─────────────────────────────────────────────────────────────
   MODULE 3 · LAYOUT
   ───────────────────────────────────────────────────────────── */
.page {
  padding-top: var(--header-h);
  min-height: 100vh;
}
.page__inner {
  max-width: var(--page-max-w);
  margin: 0 auto;
  padding: 36px var(--page-px) 100px;
}


/* ─────────────────────────────────────────────────────────────
   MODULE 4 · HEADER
   ───────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}
.header__inner {
  max-width: var(--page-max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--page-px);
  display: flex;
  align-items: center;
  gap: 14px;
}


/* ─────────────────────────────────────────────────────────────
   MODULE 5 · LOGO
   ───────────────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}
.logo:hover { opacity: 0.75; }

.logo__img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 5px;
}
.logo__text {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.3px;
  white-space: nowrap;
}


/* ─────────────────────────────────────────────────────────────
   MODULE 6 · SEARCH
   ───────────────────────────────────────────────────────────── */
.search {
  position: relative;
  flex: 1;
  max-width: 300px;
  min-width: 0;
}
.search__icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.search__input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--input-radius);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color var(--t-fast);
}
.search__input::placeholder { color: var(--text-dim); }
.search__input:focus { border-color: var(--border-strong); }



/* ─────────────────────────────────────────────────────────────
   MODULE 7 · HEADER NAV
   ───────────────────────────────────────────────────────────── */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.header__divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 6px;
  flex-shrink: 0;
}
.nav-link {
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--brand);
  background: var(--accent-dim);
}

/* Profile icon button */
.btn-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--t-fast), background var(--t-fast);
}
.btn-icon:hover {
  color: var(--brand);
  background: var(--accent-dim);
}

/* Hamburger (mobile toggle label) */
.header__menu-btn {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.header__menu-btn:hover { background: var(--accent-dim); }
.header__menu-btn .bar {
  width: 18px; height: 1.5px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: transform var(--t-normal), opacity var(--t-fast);
  display: block;
}

/* Checkbox trick */
.menu-toggle-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Animate hamburger → X */
.menu-toggle-input:checked ~ .header .header__menu-btn .bar-1 {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle-input:checked ~ .header .header__menu-btn .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle-input:checked ~ .header .header__menu-btn .bar-3 {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ─────────────────────────────────────────────────────────────
   MODULE 8 · BUTTONS
   ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.1px;
  border: 1px solid transparent;
}
/* Primary: brand green fill */
.btn--primary {
  background: var(--brand);
  color: var(--text-white);
  border-color: var(--brand);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
/* Outline: brand border */
.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn--outline:hover { background: var(--accent-dim); }
/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn--ghost:hover {
  color: var(--brand);
  border-color: transparent;
}


/* ─────────────────────────────────────────────────────────────
   MODULE 9 · STATUS BADGE
   ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid;
  line-height: 1;
}
.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
/* badge 颜色与合约 Status enum 严格对应：ONGOING/JURY/APPEAL/VOTING/SETTLED */
.badge--ongoing {
  color: var(--status-ongoing);
  background: var(--status-ongoing-bg);
  border-color: var(--status-ongoing-border);
}
.badge--jury {
  color: var(--status-ongoing);
  background: var(--status-ongoing-bg);
  border-color: var(--status-ongoing-border);
}
.badge--appeal {
  color: var(--status-challenge);
  background: var(--status-challenge-bg);
  border-color: var(--status-challenge-border);
}
/* 兼容旧写法（待全量替换后可删除） */
.badge--challenge {
  color: var(--status-challenge);
  background: var(--status-challenge-bg);
  border-color: var(--status-challenge-border);
}
.badge--voting {
  color: var(--status-voting);
  background: var(--status-voting-bg);
  border-color: var(--status-voting-border);
}
.badge--settled,
.badge--outdated {
  color: var(--status-outdated);
  background: var(--status-outdated-bg);
  border-color: var(--status-outdated-border);
}


/* ─────────────────────────────────────────────────────────────
   MODULE 10 · MARKETS BAR
   ───────────────────────────────────────────────────────────── */
.markets-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.markets-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.markets-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.filter-btn:hover {
  color: var(--brand);
  border-color: var(--border-strong);
}
.filter-btn--active {
  color: var(--text-white);
  background: var(--brand);
  border-color: var(--brand);
}
.filter-btn--active:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}


/* ─────────────────────────────────────────────────────────────
   MODULE 11 · MARKETS GRID
   ───────────────────────────────────────────────────────────── */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}


/* ─────────────────────────────────────────────────────────────
   MODULE 12 · MARKET CARD
   ───────────────────────────────────────────────────────────── */
.market-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  padding: 16px;
  transition: border-color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}
.market-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.market-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Status-tinted borders */
.market-card--challenge { border-color: rgba(180, 83, 9, 0.25); }
.market-card--voting    { border-color: rgba(109, 40, 217, 0.22); }
.market-card--outdated  { opacity: 0.72; }
.market-card--outdated:hover { opacity: 0.90; }

/* ── Card Meta Row ── */
.market-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.market-card__pool {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Card Title ── */
.market-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: -0.2px;
  margin-bottom: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Outcomes (scrollable, 固定高度确保卡片高度一致) ── */
.market-card__outcomes {
  height: 176px;      /* 改为固定高度（原 max-height），所有卡片选项区占相同空间 */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-right: 2px;
  margin-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.market-card__outcomes::-webkit-scrollbar { width: 3px; }
.market-card__outcomes::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}


/* ─────────────────────────────────────────────────────────────
   MODULE 13 · OUTCOME ROW
   Price-first design: name | [Buy · price] [Sell · price]
   ───────────────────────────────────────────────────────────── */
.outcome-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  min-height: 40px;
  flex-shrink: 0;
}
.outcome-row:last-child { border-bottom: none; }

/* Outcome name */
.outcome-row__name {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Button group */
.outcome-row__btns {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

/* Buy button — filled brand green */
.outcome-row__buy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 10px;
  min-width: 72px;
  background: var(--brand);
  color: var(--text-white);
  border: 1px solid var(--brand);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.outcome-row__buy:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.outcome-row__buy:active {
  background: var(--border-hover);
  border-color: var(--border-hover);
}

/* Sell button — outline neutral */
.outcome-row__sell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 10px;
  min-width: 72px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.outcome-row__sell:hover {
  border-color: var(--border-strong);
  color: var(--brand);
}

/* Button label (Buy / Sell) */
.outcome-row__btn-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* Price under the label */
.outcome-row__price {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.78;
  line-height: 1.2;
  letter-spacing: 0;
}


/* ─────────────────────────────────────────────────────────────
   MODULE 14 · CARD FOOTER (deadline only)
   ───────────────────────────────────────────────────────────── */
.market-card__footer {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.market-card__footer svg { color: var(--text-dim); flex-shrink: 0; }
.market-card__deadline {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}


/* ─────────────────────────────────────────────────────────────
   MODULE 15 · LOAD MORE
   ───────────────────────────────────────────────────────────── */
.load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}


/* ─────────────────────────────────────────────────────────────
   MODULE 16 · MOBILE DRAWER
   ───────────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 190;
  flex-direction: column;
  gap: 3px;
  padding: 14px var(--page-px) 20px;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;            /* 折叠时禁止响应点击，避免遮挡下方 search 栏 */
  transition: max-height 0.28s ease, opacity 0.22s ease;
  opacity: 0;
}

/* Mobile search bar below header */
.header__mobile-search {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 10px var(--page-px);
  z-index: 180;
}
.header__mobile-search .search { max-width: none; }

.mobile-nav__link {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.mobile-nav__link:hover {
  color: var(--brand);
  background: var(--accent-dim);
}
.mobile-nav__sep {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.mobile-nav__actions {
  display: flex;
  gap: 8px;
  padding: 6px 12px 0;
  flex-wrap: wrap;
}


/* ─────────────────────────────────────────────────────────────
   MODULE 17 · RESPONSIVE
   ───────────────────────────────────────────────────────────── */

/* ── Large (≥ 1280px): lock to 3 columns ── */
@media (min-width: 1280px) {
  .markets-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .markets-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
  .header__inner { gap: 10px; }
}

/* ── Small Tablet (≤ 768px): mobile layout ── */
@media (max-width: 768px) {
  :root {
    --page-px: 16px;
    --header-h: 54px;
  }

  .header__menu-btn { display: flex; margin-left: auto; }
  .header__nav      { display: none; }
  .header__inner .search  { display: none; }
  .header__mobile-search  { display: block; }
  .page { padding-top: calc(var(--header-h) + 54px); }

  .mobile-nav { display: flex; }
  .menu-toggle-input:checked ~ .mobile-nav {
    max-height: 440px;
    opacity: 1;
    pointer-events: auto;          /* 展开时恢复点击 */
  }

  .markets-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .markets-bar  { flex-direction: column; align-items: flex-start; }
  .page__inner  { padding-top: 24px; }
}

/* ── Mobile (≤ 520px): single column ── */
@media (max-width: 520px) {
  .markets-grid { grid-template-columns: 1fr; gap: 10px; }
  .market-card__title { font-size: 13.5px; }
  .markets-filters { gap: 5px; }
  .filter-btn { padding: 4px 11px; font-size: 12px; }
  /* Narrower buy/sell buttons on small screens */
  .outcome-row__buy,
  .outcome-row__sell { min-width: 62px; padding: 4px 7px; }
}

/* ── Very small (≤ 380px) ── */
@media (max-width: 380px) {
  :root { --page-px: 12px; }
  .logo__text { display: none; }
  .outcome-row__buy,
  .outcome-row__sell { min-width: 56px; }
}


/* ════════════════════════════════════════════════════════════
   Custom Modal  (.cl-modal-*)
   Replaces native alert() across the entire app.
   Usage: showModal(type, title, body?, { txHash? }) in utils.js
   ════════════════════════════════════════════════════════════ */

/* Backdrop */
.cl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 30, 21, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: cl-backdrop-in var(--t-fast) ease both;
}
@keyframes cl-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Card */
.cl-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(12, 30, 21, 0.14);
  padding: 24px 24px 18px;
  max-width: 420px;
  width: 100%;
  animation: cl-modal-in 0.18s ease both;
}
@keyframes cl-modal-in {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0)   scale(1);    opacity: 1; }
}

/* Header row: icon + title */
.cl-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

/* Coloured circle icon */
.cl-modal__icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.cl-modal--success .cl-modal__icon {
  background: var(--status-ongoing-bg);
  color: var(--status-ongoing);
}
.cl-modal--error .cl-modal__icon {
  background: var(--status-outdated-bg);
  color: var(--status-outdated);
}
.cl-modal--warning .cl-modal__icon {
  background: var(--status-challenge-bg);
  color: var(--status-challenge);
}
.cl-modal--info .cl-modal__icon {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Title */
.cl-modal__title {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.4;
  padding-top: 6px;
}

/* Body text */
.cl-modal__body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 2px 0 0 46px;   /* align with title (icon 34 + gap 12) */
}

/* Transaction hash row */
.cl-modal__tx {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0 46px;
  background: var(--accent-dim);
  border-radius: 8px;
  padding: 7px 10px;
}
.cl-modal__tx-hash {
  flex: 1;
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.775rem;
  color: var(--accent);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-modal__tx-hash:hover { text-decoration: underline; }

.cl-modal__copy {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.cl-modal__copy:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

/* Action bar */
.cl-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.cl-modal__ok {
  background: var(--brand);
  color: var(--text-white);
  border: none;
  border-radius: var(--btn-radius);
  padding: 8px 26px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast);
  font-family: inherit;
}
.cl-modal__ok:hover  { background: var(--accent-hover); }
.cl-modal__ok:active { background: var(--accent); }

/* Responsive: full-width OK on small screens */
@media (max-width: 440px) {
  .cl-modal { padding: 20px 18px 16px; }
  .cl-modal__body,
  .cl-modal__tx  { margin-left: 0; }
  .cl-modal__actions { margin-top: 16px; }
  .cl-modal__ok { width: 100%; padding: 10px; }
}
