/* ============ Wick Trade terminal ============ */
.trade-body { background: #05070a; overflow-x: hidden; }
.trade-body #bg-candles { display: none; }

.tt-topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(14px, 2.5vw, 28px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
  background: rgba(5, 7, 10, 0.85); backdrop-filter: blur(14px);
}
.tt-topbar .brand { text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.tt-sub { color: var(--flame); font-family: var(--serif); font-style: italic; font-weight: 400; }
.tt-search-wrap { flex: 1; max-width: 430px; }
.tt-search {
  width: 100%; padding: 10px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--sans); font-size: 14px;
}
.tt-search:focus { outline: none; border-color: rgba(22, 199, 132, 0.5); }
.tt-top-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.tt-delay { font-size: 11.5px; color: var(--muted); }

/* ===== gate ===== */
.tt-gate { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 30px 16px; }
.tt-gate-card {
  max-width: 430px; text-align: center; padding: 44px 38px;
  background: linear-gradient(180deg, #11161f, var(--panel));
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 26px;
}
.tt-gate-card .brand { justify-content: center; margin-bottom: 20px; }
.tt-gate-card h2 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 12px; }
.tt-gate-card h2 em { color: var(--flame); }
.tt-gate-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 22px; }
.tt-gate-back { display: block; margin-top: 18px; color: var(--muted); font-size: 13px; text-decoration: none; }
.tt-gate-back:hover { color: var(--ink); }

/* ===== layout ===== */
.tt-layout {
  display: grid; grid-template-columns: 210px 1fr 310px; gap: 14px;
  padding: 14px clamp(14px, 2.5vw, 28px) 30px;
  max-width: 1600px; margin: 0 auto;
}
.tt-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 16px; padding: 16px;
}

/* ===== watchlist ===== */
.tt-watch { min-width: 0; }
.tt-panel-title { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 4px 0 10px 4px; }
.watch-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; padding: 10px 12px; margin-bottom: 6px;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  color: var(--ink); font-family: var(--sans); cursor: pointer; text-align: left;
}
.watch-row:hover { background: rgba(255, 255, 255, 0.04); }
.watch-row.on { background: rgba(22, 199, 132, 0.08); border-color: rgba(22, 199, 132, 0.3); }
.watch-sym { font-weight: 700; font-size: 13.5px; }
.watch-quote { text-align: right; }
.watch-price { display: block; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.watch-chg { font-size: 11.5px; font-weight: 700; }
.up { color: var(--green); }
.down { color: var(--red); }

/* ===== chart column ===== */
.tt-chart-col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tt-quote-strip { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 2px 4px; flex-wrap: wrap; }
.tt-symbol { display: flex; align-items: baseline; gap: 10px; }
#tt-sym { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.tt-name { color: var(--muted); font-size: 13px; }
.tt-price-block { display: flex; align-items: center; gap: 10px; }
.tt-price { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tt-price.tick-up { animation: tickG 0.4s; }
.tt-price.tick-down { animation: tickR 0.4s; }
@keyframes tickG { 0% { color: var(--green); } 100% { color: var(--ink); } }
@keyframes tickR { 0% { color: var(--red); } 100% { color: var(--ink); } }
.tt-chg { font-size: 14px; font-weight: 700; }
.tt-mktstate { font-size: 11px; }
.tt-mktstate.live { color: var(--green); border-color: rgba(22, 199, 132, 0.4); }

.tt-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tt-tfs, .tt-overlays { display: flex; gap: 6px; }
.tt-tfs button, .tt-overlays button {
  padding: 7px 13px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--muted); font-family: var(--sans); font-size: 12.5px; font-weight: 700;
}
.tt-tfs button.on, .tt-overlays button.on { color: var(--ink); background: rgba(22, 199, 132, 0.12); border-color: rgba(22, 199, 132, 0.4); }

.tt-chart-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #0a0d13;
  height: clamp(380px, 58vh, 620px);
}
#tt-chart { position: absolute; inset: 0; }

