/* 주견 기본 스타일과 기존 정적 시연 화면. 예전 파일 9개를 원래 적용 순서대로 합쳤습니다. 뒤 구간이 앞 구간을 덮어씁니다.
   실제 서비스(백엔드·관리자) 전용 규칙은 service.css에 있습니다. */

/* ===== handoff-base.css ===== */
:root {
  --ink: #172b28;
  --green: #3e4450;
  --lime: #dadde3;
  --muted: #797f8b;
  --line: #e6eae6;
  --bg: #f7f8f4;
  --red: #d9584e;
  --blue: #497dc2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #9ea4ac;
  outline-offset: 3px;
}
input:focus,
textarea:focus {
  outline: 2px solid #8c939d;
}
button:hover {
  filter: brightness(0.95);
}
.demo-bar {
  height: 32px;
  background: #111418;
  color: #e1e4ea;
  padding: 0 max(24px, calc((100vw - 1360px) / 2));
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.2px;
}
.demo-bar > span:first-child {
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 1px;
}
.demo-bar i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 7px;
}
.demo-bar button {
  margin-left: auto;
  color: var(--lime);
  white-space: nowrap;
  font-size: 14px;
}
header {
  background: white;
  height: 88px;
  padding: 0 max(24px, calc((100vw - 1360px) / 2));
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 55px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  flex-shrink: 0;
}
.brand-symbol {
  background: var(--green);
  color: #f2f4f6;
  border-radius: 6px 6px 3px 6px;
  font-size: 28px;
  width: 43px;
  height: 43px;
  text-align: center;
  line-height: 43px;
  font-family: serif;
}
.brand > span {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-size: 13px;
  letter-spacing: 1.6px;
  font-weight: 600;
  margin-top: -4px;
}
#topnav {
  display: flex;
  height: 100%;
  gap: 27px;
}
#topnav a {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #6f7783;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
}
#topnav a.active {
  color: var(--green);
  border-color: var(--green);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-button {
  font-size: 24px;
  width: 32px;
}
.notification {
  position: relative;
}
.notification i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  right: 5px;
  top: 4px;
}
.login-button {
  background: #f2f4f6;
  border: 1px solid #dfe2e8;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 700;
}
.ticker {
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 10px 24px;
  font-size: 14px;
}
.ticker span {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ticker b {
  font-size: 15px;
}
.ticker .muted {
  font-size: 13px;
}
.layout {
  max-width: 1360px;
  padding: 34px 24px 60px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 28px;
}
main {
  min-width: 0;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #79818d;
  text-transform: uppercase;
}
.hero {
  position: relative;
  overflow: hidden;
  background: #e3e6ea;
  border: 1px solid #e0e3e9;
  border-radius: 6px;
  padding: 31px 32px 28px;
  min-height: 245px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero h1 {
  font-size: 37px;
  line-height: 1.35;
  letter-spacing: -1.8px;
  margin: 13px 0;
  color: #34373d;
  font-weight: 800;
}
.hero p {
  color: #6a717c;
  font-size: 15px;
  margin: 0 0 23px;
}
.primary {
  background: var(--green);
  color: white;
  border-radius: 6px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.secondary {
  border: 1px solid #d7dae0;
  background: white;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 600;
}
.hero-art {
  width: 210px;
  height: 175px;
  position: relative;
  margin-right: 16px;
  flex-shrink: 0;
}
.orbit {
  position: absolute;
  border: 1px solid #bcc0c6;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  top: -4px;
  left: 10px;
}
.orbit:after {
  content: "";
  position: absolute;
  inset: 25px;
  border: 1px dashed #bec2c8;
  border-radius: 50%;
}
.art-card {
  position: absolute;
  width: 92px;
  height: 106px;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  font-weight: 700;
}
.art-card.up {
  left: 16px;
  top: 20px;
  transform: rotate(-14deg);
  background: #383c42;
  color: #e3e6ea;
  z-index: 2;
}
.art-card.down {
  right: 0;
  top: 58px;
  transform: rotate(13deg);
  color: #676e79;
}
.art-card strong {
  font-size: 45px;
  line-height: 1.3;
}
.art-card small {
  font-size: 13px;
  letter-spacing: 2px;
}
.spark {
  position: absolute;
  font-size: 28px;
  color: #5f666f;
  right: 10px;
  top: -6px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 29px 0 14px;
  gap: 12px;
}
.section-head h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2 small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.text-link {
  font-size: 15px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f2f4f6;
  color: #5a616a;
  font-size: 13px;
  font-weight: 600;
}
.pill.dark {
  background: #373b41;
  color: #e4e7ed;
}
.pill.red {
  background: #fdf0ec;
  color: #bd6752;
}
.pill.blue {
  background: #f2f4f6;
  color: #737c87;
}
.index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.index-card {
  padding: 21px;
}
.asset-line {
  display: flex;
  align-items: center;
  gap: 11px;
}
.asset-logo {
  width: 37px;
  height: 37px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.asset-line b {
  font-size: 17px;
}
.asset-line small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.asset-line .pill {
  margin-left: auto;
}
.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 19px 0 15px;
}
.price {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.up-text {
  color: var(--red);
}
.down-text {
  color: var(--blue);
}
.change {
  font-size: 15px;
  font-weight: 600;
}
.sparkline {
  height: 36px;
  width: 100px;
}
.split-bar {
  height: 5px;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  background: #e4e7ed;
  margin: 9px 0;
}
.split-bar i {
  background: #d78a75;
  width: 62%;
}
.split-bar b {
  background: #9ea4ad;
  flex: 1;
}
.split-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.locked-ratio {
  padding: 10px 0 5px;
  font-size: 14px;
  color: #7f8792;
  border-top: 1px dashed var(--line);
}
.card-action {
  border: 1px solid #dfe2e8;
  background: #f8faf5;
  border-radius: 6px;
  width: 100%;
  padding: 9px;
  margin-top: 16px;
  font-size: 15px;
  color: #4f555d;
  font-weight: 700;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tab {
  border-radius: 6px;
  font-size: 14px;
  padding: 7px 12px;
  color: #737b87;
}
.tab.active {
  background: #373b41;
  color: white;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.search {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 9px 12px;
  width: 210px;
  font-size: 15px;
}
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stock-tile {
  padding: 15px;
  text-align: left;
  display: block;
  transition: 0.15s;
}
.stock-tile:hover {
  border-color: #b7bbc1;
  transform: translateY(-2px);
}
.stock-tile .asset-logo {
  width: 31px;
  height: 31px;
  font-size: 14px;
  border-radius: 6px;
}
.stock-tile .asset-line {
  gap: 8px;
}
.stock-tile .asset-line b {
  font-size: 15px;
}
.stock-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.stock-bottom strong {
  font-size: 18px;
}
.stock-bottom .change {
  font-size: 14px;
}
.stock-note {
  display: flex;
  justify-content: space-between;
  color: #8c939d;
  font-size: 13px;
  margin-top: 11px;
}
.feed-card {
  padding: 21px 23px;
  cursor: pointer;
}
.feed-card + .feed-card {
  border-top: 1px solid var(--line);
}
.author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.avatar {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #f2f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #666d78;
  flex-shrink: 0;
}
.author-row .muted {
  margin-left: auto;
}
.feed-card h3 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 13px 0 7px;
}
.feed-card p {
  font-size: 15px;
  color: #727a86;
  line-height: 1.8;
  margin: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  font-size: 14px;
  color: #838a95;
}
.post-meta .tag {
  margin-right: auto;
  color: #5b626b;
  background: #e7f3f0;
  padding: 3px 7px;
  border-radius: 4px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.side-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 17px;
}
.side-card h3 {
  margin: 0 0 16px;
  font-size: 17px;
  letter-spacing: -0.4px;
}
.side-card.dark {
  background: #34373d;
  color: #f2f4f6;
  border: 0;
}
.side-card.dark .eyebrow {
  color: #b1b6bd;
}
.side-card.dark h3 {
  font-size: 22px;
  margin: 12px 0 17px;
  line-height: 1.5;
}
.side-card.dark p {
  font-size: 14px;
  color: #a7adb4;
}
.side-card.dark .primary {
  background: #dbdee4;
  color: #35393f;
  width: 100%;
  margin-top: 12px;
}
.slot-row {
  border: 1px solid #4c525a;
  border-radius: 6px;
  padding: 11px 12px;
  margin-top: 9px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.slot-row span {
  color: #b5bac0;
}
.rank-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.rank-mini + .rank-mini {
  border-top: 1px solid #f0f2ee;
}
.rank-no {
  font-size: 15px;
  color: #8c939d;
  width: 16px;
}
.rank-mini b {
  font-size: 15px;
}
.rank-mini small {
  font-size: 13px;
  color: #838a95;
  display: block;
}
.rank-mini em {
  font-size: 14px;
  font-style: normal;
  color: #666d78;
  margin-left: auto;
}
.side-foot {
  font-size: 13px;
  color: #9198a1;
  margin-top: 13px;
}
.info-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 7px 0;
  color: #747c88;
}
.quote {
  font-size: 19px;
  line-height: 1.9;
  font-weight: 600;
  color: #525860;
}
.side-rules {
  font-size: 14px;
  padding-left: 16px;
  color: #757d89;
  line-height: 2.2;
}
footer {
  max-width: 1312px;
  margin: 0 auto;
  border-top: 1px solid #dcdfe5;
  padding: 24px 0 35px;
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 13px;
  color: #8f969f;
}
.footer-brand {
  font-weight: 800;
  color: #4e545c;
  font-size: 19px;
}
footer button {
  margin-left: auto;
  font-size: 14px;
}
h1.page-title {
  font-size: 31px;
  margin: 0 0 8px;
  letter-spacing: -1px;
}
.page-intro {
  margin: 0 0 23px;
  font-size: 16px;
  color: #777f8b;
}
.page-label {
  color: #656c77;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 700;
}
.notice {
  border: 1px solid #e0e3e9;
  background: #f2f4f6;
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 15px;
  color: #5f666f;
  margin: 15px 0;
}
.predict-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.slot-card {
  padding: 21px;
  min-height: 145px;
}
.slot-card h3 {
  font-size: 18px;
  margin: 8px 0;
}
.slot-card .eyebrow {
  font-size: 13px;
}
.slot-card .slot-empty {
  color: #828994;
  font-size: 15px;
  margin: 12px 0;
}
.slot-card.selected {
  border-color: #8d949e;
  background: #e7f3f0;
}
.slot-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}
.empty {
  padding: 35px 20px;
  text-align: center;
  color: #7d8591;
  font-size: 16px;
}
.empty strong {
  display: block;
  color: #43484f;
  font-size: 19px;
  margin-bottom: 9px;
}
.table-wrap {
  overflow: auto;
}
.rank-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  background: white;
}
.rank-table th {
  background: #f2f4f6;
  color: #7e8691;
  font-size: 13px;
  padding: 13px 16px;
  font-weight: 500;
}
.rank-table td {
  padding: 17px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.rank-table td:first-child {
  color: #78808c;
  font-size: 19px;
}
.rank-table button {
  text-align: left;
  padding: 0;
}
.profile-hero {
  padding: 27px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.profile-hero .avatar {
  width: 64px;
  height: 64px;
  font-size: 27px;
}
.profile-hero h2 {
  margin: 0;
  font-size: 26px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.stat {
  padding: 21px 12px;
  text-align: center;
}
.stat strong {
  font-size: 27px;
  display: block;
}
.stat small {
  font-size: 14px;
  color: var(--muted);
}
.detail-header {
  padding: 25px;
}
.detail-header .asset-logo {
  width: 50px;
  height: 50px;
  font-size: 22px;
}
.detail-header .asset-line b {
  font-size: 25px;
}
.detail-header .price-line {
  margin-bottom: 0;
}
.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.evidence {
  padding: 20px;
}
.evidence h3 {
  margin: 0 0 12px;
  font-size: 17px;
}
.evidence p {
  font-size: 15px;
  color: #6a717c;
  line-height: 1.9;
}
.evidence .small {
  font-size: 13px;
}
.article {
  padding: 30px;
}
.article h1 {
  font-size: 27px;
  line-height: 1.6;
  letter-spacing: -0.8px;
}
.article .body {
  white-space: pre-wrap;
  font-size: 17px;
  line-height: 2.1;
  color: #4f555d;
  margin: 22px 0;
}
.article-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.liked {
  background: #f8eeeb !important;
  color: #c36a59 !important;
  border-color: #e6c0b4 !important;
}
.comment {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.comment p {
  font-size: 15px;
  white-space: pre-wrap;
  margin-bottom: 0;
}
.comment-form {
  padding: 18px;
  display: flex;
  gap: 8px;
}
.comment-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}
.back {
  color: #7e8691;
  font-size: 15px;
  margin-bottom: 14px;
  padding: 0;
}
.insight-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  background: #f2f4f6;
  border-radius: 6px;
  margin-top: 20px;
}
.insight-strip b {
  font-size: 16px;
}
.insight-strip small {
  display: block;
  font-size: 14px;
  color: #777f8b;
}
.insight-strip > span {
  font-size: 25px;
}
#mobileNav {
  display: none;
}
dialog {
  border: 1px solid #dde0e6;
  border-radius: 6px;
  padding: 0;
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 30px 100px #183e3540;
}
dialog::backdrop {
  background: #172b2866;
  backdrop-filter: blur(3px);
}
/* The native dialog is the only scroll container. An unbounded modal-body
   with overscroll containment traps wheel/touch gestures before they reach it. */
html:has(#modal[open]),
body:has(#modal[open]) {
  overflow: hidden;
}
#modal {
  max-height: 90vh;
  max-height: min(90dvh, calc(100dvh - 24px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}
#modal #modalContent {
  display: block;
  min-height: 0;
}
#modal .modal-body {
  overflow: visible;
  overscroll-behavior: auto;
}
#modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-container-lowest, #fff);
}
.modal-head {
  padding: 22px 25px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 {
  font-size: 21px;
  margin: 0;
}
.modal-head button {
  font-size: 25px;
  color: #828994;
}
.modal-body {
  padding: 23px 25px;
}
.modal-body p {
  font-size: 15px;
  color: #6f7783;
}
.form-label {
  font-size: 15px;
  font-weight: 600;
  display: block;
  margin: 15px 0 7px;
}
.field {
  width: 100%;
  border: 1px solid #dcdfe5;
  padding: 11px;
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}
.modal-body textarea {
  min-height: 110px;
  resize: vertical;
}
.direction-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.dir {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 6px;
  font-size: 19px;
  font-weight: 700;
}
.dir.chosen.UP {
  border-color: #d98776;
  background: #fdf1ed;
  color: #b95a46;
}
.dir.chosen.DOWN {
  border-color: #939aa3;
  background: #eef3fd;
  color: #676f79;
}
.full {
  width: 100%;
  margin-top: 17px;
}
.form-error {
  color: #be5747;
  font-size: 15px;
  min-height: 18px;
  margin-top: 10px;
}
.radio-row {
  display: flex;
  gap: 10px;
  padding: 13px 0;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.radio-row small {
  display: block;
  color: #838a95;
  font-size: 14px;
}
.modal-body .rule-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.9;
}
.search-results {
  max-height: 340px;
  overflow: auto;
}
.search-result {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.notification-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.notification-item small {
  display: block;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #34373d;
  color: #f2f4f6;
  padding: 13px 22px;
  border-radius: 6px;
  box-shadow: 0 8px 30px #203b342b;
  z-index: 100;
  font-size: 15px;
  transition: 0.2s;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.profile-mini-button {
  margin-left: auto;
  border: 1px solid #d8dbe1;
  border-radius: 5px;
  font-size: 14px;
  padding: 6px 10px;
}
.demo-phase {
  font-size: 14px;
  color: #868d98;
}
.watch-button {
  margin-left: auto;
}
.badges {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.badge-card {
  background: #e7f3f0;
  border: 1px solid #e1e4ea;
  border-radius: 6px;
  padding: 14px;
  font-size: 15px;
}
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.filter-label {
  font-size: 14px;
  color: var(--muted);
}
.history-row {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.hidden {
  display: none !important;
}
@media (min-width: 1600px) {
  .layout {
    padding-top: 44px;
  }
}
@media (max-width: 1150px) {
  header {
    gap: 24px;
  }
  #topnav {
    gap: 17px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
  }
  .hero-art {
    width: 170px;
    transform: scale(0.85);
    margin-right: -15px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .stock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ticker {
    gap: 25px;
  }
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    max-width: 760px;
    padding-top: 23px;
  }
  aside {
    display: none;
  }
  header {
    height: 74px;
  }
  .brand > span {
    font-size: 24px;
  }
  #topnav {
    gap: 18px;
  }
  header {
    gap: 25px;
  }
  .ticker span:nth-child(n + 4) {
    display: none;
  }
  .hero-art {
    margin-right: 12px;
    transform: none;
  }
  .stock-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  footer {
    margin: 0 24px;
  }
}
@media (max-width: 650px) {
  .demo-bar {
    padding: 0 14px;
    height: 29px;
  }
  .demo-bar > span:nth-child(2) {
    display: none;
  }
  .demo-bar > span:first-child {
    font-size: 13px;
  }
  header {
    padding: 0 17px;
    height: 68px;
  }
  #topnav {
    display: none;
  }
  .brand-symbol {
    height: 36px;
    width: 36px;
    line-height: 36px;
    font-size: 24px;
  }
  .brand > span {
    font-size: 23px;
  }
  .brand small {
    font-size: 13px;
  }
  .header-actions {
    gap: 4px;
  }
  .login-button {
    font-size: 13px;
    padding: 8px;
  }
  .icon-button {
    font-size: 22px;
    width: 28px;
  }
  .ticker {
    gap: 19px;
    justify-content: flex-start;
    padding: 9px 18px;
    overflow: auto;
    white-space: nowrap;
  }
  .ticker span:nth-child(n + 3) {
    display: none;
  }
  .ticker span {
    font-size: 13px;
    gap: 8px;
  }
  .layout {
    padding: 19px 16px 28px;
  }
  .hero {
    min-height: 236px;
    padding: 25px 22px;
  }
  .hero h1 {
    font-size: 31px;
    position: relative;
    z-index: 2;
  }
  .hero p {
    max-width: 190px;
    font-size: 14px;
    position: relative;
    z-index: 2;
  }
  .hero-art {
    position: absolute;
    right: -38px;
    bottom: 8px;
    transform: scale(0.66);
    opacity: 0.65;
    margin: 0;
    transform-origin: right bottom;
    width: 210px;
  }
  .hero .primary {
    position: relative;
    z-index: 2;
  }
  .hero .eyebrow {
    font-size: 13px;
    letter-spacing: 1.4px;
  }
  .section-head {
    margin-top: 23px;
  }
  .section-head h2 {
    font-size: 19px;
  }
  .section-head h2 small {
    font-size: 13px;
  }
  .index-grid {
    gap: 9px;
  }
  .index-card {
    padding: 14px;
  }
  .index-card .asset-logo {
    width: 29px;
    height: 29px;
    border-radius: 6px;
    font-size: 14px;
  }
  .asset-line {
    gap: 7px;
  }
  .asset-line b {
    font-size: 15px;
  }
  .asset-line .pill {
    font-size: 13px;
    padding: 2px 5px;
  }
  .price {
    font-size: 23px;
  }
  .price-line {
    gap: 5px;
  }
  .index-card .sparkline {
    display: none;
  }
  .change {
    font-size: 13px;
  }
  .locked-ratio {
    font-size: 13px;
  }
  .card-action {
    font-size: 14px;
    margin-top: 12px;
  }
  .stock-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stock-tile {
    padding: 12px;
  }
  .stock-tile .asset-line b {
    font-size: 14px;
  }
  .stock-tile .asset-logo {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .stock-note {
    font-size: 13px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    width: 145px;
  }
  .tab {
    padding: 6px 9px;
    font-size: 13px;
  }
  .feed-card {
    padding: 18px 16px;
  }
  .feed-card h3 {
    font-size: 17px;
  }
  .feed-card p {
    font-size: 14px;
  }
  .author-row {
    font-size: 13px;
    gap: 6px;
  }
  .author-row .muted {
    font-size: 13px;
  }
  .section-head .text-link {
    font-size: 13px;
  }
  .page-title {
    font-size: 27px !important;
  }
  .predict-summary {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .evidence-grid {
    grid-template-columns: 1fr;
  }
  .profile-hero {
    padding: 20px;
  }
  .profile-hero h2 {
    font-size: 22px;
  }
  .article {
    padding: 20px;
  }
  .article h1 {
    font-size: 22px;
  }
  .article .body {
    font-size: 16px;
  }
  .rank-table th,
  .rank-table td {
    padding: 12px 10px;
  }
  .rank-table {
    font-size: 14px;
  }
  footer {
    margin: 0 16px;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 100px;
  }
  footer > span:last-child {
    display: none;
  }
  #mobileNav {
    position: fixed;
    display: flex;
    bottom: 0;
    background: #ffffffed;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    width: 100%;
    justify-content: space-around;
    padding: 9px 4px max(10px, env(safe-area-inset-bottom));
    z-index: 20;
  }
  #mobileNav a {
    text-align: center;
    font-size: 13px;
    color: #9198a1;
    min-width: 50px;
  }
  #mobileNav a.active {
    color: var(--green);
    font-weight: 800;
  }
  #mobileNav a span {
    display: block;
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 2px;
  }
  #toast {
    bottom: 86px;
  }
  .comment-form {
    flex-wrap: wrap;
  }
  .modal-body {
    padding: 19px;
  }
  .modal-head {
    padding: 18px;
  }
  .detail-header .asset-line b {
    font-size: 21px;
  }
}
/* Anonymous community sentiment and asset-first discussion rooms */
.sentiment {
  min-width: 0;
}
.sentiment-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 15px;
}
.sentiment-body {
  display: flex;
  gap: 26px;
  align-items: center;
}
.donut {
  width: 138px;
  height: 138px;
  flex: 0 0 138px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  transform: rotate(0deg);
}
.donut > div {
  width: 105px;
  height: 105px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut strong {
  font-size: 25px;
  letter-spacing: -0.7px;
}
.donut small {
  font-size: 13px;
  color: var(--muted);
}
.sentiment-legend {
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}
.sentiment-legend > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 15px;
}
.sentiment-legend span {
  font-size: 15px;
  font-weight: 600;
}
.sentiment-legend strong {
  font-size: 26px;
  line-height: 1.2;
}
.sentiment-legend small {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 13px;
  margin-left: 13px;
}
.sentiment-note {
  font-size: 13px;
  color: var(--muted);
  margin: 13px 0 0;
}
.sentiment.compact {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 12px;
}
.compact .donut {
  width: 100px;
  height: 100px;
  flex-basis: 100px;
}
.compact .donut > div {
  width: 77px;
  height: 77px;
}
.compact .donut strong {
  font-size: 20px;
}
.compact .sentiment-body {
  gap: 20px;
}
.compact .sentiment-legend strong {
  font-size: 24px;
}
.compact .sentiment-title {
  font-size: 14px;
}
.compact .sentiment-legend {
  gap: 8px;
}
.detail-overview {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(270px, 1.2fr);
  gap: 28px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.detail-quote {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.detail-quote .price {
  font-size: 34px;
}
.detail-quote .change {
  margin-top: 6px;
}
.detail-predict {
  margin-top: 24px;
}
.detail-overview > .sentiment {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.detail-overview .sentiment-title {
  margin-bottom: 20px;
}
.detail-overview .sentiment > .small {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 0;
}
.board-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
}
.board-search {
  flex: 1;
  width: auto;
  font-size: 15px;
}
.board-toolbar .tabs {
  flex-shrink: 0;
}
.board-toolbar .secondary {
  white-space: nowrap;
}
.selected-filter {
  background: #e7f3f0;
  border-color: #818893;
}
.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.board-card {
  padding: 20px;
  display: block;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.board-card:hover {
  border-color: #8d949e;
  transform: translateY(-2px);
}
.board-arrow {
  margin-left: auto;
  font-size: 23px;
  color: #858c97;
}
.board-summary {
  display: flex;
  gap: 14px;
  margin-top: 17px;
  font-size: 14px;
  font-weight: 600;
}
.board-summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.board-preview {
  font-size: 15px;
  color: #69707b;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 41px;
  margin-top: 12px;
}
.board-foot {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #757d89;
}
.board-foot b {
  color: var(--green);
  font-weight: 500;
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.news-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 19px;
  min-width: 0;
}
.news-number {
  font-size: 24px;
  color: #a0a6ae;
  font-weight: 300;
  line-height: 1.2;
}
.news-source {
  font-size: 13px;
  color: #7a828e;
  overflow-wrap: anywhere;
}
.news-card h3 {
  font-size: 16px;
  line-height: 1.6;
  margin: 7px 0 10px;
  overflow-wrap: anywhere;
}
.news-card small {
  font-size: 13px;
  color: var(--green);
}
.empty-news {
  background: #fbfcf8;
  border-style: dashed;
}
.empty-news h3 {
  color: #818893;
  font-weight: 500;
}
.empty-news small {
  color: #949ba4;
}
.news-fields {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 14px 0;
  padding: 12px;
}
.news-fields legend {
  font-size: 15px;
  color: var(--green);
  padding: 0 6px;
}
.news-fields .form-label {
  margin-top: 5px;
}
.discussion-tabs {
  margin-bottom: 14px;
}
@media (max-width: 1150px) and (min-width: 901px) {
  .detail-overview {
    grid-template-columns: 1fr;
  }
  .detail-overview > .sentiment {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .board-toolbar {
    flex-wrap: wrap;
  }
  .board-search {
    order: 3;
    flex-basis: 100%;
  }
  .compact .sentiment-body {
    gap: 10px;
  }
}
@media (max-width: 650px) {
  .index-grid {
    grid-template-columns: 1fr;
  }
  .compact .sentiment-body {
    gap: 24px;
  }
  .compact .sentiment-title {
    font-size: 15px;
  }
  .compact .sentiment-legend {
    max-width: 190px;
  }
  .index-card .asset-line b {
    font-size: 18px;
  }
  .index-card {
    padding: 19px;
  }
  .detail-header {
    padding: 18px;
  }
  .detail-header .asset-line {
    flex-wrap: wrap;
  }
  .detail-header .watch-button {
    padding: 8px;
    font-size: 13px;
  }
  .detail-overview {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .detail-overview > .sentiment {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .detail-quote .price {
    font-size: 29px;
  }
  .detail-predict {
    margin-top: 15px;
  }
  .donut {
    width: 122px;
    height: 122px;
    flex-basis: 122px;
  }
  .donut > div {
    width: 93px;
    height: 93px;
  }
  .sentiment-body {
    gap: 22px;
  }
  .sentiment-title {
    font-size: 15px;
  }
  .sentiment-legend strong {
    font-size: 25px;
  }
  .board-toolbar {
    padding: 13px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .board-search {
    order: 3;
    flex-basis: 100%;
  }
  .board-toolbar .secondary {
    margin-left: auto;
    font-size: 13px;
  }
  .board-grid {
    grid-template-columns: 1fr;
  }
  .board-card {
    padding: 18px;
  }
  .board-card .asset-line b {
    font-size: 18px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card {
    padding: 16px;
  }
  .news-section .section-head h2 small {
    display: block;
    margin-left: 0;
  }
  .board-foot {
    font-size: 14px;
  }
  .detail-overview .sentiment > .small {
    font-size: 13px;
  }
}
.weekly-calendar {
  padding: 20px 18px;
}
.weekly-calendar h3 {
  margin: 9px 0;
}
.calendar-caption {
  font-size: 13px;
  color: #828994;
  line-height: 1.7;
  margin: 0 0 10px;
}
.calendar-row {
  display: flex;
  gap: 10px;
  text-align: left;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  align-items: flex-start;
}
.calendar-day {
  flex: 0 0 26px;
  height: 29px;
  display: grid;
  place-items: center;
  background: #f2f4f6;
  border-radius: 6px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}
.calendar-row > span:nth-child(2) {
  flex: 1;
}
.calendar-row small {
  display: block;
  color: #89909b;
  font-size: 13px;
}
.calendar-row b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin: 3px 0;
}
.calendar-row em {
  font-size: 13px;
  font-style: normal;
  color: #757d89;
  line-height: 1.7;
  display: block;
}
.calendar-more {
  color: #777f8b;
  font-size: 18px;
}
.calendar-bottom {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-bottom: 0;
  font-size: 13px;
}
.event-question {
  font-size: 20px;
  margin: 20px 0 10px;
}
.event-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.divided-section {
  margin-top: 26px;
}
.divided-section > .section-head {
  margin-bottom: 0;
}
.divided-section > .small {
  margin: 8px 0 14px;
}
.divided-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.divided-card {
  padding: 17px;
  display: block;
}
.divided-card .asset-logo {
  height: 29px;
  width: 29px;
  font-size: 15px;
  flex-shrink: 0;
}
.divided-card .asset-line b {
  font-size: 15px;
}
.divided-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  margin: 19px 0 8px;
}
.opinion-bar {
  height: 5px;
  background: var(--blue);
  border-radius: 5px;
  overflow: hidden;
}
.opinion-bar i {
  display: block;
  height: 100%;
  background: var(--red);
}
.divided-card > small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.divided-card:hover {
  border-color: #9198a1;
}
@media (max-width: 650px) {
  .divided-grid {
    grid-template-columns: 1fr;
  }
  .divided-card {
    padding: 16px;
  }
  .divided-card .asset-line b {
    font-size: 17px;
  }
  .divided-label {
    margin-top: 12px;
  }
  .weekly-calendar {
    padding: 20px;
  }
  .calendar-row b {
    font-size: 16px;
  }
  .calendar-row small,
  .calendar-row em {
    font-size: 14px;
  }
}
.mobile-calendar {
  display: none;
}
@media (max-width: 900px) {
  .mobile-calendar {
    display: block;
    margin-top: 20px;
  }
  .mobile-calendar .weekly-calendar {
    margin-bottom: 0;
  }
  .mobile-calendar .calendar-row {
    padding: 11px 0;
  }
}
.leader-section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 19px;
}
.leader-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.leader-heading h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.4px;
}
.leader-caption {
  font-size: 13px;
  color: var(--muted);
  margin: 7px 0 12px;
}
.leader-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.leader-row {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 65px 75px 55px;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 12px 16px;
  background: #fff;
  font-size: 15px;
}
.leader-row + .leader-row {
  border-top: 1px solid var(--line);
}
.leader-row:hover:not(:disabled) {
  background: #f2f4f6;
}
.leader-row:disabled {
  opacity: 1;
  cursor: default;
}
.leader-rank {
  color: #8d949e;
  font-weight: 700;
  font-size: 17px;
}
.leader-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leader-streak {
  color: #596069;
  background: #f2f4f6;
  border-radius: 5px;
  padding: 3px 7px;
  text-align: center;
  font-size: 14px;
}
.leader-direction {
  font-weight: 700;
  text-align: center;
  font-size: 15px;
}
.leader-open {
  font-size: 13px;
  color: #828994;
  text-align: right;
}
.leader-original-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 23px 0 15px;
  font-size: 15px;
}
.leader-original-meta strong {
  margin-left: auto;
}
.leader-original-body {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.9;
  color: #4f555d;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
@media (max-width: 650px) {
  .leader-heading {
    flex-wrap: wrap;
  }
  .leader-heading h2 {
    font-size: 17px;
  }
  .leader-heading .pill {
    font-size: 13px;
  }
  .leader-row {
    grid-template-columns: 16px minmax(0, 1fr) 48px 55px;
    gap: 7px;
    padding: 12px 9px;
  }
  .leader-name {
    font-size: 14px;
  }
  .leader-streak {
    font-size: 13px;
    padding: 3px;
  }
  .leader-direction {
    font-size: 13px;
  }
  .leader-open {
    display: none;
  }
  .leader-caption {
    font-size: 13px;
    line-height: 1.7;
  }
}
.brief-help {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.brief-help > span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.leader-row {
  grid-template-columns: 26px minmax(120px, 0.9fr) minmax(140px, 1.6fr) 65px 75px 55px;
  gap: 12px;
}
.leader-brief {
  color: #626973;
  font-size: 15px;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.leader-brief.muted {
  color: #989fa8;
  font-size: 14px;
}
.prediction-brief {
  margin: 0 0 18px;
  padding: 12px 15px;
  border-left: 3px solid #8c939d;
  background: #f2f4f6;
  color: #525860;
  font-size: 17px;
}
.my-prediction-brief {
  font-size: 16px;
  color: #545a62;
  margin: 8px 0 10px;
  font-weight: 500;
}
@media (max-width: 1150px) and (min-width: 901px) {
  .leader-row {
    grid-template-columns: 20px minmax(100px, 1fr) 55px 65px;
    gap: 8px;
  }
  .leader-brief {
    grid-column: 2/-1;
    grid-row: 2;
    font-size: 14px;
  }
  .leader-open {
    display: none;
  }
}
@media (max-width: 650px) {
  .leader-row {
    grid-template-columns: 16px minmax(0, 1fr) 48px 55px;
    gap: 5px 7px;
    padding: 11px 9px;
  }
  .leader-brief {
    grid-column: 2/-1;
    grid-row: 2;
    font-size: 14px;
  }
  .leader-brief.muted {
    font-size: 13px;
  }
  .leader-open {
    display: none;
  }
  .leader-brief + .leader-streak {
    grid-column: 3;
    grid-row: 1;
  }
  .leader-direction {
    grid-column: 4;
    grid-row: 1;
  }
}

/* ===== styles.css ===== */
:root {
  color-scheme: light;
  --forest: #2a303c;
  --green: #3e4450;
  --green-hover: #2e3440;
  --page: #f7f8f3;
  --paper: #fff;
  --sage: #eceff5;
  --lime: #dde0e6;
  --ink: #272d39;
  --muted: #888e9a;
  --line: #e6e9ef;
  --red: #d6635b;
  --blue: #487fb5;
  --radius: 14px;
  --shadow: 0 5px 24px rgba(39, 45, 57, 0.025);
  font-family:
    Pretendard,
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  font-weight: 400;
  color: var(--ink);
  background: var(--page);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  min-width: 340px;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
button svg,
a svg {
  pointer-events: none;
}
input::placeholder,
textarea::placeholder {
  color: #979ea7;
}
::selection {
  background: #dbdee4;
  color: var(--forest);
}
:focus-visible {
  outline: 3px solid #939aa3;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.demo-strip {
  background: var(--forest);
  color: #d2d5d9;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.demo-inner {
  max-width: 1360px;
  min-height: 27px;
  margin: auto;
  padding: 5px 32px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.demo-inner strong {
  color: #e3e6ea;
  font-size: 13px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  font-weight: 600;
}
.demo-inner strong::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--lime);
}
.demo-inner > :last-child {
  margin-left: auto;
}
.demo-inner button,
.demo-inner a {
  background: transparent;
  color: var(--lime);
  padding: 0;
  font-size: 13px;
}
.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1360px;
  min-height: 92px;
  padding: 0 32px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 48px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #f1f2d9;
  font-family: var(--font-family);
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
}
.brand-name {
  color: var(--forest);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.3;
}
.brand-tag {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
}
.nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 29px;
}
.nav-link {
  display: flex;
  align-items: center;
  position: relative;
  background: transparent;
  color: #747c88;
  font-size: 16px;
  font-weight: 600;
  padding: 0;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--green);
}
.nav-link.is-active::after {
  transform: scaleX(1);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.icon-button {
  width: 30px;
  height: 35px;
  background: transparent;
  padding: 3px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 6px;
}
.icon-button:hover {
  background: var(--sage);
}
.icon-button .notification-dot,
.notification-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 100%;
  background: var(--red);
  top: 4px;
  right: 5px;
}
.avatar,
.leader-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sage);
  color: #707884;
  font-weight: 700;
}
.profile-button {
  background: #f2f4f6;
  border: 1px solid #e3e6ea;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--forest);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.ticker {
  background: #fff;
  border-bottom: 1px solid #f2f4f6;
}
.ticker-inner {
  min-height: 38px;
  margin: auto;
  padding: 7px 32px;
  max-width: 1360px;
  display: flex;
  justify-content: center;
  gap: 36px;
  align-items: center;
  font-size: 13px;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.ticker-item strong {
  font-weight: 700;
  font-size: 14px;
}
.ticker-note {
  color: #979ea7;
  font-size: 13px;
  white-space: nowrap;
}
.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 26px;
  padding: 38px 32px 68px;
  max-width: 1360px;
  margin: auto;
  min-height: calc(100vh - 245px);
  align-items: start;
}
.main-content {
  min-width: 0;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.hero {
  position: relative;
  min-height: 266px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 30px 32px;
  background: #e3e6ea;
  border: 1px solid #e3e6ec;
  border-radius: var(--radius);
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.19em;
  font-weight: 700;
  color: #7d8591;
  text-transform: uppercase;
  line-height: 1.6;
}
.hero h1 {
  margin: 14px 0 13px;
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -1.5px;
  color: var(--forest);
}
.hero p {
  color: #777f8b;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 19px;
}
.hero-art {
  position: absolute;
  width: 260px;
  height: 245px;
  right: 20px;
  top: 14px;
}
.orbit {
  position: absolute;
  inset: 25px 23px;
  border: 1px solid #c8ccd0;
  border-radius: 50%;
  transform: rotate(-26deg);
}
.orbit::after {
  content: "";
  position: absolute;
  inset: 18px -10px;
  border: 1px solid #d8dbe1;
  border-radius: 50%;
  transform: rotate(45deg);
}
.hero-art::after {
  content: "✳";
  position: absolute;
  top: 30px;
  right: 7px;
  color: #878e99;
  font-size: 32px;
  font-weight: 300;
}
.art-card {
  width: 104px;
  height: 132px;
  position: absolute;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.art-card > :first-child {
  font-size: 54px;
  font-weight: 500;
  line-height: 1.1;
}
.art-card > :last-child {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-top: 12px;
}
.art-card.card-up {
  left: 36px;
  top: 45px;
  background: var(--green);
  color: #dee1e7;
  transform: rotate(-16deg);
  z-index: 2;
}
.art-card.card-down {
  left: 132px;
  top: 86px;
  background: #fff;
  color: #69707b;
  transform: rotate(14deg);
  z-index: 3;
}
.hero-note {
  position: absolute;
  bottom: 17px;
  right: 27px;
  color: #8f969f;
  font-size: 13px;
}
.button {
  min-height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  padding: 11px 17px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
  border: 1px solid transparent;
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
  text-align: center;
}
.button:hover {
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(0);
}
.button-primary {
  background: var(--green);
  color: white;
}
.button-primary:hover {
  background: var(--green-hover);
  box-shadow: none;
}
.button-soft {
  color: var(--green);
  background: #f2f4f6;
  border-color: #e4e7ed;
}
.button-soft:hover {
  background: #e3e6ea;
}
.button-outline {
  color: var(--ink);
  background: #fff;
  border-color: #dfe2e8;
}
.button-outline:hover {
  border-color: #a4aab2;
  background: #f7f8fa;
}
.button-lime {
  color: var(--forest);
  background: var(--lime);
}
.button-lime:hover {
  background: #e3e6ea;
}
.button-small {
  min-height: 33px;
  padding: 7px 12px;
  font-size: 13px;
}
.button svg {
  width: 15px;
  height: 15px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: #767e8a;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.text-link:hover {
  color: var(--green);
}
.text-link svg {
  width: 13px;
  height: 13px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 3px;
  padding: 2px 6px;
  background: #f2f4f6;
  color: #78808c;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 650;
  white-space: nowrap;
}
.pill-live {
  background: #f2f4f6;
  color: #6e7681;
}
.pill-live::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #7e8691;
}
.muted {
  color: var(--muted);
}
.up {
  color: var(--red);
}
.down {
  color: var(--blue);
}
.section {
  margin-top: 30px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 23px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: -0.65px;
  margin: 0;
}
.section-subtitle {
  color: #89909b;
  font-size: 13px;
  font-weight: 400;
}
.section > .muted,
.section-heading + p {
  margin: -5px 0 15px;
  font-size: 14px;
}
.index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.index-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.index-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.asset-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.asset-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background: var(--logo-color, var(--green));
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.2px;
}
.asset-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.asset-meta {
  color: #8a919c;
  font-size: 13px;
  margin-top: 2px;
  line-height: 1.4;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 23px 0 16px;
}
.price {
  font-family: var(--font-family);
  font-weight: 700;
  letter-spacing: -0.6px;
  font-size: 32px;
  color: var(--ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.price-change {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 5px;
}
.price-change small {
  color: #878e99;
  font-weight: 400;
  font-size: 13px;
}
.sparkline {
  width: 91px;
  height: 41px;
  opacity: 0.8;
}
.consensus {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.consensus-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.consensus-body {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 17px 0 11px;
}
.donut {
  --up: 62%;
  position: relative;
  height: 90px;
  width: 90px;
  border-radius: 50%;
  background: transparent;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  transform: rotate(0);
}
.donut::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}
.donut-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}
.donut-center strong {
  font-family: var(--font-family);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.donut-center span {
  color: #8d949e;
  font-size: 13px;
}
.consensus-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.legend-row small {
  display: block;
  font-size: 13px;
  color: #979ea7;
  padding: 4px 0 0 13px;
}
.legend-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
.legend-value {
  font-size: 23px;
  letter-spacing: -0.7px;
  font-weight: 700;
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.card-note {
  color: #979ea7;
  font-size: 13px;
  line-height: 1.75;
  margin: 2px 0 12px;
}
.card-cta {
  width: 100%;
  background: #f7f8fa;
  border: 1px solid #e3e6ec;
  border-radius: 4px;
  color: #6c747f;
  min-height: 34px;
  padding: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.card-cta:hover {
  background: #f2f4f6;
}
.split-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.split-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  display: block;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.split-card:hover {
  transform: translateY(-2px);
  border-color: #b2b7be;
}
.split-card .asset-logo {
  width: 27px;
  height: 27px;
  border-radius: 6px;
  font-size: 13px;
}
.split-card .asset-name {
  font-size: 16px;
}
.split-card .index-top > svg {
  width: 17px;
  color: #979ea7;
}
.sentiment-labels {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin: 19px 0 7px;
}
.sentiment-track {
  height: 4px;
  width: 100%;
  background: var(--blue);
  border-radius: 1px;
  overflow: hidden;
}
.sentiment-track > span {
  display: block;
  height: 100%;
  width: var(--up, 48%);
  background: var(--red);
}
.split-card .card-note {
  margin: 11px 0 0;
  font-size: 13px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tab {
  padding: 7px 11px;
  min-height: 31px;
  border-radius: 5px;
  background: transparent;
  color: #828994;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s;
  white-space: nowrap;
}
.tab:hover {
  background: #f2f4f6;
  color: var(--green);
}
.tab.is-active {
  color: #fff;
  background: var(--green);
  font-weight: 650;
}
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stock-card {
  display: block;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    border-color 0.2s;
  text-align: left;
}
.stock-card:hover {
  transform: translateY(-2px);
  border-color: #b1b6bd;
}
.stock-card .asset-logo {
  height: 30px;
  width: 30px;
  font-size: 13px;
  border-radius: 6px;
}
.stock-card .asset-name {
  font-size: 16px;
}
.stock-price {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.stock-price strong {
  font-family: var(--font-family);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.stock-price span {
  font-size: 13px;
  font-weight: 600;
}
.stock-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #989fa8;
  margin-top: 9px;
}
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 12px;
  box-shadow: var(--shadow);
}
.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-author .avatar {
  width: 28px;
  height: 28px;
  font-size: 14px;
}
.post-author-info {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.post-time {
  font-weight: 400;
  font-size: 13px;
  margin-left: auto;
  color: #959ca5;
  white-space: nowrap;
}
.post-title {
  display: block;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.35px;
  margin: 13px 0 7px;
  background: transparent;
  text-align: left;
  padding: 0;
}
.post-title:hover {
  color: var(--green);
}
.post-body {
  font-size: 14px;
  line-height: 1.9;
  color: #848b96;
  margin: 0 0 13px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.post-footer {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.post-tag {
  background: #e7f3f0;
  color: #838a95;
  font-size: 13px;
  padding: 3px 7px;
  border-radius: 3px;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.post-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  padding: 0;
  font-size: 13px;
  color: #99a0a8;
}
.post-action svg {
  width: 13px;
  height: 13px;
}
.post-action:hover,
.post-action.is-active {
  color: var(--green);
}
.post-action.is-active svg {
  fill: #dde0e6;
}
.challenge-card {
  border-radius: 6px;
  background: #34373d;
  color: #fff;
  padding: 23px 21px 20px;
}
.challenge-card .eyebrow {
  color: #abb0b7;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.challenge-title {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.7px;
  line-height: 1.55;
  margin: 13px 0 13px;
  color: #f2f4f6;
}
.challenge-copy {
  font-size: 13px;
  color: #a6acb3;
  line-height: 1.85;
  margin: 0 0 15px;
}
.challenge-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid #444950;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.challenge-step-label {
  font-size: 13px;
  color: #a0a6ae;
  white-space: nowrap;
}
.challenge-step-value {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.challenge-card .button-lime {
  display: flex;
  width: 100%;
  margin-top: 11px;
  min-height: 38px;
  justify-content: space-between;
  padding: 9px 22px;
  font-size: 13px;
}
.sidebar-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
}
.sidebar-title {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.2px;
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 17px;
}
.sidebar-card .eyebrow {
  font-size: 13px;
  margin-bottom: 7px;
}
.leader-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 59px;
  border-bottom: 1px solid #f2f4f6;
}
.leader-row:last-of-type {
  border-bottom: none;
}
.leader-rank {
  width: 14px;
  font-family: var(--font-family);
  font-size: 14px;
  color: #9fa5ad;
}
.leader-avatar {
  width: 28px;
  height: 28px;
  font-size: 14px;
}
.leader-info {
  min-width: 0;
}
.leader-name {
  font-size: 13px;
  font-weight: 650;
}
.leader-meta {
  font-size: 13px;
  color: #9aa1a9;
  margin-top: 2px;
}
.leader-streak {
  margin-left: auto;
  color: #89909b;
  font-size: 13px;
  white-space: nowrap;
}
.sidebar-card .card-note {
  font-size: 13px;
  margin: 17px 0 12px;
  line-height: 1.9;
}
.checkpoint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid #f2f4f6;
}
.checkpoint:last-of-type {
  border-bottom: none;
  padding-bottom: 7px;
}
.day-tag {
  display: grid;
  place-items: center;
  width: 24px;
  height: 27px;
  border-radius: 4px;
  background: #e7f3f0;
  color: #868d98;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.checkpoint-copy {
  flex: 1;
  line-height: 1.5;
}
.checkpoint-title {
  font-size: 13px;
  font-weight: 600;
  margin: 3px 0 5px;
}
.checkpoint-meta {
  font-size: 13px;
  color: #9aa1a9;
}
.checkpoint > svg {
  width: 13px;
  height: 13px;
  color: #99a0a8;
  margin-top: 5px;
}
.sidebar-card ul {
  padding-left: 13px;
  font-size: 13px;
  color: #939aa3;
  line-height: 2.1;
  margin: 16px 0;
}
.sidebar-card .status-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin: 12px 0;
  color: #888f9a;
}
.principle-card {
  background: #f2f4f6;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  padding: 23px 20px;
}
.principle-card .eyebrow {
  font-size: 13px;
  color: #868d98;
}
.principle-card p {
  color: #6c747f;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 650;
  letter-spacing: -0.3px;
  margin: 17px 0;
}
.principle-card small {
  font-size: 13px;
  color: #989fa8;
}
.page-heading {
  padding: 3px 0 23px;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.page-title {
  font-size: 30px;
  line-height: 1.5;
  font-weight: 750;
  letter-spacing: -1.1px;
  margin: 0 0 7px;
}
.page-description {
  color: #838a95;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}
.selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.selection-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-height: 149px;
  padding: 21px;
  position: relative;
}
.selection-card .eyebrow {
  font-size: 13px;
}
.selection-card h3 {
  margin: 10px 0 9px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.selection-card p {
  font-size: 14px;
  color: #8a919c;
  margin: 0 0 12px;
}
.selection-card .asset-identity {
  margin-top: 10px;
}
.selection-card .text-link {
  margin-top: 14px;
}
.selection-empty {
  color: #858c97;
  font-size: 13px;
}
.selection-badge {
  position: absolute;
  top: 20px;
  right: 18px;
}
.notice {
  background: #f2f4f6;
  border: 1px solid #e4e7ed;
  color: #878e99;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.8;
}
.notice svg {
  width: 14px;
  height: 14px;
  margin-right: 5px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 28px;
}
.toolbar .tabs {
  margin: 0;
  gap: 5px;
  flex-wrap: nowrap;
}
.search-field {
  min-height: 38px;
  border: 1px solid #e0e3e9;
  border-radius: 6px;
  background: #fff;
  padding: 9px 12px;
  width: 100%;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
.search-field:focus {
  border-color: #7c8490;
  box-shadow: 0 0 0 2px #f2f4f6;
}
.toolbar .search-field {
  flex: 1;
  min-width: 80px;
}
.toolbar .button {
  white-space: nowrap;
}
.filter-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0 0 17px;
}
.filter-row .tabs {
  margin: 0;
}
.filter-row .search-field {
  width: 200px;
  font-size: 13px;
}
.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.board-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 19px 20px;
  display: block;
  text-align: left;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.board-card:hover {
  border-color: #b4b9bf;
  transform: translateY(-2px);
}
.board-card .index-top > svg {
  color: #9fa5ad;
  width: 18px;
}
.board-card .sentiment-labels {
  justify-content: flex-start;
  gap: 13px;
  margin: 16px 0 11px;
}
.board-description {
  min-height: 33px;
  color: #8f969f;
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 15px;
}
.board-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #99a0a8;
  font-size: 13px;
  padding-top: 11px;
}
.board-footer strong {
  font-weight: 500;
  color: #686f7a;
}
.empty-state {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-align: center;
  color: #959ca5;
  padding: 32px 20px;
  font-size: 15px;
}
.empty-state svg {
  width: 27px;
  height: 27px;
  display: block;
  margin: 0 auto 12px;
  color: #a0a6ae;
}
.empty-state h3 {
  font-size: 17px;
  font-weight: 600;
  color: #6b727d;
  margin: 0 0 8px;
}
.empty-state p {
  margin: 5px 0 15px;
  font-size: 14px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 14px;
}
.ranking-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: #9097a0;
  padding: 12px 15px;
  background: #f2f4f6;
}
.ranking-table td {
  border-top: 1px solid var(--line);
  padding: 18px 15px;
}
.ranking-table td:first-child {
  font-size: 19px;
  font-family: var(--font-family);
  color: #888f9a;
  width: 11%;
}
.ranking-table td:nth-child(2) {
  font-weight: 600;
}
.ranking-table .my-row {
  background: #fbfcf8;
}
.rank-tabs {
  margin: 2px 0 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 12px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-family);
  color: var(--forest);
  font-size: 31px;
  font-weight: 650;
  line-height: 1.3;
}
.stat-label {
  font-size: 13px;
  color: #9097a0;
  margin-top: 5px;
}
.profile-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 27px 24px;
}
.profile-avatar {
  background: #f2f4f6;
  color: #7d8591;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-family: var(--font-family);
  font-size: 30px;
  font-weight: 700;
}
.profile-bio {
  min-width: 0;
  flex: 1;
}
.profile-bio .eyebrow {
  font-size: 13px;
}
.profile-bio h1 {
  margin: 2px 0 1px;
  font-size: 26px;
  line-height: 1.6;
  font-family: var(--font-family);
  letter-spacing: -0.5px;
}
.profile-bio p {
  font-size: 13px;
  color: #939aa3;
  margin: 0;
}
.record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.record-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 19px;
}
.record-card .asset-identity {
  margin: 10px 0;
}
.record-card p {
  color: #8b929c;
  font-size: 14px;
}
.breadcrumbs {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  color: #89909b;
}
.breadcrumbs svg {
  width: 12px;
  height: 12px;
}
.breadcrumbs a:hover,
.breadcrumbs button:hover {
  color: var(--green);
}
.breadcrumbs button {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}
.detail-top .asset-logo {
  height: 46px;
  width: 46px;
  font-size: 19px;
}
.detail-top .asset-name {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.detail-overview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  margin: 25px 0;
}
.detail-price {
  padding-right: 24px;
}
.detail-price .price {
  font-size: 35px;
}
.detail-price .price-change {
  margin-top: 9px;
}
.detail-price .muted {
  font-size: 13px;
  margin: 13px 0;
}
.detail-price .pill {
  margin-bottom: 17px;
}
.detail-price .button {
  display: flex;
  width: max-content;
  margin-top: 3px;
}
.detail-consensus {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.detail-consensus .consensus {
  border-top: 0;
  padding-top: 0;
}
.detail-consensus .donut {
  width: 114px;
  height: 114px;
}
.detail-consensus .donut::before {
  inset: 13px;
}
.detail-consensus .donut-center strong {
  font-size: 27px;
}
.detail-consensus .legend-value {
  font-size: 26px;
}
.detail-card .section {
  padding-top: 21px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.detail-card .section-title {
  font-size: 16px;
}
.detail-card .ranking-table td {
  padding: 12px 11px;
  font-size: 13px;
}
.detail-card .ranking-table td:first-child {
  font-size: 17px;
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.news-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fcfdf8;
  border: 1px solid #f2f4f6;
  border-radius: 6px;
  padding: 19px;
}
.news-card > span:first-child {
  font-family: var(--font-family);
  font-size: 25px;
  line-height: 1.2;
  color: #aaafb6;
}
.news-card .eyebrow {
  font-size: 13px;
  letter-spacing: 0;
  color: #9ea4ac;
}
.news-card h3 {
  color: #7f8792;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  margin: 6px 0 7px;
}
.news-card p {
  font-size: 13px;
  color: #a0a6ae;
  line-height: 1.7;
  margin: 0;
}
.viewpoints {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.viewpoint {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 21px;
}
.viewpoint h3 {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 11px;
}
.viewpoint p {
  color: #878e99;
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 15px;
}
.viewpoint small {
  color: #9aa1a9;
  font-size: 13px;
}
.detail-tabs {
  margin: -3px 0 16px;
}
.footer {
  background: var(--page);
}
.footer-inner {
  max-width: 1296px;
  margin: 0 auto;
  padding: 22px 0 26px;
  border-top: 1px solid #e2e5eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-inner > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-inner strong {
  font-size: 16px;
  font-weight: 750;
  color: #5d646d;
}
.footer-inner span,
.footer-inner a,
.footer-inner button {
  font-size: 13px;
  color: #9fa5ad;
}
.footer-inner button {
  background: none;
  padding: 0;
}
.footer-inner a:hover,
.footer-inner button:hover {
  color: var(--green);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #102d266e;
  backdrop-filter: blur(5px);
  animation: fade-in 0.18s ease;
}
.modal {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 25px 90px #07241d35;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-in 0.22s ease;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 23px 25px 17px;
  border-bottom: 1px solid var(--line);
}
.modal-title {
  margin: 0;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.5px;
  line-height: 1.5;
}
.modal-close {
  width: 29px;
  height: 29px;
  background: #f2f4f6;
  border-radius: 50%;
  padding: 4px;
  display: grid;
  place-items: center;
  color: #707884;
}
.modal-close:hover {
  background: #e3e6ea;
}
.modal-body {
  padding: 23px 25px 25px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-body > p {
  margin: 0 0 18px;
  color: #838a95;
  font-size: 15px;
  line-height: 1.9;
}
.modal-body > .notice {
  margin-bottom: 18px;
}
.modal-body .post-card {
  margin-top: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}
.form-field {
  margin-bottom: 19px;
}
.form-field:last-child {
  margin-bottom: 0;
}
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: #5e656e;
  margin-bottom: 8px;
}
.field-label small {
  margin-left: 6px;
  color: #99a0a8;
  font-size: 13px;
  font-weight: 400;
}
.input,
.textarea {
  display: block;
  width: 100%;
  border: 1px solid #dee1e7;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  padding: 11px 12px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.input:focus,
.textarea:focus {
  border-color: #868d98;
  box-shadow: 0 0 0 3px #f2f4f6;
}
.textarea {
  min-height: 115px;
  line-height: 1.9;
  resize: vertical;
}
.direction-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.direction-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 91px;
  background: #fff;
  border: 1px solid #e1e4ea;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 650;
  transition: all 0.15s;
}
.direction-option svg {
  height: 25px;
  width: 25px;
}
.direction-option.up:hover,
.direction-option.up.is-selected {
  background: #fff5f1;
  border-color: var(--red);
}
.direction-option.down:hover,
.direction-option.down.is-selected {
  background: #eef3fd;
  border-color: var(--blue);
}
.direction-option.is-selected {
  box-shadow: inset 0 0 0 1px currentColor;
}
.modal-footer {
  padding: 17px 25px 23px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
}
.modal-footer .button {
  font-size: 14px;
}
.form-error {
  color: var(--red);
  font-size: 14px;
  margin: 10px 0 0;
  line-height: 1.7;
}
.prediction-asset {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 20px;
  background: #fafbf6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prediction-asset .asset-identity {
  flex: 1;
}
.choice-info {
  color: #888f9a;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
}
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 30px;
  max-width: calc(100vw - 40px);
  min-width: 240px;
  padding: 13px 21px;
  background: var(--forest);
  color: #f2f4f6;
  border: 1px solid #596069;
  border-radius: 6px;
  box-shadow: 0 8px 28px #15372c24;
  font-size: 15px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-align: left;
}
.search-result:hover {
  background: #f7f8fa;
  border-color: #a6acb3;
}
.search-result > svg {
  color: #8c939d;
  width: 16px;
}
.comment-list {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
.comment {
  font-size: 14px;
  line-height: 1.9;
  border-bottom: 1px solid #f2f4f6;
  padding: 12px 0;
}
.comment strong {
  display: block;
  color: #5c636c;
  font-size: 13px;
  margin-bottom: 4px;
}
.comment p {
  margin: 0;
  color: #878e99;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  align-items: flex-start;
}
.comment-form .input {
  flex: 1;
}
.comment-form .button {
  white-space: nowrap;
  min-height: 42px;
}
.page-note {
  color: #959ca5;
  font-size: 13px;
  line-height: 1.9;
  margin-top: 13px;
}
.load-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1450px) {
  .app-shell {
    padding-top: 42px;
  }
  .hero {
    min-height: 286px;
  }
  .hero-art {
    right: 34px;
  }
}
@media (max-width: 1190px) {
  .header-inner {
    gap: 35px;
  }
  .nav {
    gap: 22px;
  }
  .app-shell {
    grid-template-columns: minmax(0, 1fr) 264px;
    padding-left: 25px;
    padding-right: 25px;
    gap: 22px;
  }
  .hero {
    padding: 28px;
    min-height: 260px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-art {
    width: 225px;
    right: 5px;
    transform: scale(0.92);
    transform-origin: center right;
  }
  .index-card {
    padding: 18px;
  }
  .consensus-body {
    gap: 13px;
  }
  .donut {
    height: 80px;
    width: 80px;
  }
  .donut::before {
    inset: 9px;
  }
  .legend-value {
    font-size: 21px;
  }
  .price {
    font-size: 30px;
  }
  .sparkline {
    width: 73px;
  }
  .stock-card {
    padding: 14px;
  }
  .sidebar-card,
  .challenge-card,
  .principle-card {
    padding-left: 18px;
    padding-right: 18px;
  }
  .challenge-title {
    font-size: 21px;
  }
  .footer-inner {
    margin: 0 25px;
  }
}
@media (max-width: 1020px) {
  .header-inner {
    gap: 28px;
    padding: 0 25px;
  }
  .brand-name {
    font-size: 22px;
  }
  .brand-mark {
    height: 39px;
    width: 39px;
    font-size: 29px;
  }
  .nav {
    gap: 20px;
  }
  .nav-link {
    font-size: 15px;
  }
  .header-actions {
    gap: 11px;
  }
  .app-shell {
    grid-template-columns: minmax(0, 1fr) 244px;
    gap: 19px;
  }
  .hero-art {
    right: -20px;
    opacity: 0.9;
    transform: scale(0.8);
  }
  .hero {
    padding: 25px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero .eyebrow {
    max-width: 260px;
    font-size: 13px;
  }
  .index-grid {
    gap: 12px;
  }
  .index-card {
    padding: 16px;
  }
  .index-card .asset-logo {
    width: 31px;
    height: 31px;
    border-radius: 6px;
    font-size: 14px;
  }
  .index-card .asset-identity {
    gap: 8px;
  }
  .index-card .asset-name {
    font-size: 14px;
  }
  .index-card .asset-meta {
    font-size: 13px;
  }
  .price {
    font-size: 27px;
  }
  .sparkline {
    width: 58px;
  }
  .consensus-body {
    gap: 11px;
  }
  .donut {
    height: 70px;
    width: 70px;
  }
  .donut::before {
    inset: 8px;
  }
  .donut-center strong {
    font-size: 19px;
  }
  .donut-center span {
    font-size: 13px;
  }
  .legend-row {
    gap: 6px;
  }
  .legend-value {
    font-size: 19px;
  }
  .legend-label {
    font-size: 13px;
  }
  .legend-dot {
    height: 6px;
    width: 6px;
  }
  .legend-row small {
    font-size: 13px;
    padding-left: 10px;
  }
  .stock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-grid {
    gap: 9px;
  }
  .split-card {
    padding: 13px;
  }
  .split-card .asset-name {
    font-size: 13px;
  }
  .split-card .asset-logo {
    height: 24px;
    width: 24px;
    font-size: 13px;
  }
  .split-card .asset-identity {
    gap: 7px;
  }
  .split-card .sentiment-labels {
    font-size: 13px;
  }
  .toolbar {
    gap: 8px;
    padding: 13px;
  }
  .toolbar .button {
    font-size: 13px;
    padding: 8px 10px;
  }
  .toolbar .tab {
    padding: 7px 9px;
  }
  .board-grid {
    gap: 12px;
  }
  .board-card {
    padding: 17px;
  }
  .detail-overview {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .detail-consensus {
    padding-left: 20px;
  }
  .detail-price {
    padding-right: 20px;
  }
  .detail-consensus .donut {
    height: 90px;
    width: 90px;
  }
  .detail-consensus .donut::before {
    inset: 10px;
  }
  .detail-consensus .legend-value {
    font-size: 21px;
  }
  .detail-consensus .donut-center strong {
    font-size: 23px;
  }
  .detail-price .price {
    font-size: 29px;
  }
  .ranking-table th,
  .ranking-table td {
    padding-left: 11px;
    padding-right: 11px;
  }
}
@media (max-width: 860px) {
  .header-inner {
    gap: 22px;
  }
  .nav {
    gap: 17px;
  }
  .header-actions .icon-button:nth-child(2) {
    display: none;
  }
  .profile-button {
    padding-left: 10px;
    padding-right: 10px;
  }
  .ticker-inner {
    gap: 24px;
  }
  .ticker-note {
    display: none;
  }
  .app-shell {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 16px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-art {
    opacity: 0.65;
    right: -30px;
    transform: scale(0.65);
  }
  .hero-copy {
    max-width: 280px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero p {
    max-width: 215px;
  }
  .index-grid {
    grid-template-columns: 1fr;
  }
  .index-card {
    padding: 20px;
  }
  .consensus-body {
    gap: 20px;
  }
  .price {
    font-size: 32px;
  }
  .donut {
    height: 90px;
    width: 90px;
  }
  .donut::before {
    inset: 10px;
  }
  .donut-center strong {
    font-size: 23px;
  }
  .donut-center span {
    font-size: 13px;
  }
  .legend-value {
    font-size: 24px;
  }
  .sparkline {
    width: 90px;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .split-card {
    padding: 16px;
  }
  .split-card .sentiment-labels {
    margin-top: 13px;
  }
  .section-title {
    font-size: 19px;
  }
  .section-subtitle {
    font-size: 13px;
  }
  .page-title {
    font-size: 27px;
  }
  .board-grid,
  .selection-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .search-field {
    flex-basis: 100%;
    order: 3;
  }
  .toolbar .button {
    margin-left: auto;
  }
  .selection-card {
    min-height: 132px;
  }
  .stats-grid {
    gap: 7px;
  }
  .stat-card {
    padding: 17px 6px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-label {
    font-size: 13px;
  }
  .detail-overview {
    grid-template-columns: 1fr;
  }
  .detail-price {
    padding: 0 0 23px;
  }
  .detail-consensus {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }
  .detail-price .price {
    font-size: 34px;
  }
  .news-grid,
  .viewpoints,
  .record-grid {
    grid-template-columns: 1fr;
  }
  .ranking-table {
    font-size: 13px;
  }
  .ranking-table th {
    font-size: 13px;
  }
  .footer-inner {
    margin: 0 20px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .demo-inner {
    min-height: 25px;
    padding: 5px 20px;
    gap: 10px;
  }
  .demo-inner strong {
    font-size: 13px;
    letter-spacing: 0.09em;
  }
  .demo-inner > span {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .demo-inner > :last-child {
    white-space: nowrap;
    font-size: 13px;
  }
  .header-inner {
    min-height: 112px;
    padding: 15px 20px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 11px 12px;
    align-items: center;
  }
  .brand {
    gap: 9px;
  }
  .brand-mark {
    height: 35px;
    width: 35px;
    border-radius: 6px;
    font-size: 26px;
  }
  .brand-name {
    font-size: 21px;
  }
  .brand-tag {
    font-size: 13px;
    letter-spacing: 0.16em;
    margin-top: 1px;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 12px;
  }
  .header-actions .icon-button:nth-child(2) {
    display: grid;
  }
  .profile-button {
    font-size: 13px;
    padding: 7px 10px;
  }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 41px;
  }
  .nav-link {
    font-size: 14px;
    justify-content: center;
    padding: 0 6px 10px;
  }
  .nav-link::after {
    left: 6px;
    right: 6px;
  }
  .ticker-inner {
    gap: 24px;
    padding: 9px 20px;
    overflow-x: auto;
    justify-content: flex-start;
    min-height: 37px;
    scrollbar-width: none;
  }
  .ticker-inner::-webkit-scrollbar {
    display: none;
  }
  .ticker-item {
    font-size: 13px;
    gap: 7px;
  }
  .ticker-item strong {
    font-size: 13px;
  }
  .app-shell {
    display: block;
    padding: 22px 20px 42px;
    min-height: calc(100vh - 250px);
  }
  .sidebar {
    display: none;
  }
  .hero {
    min-height: 258px;
    padding: 27px 25px;
    border-radius: 6px;
  }
  .hero-copy {
    max-width: none;
  }
  .hero .eyebrow {
    font-size: 13px;
    max-width: none;
  }
  .hero h1 {
    font-size: 35px;
    letter-spacing: -1.25px;
    line-height: 1.4;
  }
  .hero p {
    font-size: 14px;
    line-height: 1.85;
    max-width: none;
  }
  .hero-art {
    width: 245px;
    height: 240px;
    right: 4px;
    top: 8px;
    transform: scale(0.76);
    opacity: 0.95;
  }
  .hero-note {
    display: none;
  }
  .button {
    min-height: 39px;
    font-size: 13px;
    padding: 10px 14px;
  }
  .button-small {
    min-height: 33px;
    padding: 7px 11px;
    font-size: 13px;
  }
  .section {
    margin-top: 27px;
  }
  .section-heading {
    margin-bottom: 12px;
  }
  .section-title {
    font-size: 19px;
  }
  .section-subtitle {
    font-size: 13px;
  }
  .index-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .index-card {
    padding: 18px;
  }
  .asset-name {
    font-size: 14px;
  }
  .index-card .asset-logo {
    width: 30px;
    height: 30px;
  }
  .index-card .asset-identity {
    gap: 8px;
  }
  .index-top > .pill {
    font-size: 13px;
    padding: 2px 4px;
  }
  .price-row {
    margin: 20px 0 14px;
  }
  .price {
    font-size: 28px;
  }
  .sparkline {
    width: 62px;
    height: 32px;
  }
  .price-change {
    font-size: 13px;
  }
  .consensus-body {
    gap: 12px;
  }
  .donut {
    width: 74px;
    height: 74px;
  }
  .donut::before {
    inset: 8px;
  }
  .donut-center strong {
    font-size: 20px;
  }
  .donut-center span {
    font-size: 13px;
  }
  .legend-value {
    font-size: 20px;
  }
  .legend-label {
    font-size: 13px;
  }
  .legend-row small {
    font-size: 13px;
  }
  .split-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .split-card {
    padding: 14px;
  }
  .split-card .asset-identity {
    gap: 7px;
  }
  .stock-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }
  .stock-card {
    padding: 14px;
  }
  .stock-price strong {
    font-size: 18px;
  }
  .stock-price span {
    font-size: 13px;
  }
  .post-card {
    padding: 18px;
  }
  .post-title {
    font-size: 16px;
  }
  .post-body {
    font-size: 14px;
  }
  .page-heading {
    padding: 2px 0 21px;
  }
  .page-title {
    font-size: 28px;
  }
  .page-description {
    font-size: 14px;
  }
  .page-heading .eyebrow {
    font-size: 13px;
  }
  .selection-grid,
  .board-grid,
  .record-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .selection-card {
    padding: 19px;
    min-height: 148px;
  }
  .selection-card h3 {
    font-size: 16px;
  }
  .selection-card p {
    font-size: 13px;
  }
  .toolbar {
    flex-wrap: nowrap;
  }
  .toolbar .search-field {
    flex-basis: auto;
    order: initial;
    font-size: 13px;
  }
  .toolbar .button {
    margin-left: 0;
  }
  .board-card {
    padding: 19px;
  }
  .board-description {
    font-size: 13px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 20px 8px;
  }
  .stat-value {
    font-size: 29px;
  }
  .stat-label {
    font-size: 13px;
  }
  .profile-banner {
    padding: 22px;
  }
  .profile-bio p {
    font-size: 13px;
  }
  .ranking-table {
    font-size: 14px;
  }
  .ranking-table td {
    padding: 17px 13px;
  }
  .ranking-table th {
    font-size: 13px;
    padding: 12px 13px;
  }
  .detail-overview {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .detail-price {
    padding: 0 20px 0 0;
  }
  .detail-consensus {
    border-left: 1px solid var(--line);
    border-top: none;
    padding: 0 0 0 20px;
  }
  .detail-price .price {
    font-size: 31px;
  }
  .detail-consensus .donut {
    width: 90px;
    height: 90px;
  }
  .detail-consensus .legend-value {
    font-size: 22px;
  }
  .news-grid,
  .viewpoints {
    grid-template-columns: 1fr 1fr;
  }
  .detail-card {
    padding: 21px;
  }
  .footer-inner {
    padding: 20px 0 24px;
  }
  .footer-inner > div {
    gap: 12px;
  }
  .footer-inner > div:last-child {
    gap: 12px;
  }
}
@media (max-width: 570px) {
  .demo-inner {
    padding-left: 16px;
    padding-right: 16px;
    gap: 8px;
  }
  .demo-inner > span {
    font-size: 13px;
  }
  .demo-inner strong {
    font-size: 13px;
  }
  .demo-inner strong::before {
    margin-right: 5px;
    width: 4px;
    height: 4px;
  }
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .icon-button:nth-child(2) {
    display: none;
  }
  .ticker-inner {
    padding-left: 16px;
    padding-right: 16px;
    gap: 25px;
  }
  .app-shell {
    padding: 20px 16px 36px;
  }
  .hero {
    min-height: 251px;
    padding: 25px 23px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero .eyebrow {
    font-size: 13px;
    letter-spacing: 0.14em;
  }
  .hero-art {
    transform: scale(0.53);
    opacity: 0.66;
    right: -17px;
    top: 28px;
  }
  .hero-copy {
    z-index: 2;
  }
  .hero p {
    font-size: 13px;
  }
  .hero .button {
    font-size: 13px;
    gap: 16px;
  }
  .section-heading {
    gap: 8px;
  }
  .section-title {
    font-size: 18px;
  }
  .section-heading > div {
    gap: 6px;
  }
  .section-subtitle {
    font-size: 13px;
  }
  .text-link {
    font-size: 13px;
    gap: 3px;
  }
  .text-link svg {
    width: 11px;
    height: 11px;
  }
  .index-grid {
    grid-template-columns: 1fr;
  }
  .index-card {
    padding: 20px;
  }
  .index-card .asset-name {
    font-size: 15px;
  }
  .index-card .asset-meta {
    font-size: 13px;
  }
  .index-card .asset-logo {
    height: 35px;
    width: 35px;
    border-radius: 6px;
    font-size: 15px;
  }
  .index-top > .pill {
    font-size: 13px;
    padding: 2px 6px;
  }
  .price {
    font-size: 33px;
  }
  .price-row {
    margin-top: 22px;
  }
  .price-change {
    font-size: 14px;
  }
  .sparkline {
    width: 98px;
    height: 43px;
  }
  .consensus-top {
    font-size: 13px;
  }
  .consensus-body {
    gap: 22px;
  }
  .donut {
    width: 95px;
    height: 95px;
  }
  .donut::before {
    inset: 11px;
  }
  .donut-center strong {
    font-size: 25px;
  }
  .donut-center span {
    font-size: 13px;
  }
  .consensus-legend {
    gap: 13px;
  }
  .legend-value {
    font-size: 27px;
  }
  .legend-label {
    font-size: 14px;
  }
  .legend-row small {
    font-size: 13px;
    padding-left: 13px;
  }
  .legend-dot {
    width: 8px;
    height: 8px;
  }
  .card-note {
    font-size: 13px;
  }
  .card-cta {
    min-height: 36px;
    font-size: 13px;
  }
  .split-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .split-card {
    padding: 16px 18px;
  }
  .split-card .asset-logo {
    width: 27px;
    height: 27px;
    font-size: 13px;
  }
  .split-card .asset-name {
    font-size: 15px;
  }
  .split-card .sentiment-labels {
    font-size: 13px;
    margin-top: 14px;
  }
  .split-card .card-note {
    margin-top: 9px;
  }
  .stock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stock-card {
    padding: 15px;
  }
  .stock-card .asset-logo {
    height: 29px;
    width: 29px;
    font-size: 13px;
  }
  .stock-card .asset-identity {
    gap: 8px;
  }
  .stock-card .asset-name {
    font-size: 13px;
  }
  .stock-card .asset-meta {
    font-size: 13px;
  }
  .stock-price {
    margin-top: 16px;
  }
  .stock-price strong {
    font-size: 19px;
  }
  .stock-price span {
    font-size: 13px;
  }
  .stock-footer {
    font-size: 13px;
  }
  .tabs {
    margin-bottom: 13px;
    gap: 4px;
  }
  .tab {
    font-size: 13px;
  }
  .post-card {
    padding: 17px;
  }
  .post-author-info {
    font-size: 13px;
    gap: 5px;
  }
  .post-author .avatar {
    height: 25px;
    width: 25px;
    font-size: 13px;
  }
  .post-time {
    font-size: 13px;
  }
  .post-title {
    font-size: 16px;
    line-height: 1.7;
  }
  .post-body {
    font-size: 13px;
    line-height: 1.9;
  }
  .post-tag {
    font-size: 13px;
  }
  .post-actions {
    gap: 10px;
  }
  .post-action {
    font-size: 13px;
    gap: 3px;
  }
  .post-action svg {
    width: 12px;
    height: 12px;
  }
  .page-title {
    font-size: 26px;
  }
  .page-description {
    font-size: 14px;
  }
  .selection-grid,
  .board-grid,
  .record-grid {
    grid-template-columns: 1fr;
  }
  .selection-card {
    min-height: 136px;
    padding: 20px;
  }
  .selection-card h3 {
    font-size: 17px;
  }
  .notice {
    padding: 12px 13px;
    font-size: 13px;
  }
  .toolbar {
    flex-wrap: wrap;
    padding: 12px;
    gap: 11px;
    margin-bottom: 25px;
  }
  .toolbar .tabs {
    gap: 4px;
  }
  .toolbar .search-field {
    order: 3;
    flex-basis: 100%;
    font-size: 14px;
    min-height: 39px;
  }
  .toolbar .button {
    font-size: 13px;
    margin-left: auto;
  }
  .toolbar .tab {
    padding: 7px 10px;
  }
  .filter-row {
    flex-wrap: wrap;
    gap: 9px;
  }
  .filter-row .search-field {
    width: 160px;
    min-height: 33px;
    font-size: 13px;
    padding: 7px 9px;
  }
  .board-card {
    padding: 20px;
  }
  .board-card .asset-name {
    font-size: 15px;
  }
  .board-card .asset-meta {
    font-size: 13px;
  }
  .board-description {
    min-height: 27px;
  }
  .board-footer {
    font-size: 13px;
  }
  .profile-banner {
    padding: 22px 18px;
    gap: 14px;
  }
  .profile-avatar {
    width: 50px;
    height: 50px;
    font-size: 27px;
  }
  .profile-bio h1 {
    font-size: 25px;
  }
  .profile-bio p {
    font-size: 13px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 19px 10px;
  }
  .stat-value {
    font-size: 30px;
  }
  .stat-label {
    font-size: 13px;
  }
  .ranking-table {
    min-width: 560px;
  }
  .table-scroll {
    scrollbar-width: thin;
    scrollbar-color: #c6cacf transparent;
  }
  .detail-card {
    padding: 20px;
  }
  .detail-top {
    padding-bottom: 18px;
  }
  .detail-top .asset-logo {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .detail-top .asset-name {
    font-size: 19px;
  }
  .detail-top .asset-meta {
    font-size: 13px;
  }
  .detail-top .button {
    padding: 8px 10px;
    min-height: 33px;
    font-size: 13px;
    gap: 5px;
  }
  .detail-top .button svg {
    width: 12px;
    height: 12px;
  }
  .detail-overview {
    grid-template-columns: 1fr;
    margin: 22px 0;
  }
  .detail-price {
    padding: 0 0 24px;
  }
  .detail-price .price {
    font-size: 36px;
  }
  .detail-price .button {
    min-height: 39px;
    font-size: 13px;
  }
  .detail-consensus {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 21px 0 0;
  }
  .detail-consensus .consensus-body {
    padding-top: 20px;
  }
  .detail-consensus .donut {
    height: 108px;
    width: 108px;
  }
  .detail-consensus .donut::before {
    inset: 12px;
  }
  .detail-consensus .donut-center strong {
    font-size: 27px;
  }
  .detail-consensus .legend-value {
    font-size: 28px;
  }
  .detail-consensus .card-note {
    margin-top: 10px;
  }
  .detail-card .section .section-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .detail-card .ranking-table {
    min-width: 530px;
  }
  .news-grid,
  .viewpoints {
    grid-template-columns: 1fr;
  }
  .news-card {
    padding: 18px;
  }
  .news-card h3 {
    font-size: 15px;
  }
  .viewpoint {
    padding: 19px;
  }
  .viewpoint p {
    font-size: 13px;
  }
  .footer-inner {
    margin: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 22px 0 25px;
  }
  .footer-inner > div {
    gap: 15px;
  }
  .footer-inner > div:last-child {
    gap: 18px;
  }
  .footer-inner strong {
    font-size: 15px;
  }
  .footer-inner span,
  .footer-inner a,
  .footer-inner button {
    font-size: 13px;
  }
  .modal-backdrop {
    padding: 14px;
  }
  .modal {
    border-radius: 6px;
    max-height: calc(100dvh - 28px);
  }
  .modal-header {
    padding: 20px 20px 15px;
  }
  .modal-title {
    font-size: 19px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-body > p {
    font-size: 14px;
  }
  .modal-footer {
    padding: 15px 20px 20px;
  }
  .modal-footer .button {
    font-size: 13px;
  }
  .field-label {
    font-size: 14px;
  }
  .input,
  .textarea {
    font-size: 16px;
    padding: 10px 11px;
  }
  .direction-option {
    min-height: 88px;
    font-size: 15px;
  }
  .toast {
    bottom: 20px;
    font-size: 14px;
    padding: 12px 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== refinements.css ===== */
/* Small composition rules shared by all views. */
.brand-name,
.brand-tag,
.leader-name,
.leader-meta,
.checkpoint-title,
.checkpoint-meta {
  display: block;
}
.brand-tag {
  margin-top: 4px;
  font-size: 13px;
}
.demo-inner > span {
  display: flex;
  align-items: center;
  gap: 18px;
}
.demo-message {
  font-size: 13px;
}
.demo-inner > span > i {
  display: none;
}
.header-actions {
  gap: 16px;
}
.profile-button {
  padding: 8px 12px;
}
.profile-button .avatar {
  width: 22px;
  height: 22px;
  font-size: 14px;
}
.notification-button > i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  right: 7px;
  top: 5px;
}
.hero {
  padding: 31px 32px;
  min-height: 298px;
}
.hero .eyebrow {
  font-size: 13px;
  margin-bottom: 14px;
  letter-spacing: 0.19em;
  line-height: 1.6;
  color: #78808c;
  font-weight: 700;
}
.hero h1 {
  margin-top: 0;
  font-size: 40px;
  line-height: 1.35;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}
.hero-link {
  font-size: 14px;
  color: #6c737e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-art {
  top: 25px;
  right: 23px;
}
.art-star {
  display: none;
}
.art-caption {
  position: absolute;
  bottom: -5px;
  right: 15px;
  font-size: 13px;
  color: #8c939d;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 22px;
}
.section-subtitle {
  font-size: 14px;
  letter-spacing: 0;
}
.section-status {
  font-size: 13px;
  color: #858c97;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.section-status i,
.ticker-note i {
  display: inline-block;
  background: #7f8792;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.asset-meta {
  font-size: 13px;
}
.price {
  font-family: var(--font-family);
}
.index-card {
  padding: 21px;
}
.card-note {
  font-size: 13px;
  color: #8b929c;
}
.legend-row small {
  font-size: 13px;
  color: #8b929c;
}
.consensus-top {
  font-size: 14px;
}
.legend-label {
  font-size: 14px;
}
.pill {
  font-size: 13px;
}
.card-cta {
  font-size: 14px;
}
.sentiment-track > i {
  display: block;
  height: 100%;
  background: var(--red);
}
.sentiment-labels {
  font-size: 13px;
}
.stock-card .price-row {
  margin: 22px 0 11px;
}
.stock-price {
  display: block;
  margin: 0;
  font-family: var(--font-family);
  font-size: 20px;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.stock-card .price-change {
  font-size: 13px;
  margin: 0;
}
.stock-footer {
  font-size: 13px;
}
.card-arrow {
  color: #a1a7af;
  opacity: 0;
  transition: opacity 0.2s;
}
.stock-card:hover .card-arrow {
  opacity: 1;
}
.split-card .asset-meta {
  display: none;
}
.tabs .tab {
  font-size: 14px;
  padding: 7px 13px;
}
.post-body {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.9;
}
.post-author-info {
  font-size: 14px;
}
.post-time {
  font-size: 13px;
}
.post-tag {
  font-size: 13px;
}
.post-type {
  font-size: 13px;
  color: #9ea4ac;
  margin-right: auto;
}
.post-actions {
  margin-left: auto;
}
.post-action {
  font-size: 14px;
  min-height: 28px;
  gap: 6px;
}
.post-action svg {
  width: 15px;
  height: 15px;
}
.post-title {
  font-size: 19px;
}
.post-detail h3 {
  font-size: 25px;
  line-height: 1.6;
  letter-spacing: -0.7px;
  margin: 22px 0;
}
.post-full-body {
  font-size: 17px;
  line-height: 2;
  color: #5f666f;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.post-detail .post-author {
  flex-wrap: wrap;
  font-size: 15px;
}
.challenge-progress {
  height: 3px;
  background: #41464d;
  margin-top: 17px;
  border-radius: 2px;
  overflow: hidden;
}
.challenge-progress > span {
  display: block;
  height: 100%;
  background: var(--lime);
  transition: width 0.3s;
}
.challenge-status {
  font-size: 13px;
  margin: 7px 0 0;
  text-align: right;
  color: #9fa5ad;
}
.challenge-status strong {
  color: #d7dae0;
}
.challenge-step-value {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.challenge-copy {
  font-size: 14px;
}
.sidebar-title {
  font-size: 16px;
}
.leader-name {
  font-size: 14px;
}
.leader-meta {
  font-size: 13px;
}
.leader-avatar {
  width: 28px;
  height: 28px;
}
.leader-row {
  gap: 8px;
}
.leader-streak {
  font-size: 13px;
}
.sidebar-card .card-note {
  font-size: 13px;
}
.text-link {
  font-size: 14px;
}
.checkpoint {
  background: transparent;
  text-align: left;
  width: 100%;
}
.checkpoint-title {
  font-size: 14px;
}
.checkpoint-meta {
  font-size: 13px;
  line-height: 1.7;
}
.guide-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #858c97;
  margin: 15px 0;
}
.guide-line strong {
  font-size: 13px;
  font-weight: 500;
  color: #747c88;
}
.sidebar-card .guide-list {
  font-size: 13px;
  line-height: 2.1;
}
.principle-card > .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.19em;
  margin: 0;
  color: #868d98;
  line-height: 1.6;
}
.principle-card p:not(.eyebrow) {
  font-size: 17px;
}
.home-endnote {
  margin: 34px 0 0;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #9097a0;
  border-top: 1px solid var(--line);
}
.brand-mark.small {
  width: 32px;
  height: 32px;
  font-size: 24px;
  background: #e3e6ea;
  color: #8c939d;
  border-radius: 6px;
}
.home-endnote p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}
.home-endnote strong {
  font-weight: 500;
  color: #777f8b;
}
.toolbar {
  gap: 12px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9097a0;
}
.search-field input {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  min-width: 0;
  width: 100%;
  padding: 0;
}
.search-field:focus-within {
  border-color: #888f9a;
  box-shadow: 0 0 0 2px #f2f4f6;
}
.board-sentiment {
  display: flex;
  gap: 12px;
  font-size: 14px;
  margin-top: 19px;
}
.board-sentiment .muted {
  font-size: 13px;
}
.board-description {
  font-size: 15px;
  color: #848b96;
  min-height: 42px;
  margin: 12px 0 21px;
  line-height: 1.8;
}
.board-footer {
  font-size: 13px;
}
.board-footer strong {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.empty-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #9299a2;
}
.empty-state strong {
  font-size: 17px;
  color: #717985;
  font-weight: 500;
}
.empty-state p {
  font-size: 15px;
  margin: 0;
}
.empty-state svg {
  width: 26px;
  height: 26px;
  margin-bottom: 7px;
  color: #979ea7;
}
.selection-grid .eyebrow {
  margin-bottom: 13px;
  font-size: 13px;
}
.selection-grid {
  align-items: stretch;
}
.selection-card {
  padding: 23px;
}
.selection-reason {
  margin: 15px 0 0 !important;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.selection-asset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.selection-badge {
  position: static;
  font-size: 15px;
  white-space: nowrap;
}
.selection-asset .asset-identity {
  margin-top: 0;
}
.selection-card .text-link {
  margin-top: 12px;
}
.notice {
  font-size: 14px;
  color: #7a828e;
}
.notice + .section {
  margin-top: 30px;
}
.prediction-stock {
  width: 100%;
  font: inherit;
}
.prediction-stock .asset-name {
  font-size: 16px;
}
.prediction-stock.is-chosen {
  border-color: #737b87;
  background: #f2f4f6;
}
.page-title {
  font-size: 30px;
}
.page-description {
  font-size: 16px;
}
.rank-person {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  text-align: left;
  padding: 0;
  font-size: 15px;
}
.rank-number {
  font: 19px var(--font-family);
  color: #878e99;
}
.ranking-table th {
  font-size: 13px;
}
.ranking-table td {
  font-size: 15px;
  padding: 20px 14px;
}
.ranking-table .button {
  white-space: nowrap;
  font-size: 13px;
}
.ranking-note {
  font-size: 13px;
  color: #9097a0;
  line-height: 1.9;
  margin-top: 16px;
}
.table-scroll + .notice {
  margin-top: 15px;
}
.profile-banner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.profile-banner .button {
  margin-left: auto;
}
.profile-bio h1 {
  font-size: 27px;
  margin: 0 0 3px;
}
.profile-bio .eyebrow {
  font-size: 13px;
  margin: 0 0 3px;
}
.profile-bio p:not(.eyebrow) {
  font-size: 14px;
  color: #8a919c;
  margin: 0;
}
.stat-value {
  display: block;
}
.stat-label {
  display: block;
}
.stats-grid {
  margin: 16px 0;
}
.profile-avatar {
  flex-shrink: 0;
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-top .asset-logo {
  width: 44px;
  height: 44px;
  font-size: 19px;
}
.detail-top .asset-name {
  font-size: 23px;
}
.detail-overview {
  padding: 25px 0;
}
.detail-price {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}
.detail-price .price {
  font-size: 36px;
}
.detail-price .button {
  margin-top: 16px;
}
.detail-price .price-change {
  margin: 6px 0;
}
.detail-consensus {
  padding-left: 25px;
  border-left: 1px solid var(--line);
}
.detail-consensus .consensus {
  border: 0;
  padding-top: 0;
}
.detail-consensus .donut {
  width: 115px;
  height: 115px;
}
.detail-consensus .donut:before {
  inset: 13px;
}
.detail-consensus .donut-center strong {
  font-size: 27px;
}
.detail-leaders {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.detail-leaders .section-title {
  font-size: 18px;
}
.detail-leaders .section-subtitle {
  font-size: 13px;
  display: block;
  width: 100%;
  margin-top: -5px;
}
.top-five {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.top-five-row {
  display: grid;
  grid-template-columns: 18px 1.2fr 1.4fr 55px 65px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.top-five-row:last-child {
  border: 0;
}
.top-five-row strong {
  font-size: 14px;
  font-weight: 600;
}
.top-five-row .muted {
  font-size: 13px;
}
.viewpoints {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.viewpoint h3 {
  font-size: 17px;
  margin: 0 0 12px;
}
.viewpoint p {
  font-size: 15px;
  line-height: 1.9;
  color: #828994;
  margin-bottom: 15px;
}
.research-prompt {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: #f2f4f6;
  border: 1px solid #e3e6ec;
  border-radius: 6px;
}
.research-prompt > svg {
  width: 26px;
  height: 26px;
  color: #7d8591;
}
.research-prompt strong {
  font-size: 16px;
  font-weight: 600;
}
.research-prompt p {
  font-size: 14px;
  color: #838a95;
  margin: 7px 0 0;
}
.research-prompt > .text-link {
  margin-left: auto;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #8c939d;
  margin-bottom: 15px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.footer-brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.footer-brand span {
  color: #8c939d;
}
.footer-motto {
  color: #989fa8;
  font-size: 13px;
}
.footer-inner > div {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
  color: #969da6;
}
.footer-inner button {
  background: transparent;
  padding: 0;
  color: #878e99;
  font-size: 13px;
}
.modal-open {
  overflow: hidden;
}
.modal {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
.modal-wide {
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
}
.modal-title {
  font-size: 21px;
}
.modal-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.modal-body {
  font-size: 16px;
  line-height: 1.9;
}
.modal-body > .notice {
  margin: 18px 0;
}
.modal-footer {
  gap: 10px;
}
.modal-footer .button {
  font-size: 15px;
}
.prediction-asset {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.choice-info {
  font-size: 16px;
  color: #626973;
  line-height: 1.9;
  margin-bottom: 22px;
}
.choice-info .muted {
  font-size: 14px;
}
.direction-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.direction-option > span {
  font-size: 33px;
}
.direction-option > strong {
  font-size: 19px;
}
.direction-option > small {
  font-size: 13px;
  opacity: 0.7;
}
.direction-option.up {
  color: var(--red);
}
.direction-option.down {
  color: var(--blue);
}
.direction-option.up.is-selected {
  background: #fff1ef;
  border-color: var(--red);
}
.direction-option.down.is-selected {
  background: #eef3fd;
  border-color: var(--blue);
}
.form-field {
  display: block;
  margin-top: 20px;
}
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 600;
}
.field-label .muted {
  font-size: 13px;
  font-weight: 400;
}
.input,
.textarea {
  width: 100%;
  font-size: 16px;
  line-height: 1.8;
  padding: 11px 13px;
  resize: vertical;
  min-width: 0;
}
.field-hint {
  display: block;
  font-size: 13px;
  color: #9299a2;
  margin-top: 6px;
}
.form-error {
  min-height: 18px;
  font-size: 14px;
  color: var(--red);
}
.info-content {
  font-size: 16px;
  line-height: 1.95;
  color: #6e7681;
}
.info-lead {
  font-size: 25px;
  color: var(--forest);
  line-height: 1.6;
  margin: 0 0 24px;
}
.info-feature {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}
.info-feature > b {
  color: #979ea7;
  font-family: var(--font-family);
  font-size: 22px;
}
.info-feature strong {
  font-size: 16px;
  color: #50565e;
}
.info-feature p {
  font-size: 15px;
  margin: 3px 0;
}
.rules-list {
  padding-left: 20px;
}
.rules-list li {
  margin-bottom: 20px;
  padding-left: 5px;
}
.rules-list strong {
  font-size: 17px;
  color: #4d535b;
}
.rules-list p {
  margin: 7px 0;
  font-size: 15px;
}
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 10px 0 22px;
}
.notification-item p {
  font-size: 15px;
  color: #8c939d;
}
.global-search {
  min-height: 46px;
}
.search-label {
  margin-top: 23px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.search-result > span {
  margin-left: auto;
  font-family: var(--font-family);
  color: #737b87;
}
.search-result > svg {
  color: #9ca2aa;
}
.comments-section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.comments-section > h3 {
  font-size: 17px;
  font-weight: 600;
}
.comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.comment strong {
  font-size: 15px;
}
.comment p {
  font-size: 15px;
  line-height: 1.9;
  margin: 7px 0 0;
  color: #777f8b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment > div {
  min-width: 0;
}
.person-profile {
  text-align: center;
  padding: 12px;
}
.person-profile .profile-avatar {
  margin: auto;
}
.person-profile h3 {
  font-size: 24px;
  margin: 12px 0;
}
.person-profile p {
  font-size: 16px;
  color: #848b96;
}
.person-stats {
  grid-template-columns: repeat(3, 1fr);
}
.person-stats .stat-card {
  padding: 15px 6px;
}
.danger {
  color: var(--red);
}
.button-outline.is-active {
  background: #e7f3f0;
  color: var(--green);
  border-color: #b0b5bc;
}
.button-outline.is-active svg {
  fill: #dcdfe5;
}
.main-content:focus {
  outline: none;
}
.predict-selection-target {
  scroll-margin-top: 92px;
}
.footer-inner .footer-brand {
  font-size: 19px;
  color: #5d646d;
}
@media (max-width: 520px) {
  .hero-art {
    right: 0 !important;
  }
}
.toast {
  max-width: calc(100vw - 32px);
  font-size: 15px;
  text-align: center;
  line-height: 1.6;
}
@media (min-width: 761px) and (max-width: 1190px) {
  .hero-art {
    width: 260px;
    right: 4px;
    transform: scale(0.74);
    transform-origin: right center;
  }
}
@media (min-width: 1450px) {
  .hero {
    min-height: 305px;
  }
  .hero h1 {
    font-size: 42px;
  }
}
@media (max-width: 1120px) {
  .hero-art {
    right: -12px;
    transform: scale(0.83);
    transform-origin: right center;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero-link {
    display: none;
  }
  .header-inner {
    gap: 34px;
  }
  .header-actions {
    gap: 10px;
  }
  .profile-label {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .stock-card .asset-name {
    font-size: 15px;
  }
  .stock-card {
    padding: 14px;
  }
  .stock-card .price-row {
    gap: 5px;
    flex-wrap: wrap;
  }
  .stock-price {
    font-size: 19px;
  }
  .hero .eyebrow {
    font-size: 13px;
  }
  .section-subtitle {
    font-size: 13px;
  }
}
@media (max-width: 950px) {
  .header-inner {
    gap: 25px;
  }
  .header-actions {
    gap: 8px;
  }
  .profile-label {
    display: none;
  }
  .profile-button .avatar {
    width: 22px;
    height: 22px;
  }
  .nav {
    gap: 24px;
  }
  .profile-button {
    padding: 8px;
  }
  .hero-art {
    right: 20px;
    transform: scale(0.9);
  }
  .hero h1 {
    font-size: 38px;
  }
}
@media (max-width: 760px) {
  body {
    min-width: 320px;
  }
  .demo-inner > span {
    gap: 0;
  }
  .demo-message {
    display: none;
  }
  .demo-inner {
    padding: 5px 20px;
  }
  .header-inner {
    padding: 15px 20px 0;
    min-height: unset;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  .header-actions {
    margin-left: auto;
    gap: 12px;
  }
  .brand-name {
    font-size: 23px;
  }
  .brand-tag {
    font-size: 13px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 29px;
  }
  .nav {
    width: 100%;
    order: 3;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 0;
    overflow: visible;
  }
  .nav-link {
    padding: 12px 7px;
    font-size: 15px;
  }
  .header-actions .icon-button {
    width: 25px;
  }
  .ticker-inner {
    padding: 9px 20px;
    justify-content: flex-start;
    overflow: auto;
    gap: 24px;
  }
  .ticker-note {
    display: none;
  }
  .ticker-item {
    font-size: 13px;
    gap: 6px;
  }
  .ticker-item strong {
    font-size: 13px;
  }
  .ticker-item:last-of-type {
    display: none;
  }
  .app-shell {
    padding: 22px 20px 32px;
    display: block;
  }
  .sidebar {
    display: none;
  }
  .hero {
    padding: 27px 24px;
    min-height: 285px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-art {
    transform: scale(0.75);
    right: 0;
    top: 25px;
  }
  .hero .eyebrow {
    font-size: 13px;
    max-width: 220px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 14px;
  }
  .hero-actions {
    margin-top: 18px;
  }
  .hero-actions .button {
    font-size: 13px;
    padding: 10px 12px;
    gap: 12px;
  }
  .art-caption {
    display: none;
  }
  .section-title {
    font-size: 20px;
    gap: 7px;
  }
  .section-subtitle {
    font-size: 13px;
  }
  .section-heading > .text-link {
    font-size: 13px;
  }
  .section-status {
    font-size: 13px;
  }
  .index-grid {
    gap: 12px;
  }
  .index-card {
    padding: 17px;
  }
  .index-card .asset-name {
    font-size: 16px;
  }
  .index-card .asset-logo {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .index-card .price {
    font-size: 29px;
  }
  .index-card .sparkline {
    width: 60px;
  }
  .index-card .price-row {
    gap: 5px;
  }
  .index-card .donut {
    width: 75px;
    height: 75px;
  }
  .index-card .donut:before {
    inset: 8px;
  }
  .index-card .donut-center strong {
    font-size: 20px;
  }
  .index-card .consensus-body {
    gap: 12px;
  }
  .legend-value {
    font-size: 22px;
  }
  .legend-row small {
    font-size: 13px;
  }
  .legend-label {
    font-size: 13px;
  }
  .index-card .card-note {
    font-size: 13px;
  }
  .index-card .card-cta {
    font-size: 13px;
  }
  .split-grid {
    gap: 9px;
  }
  .split-card {
    padding: 12px;
  }
  .stock-grid {
    gap: 11px;
  }
  .stock-card {
    padding: 15px;
  }
  .stock-card .stock-price {
    font-size: 20px;
  }
  .post-card {
    padding: 19px;
  }
  .post-title {
    font-size: 18px;
  }
  .post-author-info {
    font-size: 13px;
  }
  .post-body {
    font-size: 15px;
  }
  .toolbar {
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .toolbar .tabs {
    flex-shrink: 0;
  }
  .board-toolbar .search-field {
    order: 3;
    flex-basis: 100%;
  }
  .board-toolbar > .button {
    margin-left: auto;
  }
  .board-grid {
    gap: 12px;
  }
  .board-card {
    padding: 18px;
  }
  .board-description {
    font-size: 14px;
  }
  .profile-banner {
    gap: 12px;
    padding: 22px 18px;
  }
  .profile-banner .button {
    font-size: 13px;
    padding: 7px;
  }
  .profile-bio h1 {
    font-size: 24px;
  }
  .profile-bio p:not(.eyebrow) {
    font-size: 13px;
  }
  .profile-avatar {
    width: 45px;
    height: 45px;
  }
  .profile-banner .button svg {
    display: none;
  }
  .selection-card {
    padding: 19px;
  }
  .selection-card .asset-name {
    font-size: 16px;
  }
  .selection-reason {
    font-size: 14px !important;
  }
  .detail-overview {
    gap: 20px;
  }
  .detail-price .price {
    font-size: 32px;
  }
  .detail-consensus .donut {
    width: 95px;
    height: 95px;
  }
  .detail-consensus .donut:before {
    inset: 10px;
  }
  .top-five-row {
    grid-template-columns: 15px 1fr 55px 65px;
    padding: 12px 10px;
    gap: 8px;
  }
  .top-five-row > .muted:first-of-type {
    display: none;
  }
  .viewpoint {
    padding: 20px;
  }
  .research-prompt {
    padding: 20px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .research-prompt > .text-link {
    margin-left: 40px;
  }
  .research-prompt > div {
    flex: 1;
  }
  .research-prompt strong {
    font-size: 15px;
  }
  .footer-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-inner > div {
    margin-left: 0;
    flex-basis: 100%;
    gap: 20px;
    font-size: 13px;
  }
  .footer-inner button {
    font-size: 13px;
  }
  .footer-motto {
    font-size: 13px;
  }
  .modal {
    max-height: calc(100dvh - 32px);
  }
  .modal-body {
    padding: 20px;
  }
  .modal-title {
    font-size: 19px;
  }
  .page-title {
    font-size: 29px;
  }
  .ranking-table {
    min-width: 680px;
  }
  .table-scroll {
    border-radius: 6px;
  }
  .stats-grid {
    gap: 9px;
  }
  .stat-card {
    padding: 18px 8px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-label {
    font-size: 13px;
  }
}
@media (max-width: 520px) {
  .hero {
    min-height: 300px;
  }
  .hero h1 {
    font-size: 33px;
  }
  .hero-art {
    right: -35px;
    top: 35px;
    transform: scale(0.55);
    opacity: 0.92;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-copy > p:not(.eyebrow) {
    max-width: 210px;
    font-size: 13px;
  }
  .hero-actions {
    position: relative;
    z-index: 5;
  }
  .hero .eyebrow {
    font-size: 13px;
    letter-spacing: 0.13em;
    max-width: none;
    margin-bottom: 20px;
  }
  .hero-art .orbit {
    opacity: 0.7;
  }
  .index-grid {
    grid-template-columns: 1fr;
  }
  .index-card .price {
    font-size: 33px;
  }
  .index-card .sparkline {
    width: 100px;
  }
  .index-card .donut {
    width: 96px;
    height: 96px;
  }
  .index-card .donut:before {
    inset: 11px;
  }
  .index-card .donut-center strong {
    font-size: 25px;
  }
  .index-card .consensus-body {
    gap: 24px;
    padding-top: 18px;
  }
  .index-card .legend-value {
    font-size: 26px;
  }
  .index-card .legend-label {
    font-size: 15px;
  }
  .index-card .legend-row small {
    font-size: 13px;
  }
  .index-card .card-note {
    font-size: 13px;
  }
  .index-card .card-cta {
    font-size: 14px;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .split-card {
    padding: 16px;
  }
  .split-card .asset-name {
    font-size: 17px;
  }
  .split-card .index-top {
    margin-bottom: 2px;
  }
  .sentiment-labels {
    margin-top: 14px;
    font-size: 14px;
  }
  .stock-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stock-card .asset-name {
    font-size: 15px;
  }
  .stock-card .asset-logo {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .stock-card .asset-identity {
    gap: 8px;
  }
  .stock-card .stock-price {
    font-size: 19px;
  }
  .stock-card .price-row {
    gap: 4px;
  }
  .stock-card .price-change {
    font-size: 13px;
  }
  .stock-footer {
    font-size: 13px;
  }
  .stock-footer span:last-child {
    display: none;
  }
  .section-subtitle {
    display: none;
  }
  .section-status {
    font-size: 13px;
  }
  .section-heading {
    gap: 7px;
  }
  .section-heading > .text-link {
    font-size: 13px;
  }
  .board-grid,
  .selection-grid,
  .viewpoints {
    grid-template-columns: 1fr;
  }
  .selection-card {
    min-height: 145px;
  }
  .board-card {
    padding: 20px;
  }
  .board-card .asset-name {
    font-size: 18px;
  }
  .board-description {
    min-height: 0;
  }
  .board-footer {
    margin-top: 22px;
  }
  .page-description {
    font-size: 15px;
  }
  .page-title {
    font-size: 27px;
  }
  .notice {
    font-size: 13px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-banner {
    flex-wrap: wrap;
  }
  .profile-banner > .button {
    margin-left: 57px;
  }
  .profile-bio {
    flex: 1;
  }
  .detail-card {
    padding: 20px;
  }
  .detail-overview {
    grid-template-columns: 1fr;
    display: grid;
  }
  .detail-price {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }
  .detail-price .button {
    width: 100%;
  }
  .detail-consensus {
    border-left: 0;
    padding-left: 0;
  }
  .detail-consensus .donut {
    width: 110px;
    height: 110px;
  }
  .detail-consensus .consensus-body {
    gap: 24px;
  }
  .detail-top .asset-name {
    font-size: 20px;
  }
  .top-five-row {
    grid-template-columns: 12px 1fr 46px 55px;
    gap: 5px;
    font-size: 13px;
  }
  .top-five-row strong {
    font-size: 13px;
  }
  .top-five-row .muted {
    font-size: 13px;
  }
  .detail-leaders .section-heading > .pill {
    display: none;
  }
  .detail-leaders .section-title {
    font-size: 17px;
  }
  .detail-leaders .section-subtitle {
    display: none;
  }
  .research-prompt > .text-link {
    margin-left: 0;
  }
  .research-prompt > svg {
    display: none;
  }
  .post-author-info {
    flex-wrap: wrap;
    gap: 4px;
  }
  .post-time {
    font-size: 13px;
  }
  .post-title {
    font-size: 17px;
  }
  .modal-backdrop {
    padding: 16px;
  }
  .modal-footer .button {
    font-size: 14px;
    padding: 10px 12px;
  }
  .modal-title {
    font-size: 19px;
  }
  .direction-option {
    padding: 15px 9px;
  }
  .search-result .asset-name {
    font-size: 16px;
  }
  .search-result > span {
    font-size: 14px;
  }
  .search-result > .asset-identity {
    gap: 8px;
  }
  .search-result .asset-logo {
    width: 32px;
    height: 32px;
  }
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .home-endnote {
    padding: 22px 5px;
  }
}

/* ===== design-bridge.css ===== */
/* ==========================================================================
   주견 (Collective Intelligence) - Stitch Design System Bridge
   Source: stitch_collective_intelligence_stock_arena/collective_intelligence_financial_interface
   Palette: Surface #f8f9ff, Surface Lowest #ffffff, Primary #0059b9, Secondary #b6152e, Tertiary #0056c6
   Font: Plus Jakarta Sans / Pretendard Variable (Round, Clean Modern Grotesque)
   ========================================================================== */

:root {
  /* Stitch Color Tokens */
  --surface: #f8f9ff;
  --surface-dim: #d5dae7;
  --surface-bright: #f8f9ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #eff4ff;
  --surface-container: #e9eefb;
  --surface-container-high: #e3e8f5;
  --surface-container-highest: #dde3ef;
  --on-surface: #161c25;
  --on-surface-variant: #414754;
  --outline: #727785;
  --outline-variant: #c1c6d6;

  --primary: #0059b9;
  --primary-container: #1071e5;
  --on-primary: #ffffff;

  --secondary: #b6152e; /* Bullish UP */
  --secondary-container: #d93344;
  --secondary-fixed: #ffdad9;
  --on-secondary: #ffffff;

  --tertiary: #0056c6; /* Bearish DOWN */
  --tertiary-container: #2d6fe5;
  --tertiary-fixed: #d9e2ff;
  --on-tertiary: #ffffff;

  /* Legacy Variable Mapping to Stitch System */
  --bg: var(--surface);
  --page: var(--surface);
  --paper: var(--surface-container-lowest);
  --ink: var(--on-surface);
  --muted: var(--outline);
  --line: var(--surface-container-high);
  --green: var(--primary);
  --lime: var(--primary-container);
  --forest: #002e57;
  --red: var(--secondary-container);
  --blue: var(--tertiary-container);

  /* Radius & Curves */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Modern Fluid Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px -2px rgba(0, 89, 185, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 12px 32px -4px rgba(0, 89, 185, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-modal: 0 24px 48px -12px rgba(22, 28, 37, 0.25);

  /* Fonts */
  --font-family: "Plus Jakarta Sans", "Pretendard Variable", -apple-system,
    BlinkMacSystemFont, sans-serif;
}

/* Base resets */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-family);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

button,
input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top Demo Banner */
.demo-bar {
  height: 32px;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  background: var(--surface-container-lowest);
  color: var(--on-surface-variant);
  border-bottom: 1px solid var(--surface-container);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
}

.demo-bar > span:first-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface-container-low);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.demo-bar i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  background: var(--secondary);
  box-shadow: 0 0 6px var(--secondary);
}

.demo-bar button {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-container-low);
  transition: all 0.15s ease;
}

.demo-bar button:hover {
  background: var(--primary);
  color: #fff;
}

/* Header - Stitch Frosted Nav */
body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-container);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  box-shadow: none;
}

body > header > .brand {
  justify-self: start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 6px;
  font-size: 21px;
  font-weight: 800;
  background: transparent;
  color: #fff;
  text-align: center;
  box-shadow: none;
}

.brand > span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--on-surface);
}

.brand small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--outline);
  margin-top: -1px;
}

#topnav {
  display: flex;
  align-items: center;
  justify-self: center;
  white-space: nowrap;
  background: var(--surface-container);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: clamp(6px, 1vw, 16px);
}

#topnav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface-variant);
  padding: 7px clamp(16px, 1.75vw, 26px);
  border-radius: var(--radius-full);
  border-bottom: none;
  transition: all 0.15s ease;
}

#topnav a:hover {
  color: var(--on-surface);
}

#topnav a.active {
  color: var(--on-surface);
  background: var(--surface-container-lowest);
  font-weight: 700;
  box-shadow: none;
}

body > header .header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  margin-left: 0;
}

body > header .icon-button {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--on-surface-variant);
  font-size: 18px;
  transition: all 0.15s ease;
}

body > header .icon-button:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}

.notification {
  position: relative;
}

.notification i {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.login-button {
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  background: var(--surface-container-low);
  border: 1px solid var(--surface-container);
  border-radius: var(--radius-full);
  color: var(--primary);
  transition: all 0.15s ease;
}

.login-button:hover {
  background: var(--primary);
  color: #fff;
}

body > header .login-button {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ticker Strip */
#ticker {
  background: var(--surface-container-lowest);
  border-bottom: 1px solid var(--surface-container);
  padding: 9px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

#ticker span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#ticker b {
  color: var(--on-surface);
  font-weight: 700;
}

#ticker strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#ticker > .muted {
  font-size: 14px;
  color: var(--outline);
}

/* Layout */
.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

#app {
  min-width: 0;
}

#sidebar {
  min-width: 0;
}

/* Hero Section (Stitch Vibrant Hero Style) */
.hero {
  position: relative;
  overflow: hidden;
  background: rgba(16, 113, 229, 0.12);
  border: 1px solid var(--surface-container);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  min-height: 270px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 62%;
}

.hero .eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-container-low);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hero h1 {
  margin: 0 0 12px;
  color: var(--on-surface);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin: 0 0 22px;
}

.hero .primary {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.hero .primary:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.hero-art {
  position: absolute;
  width: 240px;
  height: 210px;
  top: 30px;
  right: 28px;
}

.hero-art .orbit {
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--outline-variant);
  border-radius: 50%;
}

.hero-art .spark {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--primary);
  font-size: 26px;
}

.hero-art .art-card {
  width: 100px;
  height: 120px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-art .art-card.up {
  position: absolute;
  left: 20px;
  top: 35px;
  background: var(--surface-container-lowest);
  color: var(--secondary-container);
  transform: rotate(-10deg);
  border: 1.5px solid var(--secondary-fixed);
}

.hero-art .art-card.down {
  position: absolute;
  left: 105px;
  top: 65px;
  background: var(--surface-container-lowest);
  color: var(--tertiary-container);
  transform: rotate(12deg);
  border: 1.5px solid var(--tertiary-fixed);
}

.hero-art .art-card strong {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.hero-art .art-card small {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

/* Cards & Surfaces */
.card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--surface-container);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: var(--outline-variant);
}

/* Primary / Secondary Buttons */
.primary,
.secondary {
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.primary {
  background: var(--primary);
  color: #fff;
}

.primary:hover {
  background: var(--primary-container);
  transform: translateY(-1px);
}

.secondary {
  background: var(--surface-container-low);
  color: var(--on-surface);
  border: 1px solid var(--surface-container);
}

.secondary:hover {
  background: var(--surface-container);
}

.pill {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-full);
  padding: 3px 9px;
  background: var(--surface-container);
  color: var(--on-surface-variant);
}

.pill.blue {
  background: var(--tertiary-fixed);
  color: var(--tertiary);
}

.pill.red {
  background: var(--secondary-fixed);
  color: var(--secondary);
}

/* Section Headings */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 16px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.section-head h2 small {
  font-size: 15px;
  font-weight: 500;
  color: var(--outline);
}

.text-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.text-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Index & Stock Cards
   -------------------------------------------------------------------------- */
.index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.index-card {
  padding: 24px;
}

.asset-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  box-shadow: none;
}

.asset-line b {
  font-size: 19px;
  font-weight: 700;
  color: var(--on-surface);
}

.asset-line small {
  font-size: 14px;
  color: var(--outline);
  display: block;
  margin-top: 2px;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 16px;
}

.price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--on-surface);
}

.change {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-left: 8px;
}

.up-text {
  color: var(--secondary-container);
}

.down-text {
  color: var(--tertiary-container);
}

.card-action {
  width: 100%;
  min-height: 40px;
  margin-top: 16px;
  border: 1px solid var(--surface-container);
  background: var(--surface-container-low);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-action:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Stock Grid */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stock-tile {
  padding: 20px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--surface-container);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stock-tile:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.stock-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
}

.stock-bottom strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
}

.stock-note {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--outline);
  margin-top: 10px;
}

/* Tabs */
.tabs {
  display: inline-flex;
  background: var(--surface-container);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 2px;
  margin-bottom: 16px;
}

.tab {
  padding: 7px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--on-surface-variant);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab:hover {
  color: var(--on-surface);
}

.tab.active {
  background: var(--surface-container-lowest);
  color: var(--on-surface);
  font-weight: 700;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Sentiment Donut Gauge (Stitch Style)
   -------------------------------------------------------------------------- */
.sentiment {
  min-width: 0;
}

.sentiment-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 14px;
}

.sentiment-body {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sentiment .donut {
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* The inner div supplies the center; hide the legacy layer above its text. */
.sentiment .donut::before {
  display: none;
}

.sentiment .donut > div {
  width: 86px;
  height: 86px;
  background: var(--surface-container-lowest);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.sentiment .donut strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.1;
}

.sentiment .donut small {
  font-size: 13px;
  color: var(--outline);
  margin-top: 2px;
}

.sentiment-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.sentiment-legend > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.sentiment-legend strong {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sentiment-note {
  font-size: 14px;
  color: var(--outline);
  margin-top: 12px;
  line-height: 1.5;
}

/* Divided 50:50 Arena */
.divided-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.divided-card {
  padding: 20px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--surface-container);
  border-radius: var(--radius);
  display: block;
  transition: all 0.2s ease;
}

.divided-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.divided-label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 8px;
}

.opinion-bar {
  height: 6px;
  background: var(--tertiary-container);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.opinion-bar i {
  display: block;
  height: 100%;
  background: var(--secondary-container);
  border-radius: var(--radius-full);
}

/* Sidebar */
.side-card {
  padding: 24px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--surface-container);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.side-card.dark {
  background: #0f7a66;
  color: #fff;
  border: none;
  box-shadow: none;
}

.side-card.dark .eyebrow {
  color: #e3e6ea;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.side-card.dark h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin: 8px 0 12px;
}

.side-card.dark p {
  color: #f2f4f6;
  font-size: 15px;
  line-height: 1.6;
}

.slot-row {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-card.dark .primary {
  background: #fff;
  color: var(--primary);
  width: 100%;
  margin-top: 16px;
  font-weight: 700;
}

.rank-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.rank-mini + .rank-mini {
  border-top: 1px solid var(--surface-container);
}

.rank-no {
  font-size: 17px;
  font-weight: 700;
  color: var(--outline);
  width: 20px;
}

.rank-mini em {
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface-container-low);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

/* Discussion Feed */
.feed-card {
  padding: 22px 24px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.feed-card:hover {
  background: var(--surface-container-low);
}

.feed-card + .feed-card {
  border-top: 1px solid var(--surface-container);
}

.author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-container-low);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.feed-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 10px 0 6px;
  letter-spacing: -0.02em;
}

.feed-card p {
  font-size: 16px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--outline);
}

.post-meta .tag {
  background: var(--surface-container);
  color: var(--on-surface-variant);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Leaderboard */
.leader-list {
  border: 1px solid var(--surface-container);
  border-radius: var(--radius);
  overflow: hidden;
}

.leader-row {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(110px, 0.9fr) minmax(130px, 1.5fr) 70px 75px 60px;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 14px 18px;
  background: var(--surface-container-lowest);
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.leader-row + .leader-row {
  border-top: 1px solid var(--surface-container);
}

.leader-row:hover:not(:disabled) {
  background: var(--surface-container-low);
}

.leader-rank {
  color: var(--outline);
  font-weight: 700;
  font-size: 17px;
}

.leader-name {
  font-weight: 700;
  color: var(--on-surface);
}

.leader-brief {
  color: var(--on-surface-variant);
  font-size: 15px;
}

.leader-streak {
  color: var(--primary);
  background: var(--surface-container-low);
  border-radius: var(--radius-full);
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.leader-direction {
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

/* Modals & Inputs */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 500px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-modal);
  background: var(--surface-container-lowest);
}

dialog::backdrop {
  background: rgba(22, 28, 37, 0.45);
  backdrop-filter: blur(8px);
}

.modal-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.modal-head button {
  font-size: 24px;
  color: var(--outline);
}

.modal-body {
  padding: 24px;
}

.form-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 16px 0 8px;
  display: block;
}

.field {
  width: 100%;
  border: 1px solid var(--surface-container-high);
  background: var(--surface-container-low);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 17px;
  color: var(--on-surface);
  transition: all 0.15s ease;
}

.field:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface-container-lowest);
  box-shadow: 0 0 0 3px rgba(0, 89, 185, 0.15);
}

.direction-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.dir {
  border: 1.5px solid var(--surface-container-high);
  background: var(--surface-container-lowest);
  border-radius: var(--radius);
  padding: 22px 16px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dir:hover {
  transform: translateY(-1px);
}

.dir.chosen.UP {
  border-color: var(--secondary);
  background: var(--secondary-fixed);
  color: var(--secondary);
}

.dir.chosen.DOWN {
  border-color: var(--tertiary);
  background: var(--tertiary-fixed);
  color: var(--tertiary);
}

/* Toast */
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: rgba(22, 28, 37, 0.94);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.25s ease;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* The principle card sets its old tint inline in app.js */
.side-card[style*="#f0f3e9"] {
  background: var(--surface-container-low) !important;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  body > header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 20px 16px 90px;
  }

  aside#sidebar {
    display: none;
  }

  #topnav {
    display: none;
  }

  #mobileNav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--surface-container);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 100;
  }

  #mobileNav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--outline);
    gap: 3px;
  }

  #mobileNav a.active {
    color: var(--primary);
  }

  #mobileNav a span {
    font-size: 21px;
  }

  .ticker {
    scrollbar-width: none;
  }

  .ticker::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 650px) {
  h1,
  h2,
  h3 {
    word-break: keep-all;
  }

  .index-grid,
  .divided-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 0;
    padding: 28px 24px;
  }

  .hero > div:first-child {
    max-width: 100%;
  }

  .hero-art {
    display: none;
  }

  .login-button {
    padding: 7px 12px;
    font-size: 15px;
    white-space: nowrap;
  }

  .leader-row {
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    gap: 6px 8px;
  }

  .leader-brief {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* ===== community.css ===== */
/* Community spaces share the existing Stitch palette without changing the
   prediction screens, global header, or weekly ranking components. */
.cm-workspace,
.cm-workspace > *,
.cm-post-list,
.cm-post-card,
.cm-post-top,
.cm-featured-card,
.cm-article,
.cm-form-row {
  min-width: 0;
}

.cm-workspace [hidden],
.cm-composer [hidden],
.cm-article [hidden] {
  display: none !important;
}

.cm-nav {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 0 0 14px;
  padding: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
}

.cm-nav::-webkit-scrollbar {
  display: none;
}

.cm-nav a {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--on-surface-variant, #40444b);
  font-size: 17px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.cm-nav a:hover {
  background: var(--surface, #f7f8fa);
}

.cm-nav a.active,
.cm-nav a[aria-current="page"] {
  color: var(--primary, #0f7a66);
  background: var(--surface-container-low, #e7f3f0);
  font-weight: 800;
}

.cm-quicklinks,
.cm-entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
}

.cm-home-entry {
  margin: 18px 0 26px;
}

.cm-home-entry .cm-entry-links {
  margin-bottom: 0;
}

.cm-quicklinks a,
.cm-entry-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
  color: var(--on-surface-variant, #40444b);
  font-size: 16px;
  font-weight: 650;
}

.cm-quicklinks a:hover,
.cm-entry-links a:hover,
.cm-quicklinks a.active,
.cm-entry-links a.active,
.cm-quicklinks a[aria-current="page"],
.cm-entry-links a[aria-current="page"] {
  border-color: #e3e6ea;
  color: var(--primary, #0f7a66);
  background: var(--surface-container-low, #e7f3f0);
}

.cm-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0;
}

.cm-page-header > div {
  min-width: 0;
}

.cm-page-header h1,
.cm-page-header h2 {
  margin: 0 0 9px;
  color: var(--on-surface, #111418);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.035em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cm-page-header p {
  margin: 0;
  color: var(--on-surface-variant, #40444b);
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cm-page-header > .primary,
.cm-page-header > .secondary {
  flex-shrink: 0;
}

.cm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  background: var(--surface-container-lowest, #fff);
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
}

.cm-toolbar > * {
  min-width: 0;
}

.cm-search {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 44px;
  width: auto;
}

.cm-toolbar select,
.cm-toolbar input,
.cm-composer input:not([type="checkbox"]):not([type="radio"]),
.cm-composer select {
  min-height: 44px;
}

.cm-toolbar label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 16px;
  color: var(--on-surface-variant, #40444b);
}

.cm-toolbar input[type="checkbox"],
.cm-asset-picker input,
.cm-composer input[type="checkbox"],
.cm-composer input[type="radio"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: var(--primary, #0f7a66);
}

.cm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 18px;
}

.cm-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--surface-container, #f2f4f6);
  background: var(--surface-container-lowest, #fff);
  color: var(--on-surface-variant, #40444b);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.cm-chip:hover,
.cm-chip.active,
.cm-chip[aria-pressed="true"] {
  border-color: #e3e6ea;
  background: var(--surface-container-low, #e7f3f0);
  color: var(--primary, #0f7a66);
}

.cm-chip.active,
.cm-chip[aria-pressed="true"] {
  font-weight: 800;
}

.cm-chips > select {
  flex: 0 1 180px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin-left: auto;
}

.cm-post-list {
  display: grid;
  gap: 12px;
}

.cm-post-card {
  padding: 22px 24px;
  background: var(--surface-container-lowest, #fff);
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.cm-post-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--on-surface-variant, #40444b);
}

.cm-post-top > a,
.cm-post-top > b,
.cm-post-top > strong,
.cm-post-top > div {
  min-width: 0;
}

.cm-post-top .avatar {
  flex-shrink: 0;
}

.cm-post-top > .cm-post-meta {
  flex: 1 1 180px;
  min-width: 0;
  margin-top: 0;
  gap: 8px;
}

.cm-post-top > h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
}

.cm-post-title {
  margin: 15px 0 8px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.55;
  color: var(--on-surface, #111418);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cm-post-title a:hover {
  color: var(--primary, #0f7a66);
}

.cm-post-excerpt {
  margin: 0;
  color: var(--on-surface-variant, #40444b);
  font-size: 17px;
  line-height: 1.85;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.cm-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 15px;
  font-size: 15px;
  color: var(--outline, #6d7580);
  line-height: 1.6;
}

.cm-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.cm-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-container-low, #e7f3f0);
  color: var(--primary, #0f7a66);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cm-tag.sample {
  color: #666e78;
  background: #e7f3f0;
}

.cm-save {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
  color: var(--outline, #6d7580);
  font-size: 15px;
  font-weight: 650;
}

.cm-save:hover,
.cm-save.saved,
.cm-save[aria-pressed="true"] {
  color: var(--primary, #0f7a66);
  border-color: #bfd6f4;
  background: var(--surface-container-low, #e7f3f0);
}

.cm-empty {
  padding: 42px 24px;
  border: 1px dashed #e3e6ea;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
  color: var(--outline, #6d7580);
  font-size: 17px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cm-empty strong,
.cm-empty h2,
.cm-empty h3 {
  display: block;
  margin: 0 0 10px;
  color: var(--on-surface, #111418);
  font-size: 20px;
  font-weight: 750;
}

.cm-empty p {
  margin: 0 0 14px;
}

.cm-spotlight {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  background: #f2f4f6;
}

.cm-spotlight > h2,
.cm-spotlight > h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--on-surface, #111418);
}

.cm-spotlight > p {
  margin: 0 0 18px;
  color: var(--on-surface-variant, #40444b);
  font-size: 16px;
  line-height: 1.8;
}

.cm-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cm-featured-card {
  padding: 20px;
  border: 1px solid rgba(207, 222, 246, 0.8);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
  box-shadow: none;
  overflow-wrap: anywhere;
}

.cm-featured-card h3,
.cm-featured-card h4 {
  margin: 10px 0;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cm-featured-card p {
  margin: 8px 0;
  color: var(--on-surface-variant, #40444b);
  font-size: 16px;
  line-height: 1.8;
}

.cm-sources,
.cm-fact,
.cm-reflection,
.cm-snapshot,
.cm-bookmark-note,
.cm-archive-card {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
  overflow-wrap: anywhere;
}

.cm-sources > h2,
.cm-sources > h3,
.cm-fact > h2,
.cm-fact > h3,
.cm-reflection > h2,
.cm-reflection > h3,
.cm-snapshot > h2,
.cm-snapshot > h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.6;
}

.cm-source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-source-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface, #f7f8fa);
  color: var(--primary, #0f7a66);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.cm-source-list a:hover {
  background: var(--surface-container-low, #f2f4f6);
}

.cm-source-list small,
.cm-source-list time {
  display: block;
  margin-top: 4px;
  color: var(--outline, #6d7580);
  font-size: 14px;
}

.cm-fact {
  background: #f7f8fa;
  border-left: 3px solid #8eafe0;
}

.cm-fact p,
.cm-reflection p,
.cm-snapshot p,
.cm-archive-card p {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.85;
}

.cm-snapshot {
  background: #f7f8fa;
}

.cm-snapshot blockquote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid #b4cdec;
  border-radius: 0 6px 6px 0;
  background: var(--surface-container-lowest, #fff);
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.cm-snapshot > small {
  display: block;
  color: var(--outline, #6d7580);
  font-size: 14px;
  line-height: 1.8;
}

.cm-archive-card > .cm-snapshot {
  margin: 0 0 16px;
  padding: 0;
  border: none;
  background: transparent;
}

.cm-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cm-snapshot-grid > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
}

.cm-snapshot-grid b,
.cm-snapshot-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 750;
}

.cm-snapshot-grid small {
  color: var(--outline, #6d7580);
  font-size: 14px;
}

.cm-reflection {
  background: #f7f8fa;
}

.cm-reflection dl {
  margin: 0;
}

.cm-reflection dt {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 750;
  color: var(--primary, #0f7a66);
}

.cm-reflection dt:first-child {
  margin-top: 0;
}

.cm-reflection dd {
  margin: 6px 0 0;
  white-space: pre-wrap;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.cm-answer {
  margin: 12px 0;
  padding: 20px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
  overflow-wrap: anywhere;
  scroll-margin-top: 90px;
}

.cm-answer.targeted {
  outline: 3px solid #bdd4f3;
  outline-offset: 3px;
}

.cm-answer.accepted {
  border-color: #bdd4f3;
  border-left: 4px solid var(--primary, #0f7a66);
  background: #f7f8fa;
}

.cm-answer p {
  margin: 14px 0;
  color: var(--on-surface-variant, #40444b);
  font-size: 17px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cm-answer .author-row,
.cm-article .author-row {
  flex-wrap: wrap;
  gap: 8px;
}

.cm-answer .author-row > *,
.cm-article .author-row > * {
  min-width: 0;
}

.cm-answer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.cm-note,
.cm-reminder {
  margin: 14px 0;
  padding: 12px 15px;
  border-radius: 6px;
  background: var(--surface-container-low, #f2f4f6);
  color: var(--on-surface-variant, #40444b);
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.cm-note p,
.cm-reminder p {
  margin: 0;
}

.cm-bookmark-note textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
}

.cm-bookmark-note :is(input, select, textarea) {
  min-width: 0;
  max-width: 100%;
}

.cm-bookmark-note label {
  margin-top: 12px;
}

.cm-bookmark-note .primary,
.cm-bookmark-note .secondary {
  margin-top: 12px;
}

.cm-article {
  padding: 28px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
  overflow-wrap: anywhere;
}

.cm-article h1 {
  margin: 20px 0 12px;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.035em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cm-article .body {
  margin: 24px 0;
  font-size: 18px;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cm-article a:not(.primary):not(.secondary):not(.avatar) {
  overflow-wrap: anywhere;
}

.cm-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
}

.cm-comment-form > * {
  min-width: 0;
}

.cm-comment-form textarea {
  grid-column: 1 / -1;
  min-height: 104px;
  width: 100%;
  resize: vertical;
}

.cm-comment-form .primary {
  align-self: end;
}

.cm-pagercount {
  margin: 12px 0;
  color: var(--outline, #6d7580);
  font-size: 15px;
}

.cm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.cm-form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cm-form-row.full,
.cm-form-grid > .cm-fieldset {
  grid-column: 1 / -1;
}

.cm-fieldset {
  min-width: 0;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface, #f7f8fa);
}

.cm-fieldset legend {
  padding: 0 6px;
  font-size: 16px;
  font-weight: 750;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cm-composer {
  min-width: 0;
}

.cm-round-settings {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface, #f7f8fa);
  overflow-wrap: anywhere;
}

.cm-round-settings h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 750;
}

.cm-round-settings p {
  margin: 10px 0 16px;
  font-size: 15px;
  line-height: 1.85;
}

.cm-round-settings button {
  min-height: 44px;
}

.cm-round-settings > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.cm-composer .form-label {
  font-size: 16px;
  line-height: 1.6;
}

.cm-composer .field {
  min-width: 0;
  max-width: 100%;
  font-size: 17px;
}

.cm-composer details {
  margin: 16px 0;
  padding: 0 14px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface, #f7f8fa);
}

.cm-composer summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--on-surface-variant, #40444b);
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.cm-composer details[open] > summary {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--surface-container, #f2f4f6);
}

.cm-composer details > .cm-asset-picker,
.cm-composer details > .cm-form-row:last-child {
  margin-bottom: 14px;
}

.cm-composer .cm-chips > label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
  font-size: 15px;
  cursor: pointer;
}

.cm-composer textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.8;
}

.cm-composer > .primary,
.cm-composer > .secondary {
  margin-top: 20px;
}

.cm-asset-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  max-height: 210px;
  margin-top: 8px;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
}

.cm-asset-picker label {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.cm-asset-picker label:hover {
  background: var(--surface-container-low, #f2f4f6);
}

.cm-asset-picker label > span {
  min-width: 0;
}

.cm-asset-picker small {
  display: block;
  color: var(--outline, #6d7580);
  font-size: 13px;
  line-height: 1.6;
}

.cm-notice-list {
  display: grid;
  gap: 10px;
}

.cm-event-list {
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
}

.cm-event-list h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 750;
}

.cm-event-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 56px;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--surface-container, #f2f4f6);
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
  overflow-wrap: anywhere;
}

.cm-event-row span {
  color: var(--outline, #6d7580);
  font-size: 15px;
}

.cm-event-row span:last-child {
  color: var(--primary, #0f7a66);
  white-space: nowrap;
}

.cm-notice-list > a,
.cm-notice-list > div,
.cm-notice-list > article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface-container-lowest, #fff);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.cm-notice-list a:hover {
  background: var(--surface-container-low, #f2f4f6);
}

.cm-workspace .primary,
.cm-workspace .secondary,
.cm-article .primary,
.cm-article .secondary,
.cm-answer-actions button,
.cm-composer button,
.cm-bookmark-note button,
.cm-comment-form button,
.cm-page-header .primary,
.cm-page-header .secondary {
  min-height: 44px;
  line-height: 1.5;
}

.cm-workspace :is(a, button, input, select, textarea):focus-visible,
.cm-nav a:focus-visible,
.cm-quicklinks a:focus-visible,
.cm-entry-links a:focus-visible,
.cm-composer :is(a, button, input, select, textarea):focus-visible,
.cm-article :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(16, 113, 229, 0.4);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .cm-nav {
    margin-bottom: 12px;
  }

  .cm-nav a {
    padding: 10px 14px;
    font-size: 16px;
  }

  .cm-page-header {
    gap: 14px;
    flex-wrap: wrap;
    margin: 22px 0 18px;
  }

  .cm-page-header h1,
  .cm-page-header h2 {
    font-size: 27px;
  }

  .cm-spotlight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cm-post-card {
    padding: 20px;
  }

  .cm-post-title {
    font-size: 19px;
  }

  .cm-post-top {
    flex-wrap: wrap;
  }

  .cm-post-top .cm-save {
    margin-left: auto;
  }

  .cm-article {
    padding: 22px;
  }

  .cm-spotlight {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .cm-quicklinks,
  .cm-entry-links {
    gap: 7px;
    margin-bottom: 20px;
  }

  .cm-quicklinks a,
  .cm-entry-links a {
    flex: 1 1 auto;
    padding: 9px 10px;
    font-size: 15px;
  }

  .cm-page-header > .primary,
  .cm-page-header > .secondary {
    width: 100%;
  }

  .cm-toolbar {
    padding: 12px;
  }

  .cm-search {
    flex-basis: 100%;
    width: 100%;
  }

  .cm-toolbar select {
    flex: 1 1 110px;
    width: auto;
  }

  .cm-chips > select {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
  }

  .cm-post-card {
    padding: 18px;
    border-radius: 6px;
  }

  .cm-post-top {
    gap: 7px;
    font-size: 14px;
  }

  .cm-post-top .cm-save {
    padding: 8px;
    font-size: 14px;
  }

  .cm-post-excerpt,
  .cm-answer p {
    font-size: 17px;
  }

  .cm-spotlight {
    padding: 18px;
    border-radius: 6px;
  }

  .cm-spotlight > h2,
  .cm-spotlight > h3 {
    font-size: 20px;
  }

  .cm-featured-card {
    padding: 16px;
  }

  .cm-snapshot-grid,
  .cm-form-grid,
  .cm-asset-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .cm-sources,
  .cm-fact,
  .cm-reflection,
  .cm-snapshot,
  .cm-bookmark-note,
  .cm-archive-card {
    padding: 16px;
  }

  .cm-article {
    padding: 20px 18px;
    border-radius: 6px;
  }

  .cm-article h1 {
    font-size: 25px;
  }

  .cm-article .body {
    font-size: 18px;
    line-height: 1.9;
  }

  .cm-answer {
    padding: 18px 16px;
  }

  .cm-comment-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .cm-comment-form .primary {
    width: 100%;
  }

  .cm-fieldset {
    padding: 12px;
  }

  .cm-event-list {
    padding: 18px 16px;
  }

  .cm-event-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
  }

  .cm-event-row span:first-child {
    grid-column: 1 / -1;
  }

  .cm-composer .field,
  .cm-composer input,
  .cm-composer textarea,
  .cm-composer select,
  .cm-bookmark-note .field,
  .cm-comment-form .field {
    font-size: 19px;
  }

  .cm-empty {
    padding: 32px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-nav a,
  .cm-chip {
    transition: none;
  }
}

/* ===== market.css ===== */
/* One-time researched market snapshot, separate from the demo prediction engine. */
.asset-logo {
  flex-shrink: 0;
}
.asset-logo.market-logo {
  position: relative;
  background: #fff;
  border: 1px solid #f2f4f6;
  box-shadow: none;
  padding: 6px;
  overflow: hidden;
}
.market-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  background: #fff;
}
.market-logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #1d5fd0;
  background: #eef3fd;
}
.market-logo.image-failed img {
  display: none;
}
.market-quote-note {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  font-size: 13px;
  line-height: 1.65;
  color: #7a828e;
  overflow-wrap: anywhere;
}
.index-card > .market-quote-note {
  margin: -8px 0 16px;
}
.stock-tile > .market-quote-note {
  margin: 5px 0 9px;
  text-align: left;
  font-size: 13px;
}
.detail-quote .market-quote-note {
  margin: 12px 0;
}
.market-quote-note a {
  color: #0f7a66;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.market-change {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#ticker .market-change {
  font-size: 15px;
  font-weight: 700;
}
.market-source-button {
  border: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f2f4f6;
  color: #6e7681;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.market-source-button:hover {
  color: #0f7a66;
  background: #f2f4f6;
}
.market-source-intro {
  color: #585f68;
  font-size: 16px;
  line-height: 1.8;
}
.market-source-intro strong {
  color: #111418;
}
.market-source-list {
  display: grid;
  gap: 0;
}
.market-source-list > section {
  padding: 17px 0;
  border-top: 1px solid #f2f4f6;
}
.market-source-list .asset-line > strong {
  margin-left: auto;
  font-size: 17px;
  white-space: nowrap;
}
.market-source-list .market-quote-note {
  margin: 8px 0 0 52px;
  font-size: 14px;
}
.market-source-list .asset-line b {
  font-size: 16px;
}
.market-source-list .small {
  margin: 8px 0 0 52px;
  line-height: 1.65;
}
@media (max-width: 520px) {
  .market-source-list .asset-line {
    gap: 9px;
  }
  .market-source-list .asset-line > strong {
    font-size: 15px;
  }
  .market-source-list .asset-line b {
    font-size: 15px;
  }
  .market-source-list .market-quote-note,
  .market-source-list .small {
    margin-left: 0;
  }
  #ticker .market-change {
    font-size: 13px;
  }
}

/* ===== crown.css ===== */
/* Crown identity and framed records. All selectors are scoped to this feature. */
.cw-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  margin: 0 0 24px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  background: #ffffff;
}
.cw-eyebrow {
  margin: 0 0 12px;
  color: #6a717c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}
.cw-hero h1 {
  margin: 0 0 12px;
  color: #111418;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.35;
  letter-spacing: -1.3px;
}
.cw-hero p {
  max-width: 470px;
  margin: 0;
  color: #5e656f;
  font-size: 16px;
  line-height: 1.85;
  word-break: keep-all;
}
.cw-hero-icon {
  display: grid;
  place-items: center;
  flex: 0 0 108px;
  width: 108px;
  height: 108px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  background: #ffffffb3;
  box-shadow: none;
}
.cw-hero-icon img,
.cw-hero-icon svg {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.cw-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.cw-nav a,
.cw-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #686f7a;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}
.cw-nav .active,
.cw-nav [aria-current="page"],
.cw-nav [aria-selected="true"] {
  color: #0f7a66;
  background: #e7f3f0;
  border-color: #e3e6ea;
}
.cw-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 24px 0 16px;
}
.cw-toolbar > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cw-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #585f68;
  font-size: 15px;
}
.cw-toolbar select {
  min-height: 38px;
  max-width: 100%;
  padding: 7px 30px 7px 12px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  color: #35393f;
  background: #fff;
  font-size: 15px;
}
.cw-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}
.cw-stat {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  background: #ffffff;
}
.cw-stat strong {
  display: block;
  color: #1e3f69;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.7px;
}
.cw-stat small,
.cw-stat span {
  display: block;
  margin-top: 4px;
  color: #6a727d;
  font-size: 14px;
}
.cw-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 16px 0 28px;
}
.cw-tier-none {
  --cw-metal: #8590a3;
  --cw-metal-dark: #526277;
  --cw-metal-light: #f0f3f8;
  --cw-metal-line: #d4dce8;
}
.cw-tier-bronze {
  --cw-metal: #bb8c6c;
  --cw-metal-dark: #795139;
  --cw-metal-light: #fbf5f0;
  --cw-metal-line: #dfc9b8;
}
.cw-tier-silver {
  --cw-metal: #a3b1c4;
  --cw-metal-dark: #4d627e;
  --cw-metal-light: #f4f7fb;
  --cw-metal-line: #c8d3e2;
}
.cw-tier-gold {
  --cw-metal: #c6a052;
  --cw-metal-dark: #846016;
  --cw-metal-light: #fffbef;
  --cw-metal-line: #e9d7a9;
}
.cw-tier-diamond {
  --cw-metal: #6cabbc;
  --cw-metal-dark: #24677d;
  --cw-metal-light: #f0fafc;
  --cw-metal-line: #bbdce5;
}
.cw-frame {
  --cw-metal: #a3b1c4;
  --cw-metal-dark: #4d627e;
  --cw-metal-light: #f4f7fb;
  --cw-metal-line: #c8d3e2;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 24px 24px 20px;
  text-align: center;
  border: 1px solid var(--cw-metal-line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 5px #fefefe,
    inset 0 0 0 6px var(--cw-metal-line),
    0 8px 22px #363a3f08;
}
.cw-frame::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 12px;
  border: 1px solid var(--cw-metal-line);
  border-radius: 6px;
  opacity: 0.65;
}
.cw-frame.cw-tier-bronze {
  --cw-metal: #bb8c6c;
  --cw-metal-dark: #795139;
  --cw-metal-light: #fbf5f0;
  --cw-metal-line: #dfc9b8;
}
.cw-frame.cw-tier-silver {
  --cw-metal: #a3b1c4;
  --cw-metal-dark: #4d627e;
  --cw-metal-light: #f4f7fb;
  --cw-metal-line: #c8d3e2;
}
.cw-frame.cw-tier-gold {
  --cw-metal: #c6a052;
  --cw-metal-dark: #846016;
  --cw-metal-light: #fffbef;
  --cw-metal-line: #e9d7a9;
}
.cw-frame.cw-tier-diamond {
  --cw-metal: #6cabbc;
  --cw-metal-dark: #24677d;
  --cw-metal-light: #f0fafc;
  --cw-metal-line: #bbdce5;
}
.cw-frame-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--cw-metal-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.cw-frame-top small {
  color: #6c737e;
  font-size: 13px;
  letter-spacing: 0;
}
.cw-portrait {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border: 1px solid var(--cw-metal-line, #e3e6ea);
  border-radius: 50%;
  color: var(--cw-metal-dark, #0f7a66);
  background: #ffffff;
  box-shadow: 0 0 0 6px var(--cw-metal-light, #f2f4f6);
  font-size: 33px;
  font-weight: 800;
}
.cw-portrait > img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.cw-frame-crown {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  right: -13px;
  bottom: -7px;
  border: 1px solid var(--cw-metal-line, #e3e6ea);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}
.cw-frame-crown img,
.cw-frame-crown svg {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.cw-frame-name {
  max-width: 100%;
  margin: 0 0 4px;
  color: #34373d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.cw-frame-name h3 {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.cw-frame-name a:hover {
  color: #0f7a66;
}
.cw-frame-division {
  color: #757d89;
  font-size: 14px;
}
.cw-frame-title {
  margin: 18px 0 8px;
  color: var(--cw-metal-dark);
  font-size: 15px;
  font-weight: 800;
}
.cw-frame-record {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  color: #393e43;
}
.cw-frame-record strong {
  color: #34373d;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 46px;
  line-height: 1.25;
  letter-spacing: -2px;
  font-weight: 800;
}
.cw-frame-record span {
  font-size: 16px;
  font-weight: 600;
}
.cw-frame-date {
  margin: 12px 0 20px;
  color: #777f8b;
  font-size: 13px;
  line-height: 1.75;
}
.cw-frame-current {
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 11px 10px;
  margin-top: auto;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  color: #666d78;
  background: #ffffffc7;
  font-size: 14px;
  line-height: 1.7;
}
.cw-frame-current b,
.cw-frame-current strong {
  color: #444950;
  font-weight: 700;
}
.cw-frame-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 16px;
}
.cw-frame-actions a,
.cw-frame-actions button {
  color: #596069;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 700;
}
.cw-frame-actions a:hover,
.cw-frame-actions button:hover {
  color: #0f7a66;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cw-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  max-width: 100%;
  min-height: 28px;
  gap: 4px;
  padding: 3px 7px 3px 4px;
  margin: 0 0 0 5px;
  border: 1px solid var(--cw-metal-line, #e3e6ea);
  border-radius: 6px;
  background: var(--cw-metal-light, #e7f3f0);
  color: var(--cw-metal-dark, #0f7a66);
  line-height: 1.1;
  cursor: pointer;
}
.cw-badge img,
.cw-badge svg {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.cw-badge-text {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.cw-badge.cw-badge-icononly {
  width: 27px;
  height: 27px;
  min-height: 27px;
  padding: 2px;
  margin-left: 4px;
  border-color: transparent;
  background: transparent;
}
.cw-badge.cw-badge-icononly img {
  width: 23px;
  height: 23px;
}
#sidebar .rank-mini .cw-badge-icononly {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin-left: 3px;
  border: 0;
  border-radius: 0;
}
#sidebar .rank-mini .cw-badge-icononly img {
  flex-basis: 14px;
  width: 14px;
  height: 14px;
}
#sidebar .rank-mini em {
  flex-shrink: 0;
  white-space: nowrap;
}
.cw-badge.cw-content {
  --cw-metal-line: #d7d6f2;
  --cw-metal-light: #f5f3fe;
  --cw-metal-dark: #66519a;
}
.cw-badge:focus-visible,
.cw-nav a:focus-visible,
.cw-nav button:focus-visible,
.cw-frame-actions a:focus-visible,
.cw-frame-actions button:focus-visible {
  outline: 3px solid #80b6f2;
  outline-offset: 3px;
}
.cw-profile-panel {
  padding: 24px;
  margin: 16px 0 24px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  background: #ffffff;
}
.cw-profile-panel > h3 {
  margin: 0 0 16px;
  color: #363a40;
  font-size: 19px;
}
.cw-profile-panel > p {
  color: #6a717c;
  font-size: 15px;
  line-height: 1.8;
}
.cw-division-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.cw-division {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  background: #f7f8fa;
}
.cw-division > h3,
.cw-division > h4 {
  margin: 0 0 12px;
  color: #535962;
  font-size: 15px;
  font-weight: 700;
}
.cw-current {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #243f61;
  font-size: 18px;
  font-weight: 700;
}
.cw-current > img {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.cw-current small {
  display: block;
  margin: 4px 0 0;
  color: #707884;
  font-size: 14px;
  font-weight: 500;
}
.cw-current .cw-badge {
  margin: 0;
}
.cw-peak {
  margin-top: 12px;
  color: #6b737e;
  font-size: 14px;
  line-height: 1.8;
}
.cw-progress {
  width: 100%;
  height: 5px;
  margin: 16px 0 8px;
  overflow: hidden;
  border-radius: 5px;
  background: #e3e6ea;
}
.cw-progress i {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: #6c9bd2;
}
.cw-history-list {
  border-top: 1px solid #f2f4f6;
}
.cw-history-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f2f4f6;
  color: #585e67;
  font-size: 15px;
  line-height: 1.75;
}
.cw-history-row small {
  color: #848c96;
  font-size: 13px;
}
.cw-history-row strong {
  color: #29476d;
  font-size: 15px;
}
.cw-history-row a {
  color: #0f7a66;
  font-size: 14px;
  font-weight: 700;
}
.cw-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.cw-rule {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  background: #ffffff;
}
.cw-rule > img {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  object-fit: contain;
}
.cw-rule h3,
.cw-rule h4 {
  color: #3e4349;
  font-size: 17px;
  margin: 0 0 8px;
}
.cw-rule p {
  margin: 0;
  color: #6e7681;
  font-size: 15px;
  line-height: 1.85;
}
.cw-empty {
  padding: 40px 24px;
  border: 1px dashed #e3e6ea;
  border-radius: 6px;
  background: #f7f8fa;
  color: #7a828e;
  font-size: 16px;
  text-align: center;
  line-height: 1.9;
}
.cw-empty strong {
  display: block;
  margin-bottom: 8px;
  color: #4e545c;
  font-size: 19px;
}
.cw-note {
  margin: 16px 0;
  color: #717984;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.cw-note strong {
  color: #525861;
}
.cw-note a {
  color: #0f7a66;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cw-preview-panel {
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  background: #f7f8fa;
}
.cw-preview-panel h3 {
  margin: 0 0 8px;
  color: #0f7a66;
  font-size: 17px;
}
.cw-preview-panel p {
  color: #6e7681;
  font-size: 15px;
  line-height: 1.8;
}
.cw-preview-panel button {
  padding: 9px 14px;
  border: 1px solid #c8d9ee;
  border-radius: 6px;
  background: #fff;
  color: #0f7a66;
  font-size: 15px;
  font-weight: 700;
}
.cw-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.cw-content-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e1dff0;
  border-radius: 6px;
  background: #fbfaff;
}
.cw-content-card h3 {
  margin: 12px 0 8px;
  color: #554877;
  font-size: 18px;
}
.cw-content-card p {
  color: #7a718b;
  font-size: 15px;
  line-height: 1.85;
}
.cw-content-card a {
  color: #65509a;
  font-size: 15px;
  font-weight: 700;
}
.cw-content-card > img {
  width: 40px;
  height: 40px;
}
.cw-content-card > div > img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
@media (min-width: 1500px) {
  .cw-gallery {
    gap: 28px;
  }
  .cw-frame {
    padding: 28px;
  }
}
@media (max-width: 760px) {
  .cw-hero {
    padding: 24px;
    gap: 16px;
    border-radius: 6px;
  }
  .cw-hero h1 {
    font-size: 31px;
  }
  .cw-hero-icon {
    flex-basis: 80px;
    width: 80px;
    height: 80px;
    border-radius: 6px;
  }
  .cw-hero-icon img,
  .cw-hero-icon svg {
    width: 60px;
    height: 60px;
  }
  .cw-summary {
    gap: 8px;
  }
  .cw-stat {
    padding: 16px 12px;
  }
  .cw-stat strong {
    font-size: 24px;
  }
  .cw-gallery {
    gap: 16px;
  }
  .cw-frame {
    padding: 24px 20px 20px;
  }
  .cw-profile-panel {
    padding: 20px;
  }
}
@media (max-width: 520px) {
  .cw-hero {
    align-items: flex-start;
    padding: 24px 20px;
  }
  .cw-hero > div:first-child {
    min-width: 0;
  }
  .cw-eyebrow {
    font-size: 13px;
    letter-spacing: 1.5px;
  }
  .cw-hero h1 {
    font-size: 29px;
    letter-spacing: -1px;
  }
  .cw-hero p {
    font-size: 15px;
  }
  .cw-hero-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 6px;
  }
  .cw-hero-icon img,
  .cw-hero-icon svg {
    width: 40px;
    height: 40px;
  }
  .cw-nav {
    gap: 4px;
    margin-bottom: 20px;
  }
  .cw-nav a,
  .cw-nav button {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 14px;
  }
  .cw-toolbar {
    gap: 12px;
    align-items: flex-start;
  }
  .cw-toolbar label {
    font-size: 14px;
  }
  .cw-toolbar select {
    max-width: 145px;
  }
  .cw-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .cw-stat {
    padding: 14px 8px;
    border-radius: 6px;
    text-align: center;
  }
  .cw-stat strong {
    font-size: 22px;
  }
  .cw-stat small,
  .cw-stat span {
    font-size: 13px;
  }
  .cw-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .cw-frame {
    padding: 24px;
  }
  .cw-frame-name {
    font-size: 21px;
  }
  .cw-frame-record strong {
    font-size: 48px;
  }
  .cw-frame-date {
    font-size: 14px;
  }
  .cw-frame-top small {
    font-size: 13px;
  }
  .cw-frame-current {
    font-size: 15px;
  }
  .cw-frame-actions a,
  .cw-frame-actions button {
    min-height: 32px;
    font-size: 15px;
  }
  .cw-profile-panel {
    padding: 20px 16px;
  }
  .cw-division-grid,
  .cw-rule-grid,
  .cw-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cw-division {
    padding: 18px;
  }
  .cw-history-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .cw-history-row > :last-child {
    grid-column: 2;
  }
  .cw-rule,
  .cw-content-card {
    padding: 20px;
  }
  .cw-note {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cw-frame,
  .cw-badge {
    transition: none;
  }
}

/* Totals, notice and dormancy (2026-11-06). Dormancy dims the crown but keeps its tier readable. */
.cw-frame-total {
  margin-top: 6px;
  color: #5d646d;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
}
.cw-last-round {
  margin: 4px 0 8px;
  color: #717984;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.cw-last-round b {
  color: #7a5a1f;
}
.cw-badge.cw-dormant img {
  filter: grayscale(0.85);
  opacity: 0.6;
}
.cw-badge.cw-dormant .cw-badge-text {
  color: #717984;
}
.cw-disclaimer {
  padding: 10px 12px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  background: #f7f8fa;
}

/* ===== calculator.css ===== */
/* Calculator — shared 주견 colors, type and card rhythm. */
.calc-page {
  color: var(--on-surface, #111418);
}
.calc-page-heading {
  margin-bottom: 24px;
}
.calc-page-heading .page-label {
  margin-bottom: 10px;
}
.calc-simple-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.calc-page-heading > p {
  margin: 10px 0 0;
  color: var(--outline, #6d7580);
  font-size: 17px;
  line-height: 1.7;
}

.calc-result {
  padding: 28px 32px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--surface-container-high, #e3e6ea);
  border-radius: var(--radius-lg, 6px);
  background: var(--surface-container-low, #f2f4f6);
  font-variant-numeric: tabular-nums;
}
.calc-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.calc-result-main {
  min-width: 0;
}
.calc-result-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--on-surface-variant, #40444b);
}
.calc-result-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--primary, #0f7a66);
}
.calc-result-value strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 42px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.calc-result-value > span {
  font-size: 20px;
  font-weight: 600;
}
.calc-result-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--surface-container-lowest, #fff);
  border-radius: 6px;
  color: var(--primary, #0f7a66);
  box-shadow: var(--shadow-sm);
}
.calc-result-icon svg {
  width: 32px;
  height: 32px;
}
.calc-result-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 24px;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid rgba(0, 89, 185, 0.1);
}
.calc-result-details > div {
  min-width: 0;
}
.calc-result-details > div > span {
  display: block;
  margin-bottom: 6px;
  color: var(--outline, #6d7580);
  font-size: 15px;
}
.calc-result-details > div > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}
.calc-result-details strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.calc-result-details small {
  font-size: 16px;
  color: var(--on-surface-variant, #40444b);
}
.calc-result-note {
  margin: 18px 0 0;
  color: var(--outline, #6d7580);
  font-size: 14px;
  line-height: 1.6;
}

.calc-simple-wrap.card,
.calc-saved-card.card {
  padding: 28px 32px;
  border: 1px solid var(--surface-container-high, #e3e6ea);
  border-radius: var(--radius-lg, 6px);
  background: var(--surface-container-lowest, #fff);
  box-shadow: var(--shadow-sm);
}
.calc-simple-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.calc-simple-top h2,
.calc-saved-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.calc-simple-top h2 > span,
.calc-saved-heading h2 > span {
  margin-left: 6px;
  color: var(--outline, #6d7580);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.calc-simple-top p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--outline, #6d7580);
  line-height: 1.7;
}
.calc-reset-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  color: var(--on-surface-variant, #40444b);
  background: var(--surface, #f7f8fa);
  font-size: 15px;
  font-weight: 600;
}
.calc-reset-btn svg,
.calc-save-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.calc-simple-head,
.calc-simple-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(
      0,
      1.15fr
    );
  align-items: start;
  gap: 16px;
}
.calc-simple-head > *,
.calc-simple-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.calc-simple-head {
  padding: 0 0 10px;
  font-size: 15px;
  color: var(--outline, #6d7580);
}
.calc-simple-head .col-num {
  text-align: center;
}
.calc-simple-head .col-price,
.calc-simple-head .col-qty {
  padding-left: 14px;
}
.calc-simple-head .col-sum {
  text-align: right;
  padding-right: 4px;
}
.calc-simple-head small,
.calc-mobile-field-label small {
  margin-left: 3px;
  font-size: 14px;
  color: var(--outline, #6d7580);
}
.calc-simple-row {
  padding: 12px 0;
  border-top: 1px solid var(--surface-container, #f2f4f6);
}
.calc-simple-row .col-num {
  width: 30px;
  height: 30px;
  margin: 9px auto 0;
  display: grid;
  place-items: center;
  background: var(--surface, #f7f8fa);
  color: var(--outline, #6d7580);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.calc-simple-input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--surface-container, #f2f4f6);
  border-radius: 6px;
  background: var(--surface, #f7f8fa);
  color: var(--on-surface, #111418);
  font-size: 19px;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.calc-simple-input::placeholder {
  color: #a0a6ae;
  font-weight: 400;
}
.calc-simple-input:hover {
  border-color: var(--outline-variant, #c2c6cb);
}
.calc-simple-input:focus {
  outline: none;
  border-color: var(--primary, #0f7a66);
  background: var(--surface-container-lowest, #fff);
  box-shadow: 0 0 0 3px rgba(0, 89, 185, 0.09);
}
.calc-simple-row .col-sum {
  padding: 13px 4px 0 0;
  color: var(--on-surface-variant, #40444b);
  text-align: right;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.calc-simple-row [data-row-sum] {
  min-width: 0;
  overflow-wrap: anywhere;
}
.calc-mobile-field-label,
.calc-mobile-sum-label,
.calc-mobile-sum-unit {
  display: none;
}

.calc-add-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-container-low, #f2f4f6);
  color: var(--primary, #0f7a66);
  font-size: 16px;
  font-weight: 700;
  transition: background 0.15s;
}
.calc-add-btn > span {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.calc-add-btn small {
  margin-left: 6px;
  color: var(--outline, #6d7580);
  font-size: 14px;
  font-weight: 400;
}
.calc-add-btn:hover {
  background: var(--surface-container, #f2f4f6);
}
.calc-simple-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--surface-container, #f2f4f6);
}
.calc-simple-toolbar > p {
  margin: 0;
  color: var(--outline, #6d7580);
  font-size: 15px;
  line-height: 1.7;
}
.calc-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 176px;
  padding: 12px 24px;
  border-radius: 6px;
  background: var(--primary, #0f7a66);
  color: var(--on-primary, #fff);
  font-size: 17px;
  font-weight: 700;
  transition: background 0.15s;
}
.calc-save-btn:hover:not(:disabled) {
  background: var(--primary-container, #0f7a66);
}
.calc-save-btn:disabled {
  opacity: 1;
  background: var(--surface-container, #f2f4f6);
  color: var(--outline, #6d7580);
  cursor: not-allowed;
}
.calc-save-btn:disabled:hover {
  filter: none;
}
.calc-page button:focus-visible,
.calc-page select:focus-visible {
  outline: 3px solid rgba(0, 89, 185, 0.3);
  outline-offset: 3px;
}

.calc-field-error {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}
.calc-field-error[hidden],
.calc-validation-summary[hidden] {
  display: none;
}
.calc-simple-input[aria-invalid="true"] {
  border-color: #b42318;
  background: #fff5f4;
}
.calc-simple-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.09);
}
.calc-validation-summary {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--surface, #f7f8fa);
  border-radius: 6px;
  color: var(--outline, #6d7580);
  font-size: 15px;
  line-height: 1.7;
}
.calc-validation-summary.has-error {
  color: #b42318;
  background: #fff5f4;
}

.calc-saved-card.card {
  margin-top: 24px;
}
.calc-saved-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.calc-manage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 0 8px 8px;
  color: var(--primary, #0f7a66);
  font-size: 15px;
  font-weight: 600;
}
.calc-saved-select-wrap {
  width: 100%;
}
.calc-saved-select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--surface-container-high, #e3e6ea);
  border-radius: 6px;
  background: var(--surface, #f7f8fa);
  color: var(--on-surface-variant, #40444b);
  font-size: 17px;
  text-overflow: ellipsis;
}
.calc-storage-note {
  margin: 12px 0 0;
  color: var(--outline, #6d7580);
  font-size: 14px;
  line-height: 1.7;
}
.calc-manage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--surface-container, #f2f4f6);
}
.calc-manage-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.calc-manage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.calc-side-card .secondary {
  border-radius: 6px;
}

@media (max-width: 640px) {
  .calc-page-heading {
    margin-bottom: 20px;
  }
  .calc-simple-title {
    font-size: 28px;
  }
  .calc-page-heading > p {
    font-size: 16px;
  }
  .calc-result {
    padding: 24px;
    margin-bottom: 20px;
  }
  .calc-result-value strong {
    font-size: 36px;
  }
  .calc-result-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
  }
  .calc-result-icon svg {
    width: 26px;
    height: 26px;
  }
  .calc-result-details {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
  }
  .calc-result-details strong {
    font-size: 20px;
  }
  .calc-simple-wrap.card,
  .calc-saved-card.card {
    padding: 24px 20px;
  }
  .calc-simple-top {
    margin-bottom: 16px;
    gap: 8px;
  }
  .calc-simple-top h2,
  .calc-saved-heading h2 {
    font-size: 19px;
  }
  .calc-simple-top p {
    max-width: 205px;
  }
  .calc-reset-btn {
    padding: 8px;
  }
  .calc-reset-btn svg {
    width: 15px;
  }
  .calc-simple-head {
    display: none;
  }
  .calc-simple-row {
    grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 12px;
    padding: 18px 0;
  }
  .calc-simple-row .col-num {
    width: 26px;
    height: 26px;
    margin-top: 30px;
    font-size: 13px;
    border-radius: 6px;
  }
  .calc-mobile-field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--outline, #6d7580);
    font-size: 14px;
  }
  .calc-simple-input {
    height: 46px;
    padding: 10px;
    font-size: 19px;
  }
  .calc-simple-row .col-sum {
    grid-column: 2 / -1;
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 17px;
  }
  .calc-mobile-sum-label {
    display: block;
    margin-right: auto;
    padding-right: 8px;
    color: var(--outline, #6d7580);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
  }
  .calc-mobile-sum-unit {
    display: block;
    font-size: 14px;
    font-weight: 400;
  }
  .calc-simple-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
  }
  .calc-simple-toolbar > p {
    text-align: center;
    font-size: 14px;
  }
  .calc-simple-toolbar > p br {
    display: none;
  }
  .calc-save-btn {
    width: 100%;
  }
  .calc-saved-card.card {
    margin-top: 20px;
  }
  .calc-manage-row {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .calc-page input,
  .calc-page button {
    transition: none;
  }
}

/* ===== operations.css ===== */
.op-heading {
  margin: 8px 0 28px;
}
.op-heading .page-title {
  margin: 12px 0;
}
.op-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--surface-container-low, #f2f4f6);
  border-radius: 6px;
  margin: 0 0 28px;
  width: fit-content;
  max-width: 100%;
}
.op-tabs a {
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--on-surface-variant, #40444b);
}
.op-tabs a[aria-current] {
  background: #fff;
  color: var(--primary, #0f7a66);
  box-shadow: none;
}
.op-panel {
  padding: 28px;
  margin-bottom: 16px;
  min-width: 0;
}
.op-panel h2 {
  font-size: 22px;
  margin: 0 0 14px;
}
.op-panel h3 {
  line-height: 1.6;
  margin: 18px 0 8px;
  overflow-wrap: anywhere;
}
.op-panel p {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.op-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.op-settings-grid > .op-panel {
  height: 100%;
  margin: 0;
}
.op-settings-grid {
  margin-bottom: 16px;
}
.op-section-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
.op-section-title h2 {
  margin: 0 0 7px;
  font-size: 20px;
}
.op-section-title p {
  margin: 0;
  color: #6d7580;
  font-size: 16px;
}
.op-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  flex-shrink: 0;
  color: #0f7a66;
  background: #f2f4f6;
  font-size: 25px;
}
.op-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.op-form label {
  font-size: 17px;
  font-weight: 700;
  margin-top: 8px;
}
.op-form small,
.op-caption {
  font-size: 15px;
  line-height: 1.8;
  color: #6d7580;
}
.op-form .field {
  width: 100%;
  min-width: 0;
  border-radius: 6px;
  padding: 14px;
  border: 1px solid #e3e6ea;
  background: #fafbff;
  font: inherit;
}
.op-form textarea {
  min-height: 115px;
  resize: vertical;
  line-height: 1.7;
}
.op-form .primary {
  align-self: flex-start;
}
.op-form .full {
  align-self: stretch;
}
.op-form .form-error:empty {
  display: none;
}
.op-form .form-error {
  margin: 0;
}
.op-muted {
  color: #6d7580;
  font-size: 17px;
  line-height: 1.8;
}
.op-caption {
  margin: 14px 0;
}
.op-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.op-row > div,
.op-row > b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.op-row > .secondary {
  flex-shrink: 0;
}
.op-row p {
  font-size: 16px;
  color: #6d7580;
  margin: 4px 0;
}
.op-panel > .op-row {
  padding: 12px 0;
}
.op-row + .op-row {
  border-top: 1px solid #f2f4f6;
}
.op-report-history {
  padding: 20px 0;
  border-bottom: 1px solid #f2f4f6;
}
.op-report-history:last-child {
  border-bottom: 0;
}
.op-report-history > p {
  font-size: 16px;
  color: #6d7580;
}
.op-report-history > small {
  color: #6d7580;
}
.op-badge {
  display: inline-block;
  border-radius: 6px;
  padding: 5px 9px;
  background: #e7f3f0;
  color: #0f7a66;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.op-badge.waiting {
  background: #fff5df;
  color: #926108;
}
.op-preview {
  border-radius: 6px;
  background: #f7f8fa;
  padding: 16px;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.8;
}
.op-preview p {
  margin: 6px 0 0;
}
.op-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
}
.op-announcement h2 {
  margin: 18px 0 6px;
  overflow-wrap: anywhere;
}
.op-announcement small {
  color: #6d7580;
}
.op-announcement .op-body {
  margin-top: 24px;
}
.op-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6d7580;
  line-height: 1.8;
}
.op-empty h2 {
  color: #40444b;
  font-size: 22px;
}
.op-empty .primary,
.op-empty .secondary {
  display: inline-flex;
  margin-top: 12px;
}
.op-guide-hero {
  padding: 32px;
  border-radius: 6px;
  background: #f2f4f6;
  margin-bottom: 20px;
}
.op-guide-hero h2 {
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: -1px;
  margin: 20px 0 12px;
}
.op-guide-hero p {
  color: #5d646d;
  line-height: 1.9;
}
.op-guide-list {
  padding-left: 20px;
  margin: 0;
  line-height: 1.9;
  color: #40444b;
  font-size: 17px;
}
.op-guide-list li {
  margin-bottom: 14px;
}
.op-admin-gate {
  text-align: center;
  padding: 52px 28px;
}
.op-admin-gate h2 {
  font-size: 25px;
  margin: 24px 0 12px;
}
.op-admin-gate p {
  color: #6d7580;
  line-height: 1.9;
}
.op-admin-gate .primary {
  display: block;
  margin: 24px auto 18px;
}
.op-demo-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 6px;
  background: #fff6e6;
  color: #866120;
  font-size: 16px;
  margin-bottom: 20px;
}
.op-demo-note .text-link {
  color: inherit;
  flex-shrink: 0;
}
.op-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}
.op-metrics > div {
  border-radius: 6px;
  padding: 24px 20px;
  background: white;
  border: 1px solid #f2f4f6;
}
.op-metrics strong {
  display: block;
  color: #0f7a66;
  font-size: 32px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.op-metrics span {
  display: block;
  font-size: 16px;
  color: #6d7580;
  margin-top: 8px;
}
.op-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.op-toolbar h2 {
  font-size: 22px;
  margin: 0;
}
.op-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #6d7580;
}
.op-toolbar select {
  max-width: 160px;
  font: inherit;
}
.op-audit {
  padding: 20px 0;
  border-bottom: 1px solid #f2f4f6;
}
.op-audit:first-child {
  padding-top: 0;
}
.op-audit:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.op-audit p {
  margin: 10px 0;
}
.op-audit small {
  color: #6d7580;
}
.op-panel [data-op-restore] {
  display: block;
  margin-top: 18px;
}
.op-check {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.8;
}
.op-check input {
  width: 18px;
  height: 18px;
}
.op-account-link {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  border-radius: 6px;
  background: #f2f4f6;
  color: #0f7a66;
  font-weight: 700;
  margin-bottom: 18px;
}
.op-settings-link {
  margin-left: auto;
  white-space: nowrap;
}
.op-demo-entry {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e3e6ea;
}
.op-demo-entry p {
  color: #6d7580;
  font-size: 17px;
}
.op-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.op-footer-links a {
  font-size: 16px;
  color: #5d646d;
}
.op-comment-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.op-comment-actions button {
  color: #6d7580;
  font-size: 15px;
}
.op-home-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 6px;
  background: #f2f4f6;
  margin-bottom: 20px;
}
.op-home-notice b {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
}
.op-home-notice > span:last-child {
  margin-left: auto;
}
.op-unavailable {
  padding: 45px 24px;
}
.op-unavailable a {
  display: inline-block;
  margin-top: 16px;
}
.op-panel .section-head {
  margin-top: 0;
}
.op-toolbar label {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .op-settings-grid {
    grid-template-columns: 1fr;
  }
  .op-panel {
    padding: 22px 20px;
  }
  .op-heading .page-title {
    font-size: 29px;
  }
  .op-tabs {
    width: 100%;
    gap: 2px;
  }
  .op-tabs a {
    flex: 1;
    text-align: center;
    padding: 11px 8px;
    font-size: 16px;
    white-space: nowrap;
  }
  .op-toolbar {
    flex-wrap: wrap;
  }
  .op-toolbar label {
    margin-left: auto;
  }
  .op-metrics {
    gap: 8px;
  }
  .op-metrics > div {
    padding: 18px 12px;
    border-radius: 6px;
  }
  .op-metrics strong {
    font-size: 28px;
  }
  .op-metrics span {
    font-size: 15px;
  }
  .op-demo-note {
    font-size: 15px;
    padding: 12px;
  }
  .op-guide-hero {
    padding: 26px;
  }
  .op-guide-hero h2 {
    font-size: 28px;
  }
  .op-report-history .op-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .op-admin-gate {
    padding: 36px 20px;
  }
  .op-settings-link {
    margin-left: 0;
  }
  .op-footer-links {
    width: 100%;
    margin-top: 8px;
  }
  .op-row .secondary {
    padding: 10px 12px;
  }
  .op-form .field {
    font-size: 19px;
  }
}
