/* ── tokens ─────────────────────────────────────────────── */
:root {
  --bg: #f5f1e8;
  --surface: #fbf7ed;
  --surface-2: #efe9d9;
  --ink: #2d2d2d;
  --ink-2: #5a5550;
  --muted: #8a847d;
  --line: #e3dccb;
  --accent: #cc785c;
  --accent-ink: #fff;
  --up: #2f8f5e;
  --down: #c44545;
  --shadow: 0 2px 8px rgba(60, 50, 30, .08);
  --shadow-lg: 0 12px 40px rgba(60, 50, 30, .18);
  --r: 14px;
  --r-lg: 22px;
  --tap: 44px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);

  --tabbar-h: 64px;
  --topbar-h: 56px;
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --surface: #232220;
  --surface-2: #2c2a27;
  --ink: #f0ece3;
  --ink-2: #c8c2b4;
  --muted: #8a847d;
  --line: #383532;
  --accent: #e08e72;
  --shadow: 0 2px 8px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.55);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden], .hidden { display: none !important; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: clamp(15px, 3.6vw, 16.5px);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}
button, input { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }

/* ── layout ─────────────────────────────────────────────── */
.app {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: calc(var(--topbar-h) + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.brand-logo {
  width: 28px; height: 28px; border-radius: 6px;
  object-fit: contain; flex-shrink: 0;
}
.brand-text { display: inline; }
@media (max-width: 360px) { .brand-text { display: none; } }
.icon-btn {
  width: var(--tap); height: var(--tap);
  border: 0; background: transparent; border-radius: 12px;
  font-size: 20px; cursor: pointer; color: var(--ink);
}
.icon-btn:active { background: var(--surface-2); }

.content {
  padding: 16px 16px calc(var(--tabbar-h) + var(--safe-bot) + 24px);
  max-width: 100%;
  container-type: inline-size;
}
.page.hidden { display: none; }
.page-title { margin: 4px 4px 14px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }

.tabbar {
  position: sticky; bottom: 0; z-index: 20;
  height: calc(var(--tabbar-h) + var(--safe-bot));
  padding-bottom: var(--safe-bot);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); padding: 6px 4px;
  transition: color .15s;
}
.tab-ico { font-size: 20px; line-height: 1; }
.tab-lbl { font-size: 11px; font-weight: 600; }
.tab.is-active { color: var(--accent); }
.tab:active { background: var(--surface-2); }

/* ── segments / chips ───────────────────────────────────── */
.seg {
  display: inline-flex; gap: 0;
  background: var(--surface-2); border-radius: 999px; padding: 3px;
}
.seg-btn {
  border: 0; background: transparent; padding: 6px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--muted); cursor: pointer; min-height: 32px;
  letter-spacing: .03em;
  transition: background .15s, color .15s;
}
.seg-btn.is-active {
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow);
}