/* ===== right rail ===== */
.tt-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.tt-acct-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tt-profile-switch { display: flex; gap: 6px; }
.tt-profile-switch button {
  padding: 7px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 700;
}
.tt-profile-switch button.on { color: var(--ink); background: rgba(255, 182, 72, 0.12); border-color: rgba(255, 182, 72, 0.45); }
.tt-reset {
  width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--muted); font-size: 15px;
}
.tt-reset:hover { color: var(--red); border-color: rgba(255, 71, 87, 0.4); }
.tt-equity { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.tt-acct-row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); font-size: 13px; }
.tt-acct-row b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ticket */
.tt-side-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tt-side-tabs button {
  padding: 11px; border-radius: 12px; cursor: pointer; font-family: var(--sans); font-weight: 800; font-size: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted);
}
.tt-side-tabs button.buy.on { background: var(--green-dim); border-color: rgba(22, 199, 132, 0.5); color: var(--green); }
.tt-side-tabs button.sell.on { background: var(--red-dim); border-color: rgba(255, 71, 87, 0.5); color: var(--red); }
.tt-qty-label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.tt-qty-label input {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--sans); font-size: 16px; font-weight: 600;
}
.tt-qty-label input:focus { outline: none; border-color: rgba(22, 199, 132, 0.5); }
.tt-qty-quick { display: flex; gap: 6px; margin-top: 8px; }
.tt-qty-quick button {
  flex: 1; padding: 6px; border-radius: 8px; cursor: pointer; font-size: 11.5px; font-weight: 700;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted); font-family: var(--sans);
}
.tt-qty-quick button:hover { color: var(--ink); }
.tt-est { display: flex; justify-content: space-between; margin: 12px 0; color: var(--muted); font-size: 13px; }
.tt-est b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tt-submit {
  width: 100%; padding: 14px; border: none; border-radius: 13px; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 800; color: #062d1f;
  transition: transform 0.12s, filter 0.12s;
}
.tt-submit.buy { background: var(--green); box-shadow: 0 6px 24px rgba(22, 199, 132, 0.3); }
.tt-submit.sell { background: var(--red); color: #33060b; box-shadow: 0 6px 24px rgba(255, 71, 87, 0.3); }
.tt-submit.confirming { filter: brightness(1.15); }
.tt-submit:active { transform: scale(0.98); }
.tt-submit:disabled { opacity: 0.4; cursor: default; }
.tt-ticket-note { margin-top: 10px; color: var(--muted); font-size: 11.5px; text-align: center; }

/* positions / history */
.tt-tab-head { display: flex; gap: 6px; margin-bottom: 12px; }
.tt-tab-head button {
  padding: 7px 13px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 700;
}
.tt-tab-head button.on { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.pos-row { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.pos-row:last-child { border-bottom: none; }
.pos-top { display: flex; justify-content: space-between; align-items: center; }
.pos-sym { font-weight: 800; font-size: 13.5px; }
.pos-side { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 99px; margin-left: 6px; }
.pos-side.long { background: var(--green-dim); color: var(--green); }
.pos-side.short { background: var(--red-dim); color: var(--red); }
.pos-pnl { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.pos-detail { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.pos-close {
  padding: 4px 10px; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 700;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted); font-family: var(--sans);
}
.pos-close:hover { color: var(--red); border-color: rgba(255, 71, 87, 0.4); }
.hist-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 12px; }
.hist-row:last-child { border-bottom: none; }
.hist-side { font-weight: 800; }
.hist-meta { color: var(--muted); }
.tt-empty { color: var(--muted); font-size: 12.5px; text-align: center; padding: 18px 6px; }

/* ===== modals ===== */
.tt-modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4, 6, 9, 0.88); backdrop-filter: blur(10px);
  display: grid; place-items: center; animation: fadeIn 0.2s;
}
.tt-modal[hidden] { display: none; }
.tt-modal-card {
  width: min(400px, calc(100vw - 32px));
  background: linear-gradient(180deg, #131926, var(--panel));
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px;
  padding: 30px 28px; text-align: center;
  animation: cardPop 0.35s cubic-bezier(0.2, 1.4, 0.3, 1);
}
.tt-modal-card h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; }
.fund-amount { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin: 20px 0 10px; font-variant-numeric: tabular-nums; }
.tt-modal-card input[type="range"] { width: 100%; accent-color: var(--green); }
.fund-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin: 6px 2px 20px; }
.tt-modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.tt-danger {
  padding: 13px 22px; border: none; border-radius: 13px; cursor: pointer;
  background: var(--red); color: #33060b; font-family: var(--sans); font-weight: 800; font-size: 14px;
}
.tt-danger:hover { filter: brightness(1.1); }

/* toast */
.tt-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 90; padding: 13px 22px; border-radius: 14px;
  background: #131926; border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px; font-weight: 600; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: toastUp 0.3s cubic-bezier(0.2, 1.4, 0.3, 1);
}
@keyframes toastUp { from { transform: translate(-50%, 20px); opacity: 0; } }
.tt-toast.good { border-color: rgba(22, 199, 132, 0.5); }
.tt-toast.bad { border-color: rgba(255, 71, 87, 0.5); }

/* ===== drawing layer ===== */
.draw-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.tt-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tt-tools button {
  padding: 7px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--muted); font-family: var(--sans); font-size: 12.5px; font-weight: 700;
}
.tt-tools button.armed { color: var(--flame); background: rgba(255, 182, 72, 0.12); border-color: rgba(255, 182, 72, 0.5); }
.lock { font-size: 9px; opacity: 0.8; }
.pro .lock, .is-pro .lock { display: none; }

