:root {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 100%;
  color: #182743;
  background: #f4f6fa;
  font-synthesis: none;
  --ink: #182743;
  --subtle: #52627a;
  --line: #dce3ef;
  --primary: #2456d7;
  --tint: #edf3ff;
  --navy: #122549;
  --positive: #147458;
  --danger: #a53836;
  --radius: 19px;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.5; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #527fff; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd { margin: 0; }
p { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { font-size: 1.125rem; font-weight: 710; }
h2 { font-size: 1.38rem; line-height: 1.25; }
h3 { font-size: 1rem; }
.wrap { width: min(1224px, calc(100% - 72px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #e1e6ee; background: #fff; }
.header-inner { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.04em; white-space: nowrap; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); display: inline-flex; align-items: end; justify-content: center; gap: 2.5px; padding-bottom: 9px; }
.mark i { width: 3.5px; height: 6px; border-radius: 2px; background: #dbebff; }
.mark i:nth-child(2) { height: 11px; }
.mark i:nth-child(3) { height: 16px; background: #fff; }
.header-meta { color: var(--subtle); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.header-meta span { margin-inline: 4px; }
.monitor { display: grid; grid-template-columns: .84fr 1.16fr; gap: 28px; background: var(--navy); color: #fff; border-radius: 22px; padding: 26px; margin-top: 27px; box-shadow: 0 10px 25px #203b6816; }
.monitor-summary { padding: 2px 8px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.monitor h1 { color: #c2d3f3; }
.market-status { font-size: clamp(1.65rem, 3vw, 2.45rem); font-weight: 830; letter-spacing: -.065em; margin: 4px 0; }
.market-status[data-tone="pass"] { color: #a9f0d1; }
.market-status[data-tone="soxl-first"], .market-status[data-tone="soxx-first"], .market-status[data-tone="stale"] { color: #fbd596; }
.market-description { color: #c2d3f3; font-size: .91rem; max-width: 36ch; }
.monitor-detail { background: #1b3158; padding: 17px 20px 12px; border: 1px solid #334b73; border-radius: 14px; }
.monitor-top, .section-heading, .subheading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.monitor-top h2 { font-size: 1rem; }
.monitor-top p { margin-top: 3px; color: #c2d3f3; font-size: .875rem; }
.monitor-top a { text-decoration-color: #7d96c0; text-underline-offset: 3px; }
.market-foot { color: #c2d3f3; font-size: .825rem; margin-top: 10px; }
.button { border: 1px solid transparent; border-radius: 8px; padding: 7px 12px; min-height: 36px; font-weight: 700; font-size: .875rem; white-space: nowrap; }
.button-primary { background: var(--primary); color: white; }
.button-primary:hover { background: #1645bd; }
.button-outline { color: #234fbd; background: #fff; border-color: #c8d7f0; }
.button-outline:not(:disabled):hover { background: #edf3ff; }
.button-dark { background: #263f6b; color: #edf4ff; border-color: #4a648e; }
.button-dark:hover { background: #304b7a; }
.button:disabled { color: #66748b; background: #f4f6fa; border-color: #e2e8f0; cursor: default; }
.button-icon { padding: 0 11px; font-size: 1.45rem; background: #eff3f9; color: var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
th, td { padding: 8px 8px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--subtle); font-weight: 650; }
tbody tr + tr, thead + tbody { border-top: 1px solid var(--line); }
.market-table { margin-top: 10px; }
.market-table :is(th, td):first-child { padding-left: 0; }
.market-table :is(th, td):last-child { padding-right: 0; }
.market-table th { color: #c2d3f3; }
.market-table td { color: #edf4ff; }
.market-table tbody tr + tr, .market-table thead + tbody { border-color: #365078; }
.market-table .verdict-pass { color: #a9f0d1; font-weight: 750; }
.market-table .verdict-fail { color: #fbd596; font-weight: 700; }

.workspace { display: grid; grid-template-columns: minmax(275px, .76fr) minmax(0, 1.55fr); align-items: start; gap: 22px; margin-top: 22px; }
.stack { display: grid; gap: 18px; min-width: 0; }
.panel { border-radius: var(--radius); background: white; border: 1px solid #dfe5ef; padding: 23px; box-shadow: 0 2px 7px #1b2b5010; min-width: 0; }
.section-heading { margin-bottom: 17px; }
.example-heading { margin-bottom: 11px; }
.example-character {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  object-fit: contain;
  background: radial-gradient(circle at 57% 56%, #fff2d7 54%, transparent 55%);
}
.section-heading p { margin-top: 5px; color: var(--subtle); font-size: .9rem; }
.allocation-bar { height: 10px; display: flex; gap: 3px; overflow: hidden; border-radius: 100px; }
.allocation-bar i:nth-child(1), .hold { background: #234888; }
.allocation-bar i:nth-child(2), .first { background: #4c76ee; }
.allocation-bar i:nth-child(3), .second { background: #9fb8f8; }
.example-allocation i:first-child { flex: 2; }
.example-allocation i:not(:first-child) { flex: 1; }
.allocation-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 11px; }
.allocation-key dt { display: flex; align-items: center; gap: 5px; color: var(--subtle); font-size: .8rem; }
.allocation-key dd { font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 750; margin-top: 1px; }
.swatch { width: 8px; height: 8px; border-radius: 3px; flex: 0 0 8px; }
.guide { list-style: none; padding: 14px 0 0; margin: 15px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.guide li { display: grid; grid-template-columns: 8px 1fr; column-gap: 8px; font-size: .88rem; }
.guide li::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: #6584d5; margin-top: 8px; grid-row: span 2; }
.guide span { color: var(--subtle); font-size: .825rem; }
.segmented { display: flex; border: 1px solid #dfe6f2; background: #f4f7fc; border-radius: 10px; padding: 3px; gap: 3px; }
.segmented button { border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--subtle); font-size: .875rem; font-weight: 680; padding: 6px 8px; flex: 1; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: white; color: #234fbd; border-color: #dce5f6; box-shadow: 0 1px 2px #1a367c16; }
.segmented button:hover { color: #234fbd; }
.demo-switch button { font-size: .79rem; padding-inline: 3px; }
#demo-output { background: #f1f5ff; border-radius: 12px; padding: 13px; margin: 13px 0 10px; }
.demo-totals { display: grid; grid-template-columns: .72fr 1fr; gap: 10px; }
.demo-totals dt { color: var(--subtle); font-size: .825rem; }
.demo-totals dd { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
#demo-output p { color: var(--subtle); font-size: .83rem; margin-top: 7px; }
summary { color: #2c52a5; font-size: .88rem; font-weight: 730; width: fit-content; }
.demo-prices table { margin-top: 7px; }
.source-list { margin-top: 8px; }
.source-list ul { padding-left: 20px; margin: 7px 0 0; color: var(--subtle); font-size: .875rem; }
.source-list li + li { margin-top: 5px; }
.source-list a { text-underline-offset: 3px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 15px; }
label { display: block; min-width: 0; font-size: .875rem; color: #283d5e; font-weight: 700; }
label > span { color: var(--subtle); font-size: .775rem; font-weight: 500; margin-left: 3px; }
label input { display: block; margin-top: 5px; }
input:not([type="checkbox"]) { min-width: 0; width: 100%; appearance: auto; border: 1px solid #cbd7e8; border-radius: 8px; padding: 8px 10px; height: 42px; color: var(--ink); background: #fbfcfe; font-weight: 550; font-size: 1rem; font-variant-numeric: tabular-nums; }
input::placeholder { color: #687890; font-weight: 450; }
input:not([type="checkbox"]):focus { border-color: #527fff; outline-offset: 1px; }
.input-unit { position: relative; }
.input-unit input { padding-right: 53px; }
.input-unit span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--subtle); font-size: .8rem; pointer-events: none; }
.input-unit input::-webkit-inner-spin-button { appearance: none; }
.input-unit input[type="number"] { appearance: textfield; }
.feedback { color: var(--subtle); font-size: .875rem; margin-top: 8px; }
.feedback:empty { display: none; }
.feedback[data-error="true"] { color: var(--danger); }
.my-allocation { margin-top: 15px; }
.my-allocation:empty { display: none; }
.my-allocation .allocation-key { display: grid; grid-template-columns: repeat(3, 1fr); }
.round-switch { margin-bottom: 12px; max-width: 360px; }
.round-switch span { font-weight: 500; }
.empty-state { color: var(--subtle); border: 1px dashed #d9e2f0; border-radius: 9px; background: #f8faff; padding: 12px; font-size: .875rem; }
.orders h3 > span, .subheading > span { color: var(--subtle); font-size: .8rem; font-weight: 580; margin-left: 4px; }
.sell-schedule { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 8px 0 12px; }
.sale-day { padding: 8px 4px; border-radius: 8px; background: #f2f6ff; border: 1px solid #e5edfc; text-align: center; }
.sale-day time, .sale-day span { display: block; font-size: .8rem; color: var(--subtle); }
.sale-day strong { font-size: 1.02rem; }
.actual-details { background: #f7f9fd; border: 1px solid #e0e8f5; border-radius: 10px; padding: 8px 12px; }
.actual-details[open] { padding-bottom: 11px; }
.actual-details form { margin-top: 8px; }
.actual-details .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.checkbox { display: flex; align-items: center; gap: 6px; }
.checkbox input { margin: 0; accent-color: var(--primary); }
.subheading { margin: 14px 0 5px; }
.buy-table th, .buy-table td { padding-inline: 6px; }
.buy-table details { display: inline-block; }
.fill-form { display: grid; grid-template-columns: repeat(3, minmax(80px,1fr)) auto; align-items: end; gap: 8px; padding: 7px 3px 10px; }
.fill-form .button { min-height: 42px; }
.fill-form-row td { background: #f7f9fd; }
.fill-form label { text-align: left; }
.table-button { color: #234fbd; border: 0; background: transparent; min-height: 30px; font-size: .875rem; font-weight: 650; }
.table-button:hover { text-decoration: underline; }
.cash-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cash-metrics div { background: #f3f6fb; padding: 11px; border-radius: 10px; }
.cash-metrics div:last-child { background: #eaf8f2; }
.cash-metrics dt, .portfolio-metrics dt { color: var(--subtle); font-size: .825rem; }
.cash-metrics dd { font-weight: 790; font-size: clamp(1rem, 2vw, 1.28rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cash-metrics div:last-child dd { color: var(--positive); }
.cash-metrics .loss { color: var(--danger) !important; }
.portfolio-metrics { display: flex; flex-wrap: wrap; gap: 12px 27px; margin-top: 13px; }
.portfolio-metrics dd { font-weight: 750; font-variant-numeric: tabular-nums; }
.effect-note { color: var(--subtle); font-size: .825rem; margin-top: 10px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 22px 0 25px; color: var(--subtle); font-size: .825rem; }
.site-footer a { text-underline-offset: 3px; }
dialog { border: 1px solid var(--line); border-radius: 16px; width: min(550px, calc(100% - 28px)); padding: 20px; color: var(--ink); }
dialog::backdrop { background: #15294daa; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 9px; margin-bottom: 11px; }
.dialog-heading p { color: var(--subtle); font-size: .875rem; margin-top: 4px; }
.market-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.market-fields label + label { margin-top: 6px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0; min-width: 0; }
legend { font-weight: 750; padding: 0 4px; }
.noscript { text-align: center; padding: 15px; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 36px); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .personal { grid-row: 1; }
  .example { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 24px); }
  .header-inner { height: 56px; }
  .monitor { margin-top: 14px; grid-template-columns: minmax(0, 1fr); padding: 15px; gap: 12px; border-radius: 15px; }
  .monitor-summary { padding: 0 3px; }
  .monitor-detail { padding: 10px; }
  .market-table :is(th, td) { padding-inline: 5px; }
  .workspace { margin-top: 13px; gap: 13px; }
  .stack { gap: 13px; }
  .panel { padding: 15px; border-radius: 14px; }
  .section-heading { margin-bottom: 12px; }
  .example { grid-template-columns: minmax(0, 1fr); }
  .fields { column-gap: 8px; }
  .actual-details .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fill-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-table { min-width: 286px; }
  .buy-table :is(th, td) { padding-inline: 3px; }
  .cash-metrics { gap: 5px; }
  .cash-metrics div { padding: 7px; }
}

.late-option { margin-top: 12px; }
.round-switch { max-width: 100%; overflow-x: auto; }
.round-switch button { flex: 0 0 auto; min-width: 112px; }
.strategy-action { margin-top: 10px; }
.strategy-notice { background: var(--tint); padding: 10px 12px; border-radius: 8px; font-size: .875rem; color: #273f71; }
.strategy-notice strong { display: block; }
.strategy-notice p + p { margin-top: 4px; }
.strategy-action .sell-schedule { margin-bottom: 0; }
.strategy-action .sale-day strong { overflow-wrap: anywhere; }
#market-recovery { margin-top: 10px; color: #e0eaff; }
#market-recovery:empty { display: none; }
#next-form .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.entry-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  padding: 13px 18px;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  background: #fff;
}
.entry-guide h2 { font-size: 1rem; margin-bottom: 3px; }
.entry-guide p { color: var(--subtle); font-size: .875rem; }
.entry-guide ul { display: flex; flex-wrap: wrap; gap: 3px 14px; padding: 0; margin: 7px 0 0; list-style: none; }
.entry-guide a { color: #234fbd; text-underline-offset: 3px; font-size: .875rem; }
.entry-risk { background: #fff6e8; border: 1px solid #f2dfc2; border-radius: 8px; padding: 9px 11px; }
.entry-risk strong { font-size: .9rem; color: #783915; }
.entry-risk p { color: #63492f; margin-top: 2px; }
@media (max-width: 700px) {
  .entry-guide { grid-template-columns: 1fr; gap: 9px; padding: 11px 14px; }
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.privacy-home { font-weight: 800; text-decoration: none; }
.privacy-wrap { max-width: 780px; margin-top: 24px; }
.privacy-content h1 { font-size: 1.6rem; }
.privacy-content h2 { font-size: 1.1rem; }
.privacy-content section { margin-top: 22px; }
.privacy-content p { margin-top: 7px; line-height: 1.65; }
.privacy-content a { color: #234fbd; }