.chips {
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 -16px 12px; padding: 4px 16px;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  min-height: 36px;
}
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── list / cards ───────────────────────────────────────── */
.list { display: grid; gap: 10px; }
@container (min-width: 720px) {
  .list { grid-template-columns: repeat(2, 1fr); }
}
@container (min-width: 1080px) {
  .list { grid-template-columns: repeat(3, 1fr); }
}
@container (min-width: 1440px) {
  .list { grid-template-columns: repeat(4, 1fr); }
}
@container (min-width: 1800px) {
  .list { grid-template-columns: repeat(5, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  cursor: pointer;
  transition: transform .08s ease, background .15s;
}
.card:active { transform: scale(.985); background: var(--surface-2); }
.card .rank {
  font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--muted);
  width: 24px; text-align: center;
}
.card .name { font-weight: 600; letter-spacing: -.01em; }
.card .code { font-size: 12px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.card .price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.card .chg { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.chg.up { color: var(--up); }
.chg.dn { color: var(--down); }

.card.skel {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  height: 64px;
  border-color: transparent;
}
@keyframes shimmer { 0%{background-position: 200% 0;} 100%{background-position: -200% 0;} }

.empty { color: var(--muted); text-align: center; padding: 40px 20px; }

.trend-meta {
  font-size: 12px; color: var(--muted);
  padding: 2px 4px 8px; display: flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.trend-meta .src { font-weight: 600; }
.trend-meta .dot { opacity: .5; }

.trend-rank-chip {
  display: inline-block; margin-left: 6px;
  padding: 1px 8px; border-radius: 999px;
  background: color-mix(in srgb, #ff7a3d 14%, var(--surface));
  color: #d2531a; font-weight: 700; font-size: 11px;
  vertical-align: middle;
}

/* ── search ─────────────────────────────────────────────── */
.searchbar {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px 8px 6px 14px;
  margin-bottom: 12px;
  height: var(--tap);
}
.searchbar input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 16px;
}
.searchbar .clear {
  border: 0; background: transparent; cursor: pointer;
  width: 36px; height: 36px; border-radius: 10px; color: var(--muted);
}
.searchbar .clear:active { background: var(--surface-2); }

/* ── settings ───────────────────────────────────────────── */
.settings { display: grid; gap: 8px; }
.row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px;
}
.row-title { font-weight: 600; }
.row-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.btn {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 8px 14px; cursor: pointer;
  font-weight: 600; min-height: 40px;
}
.btn:active { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:active { filter: brightness(.94); }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; padding: 14px; font-size: 16px; min-height: 52px; border-radius: 14px; }

.muted { color: var(--muted); }

/* ── bottom sheet ───────────────────────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(20,15,5,.45);
  z-index: 50; opacity: 0; transition: opacity .25s;
}
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 8px 18px calc(20px + var(--safe-bot));
  box-shadow: var(--shadow-lg);
  transform: translateY(110%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-height: 88dvh; overflow-y: auto;
}
.sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px; background: var(--line);
  border-radius: 999px; margin: 4px auto 14px;
}
.sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.sheet-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.sheet-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
  background: var(--surface-2); border-radius: var(--r); margin-bottom: 14px;
}
.price-row .price { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-row .change { font-weight: 600; font-variant-numeric: tabular-nums; }
.verdict {
  margin-top: 14px; padding: 16px;
  background: var(--surface-2); border-radius: var(--r);
  white-space: pre-wrap; line-height: 1.55;
  border-left: 3px solid var(--accent);
}
.verdict.hidden { display: none; }

/* ── tablet (≥720px) — phones in landscape and iPads still feel mobile ── */
@media (min-width: 720px) {
  /* full-width content, no max — content fills the viewport with 24px gutters.
     Removed max-width so wide monitors don't have empty whitespace on either side. */
  .content { max-width: none; padding-inline: 24px; }
  .topbar { padding-inline: 24px; }
}

/* ── desktop (≥1024px) — proper desktop layout ──────────── */
@media (min-width: 1024px) {
  :root { --topbar-h: 64px; }
  .topbar { padding-inline: 32px; }
  .brand { font-size: 18px; }
  .brand-logo { width: 32px; height: 32px; }
  .content { padding-block-start: 24px; padding-inline: 32px; }

  /* search bar caps comfortably on desktop */
  .searchbar { max-width: 720px; }

  /* settings 2-col only on real desktops */
  .settings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .settings .row { margin: 0; min-height: 72px; }

  /* sheets → centered modal dialog on desktop (mobile/tablet keep bottom-slide) */
  .sheet-backdrop, .backdrop, #sheet-backdrop, #form-backdrop {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .sheet, .form-sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: min(560px, calc(100vw - 48px));
    max-height: min(82dvh, 760px);
    border-radius: var(--r-lg);
    transform: translate(-50%, -48%) scale(.96);
    opacity: 0; pointer-events: none;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s;
    padding-bottom: 22px;
  }
  .sheet.open, .form-sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1; pointer-events: auto;
  }
  .sheet-handle { display: none; }

  /* analytics: 2-col returns / 2-col HoF on desktop */
  #returns-body { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
  #returns-body > .ret-summary { grid-column: 1 / -1; }
  #returns-body > .ret-mode-chips,
  #returns-body > .ret-controls { grid-column: 1 / -1; }
  #hof-body { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
  #hof-body > .hof-legend { grid-column: 1 / -1; }
  #hof-body > .empty { grid-column: 1 / -1; }
}

/* ── wide desktop (≥1280px) — 3-col HoF, list container goes 3-col ── */
@media (min-width: 1280px) {
  #hof-body { grid-template-columns: repeat(3, 1fr); }
  /* container query on .content (max 1280) yields 3-col list automatically */
}

/* ── toast ──────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bot) + 16px);
  transform: translateX(-50%);
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 70;
  animation: toast-in .2s ease-out;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ── topbar back button ─────────────────────────────── */
.topbar-back { font-size: 22px; padding: 0; }
.topbar-back.hidden { display: none; }
#topbar-brand.hidden { display: none; }

/* ── page heads ─────────────────────────────────────── */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 6px 4px 14px; gap: 12px;
}
.page-head .page-title { margin: 0; }
.page-subtitle { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 0; }