/* ===== plan ===== */
.plan-badge { cursor: pointer; font-weight: 800; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.plan-badge.pro { color: var(--flame); border-color: rgba(255, 182, 72, 0.5); background: rgba(255, 182, 72, 0.1); }
.plan-card { width: min(480px, calc(100vw - 32px)); position: relative; text-align: center; }
.plan-card .lesson-close { position: absolute; top: 14px; right: 14px; }
.plan-pro-word { color: var(--flame); font-family: var(--serif); font-style: italic; }
.plan-trigger { color: var(--flame); font-size: 13px; min-height: 18px; margin: 6px 0 14px; }
.plan-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; margin-bottom: 16px; }
.plan-col { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.plan-col.pro { border-color: rgba(255, 182, 72, 0.45); background: rgba(255, 182, 72, 0.05); }
.plan-name { font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.plan-col ul { list-style: none; }
.plan-col li { color: var(--muted); font-size: 12.5px; padding: 4px 0; }
.plan-col li b { color: var(--ink); }
.plan-buy { width: 100%; opacity: 0.5; }
.dev-row { display: flex; gap: 8px; margin-top: 12px; }
.dev-row input {
  flex: 1; padding: 11px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--sans); font-size: 13px;
}
.dev-row .btn-ghost { padding: 11px 18px; font-size: 13px; }

/* ===== flatten ===== */
.tt-flatten {
  width: 100%; margin-top: 8px; padding: 9px; border-radius: 11px; cursor: pointer;
  background: rgba(255, 71, 87, 0.08); border: 1px solid rgba(255, 71, 87, 0.3);
  color: var(--red); font-family: var(--sans); font-size: 12px; font-weight: 700;
}
.tt-flatten:hover { background: rgba(255, 71, 87, 0.15); }

/* ===== Lil Wick ===== */
.lw-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(180deg, #1a2130, #11161f);
  border: 1px solid rgba(255, 182, 72, 0.45);
  display: grid; place-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 182, 72, 0.12);
  transition: transform 0.15s;
}
.lw-fab:hover { transform: translateY(-2px) scale(1.05); }
.lw-logo { display: flex; flex-direction: column; align-items: center; }
.lw-logo .lw-wick-top { width: 3px; height: 7px; background: var(--flame); border-radius: 2px; animation: flicker 1.6s infinite; }
.lw-logo .lw-body { width: 14px; height: 20px; background: var(--green); border-radius: 4px; margin: 1px 0; }
.lw-logo .lw-wick-bot { width: 3px; height: 6px; background: var(--flame); border-radius: 2px; }
.lw-logo.sm .lw-body { width: 10px; height: 14px; }
.lw-logo.sm .lw-wick-top { height: 5px; }
.lw-logo.sm .lw-wick-bot { height: 4px; }
@keyframes flicker { 0%, 100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(1.5); opacity: 0.7; } }
.lw-panel {
  position: fixed; right: 22px; bottom: 90px; z-index: 120; /* above tour(100), plan(80), account(70) — the X must always be tappable */
  width: min(360px, calc(100vw - 32px)); height: min(480px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #12171f, #0d1118);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  animation: cardPop 0.3s cubic-bezier(0.2, 1.4, 0.3, 1);
}
/* while the panel is open, drop the floating button so it can't overlap the X */
body.lw-open .lw-fab { display: none; }
.lw-head .lesson-close { width: 34px; height: 34px; font-size: 15px; flex: 0 0 auto; }
.lw-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lw-head b { display: block; font-size: 14px; }
.lw-tag { color: var(--muted); font-size: 11px; }
.lw-head .lesson-close { margin-left: auto; }
.lw-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lw-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.55; }
.lw-msg.lw { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); align-self: flex-start; }
.lw-msg.me { background: rgba(22, 199, 132, 0.12); border: 1px solid rgba(22, 199, 132, 0.3); align-self: flex-end; }
.lw-verdict { font-weight: 800; font-size: 15px; }
.lw-verdict.up { color: var(--green); }
.lw-verdict.down { color: var(--red); }
.lw-sym { color: var(--muted); font-size: 11px; margin: 4px 0 6px; }
.lw-signals { margin: 0 0 4px 16px; color: var(--muted); font-size: 12px; }
.lw-signals li { padding: 1px 0; }
.lw-disclaim { color: var(--muted); font-size: 10.5px; opacity: 0.75; margin-top: 6px; }
.lw-chips { display: flex; gap: 6px; padding: 0 14px 10px; flex-wrap: wrap; }
.lw-chip {
  padding: 6px 11px; border-radius: 99px; cursor: pointer; font-size: 11.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted); font-family: var(--sans);
}
.lw-chip:hover { color: var(--ink); border-color: rgba(255, 182, 72, 0.4); }
.lw-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.lw-form input {
  flex: 1; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--sans); font-size: 13px;
}
.lw-form input:focus { outline: none; border-color: rgba(255, 182, 72, 0.5); }
.lw-form button {
  width: 40px; border-radius: 12px; cursor: pointer; font-size: 16px; font-weight: 800;
  background: var(--flame); border: none; color: #3a2405;
}

