@charset "UTF-8";
:root {
  --bg: #f7f9f8;
  --paper: #fff;
  --ink: #263b35;
  --muted: #74837e;
  --line: #e6eeea;
  --mint: #e1f4eb;
  --mint-strong: #2e8066;
  --mint-dark: #22634f;
  --red: #b45350;
  --blue: #527a9e;
  --shadow: 0 6px 22px #204c3312;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.hidden {
  display: none !important;
}
.topbar {
  height: 82px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.9px;
  font-weight: 600;
  color: #8b9c93;
  line-height: 1.2;
}
.brandmark {
  background: #dff3e9;
  color: #337e66;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
}
.brandmark span {
  font-size: 29px;
  color: #83bfa4;
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.beta {
  font-size: 12px;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  max-width: 1680px;
  margin: auto;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 36px 20px;
  min-height: calc(100vh - 82px);
}
.nav-label {
  font-size: 10px;
  color: #9ba7a2;
  letter-spacing: 1.4px;
  margin: 0 14px 20px;
}
.navlink {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 9px;
  color: #7b8982;
  font-weight: 600;
  font-size: 13px;
}
.navlink span {
  font-size: 20px;
  width: 23px;
  text-align: center;
}
.navlink.active {
  background: var(--mint);
  color: var(--mint-dark);
}
.navlink:hover {
  background: #eff7f3;
}
.side-note {
  border-top: 1px solid var(--line);
  margin: 44px 12px 0;
  padding-top: 28px;
}
.leaf {
  display: block;
  font-size: 28px;
  color: #8ac8ae;
  margin-bottom: 12px;
}
.side-note strong {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 600;
}
.side-note p,
.account {
  font-size: 11px;
  color: #93a099;
  line-height: 1.9;
}
.account {
  margin: 34px 12px 0;
  overflow-wrap: anywhere;
}
main {
  min-width: 0;
  padding: 36px 42px 24px;
  max-width: 1370px;
  width: 100%;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #7c9e8e;
  margin: 0 0 7px;
}
h1 {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 0;
  font-weight: 750;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.5px;
  margin: 0;
  font-weight: 700;
}
.sub {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--mint-strong);
  color: white;
  border: 1px solid transparent;
  padding: 12px 19px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 13px;
  transition: background 0.2s;
}
.button:hover {
  background: var(--mint-dark);
}
.button.secondary {
  background: white;
  color: #5b7166;
  border-color: #dce7e1;
}
.button.secondary:hover {
  background: #f0f8f3;
}
.button.small {
  padding: 9px 14px;
  font-size: 12px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--mint-dark);
  font-size: 12px;
  text-decoration: underline;
  padding: 10px 0;
}
.hero {
  background: #e5f4ec;
  border: 1px solid #d9ebdf;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  padding: 32px 38px;
  margin-bottom: 30px;
  overflow: hidden;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: #f8fffb;
  color: #3c8466;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 650;
}
.pill.neutral {
  background: #f1f5f3;
  color: #7a8d82;
}
.hero h2 {
  font-size: 29px;
  line-height: 1.45;
  letter-spacing: -1.2px;
  margin: 14px 0 10px;
}
.hero h2 em {
  font-style: normal;
  color: #3f9276;
}
.hero p {
  font-size: 12px;
  color: #779286;
  line-height: 1.9;
  margin: 0 0 20px;
}
.hero .button {
  font-size: 12px;
  background: #38876c;
}
.hero-visual {
  align-self: center;
  min-width: 0;
  padding-top: 10px;
}
.hero-visual svg {
  display: block;
  width: 100%;
  max-height: 190px;
}
.float-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ffffffb8;
  box-shadow: var(--shadow);
  border-radius: 10px;
  font-size: 10px;
  width: 215px;
  margin: 0 auto 8px;
  padding: 10px;
  color: #658777;
}
.mint-dot {
  width: 6px;
  height: 6px;
  background: #529a7d;
  border-radius: 50%;
}
.visual-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  font-size: 10px;
  color: #91a99c;
}
.hero-visual p {
  text-align: center;
  font-size: 9px;
  margin: 12px 0 0;
  color: #8ba799;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 17px;
}
.section-title > span {
  font-size: 10px;
  color: #8b9a91;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.market-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px 18px 15px;
  min-width: 0;
}
.market-card .symbol-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 15px;
}
.symbol-icon {
  height: 31px;
  width: 31px;
  background: #f0f5f2;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #6e9581;
  font-size: 13px;
  font-weight: bold;
}
.status {
  font-size: 9px;
  color: #91a198;
  background: #f2f6f3;
  border-radius: 4px;
  padding: 3px 6px;
}
.status.live {
  color: #227454;
  background: #e0f4e9;
}
.status.stale {
  color: #996838;
  background: #fff5e6;
}
.market-name {
  font-size: 11px;
  color: #7b8d83;
}
.market-value {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 3px 0;
}
.market-card .unit {
  font-size: 10px;
  font-weight: 400;
  color: #93a095;
  margin-left: 5px;
  letter-spacing: 0;
}
.market-card .meta {
  font-size: 9px;
  color: #94a49a;
  overflow-wrap: anywhere;
}
.market-card .meta a {
  text-decoration: underline;
}
.footnote {
  font-size: 11px;
  color: #8c9a92;
  line-height: 1.8;
  margin: 10px 0 18px;
}
.home-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 20px;
  margin-top: 26px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 22px;
}
.home-lower .card {
  margin-bottom: 0;
}
.segmented {
  display: inline-flex;
  gap: 2px;
  background: #f2f6f3;
  border-radius: 8px;
  padding: 3px;
  margin: 0 0 14px;
}
.segmented button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  color: #8c9e91;
  padding: 5px 15px;
}
.segmented button.active {
  background: white;
  color: #366c54;
  box-shadow: 0 1px 3px #0000000c;
}
.empty-state {
  text-align: center;
  padding: 30px 10px 18px;
  color: #94a097;
  font-size: 12px;
}
.empty-state strong {
  display: block;
  color: #748c7c;
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 7px;
}
.empty-state span {
  font-size: 25px;
  color: #bad0c1;
}
.empty-state p {
  margin: 0;
  font-size: 11px;
}
.start-card .step-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: #e5f4ec;
  color: #6aab8c;
  border-radius: 10px;
  text-align: center;
  line-height: 32px;
  font-size: 19px;
  margin-bottom: 13px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.steps li {
  display: flex;
  gap: 12px;
  margin: 14px 0;
}
.steps b {
  background: #eff7f2;
  color: #78a78e;
  border-radius: 50%;
  height: 23px;
  width: 23px;
  text-align: center;
  font-size: 10px;
  line-height: 23px;
  flex-shrink: 0;
}
.steps strong {
  font-size: 12px;
  color: #4e6a5c;
  font-weight: 600;
}
.steps p {
  font-size: 10px;
  color: #94a499;
  margin: 1px 0;
}
.text-link {
  color: #549477;
  font-size: 11px;
  font-weight: 650;
}
.notice {
  padding: 13px 17px;
  background: #edf5f0;
  border: 1px solid #d7e8df;
  color: #4d7762;
  border-radius: 10px;
  font-size: 12px;
  margin: 0 0 20px;
  white-space: pre-wrap;
}
.notice.error {
  background: #fff3f0;
  color: #a04b40;
  border-color: #f0d3cc;
}
.source-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 22px 0;
}
.source-controls label {
  flex: 1;
}
.source-empty {
  background: #f7faf8;
  padding: 18px;
  border-radius: 10px;
  color: #95a296;
  font-size: 12px;
}
.source-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 8px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.source-item p {
  color: var(--muted);
  font-size: 11px;
  margin: 4px 0;
}
.source-item a {
  color: var(--mint-strong);
  text-decoration: underline;
}
.step-number {
  display: inline-grid;
  place-items: center;
  background: var(--mint);
  color: var(--mint-strong);
  height: 26px;
  width: 26px;
  border-radius: 8px;
  font-size: 12px;
  margin-right: 8px;
}
.ai-panel {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.ai-panel summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.ai-panel summary span {
  font-size: 10px;
  color: #91a095;
  margin-left: 12px;
  font-weight: 400;
}
.ai-panel[open] summary {
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #65796c;
  margin-bottom: 14px;
}
input:not([type="checkbox"]),
select,
textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dce7df;
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  color: #3b5747;
  margin-top: 6px;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #addac3;
  outline-offset: 1px;
}
input[type="checkbox"] {
  accent-color: #37876b;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin: 12px 0;
  font-size: 12px;
}
.check input {
  width: 16px;
  height: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 18px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
label small {
  display: block;
  font-size: 10px;
  color: #9aa99d;
  font-weight: 400;
  margin-top: 5px;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 16px 0;
}
.scenario-grid fieldset {
  border: 1px solid #e0e9e4;
  border-radius: 12px;
  margin: 0;
  min-width: 0;
  padding: 16px;
  background: #f8faf9;
}
.scenario-grid fieldset.base {
  background: #eff9f3;
  border-color: #c9e5d6;
}
.scenario-grid fieldset.bull {
  background: #faf9f4;
}
.scenario-grid legend {
  font-weight: 650;
  padding: 0 6px;
  color: #739285;
  font-size: 13px;
}
.scenario-grid fieldset p {
  font-size: 10px;
  color: #92a094;
  margin: 0 0 14px;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.form-footer span {
  font-size: 11px;
  color: #89a18d;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.result-tile {
  padding: 19px;
  background: #f2f8f4;
  border-radius: 12px;
}
.result-tile p {
  margin: 0;
  font-size: 11px;
  color: #8ba390;
}
.result-tile strong {
  display: block;
  font-size: 23px;
  color: #3b7256;
  margin: 4px 0;
}
.result-tile small {
  font-size: 11px;
  color: #779782;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: right;
  padding: 11px 12px;
  color: #8e9f92;
  background: #f7faf8;
  font-size: 10px;
  font-weight: 550;
}
td {
  text-align: right;
  border-bottom: 1px solid #edf2ee;
  padding: 12px;
  color: #567160;
}
td:first-child,
th:first-child {
  text-align: left;
}
td small {
  display: block;
  font-size: 9px;
  color: #9ba99f;
}
.chart {
  margin: 15px 0;
  background: #fbfdfb;
  border-radius: 12px;
  padding: 14px;
}
.chart svg {
  width: 100%;
  height: 220px;
}
.chart text {
  font-family: inherit;
  fill: #88a08d;
  font-size: 12px;
}
.chart .axis {
  stroke: #e1ebe3;
}
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 10px;
  color: #8ca092;
}
.up {
  color: #b75e5b;
}
.down {
  color: #5883ab;
}
.stale-result {
  opacity: 0.5;
}
.export-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.import-row {
  padding: 18px 0;
  max-width: 480px;
}
.import-row input {
  background: #eff5f1;
  font-size: 11px;
}
.prose p,
.prose dd {
  font-size: 13px;
  color: #859587;
  line-height: 1.9;
}
.prose dt {
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
}
.prose dd {
  margin: 3px 0 0;
}
.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
}
.connection-row span {
  font-size: 11px;
  color: #89a08f;
}
.ai-output {
  background: #f4f9f6;
  border-radius: 12px;
  padding: 20px;
  margin-top: 18px;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ai-output h3 {
  font-size: 13px;
  margin: 16px 0 8px;
}
.ai-output ul {
  padding-left: 20px;
  color: #7d9484;
}
.ai-output p {
  white-space: pre-wrap;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #9cac9f;
  font-size: 10px;
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 22px;
}
footer span {
  font-size: 9px;
}
details > ul {
  font-size: 11px;
  color: #91a096;
}
/* 옅은 배경은 유지하고 설명 글자의 대비를 높입니다. */
.footnote,
.market-card .meta,
.market-name,
.status,
.side-note p,
.account,
.steps p,
.prose p,
.prose dd,
label small,
.form-footer span,
.source-empty {
  color: #687e70;
}
.hero p {
  color: #5d806d;
}
.hero-visual p,
.visual-labels,
.section-title > span,
.chart-legend {
  color: #6e8c7a;
}
.scenario-grid fieldset p {
  color: #6d8675;
}
.market-name,
.market-card .meta,
.footnote {
  font-size: 11px;
}
@media (min-width: 1500px) {
  main {
    padding: 42px 54px;
  }
  .hero {
    padding: 40px 48px;
  }
  .hero h2 {
    font-size: 34px;
  }
  .hero-visual svg {
    max-height: 215px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 12px;
  }
  main {
    padding: 26px;
  }
  .hero {
    padding: 26px;
    gap: 15px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-lower {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .source-controls {
    flex-wrap: wrap;
  }
  .source-controls label {
    flex-basis: 100%;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 68px;
    padding: 0 18px;
  }
  .brand {
    font-size: 14px;
  }
  .brandmark {
    width: 31px;
    height: 31px;
    font-size: 22px;
  }
  .beta {
    display: none;
  }
  .topbar .button {
    font-size: 10px;
    padding: 8px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    padding: 9px 12px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: auto;
  }
  .nav-label,
  .side-note,
  .account {
    display: none;
  }
  .sidebar nav {
    display: flex;
    min-width: 550px;
    gap: 2px;
  }
  .navlink {
    font-size: 11px;
    padding: 9px;
    gap: 5px;
    margin: 0;
  }
  .navlink span {
    font-size: 16px;
    width: 16px;
  }
  main {
    padding: 22px 16px;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
  }
  .heading h1 {
    font-size: 23px;
  }
  .heading .button {
    font-size: 10px;
    padding: 8px;
  }
  .sub {
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .hero-visual {
    padding: 0;
    max-width: 400px;
    width: 100%;
    margin: auto;
  }
  .hero h2 {
    font-size: 27px;
  }
  .hero-visual svg {
    height: 125px;
  }
  .hero-visual p {
    font-size: 8px;
  }
  .market-grid {
    gap: 10px;
  }
  .market-card {
    padding: 14px;
  }
  .market-value {
    font-size: 21px;
  }
  .section-title h2 {
    font-size: 14px;
  }
  .section-title > span {
    font-size: 9px;
  }
  .card {
    padding: 20px 16px;
  }
  .form-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .scenario-grid {
    gap: 7px;
  }
  .scenario-grid fieldset {
    padding: 10px 8px;
  }
  .scenario-grid legend {
    font-size: 11px;
  }
  .scenario-grid input {
    padding: 9px 7px;
  }
  .scenario-grid label {
    font-size: 10px;
  }
  .scenario-grid fieldset p {
    min-height: 30px;
  }
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .result-grid {
    gap: 8px;
  }
  .result-tile {
    padding: 12px;
  }
  .result-tile strong {
    font-size: 18px;
  }
  .result-tile small {
    font-size: 9px;
  }
  .source-controls .button {
    font-size: 11px;
  }
  .ai-panel summary span {
    display: block;
    margin-left: 16px;
  }
  footer {
    display: block;
  }
  footer span {
    display: block;
    margin-top: 6px;
  }
  .chart svg {
    height: 180px;
  }
}

#beta-dialog {
  border: 1px solid #c8e5da;
  border-radius: 20px;
  padding: 28px;
  width: min(480px, calc(100% - 40px));
  max-height: 85vh;
  overflow: auto;
  color: #244b40;
  background: #f5fcf8;
  box-shadow: 0 18px 60px #173d3433;
}
#beta-dialog::backdrop {
  background: #183b3659;
}
#beta-dialog h2 {
  font-size: 1.35rem;
  margin-top: 0;
}
#beta-dialog p {
  line-height: 1.7;
}
#beta-dialog form {
  display: flex;
  justify-content: flex-end;
}
#plugin-guide li {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* Keep long quote tables inside their cards in narrow windows. */
main,
.card,
.home-lower > * {
  min-width: 0;
}
.table-scroll {
  max-width: 100%;
}