/* ── moim list cards ────────────────────────────────── */
.moim-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  cursor: pointer;
  transition: transform .08s, background .15s;
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
}
.moim-card:active { transform: scale(.99); background: var(--surface-2); }
.moim-card .name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.moim-card .info { color: var(--muted); font-size: 13px; margin-top: 4px; display: flex; gap: 10px; }
.moim-card .info b { color: var(--ink); font-weight: 700; }
.market-badge {
  display: inline-block; padding: 3px 9px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .04em;
}
.market-badge.us { background: var(--accent); }

/* ── moim summary ───────────────────────────────────── */
.moim-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
}
.moim-summary .name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.moim-summary .stats {
  display: flex; gap: 16px; margin-top: 10px;
  font-size: 13px; color: var(--muted);
}
.moim-summary .stats b { color: var(--ink); font-weight: 700; font-size: 16px; display: block; font-variant-numeric: tabular-nums; }
.moim-summary .total-return { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); }
.moim-summary .total-return.up { background: color-mix(in srgb, var(--up) 14%, var(--surface)); color: var(--up); }
.moim-summary .total-return.dn { background: color-mix(in srgb, var(--down) 14%, var(--surface)); color: var(--down); }

/* ── member list ────────────────────────────────────── */
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-top: 10px;
  overflow: hidden;
}
.member-head {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  padding: 14px 12px;
  cursor: pointer; min-height: 56px;
}
.member-head:active { background: var(--surface-2); }
.member-head .avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.member-head .name { font-weight: 700; }
.member-head .meta { color: var(--muted); font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.member-head .ret { font-weight: 700; font-variant-numeric: tabular-nums; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.member-head .ret.up { color: var(--up); background: color-mix(in srgb, var(--up) 14%, var(--surface)); }
.member-head .ret.dn { color: var(--down); background: color-mix(in srgb, var(--down) 14%, var(--surface)); }
.member-head .caret { color: var(--muted); transition: transform .2s; font-size: 14px; }
.member.open .member-head .caret { transform: rotate(90deg); }

.member-body { display: none; padding: 0 12px 12px; }
.member.open .member-body { display: block; }

.stock-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 10px 12px; min-height: 50px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; margin-top: 8px;
}
.stock-row .name { font-weight: 600; font-size: 14px; }
.stock-row .code { color: var(--muted); font-size: 11px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stock-row .price { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.stock-row .ret { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.stock-row .ret.up { color: var(--up); }
.stock-row .ret.dn { color: var(--down); }
.stock-row .x {
  width: 32px; height: 32px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; border-radius: 8px; font-size: 14px;
}
.stock-row .x:active { background: var(--surface-2); }

.stock-empty {
  padding: 14px; color: var(--muted); font-size: 13px; text-align: center;
  background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; margin-top: 6px;
}

.member-actions {
  display: flex; gap: 8px; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.member-actions .btn { font-size: 13px; padding: 6px 12px; min-height: 36px; }

.dangerzone { margin-top: 28px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: center; }
.btn.danger { color: var(--down); }
.btn.danger:active { background: color-mix(in srgb, var(--down) 14%, var(--surface)); }

/* ── form sheet ─────────────────────────────────────── */
.form-sheet { padding-bottom: calc(28px + var(--safe-bot)); }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; height: 50px;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 0 14px;
  font-size: 16px; font-weight: 500; outline: 0;
  transition: border-color .15s;
  appearance: none; -webkit-appearance: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-row .seg { width: 100%; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; }
.form-row .seg .seg-btn { width: 100%; padding: 10px; min-height: 42px; font-size: 14px; }
.form-err { color: var(--down); font-size: 13px; min-height: 20px; padding: 6px 0; font-weight: 600; }
.form-foot { display: flex; gap: 8px; }
.form-foot .btn { flex: 1; }

.search-results {
  max-height: 38dvh; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); margin-bottom: 14px;
}
.search-results .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; cursor: pointer; min-height: 52px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.search-results .row:last-child { border-bottom: 0; }
.search-results .row:active { background: var(--surface-2); }
.search-results .name { font-weight: 600; font-size: 14px; }
.search-results .code { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.search-results .empty-mini { padding: 16px; color: var(--muted); text-align: center; font-size: 13px; }

.form-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--surface-2); border-radius: 999px; padding: 4px;
  margin-bottom: 16px;
}
.form-tabs button {
  border: 0; background: transparent; padding: 8px;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  color: var(--ink-2); cursor: pointer; min-height: 38px;
}
.form-tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ── avatar picker ────────────────────────────────────── */
.avatar-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 8px;
}
.avatar-btn {
  width: 100%; aspect-ratio: 1 / 1;
  background: transparent; border: 0; cursor: pointer;
  font-size: 22px; line-height: 1; border-radius: 8px;
  transition: transform .08s, background .12s;
}
.avatar-btn:active { transform: scale(.92); }
.avatar-btn.is-active { background: var(--accent); }

/* ── admin panel rows ─────────────────────────────────── */
.adm-section-title {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 0 0 8px;
}
.adm-user {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; margin-bottom: 8px;
}
.adm-info { min-width: 0; }
.adm-name { font-weight: 700; }
.adm-sub { font-size: 12px; color: var(--muted); margin-top: 2px; word-break: break-all; }
.adm-badge {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-2); margin-left: 4px;
}
.adm-badge.ok { background: color-mix(in srgb, var(--up) 16%, var(--surface)); color: var(--up); }
.adm-badge.wait { background: color-mix(in srgb, var(--down) 14%, var(--surface)); color: var(--down); }
.adm-badge.admin { background: var(--accent); color: var(--accent-ink); }
.adm-actions { display: flex; flex-direction: column; gap: 6px; }
.adm-actions .btn { font-size: 12px; padding: 6px 10px; min-height: 32px; }

/* ── 수익률 view ──────────────────────────────────────── */
.ret-summary {
  background: var(--ink); color: var(--bg);
  border-radius: var(--r); padding: 14px 16px;
  margin-bottom: 12px;
}
.ret-sum-label { font-size: 12px; opacity: .7; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.ret-sum-row {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px;
  align-items: baseline; margin-top: 6px;
  font-variant-numeric: tabular-nums; font-weight: 700;
}
.ret-sum-pct { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.ret-sum-pct.up { color: #6cc890; }
.ret-sum-pct.dn { color: #ff8b8b; }

.ret-moim {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px;
  margin-bottom: 10px;
}
.ret-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px;
}
.ret-head .name { font-weight: 700; letter-spacing: -.01em; }
.ret-meta { font-size: 12px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ret-total {
  font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 4px 10px; border-radius: 8px;
  background: var(--surface-2); color: var(--ink-2);
  font-size: 15px;
}
.ret-total.up { background: color-mix(in srgb, var(--up) 16%, var(--surface)); color: var(--up); }
.ret-total.dn { background: color-mix(in srgb, var(--down) 16%, var(--surface)); color: var(--down); }

.ret-members {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: grid; gap: 4px;
}
.ret-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px;
  align-items: center; padding: 6px 0;
  font-size: 13px;
}
.ret-row .muted { font-size: 11px; }
.ret-pct { font-variant-numeric: tabular-nums; font-weight: 700; }
.ret-pct.up { color: var(--up); }
.ret-pct.dn { color: var(--down); }

/* ── 명예의 전당 ──────────────────────────────────────── */
.hof-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px;
  align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px;
  margin-bottom: 8px;
}
.hof-rank {
  font-size: 22px; text-align: center;
  font-variant-numeric: tabular-nums; font-weight: 800;
  color: var(--ink-2);
}
.hof-name { font-weight: 700; letter-spacing: -.01em; }
.hof-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.hof-ret {
  font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 4px 10px; border-radius: 8px; font-size: 15px;
}
.hof-ret.up { background: color-mix(in srgb, var(--up) 16%, var(--surface)); color: var(--up); }
.hof-ret.dn { background: color-mix(in srgb, var(--down) 16%, var(--surface)); color: var(--down); }
.hof-row:nth-child(1) { border-color: color-mix(in srgb, gold 50%, var(--line)); }
.hof-row:nth-child(2) { border-color: color-mix(in srgb, silver 50%, var(--line)); }
.hof-row:nth-child(3) { border-color: color-mix(in srgb, #cd7f32 50%, var(--line)); }

/* ── KR/US stock color convention (mirrors React frontend) ──────────── */
/* KR: ▲ red / ▼ blue (Korean stock convention) */
:root {
  --stock-up-kr: #c8362c;
  --stock-dn-kr: #2563a3;
  --stock-up-us: #1e7a4f;
  --stock-dn-us: #b54545;
}
[data-theme="dark"] {
  --stock-up-kr: #ff7370;
  --stock-dn-kr: #6da9ff;
  --stock-up-us: #6cc890;
  --stock-dn-us: #ff8b8b;
}
.kr-up, .ret-pct.kr-up, .hof-ret.kr-up, .sd-pct.kr-up { color: var(--stock-up-kr); }
.kr-dn, .ret-pct.kr-dn, .hof-ret.kr-dn, .sd-pct.kr-dn { color: var(--stock-dn-kr); }
.us-up, .ret-pct.us-up, .hof-ret.us-up, .sd-pct.us-up { color: var(--stock-up-us); }
.us-dn, .ret-pct.us-dn, .hof-ret.us-dn, .sd-pct.us-dn { color: var(--stock-dn-us); }

.ret-total.kr-up, .ret-sum-pct.kr-up, .hof-ret.kr-up, .ret-row.kr-up .ret-pct { color: var(--stock-up-kr); }
.ret-total.kr-dn, .ret-sum-pct.kr-dn, .hof-ret.kr-dn, .ret-row.kr-dn .ret-pct { color: var(--stock-dn-kr); }
.ret-total.us-up, .ret-sum-pct.us-up, .hof-ret.us-up, .ret-row.us-up .ret-pct { color: var(--stock-up-us); }
.ret-total.us-dn, .ret-sum-pct.us-dn, .hof-ret.us-dn, .ret-row.us-dn .ret-pct { color: var(--stock-dn-us); }

/* ── Returns view: mode chips + selectors ─────────────────────────── */
.ret-mode-chips {
  display: flex; gap: 6px;
  margin: 0 0 12px;
}
.ret-mode-chips .chip { padding: 7px 14px; font-size: 13px; font-weight: 700; }

.ret-controls {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.ret-select {
  flex: 1; min-width: 0;
  height: 42px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0 36px 0 12px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%238a847d' d='M0 0h10L5 6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.ret-select:disabled { opacity: .5; }

/* ── Returns: per-stock detail row ────────────────────────────────── */
.stock-list {
  display: grid; gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.stock-detail-row {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
  display: grid; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.stock-detail-row.off { opacity: .55; }
.sd-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.sd-name { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.sd-pct { font-weight: 800; font-size: 14px; white-space: nowrap; }
.sd-mid { font-size: 11px; color: var(--muted); }
.sd-bot {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--ink-2);
}
.sd-gain { font-weight: 700; }
.sd-off {
  font-size: 11px; color: var(--muted); font-style: italic;
}

/* ── indicators ─────────────────────────────────────── */
.ind-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
}
.ind-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px;
  align-items: center;
}
.ind-emoji { font-size: 24px; line-height: 1; }
.ind-titles .name { font-weight: 700; letter-spacing: -.01em; }
.ind-titles .code { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ind-value { text-align: right; }
.ind-value .price { font-family: var(--mono, ui-monospace, monospace); font-weight: 700; font-variant-numeric: tabular-nums; }
.ind-value .code { font-size: 11px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ind-foot {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.ind-signal { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.ind-comment { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ── guru verdict cards ─────────────────────────────── */
.guru {
  position: relative;
  background: var(--surface);
  border-radius: 14px; padding: 12px 14px 11px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .12s ease, border-color .15s ease;
}
.guru.is-buy  { border-left-color: var(--up); }
.guru.is-sell { border-left-color: var(--down); }
.guru.is-neu  { border-left-color: color-mix(in srgb, var(--muted) 70%, var(--surface)); }
.guru:active { transform: translateX(1px); }

.guru-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.guru-emoji {
  font-size: 30px; line-height: 1;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: 12px;
}
.guru-meta .guru-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.guru-meta .guru-title { font-size: 12px; color: var(--muted); margin-top: 2px; }
.guru-vrd {
  font-weight: 800; font-size: 13px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.guru-vrd.up {
  background: color-mix(in srgb, var(--up) 14%, var(--surface));
  color: var(--up);
  border-color: color-mix(in srgb, var(--up) 30%, var(--surface));
}
.guru-vrd.dn {
  background: color-mix(in srgb, var(--down) 14%, var(--surface));
  color: var(--down);
  border-color: color-mix(in srgb, var(--down) 30%, var(--surface));
}

.guru-sum {
  font-size: 15px; color: var(--ink);
  line-height: 1.5; font-weight: 600;
  margin-bottom: 8px;
}
.guru-reasons {
  margin: 0; padding: 0; list-style: none;
  font-size: 14px; color: var(--ink-2); line-height: 1.5;
}
.guru-reasons li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}
.guru-reasons li::before {
  content: ''; position: absolute;
  left: 2px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 60%, var(--surface));
}
.guru.is-buy  .guru-reasons li::before { background: color-mix(in srgb, var(--up) 70%, var(--surface)); }
.guru.is-sell .guru-reasons li::before { background: color-mix(in srgb, var(--down) 70%, var(--surface)); }

.guru-caution {
  font-size: 13px; color: var(--down); margin-top: 8px;
  padding: 7px 11px;
  background: color-mix(in srgb, var(--down) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--down) 20%, var(--surface));
  border-radius: 8px;
  line-height: 1.45;
}
.guru-md {
  font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px; padding: 6px 10px;
  background: var(--surface-2); border-radius: 10px;
  text-align: center;
}
.guru-tally {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 8px; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.guru-tally span {
  padding: 4px 10px; border-radius: 999px;
}
.guru-tally .t-buy  { background: color-mix(in srgb, var(--up) 18%, var(--surface)); color: var(--up); }
.guru-tally .t-neu  { background: var(--surface-2); color: var(--ink-2); }
.guru-tally .t-sell { background: color-mix(in srgb, var(--down) 18%, var(--surface)); color: var(--down); }

/* ── 실적 캘린더 ─────────────────────────────────── */
.ern-block { margin-bottom: 14px; }
.ern-date {
  font-size: 13px; font-weight: 700; color: var(--ink);
  padding: 6px 4px; border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.ern-date.is-today { color: var(--up); }
.ern-today-tag {
  font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--up) 18%, var(--surface));
  color: var(--up);
}
.ern-rows { display: flex; flex-direction: column; gap: 4px; }
.ern-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 10px; background: var(--surface);
  cursor: pointer;
}
.ern-row:active { background: var(--surface-2); }
.ern-row-l { min-width: 0; flex: 1; }
.ern-name {
  font-weight: 700; font-size: 14px; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px; color: var(--ink);
}
.ern-sym {
  font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.ern-row-r { text-align: right; flex-shrink: 0; }
.ern-line1, .ern-line2 {
  display: flex; gap: 6px; align-items: center; justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}
.ern-line1 { font-size: 12px; }
.ern-line2 { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ern-time {
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px;
}
.ern-time.pre  { background: color-mix(in srgb, #f4a261 22%, var(--surface)); color: #b35d1d; }
.ern-time.post { background: color-mix(in srgb, #4a90c4 22%, var(--surface)); color: #2a5a82; }
.ern-eps { font-weight: 600; color: var(--ink); }
.ern-cap { opacity: .8; }

/* 실적 헤더: 좌측 메타 + 우측 ? 도움말 */
.ern-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 2px;
}
.ern-head .trend-meta { padding-bottom: 0; }
.ern-help-btn {
  width: 28px; height: 28px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 50%; color: var(--muted);
  font-size: 14px; font-weight: 700; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.ern-help-btn:active { background: var(--surface-2); color: var(--ink); }

/* 실적 도움말 모달 본문 */
.ern-help-body { font-size: 14px; line-height: 1.55; color: var(--ink); }
.ern-help-body p { margin: 6px 0 8px; }
.ern-help-body ul { margin: 6px 0 8px; padding-left: 20px; }
.ern-help-body li { margin: 3px 0; }
.ern-help-section { margin-bottom: 18px; }
.ern-help-q {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px;
}
.ern-help-formula {
  background: var(--surface-2); border-radius: 8px;
  padding: 8px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── STAGING badge ─────────────────────────────────────── */
.staging-badge {
  position: fixed; top: calc(var(--safe-top, 0px) + 2px); right: 8px;
  background: #ff7a00; color: #fff;
  padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 800;
  letter-spacing: .12em; z-index: 9999;
  box-shadow: 0 2px 8px rgba(255, 122, 0, .45);
  pointer-events: auto; cursor: help;
}

/* ── investment insights ─────────────────────────────── */
.ins-card {
  display: grid; gap: 6px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: transform .08s, background .15s;
}
.ins-card:active { transform: scale(.99); background: var(--surface-2); }
.ins-meta {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 11px; color: var(--muted);
}
.ins-tag {
  display: inline-block; padding: 2px 8px;
  background: var(--surface-2); color: var(--ink-2);
  border-radius: 999px; font-weight: 700;
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
}
.ins-tag.cat { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.ins-tag.market { background: var(--ink); color: var(--bg); }
.ins-tag.stock { font-family: var(--mono, ui-monospace, monospace); }
.ins-date { font-variant-numeric: tabular-nums; margin-left: auto; }
.ins-title { font-weight: 700; font-size: 16px; letter-spacing: -.01em; line-height: 1.3; }
.ins-preview { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ins-author { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 2px; }

.ins-body { line-height: 1.65; font-size: 15px; color: var(--ink); }
.ins-body p { margin: 0 0 12px; }
.ins-body h1, .ins-body h2, .ins-body h3 { margin: 18px 0 8px; line-height: 1.3; letter-spacing: -.01em; }
.ins-body h1 { font-size: 20px; }
.ins-body h2 { font-size: 17px; }
.ins-body h3 { font-size: 15px; }
.ins-body ul { padding-left: 22px; margin: 6px 0 12px; }
.ins-body li { margin-bottom: 4px; }
.ins-body code {
  background: var(--surface-2); padding: 1px 6px; border-radius: 6px;
  font-size: 13px; font-family: var(--mono, ui-monospace, monospace);
}
.ins-body strong { font-weight: 700; }
.ins-body em { font-style: italic; color: var(--ink-2); }
.ins-body a { color: var(--accent); text-decoration: underline; }

/* ── 인사이트 필터 바 (카테고리 칩 + 검색 + 정렬) ──────── */
.ins-filter {
  display: grid; gap: 10px;
  margin-bottom: 12px;
}
.ins-filter-row {
  display: flex; gap: 8px; align-items: center;
}
.ins-search {
  position: relative; flex: 1;
}
.ins-search input {
  width: 100%; height: 38px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ins-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.ins-search .clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px;
  border: none; background: transparent; color: var(--muted);
  font-size: 13px; cursor: pointer; border-radius: 999px;
}
.ins-search .clear:active { background: var(--surface-2); }
.ins-sort { flex-shrink: 0; }
.ins-sort .seg-btn { padding: 0 12px; height: 38px; font-size: 13px; }
.ins-cats {
  flex-wrap: wrap;
  gap: 6px;
}
.chip.mini {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ── 이모지 반응 바 ───────────────────────────────────── */
.rxn-bar {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
}
.rxn-bar.compact { margin-top: 4px; }
.rxn-bar:not(.compact) {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  gap: 8px;
}
.rxn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: transform .08s, background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.rxn-bar.compact .rxn {
  padding: 3px 8px;
  font-size: 12px;
}
.rxn-bar:not(.compact) .rxn {
  padding: 6px 14px;
  font-size: 15px;
}
.rxn:active { transform: scale(.94); }
.rxn:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.rxn.is-mine {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-weight: 700;
}
.rxn-e { font-size: inherit; }
.rxn-n {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink-2);
}
.rxn.is-mine .rxn-n { color: var(--accent); }
.rxn:not(.has-count) .rxn-n { display: none; }

/* clickable stock tag in insight cards */
.ins-tag.stock.clickable {
  cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.ins-tag.stock.clickable:hover {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-2));
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.ins-tag.stock.clickable:active { transform: scale(.97); }

/* ── 비로그인 게이트 (인사이트/지표 블러 + 중앙 로그인 CTA) ── */
.gated-wrap {
  position: relative;
  min-height: 360px;
}
.gated-blur {
  display: grid; gap: 10px;
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  opacity: .55;
}
.gated-fake {
  display: grid; gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  height: 84px;
}
.gated-line {
  height: 12px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ink) 14%, transparent),
    color-mix(in srgb, var(--ink) 22%, transparent),
    color-mix(in srgb, var(--ink) 14%, transparent));
  background-size: 200% 100%;
  border-radius: 6px;
  animation: gated-shimmer 1.6s infinite linear;
}
.gated-line.w90 { width: 90%; }
.gated-line.w70 { width: 70%; }
.gated-line.w50 { width: 50%; }
@keyframes gated-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.gated-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.gated-card {
  display: grid; gap: 10px; justify-items: center; text-align: center;
  padding: 28px 22px;
  max-width: 380px; width: 100%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(2px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}
.gated-icon { font-size: 36px; line-height: 1; }
.gated-title {
  font-size: 16px; font-weight: 800; letter-spacing: -.01em;
  color: var(--ink); line-height: 1.4;
}
.gated-sub {
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
}
.gated-actions { margin-top: 8px; width: 100%; }
.gated-actions .btn { width: 100%; }

/* "📈 AAPL 시세 보기" 버튼 (디테일 시트) */
.ins-stock-link {
  margin-top: 10px;
}
.ins-stock-link button.ins-tag.stock.clickable {
  font-size: 12px;
  padding: 8px 14px;
  letter-spacing: 0;
  text-transform: none;
  font-family: inherit;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.form-row textarea {
  height: auto; min-height: 140px; padding: 12px 14px; resize: vertical;
  font-size: 14px; line-height: 1.55; font-weight: 400;
  font-family: inherit;
}