/* ===== tour ===== */
.tour-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(4, 6, 9, 0.55); }
.tour-overlay[hidden] { display: none; }
.tour-ring {
  position: fixed; border: 2px solid var(--flame); border-radius: 14px;
  box-shadow: 0 0 0 4000px rgba(4, 6, 9, 0.55), 0 0 30px rgba(255, 182, 72, 0.35);
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); pointer-events: none;
}
.tour-overlay { background: transparent; }
.tour-card {
  position: fixed; width: min(320px, calc(100vw - 24px));
  background: linear-gradient(180deg, #161d2b, #10151d);
  border: 1px solid rgba(255, 182, 72, 0.35); border-radius: 18px;
  padding: 18px 20px; z-index: 101;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  transition: top 0.35s, left 0.35s;
}
.tour-count { color: var(--flame); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 6px; }
.tour-card h4 { font-size: 16px; margin-bottom: 6px; letter-spacing: -0.01em; }
.tour-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.tour-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tour-actions .btn-primary, .tour-actions .btn-ghost { padding: 10px 18px; font-size: 13px; }

/* ===== responsive ===== */
@media (max-width: 1100px) {
  .tt-layout { grid-template-columns: 1fr 300px; }
  .tt-watch { display: none; }
}
@media (max-width: 780px) {
  .tt-layout { grid-template-columns: 1fr; }
  .tt-chart-wrap { height: 46vh; }
  .tt-search-wrap { max-width: none; }
  .tt-delay { display: none; }
}
@media (max-width: 560px) {
  /* Lil Wick becomes a bottom sheet: full width, anchored to the bottom,
     never floating over the chart with an unreachable close button */
  .lw-panel {
    right: 0; left: 0; bottom: 0; width: 100%;
    height: 78vh; max-height: 560px;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .lw-fab { right: 16px; bottom: 16px; }
  .lw-head { padding: 16px; }
  .lw-head .lesson-close { width: 40px; height: 40px; font-size: 17px; }
}

/* ===== competitions ===== */
.tt-compete h4 { font-size: 14px; }
.tt-compete-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.btn-mini {
  cursor: pointer; border-radius: 9px; padding: 6px 12px; font-size: 12px; font-weight: 700;
  font-family: var(--sans); color: #062d1f; background: var(--green); border: none;
}
.btn-mini:hover { filter: brightness(1.08); }
.btn-mini.ghost { background: rgba(255,255,255,0.08); color: var(--ink); }
.comp-join-row { display: flex; gap: 6px; margin-bottom: 10px; }
.comp-join-row input, .comp-input {
  flex: 1; min-width: 0; background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 10px; color: var(--ink); font-family: var(--sans); font-size: 13px;
  text-transform: uppercase;
}
.comp-input { width: 100%; text-transform: none; margin-bottom: 12px; }
.comp-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  padding: 9px 10px; border-radius: 10px; cursor: pointer; margin-bottom: 4px;
  background: rgba(255,255,255,0.03); border: 1px solid transparent; color: var(--ink);
  font-family: var(--sans); font-size: 13px;
}
.comp-row:hover { border-color: rgba(255,182,72,0.4); background: rgba(255,182,72,0.06); }
.comp-row-name { font-weight: 700; }
.comp-row-meta { color: var(--muted); font-size: 11.5px; }
.comp-ev-label { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.comp-board-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.comp-board-head span { color: var(--muted); font-size: 11.5px; }
.comp-lb-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; font-size: 13px;
}
.comp-lb-row.me { background: rgba(22,199,132,0.08); border: 1px solid rgba(22,199,132,0.25); }
.comp-lb-rank { width: 18px; text-align: right; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.comp-lb-who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-lb-eq { font-weight: 700; font-variant-numeric: tabular-nums; }
.comp-board-actions { display: flex; gap: 6px; margin-top: 10px; }
.comp-days-row { display: flex; gap: 6px; align-items: center; margin: 12px 0; font-size: 12.5px; color: var(--muted); }
.comp-days-row button {
  cursor: pointer; padding: 6px 12px; border-radius: 9px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--ink); font-family: var(--sans);
}
.comp-days-row button.on { border-color: var(--green); background: rgba(22,199,132,0.12); color: var(--green); }
#tt-comp-chip {
  cursor: pointer; border-radius: 9px; padding: 5px 10px; font-size: 11.5px; font-weight: 700;
  background: rgba(255,182,72,0.14); border: 1px solid rgba(255,182,72,0.4); color: var(--flame); font-family: var(--sans);
}
