/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface2:    #1a1a1a;
  --border:      #2a2a2a;
  --border-hi:   #3a3a3a;
  --accent:      #F5C518;
  --accent-hov:  #FFD740;
  --accent-dim:  rgba(245, 197, 24, 0.13);
  --accent-dim2: rgba(245, 197, 24, 0.06);
  --text:        #F0F0F0;
  --text-2:      #CCCCCC;
  --text-muted:  #777777;
  --danger:      #FF4444;
  --success:     #22C55E;
  --radius:      8px;
  --radius-sm:   5px;
  --font:        'Pretendard Hangul 110', 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout ===== */
.app-layout {
  display: grid;
  grid-template-columns: 320px 1fr 360px;
  height: 100vh;
  overflow: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
  background: var(--surface);
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 2px solid var(--border);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.logo i { color: var(--accent); }

.logo-sub {
  font-size: 15.95px;
  color: var(--text-muted);
  margin-top: 5px;
  font-weight: 500;
}

.nav-label {
  font-size: 15.95px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.topic-nav {
  padding: 20px;
  border-bottom: 2px solid var(--border);
}

.topic-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 17.6px;
  font-weight: 600;
  font-family: var(--font);
  margin-bottom: 8px;
  transition: all 0.15s;
  text-align: left;
  text-decoration: none;
}

.topic-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim2);
}

.topic-btn.active {
  border-color: var(--accent);
  border-left: 4px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
}

.sidebar-section {
  padding: 20px;
  border-bottom: 2px solid var(--border);
  flex: 1;
}

.section-copy {
  font-size: 15.95px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ===== Upload ===== */
.upload-area {
  border: 2px dashed var(--border-hi);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface2);
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.upload-icon {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--accent);
}

.upload-area p {
  font-size: 15.95px;
  color: var(--text-muted);
  line-height: 1.6;
}

.upload-link {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.upload-status {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 15.95px;
  background: var(--surface2);
  border-left: 3px solid var(--border);
}

.upload-status.success { color: var(--success); border-left-color: var(--success); }
.upload-status.error   { color: var(--danger);  border-left-color: var(--danger); }
.upload-status.loading { color: var(--accent);  border-left-color: var(--accent); }
.hidden { display: none !important; }

/* ===== Form inputs ===== */
.input-field, .textarea-field {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16.5px;
  font-family: var(--font);
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.15s;
}

.input-field:focus, .textarea-field:focus {
  border-color: var(--accent);
}

.input-field::placeholder, .textarea-field::placeholder {
  color: var(--text-muted);
}

.textarea-field { resize: vertical; min-height: 80px; }

.btn-primary {
  width: 100%;
  padding: 11px 16px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-size: 16.5px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-primary:hover  { background: var(--accent-hov); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-link {
  font-size: 15.95px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color 0.15s;
  font-weight: 500;
}

.docs-link:hover { color: var(--accent); }

/* ===== Chat area ===== */
.chat-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 2px solid var(--border);
  background: var(--surface);
}

.brand-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-nav-btn {
  padding: 8px 11px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 700 14.5px var(--font);
  cursor: pointer;
}

.brand-nav-link { text-decoration: none; }

.brand-nav-btn:hover,
.brand-nav-btn.active {
  color: var(--accent);
  border-color: var(--border-hi);
  background: var(--accent-dim2);
}

.domain-badge {
  font-size: 16.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  letter-spacing: -0.01em;
}

.btn-ghost {
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15.95px;
  font-family: var(--font);
  font-weight: 600;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Messages ===== */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-msg {
  text-align: left;
  padding: 20px 24px 16px;
}

.welcome-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.welcome-icon {
  font-size: 22px;
  color: var(--accent);
}

.welcome-msg h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.welcome-msg > p {
  font-size: 16.5px;
  color: var(--text-muted);
}

/* ===== Content hub / markdown-style pages ===== */
.content-page {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 40px 28px 70px;
}

.content-kicker {
  color: var(--accent);
  font-size: 15.95px;
  font-weight: 800;
  letter-spacing: .11em;
  margin-bottom: 16px;
}

.content-page h1 {
  overflow: hidden;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.2;
  letter-spacing: -.045em;
  margin-bottom: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-page h1 mark {
  color: var(--accent);
  background: transparent;
}

.content-lead {
  max-width: none;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.8;
}

.home-page-head, .theory-index-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.home-page-head .content-kicker, .theory-index-head .content-kicker { margin: 0 0 6px; font-size: 15.95px; }
.home-page-head h1, .theory-index-head h1 { margin: 0; }
.home-page-head .content-lead, .theory-index-head .content-lead { max-width: none; margin: 0 0 2px; font-size: 15.95px; line-height: 1.6; text-align: right; }
@media (max-width: 860px) {
  .home-page-head, .theory-index-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .home-page-head .content-lead, .theory-index-head .content-lead { max-width: none; text-align: left; }
}

.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.content-cta, .content-secondary {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font: 800 15px var(--font);
  cursor: pointer;
}
.content-cta { border: 0; color: #000; background: var(--accent); }
.content-secondary { border: 1.5px solid var(--border-hi); color: var(--text-2); background: var(--surface2); }
.content-cta:hover { background: var(--accent-hov); }
.content-secondary:hover { color: var(--accent); border-color: var(--accent); }

.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 38px 0 58px; }
.home-stats div { min-height: 100px; padding: 20px; border-right: 1px solid var(--border); background: var(--surface); }
.home-stats div:last-child { border-right: 0; }
.home-stats strong { display: block; color: var(--accent); font-size: 32px; line-height: 1; margin-bottom: 9px; }
.home-stats span { color: var(--text-muted); font-size: 15.95px; line-height: 1.45; }

.content-section { margin: 46px 0; }
.section-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-heading span { color: var(--accent); font-weight: 800; font-size: 15.95px; }
.section-heading h2 { font-size: 25px; }
.home-module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.home-module { min-height: 220px; text-align: left; padding: 20px; background: var(--surface2); border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--text); cursor: pointer; transition: .15s; }
.home-module:hover { border-color: var(--accent); transform: translateY(-2px); }
.home-module > i { color: var(--accent); font-size: 24px; margin-bottom: 20px; }
.home-module strong, .home-module span, .home-module em { display: block; }
.home-module strong { font-size: 17px; margin-bottom: 8px; }
.home-module span { color: var(--text-muted); font-size: 15.95px; line-height: 1.6; }
.home-module em { color: var(--accent); font-size: 15.95px; font-style: normal; font-weight: 700; margin-top: 18px; }
.section-intro { max-width: none; margin: -4px 0 20px; color: var(--text-2); font-size: 17.6px; }
.section-intro strong { color: var(--accent); }

/* ===== Home live layout (assets + chart) ===== */
.home-live-layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); align-items: start; gap: 24px; margin: 0 0 46px; }
.home-live-layout .content-section { margin: 0; }
.home-page > .home-live-layout:first-child { margin-top: 0; }
.home-live-chart { position: sticky; top: 0; }
@media (max-width: 980px) {
  .home-live-layout { grid-template-columns: 1fr; }
  .home-live-chart { position: static; }
}

/* ===== Tick guide trigger + offcanvas ===== */
.tick-guide-trigger { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: inherit; transition: .15s; }
.tick-guide-trigger:hover { border-color: var(--accent); transform: translateY(-2px); }
.tick-guide-trigger-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 999px; background: var(--accent-dim, #eff6ff); color: var(--accent); font-size: 17px; }
.tick-guide-trigger-text { flex: 1; min-width: 0; }
.tick-guide-trigger-text b { display: block; font-size: 16.5px; color: var(--text); }
.tick-guide-trigger-text small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 14.3px; line-height: 1.45; }
.tick-guide-trigger-arrow { color: var(--text-muted); font-size: 14.3px; }
.tick-guide-trigger--compact { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; padding: 0; border-radius: 999px; color: var(--accent); }
.tick-guide-trigger--compact:hover { transform: none; background: var(--accent-dim2); }

.tick-guide-modal { position: fixed; inset: 0; z-index: 110; visibility: hidden; pointer-events: none; }
.tick-guide-modal.open { visibility: visible; pointer-events: auto; }
.tick-guide-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .48); opacity: 0; transition: opacity .22s ease; }
.tick-guide-modal.open .tick-guide-backdrop { opacity: 1; }
.tick-guide-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(600px, 94vw); background: var(--surface); box-shadow: -16px 0 48px rgba(15, 23, 42, .2); transform: translateX(100%); transition: transform .28s ease; }
.tick-guide-modal.open .tick-guide-panel { transform: translateX(0); }
.tick-guide-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 26px 18px; border-bottom: 1px solid var(--border); }
.tick-guide-kicker { display: block; margin-bottom: 7px; color: var(--accent); font-size: 14.3px; font-weight: 800; letter-spacing: .11em; }
.tick-guide-header h2 { margin: 0; font-size: 23px; line-height: 1.32; }
.tick-guide-close { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); color: var(--text-2); cursor: pointer; }
.tick-guide-close:hover { color: var(--accent); border-color: var(--accent); }
.tick-guide-body { flex: 1; overflow-y: auto; padding: 22px 26px 36px; }
.tick-guide-body .tick-concept-grid { grid-template-columns: 1fr; margin-top: 0; }
.tick-guide-body .option-chain-scroll { overflow-x: visible; }
.tick-guide-body .option-chain-table { min-width: 0; width: 100%; table-layout: fixed; }
@media (max-width: 640px) {
  .tick-guide-panel { width: 100%; }
}

/* ===== Home dashboard asset grid ===== */
.dashboard-asset-grid-section { margin-bottom: 40px; }
.dashboard-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.home-live-assets .dashboard-asset-grid { grid-template-columns: 1fr; }
.dashboard-asset-card { display: block; width: 100%; text-align: left; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; font: inherit; color: inherit; transition: .15s; }
.dashboard-asset-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.dashboard-asset-head { display: flex; flex-direction: column; margin-bottom: 10px; }
.dashboard-asset-head strong { font-size: 15.95px; color: var(--text); }
.dashboard-asset-head small { margin-top: 2px; color: var(--text-muted); font-size: 15.95px; }
.dashboard-asset-price { font-size: 20px; font-weight: 800; color: var(--text); }
.dashboard-asset-change { display: inline-block; margin-top: 4px; font-size: 15.95px; font-weight: 750; color: var(--text-muted); }
.dashboard-asset-change.up { color: #dc2626; }
.dashboard-asset-change.down { color: #2563eb; }
.dashboard-asset-note { margin: 10px 0 0; color: var(--text-muted); font-size: 15.95px; line-height: 1.5; }

/* ===== Tick chart dashboard ===== */
.tick-dashboard { margin-bottom: 46px; }
.home-page > .content-section:first-child { margin-top: 0; }
.tick-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tick-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 20px; margin-bottom: 16px; }
.tick-search { position: relative; max-width: 320px; margin-bottom: 12px; }
.tick-search-input { box-sizing: border-box; width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface2); color: var(--text); font: inherit; font-size: 15.95px; }
.tick-search-input:focus { outline: 0; border-color: var(--accent); }
.tick-search-results { position: absolute; z-index: 4; top: calc(100% + 6px); left: 0; right: 0; max-height: 260px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--border-hi); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.tick-search-results li { list-style: none; }
.tick-search-results button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.tick-search-results button:hover { background: var(--surface2); }
.tick-search-results button b { display: block; font-size: 15.95px; color: var(--text); }
.tick-search-results button span { display: block; margin-top: 2px; font-size: 15.95px; color: var(--text-muted); }
.tick-search-empty { padding: 10px; color: var(--text-muted); font-size: 15.95px; }
.tick-symbol { display: block; color: var(--text-muted); font-size: 15.95px; font-weight: 700; }
.tick-symbol small { margin-left: 6px; color: var(--text-muted); font-weight: 500; }
.tick-price { display: block; margin-top: 6px; font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.2; }
.tick-change { display: inline-block; margin-top: 4px; font-size: 15.95px; font-weight: 750; font-style: normal; color: var(--text-muted); }
.tick-change.up { color: #dc2626; }
.tick-change.down { color: #2563eb; }
.tick-beta { display: flex; align-items: baseline; gap: 7px; width: fit-content; margin-top: 10px; padding: 5px 9px; border: 1px solid #c7d7f5; border-radius: 999px; color: #334155; background: #f8fbff; font-size: 14.3px; line-height: 1.3; }
.tick-beta b { color: #1d4ed8; font-size: 15.4px; }
.tick-beta span { color: var(--text-muted); }
.tick-beta-explain { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); color: var(--text-2); font-size: 14.85px; line-height: 1.6; }
.tick-beta-explain:empty { display: none; }
.tick-beta-explain b { color: var(--text); }
.tick-bucket-group { display: inline-flex; gap: 6px; padding: 4px; background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; }
.tick-card-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.tick-bucket-btn { padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 15.95px; font-weight: 750; cursor: pointer; transition: .15s; }
.tick-bucket-btn:hover { color: var(--text); }
.tick-bucket-btn.active { background: var(--accent); color: #fff; }
.tick-chart-stage { position: relative; padding: 10px 0 4px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tick-chart-wrap { width: 100%; }
.tick-chart-wrap svg { display: block; }
.tick-chart-empty { display: grid; place-items: center; gap: 8px; height: 260px; color: var(--text-muted); font-size: 15.95px; text-align: center; }
.tick-chart-empty i { font-size: 22px; color: var(--accent); }
.tick-updated { color: var(--text-muted); font-size: 15.95px; }
.tick-chart-tooltip { position: absolute; z-index: 3; display: grid; gap: 3px; min-width: 168px; padding: 9px 11px; border: 1px solid var(--border-hi); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 20px rgba(0,0,0,.12); font-size: 15.95px; line-height: 1.5; color: var(--text-2); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .1s, transform .1s; }
.tick-chart-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.tick-chart-tooltip b { display: block; color: var(--text); font-size: 15.95px; }
.tick-chart-tooltip span { display: block; font-weight: 750; }
.tick-chart-tooltip span.up { color: #dc2626; }
.tick-chart-tooltip span.down { color: #2563eb; }
.tick-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 14px 0 10px; font-size: 15.95px; color: var(--text-2); }
.tick-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tick-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.tick-legend .up i { background: #dc2626; }
.tick-legend .down i { background: #2563eb; }
.tick-count { margin-left: auto; color: var(--text-muted); }
.tick-tape { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0 0 14px; padding: 0; }
.tick-tape li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface2); font-size: 15.95px; color: var(--text-2); }
.tick-tape-time { color: var(--text-muted); }
.tick-tape-price { font-weight: 750; color: var(--text); }
.tick-tape em { font-style: normal; }
.tick-tape.up em, .tick-tape li.up em { color: #dc2626; }
.tick-tape li.down em { color: #2563eb; }
.tick-tape li.flat em { color: var(--text-muted); }
.tick-disclaimer { margin: 0; color: var(--text-muted); font-size: 15.95px; line-height: 1.55; }
@media (max-width: 560px) {
  .tick-card-actions { width: 100%; justify-content: space-between; }
  .tick-bucket-group { gap: 2px; }
  .tick-bucket-btn { padding-inline: 10px; }
}
.tick-concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.tick-concept-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tick-concept-card h3 { margin-bottom: 8px; font-size: 16.5px; color: var(--text); }
.tick-concept-card p { margin: 0; color: var(--text-2); font-size: 15.95px; line-height: 1.65; }
.tick-size-table { margin-top: 4px; }
.option-chain-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.option-chain-table { width: 100%; min-width: 660px; border-collapse: collapse; background: var(--surface); text-align: center; font-size: 15.95px; }
.option-chain-table caption { padding: 10px; color: var(--text-muted); text-align: left; font-size: 15.95px; }
.option-chain-table th, .option-chain-table td { padding: 9px 8px; border-top: 1px solid var(--border); }
.option-chain-table thead tr:first-child th { border-top: 0; color: #1e3a8a; background: #eff6ff; }
.option-chain-table thead tr:last-child th { color: var(--text-muted); background: #f8fafc; font-weight: 700; }
.option-chain-table tbody tr:nth-child(odd) { background: #fcfdff; }
.option-chain-table tbody th { color: #1d4ed8; background: #f8fbff; }
@media (max-width: 860px) {
  .tick-concept-grid { grid-template-columns: 1fr; }
  .tick-price { font-size: 25px; }
}
.product-explainer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-explainer { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.product-explainer > i { color: var(--accent); font-size: 22px; margin-bottom: 13px; }
.product-explainer h3 { font-size: 18px; margin-bottom: 7px; }
.product-explainer > p { min-height: 66px; color: var(--text-2); font-size: 15.95px; line-height: 1.65; }
.product-explainer > div { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--border); display: grid; gap: 3px; }
.product-explainer strong { color: var(--accent); font-size: 15.95px; }
.product-explainer span { color: var(--text-muted); font-size: 15.95px; line-height: 1.55; }

.markdown-card { padding: 28px; background: var(--surface2); border: 1.5px solid var(--border); border-radius: var(--radius); }
.markdown-label { color: var(--accent); font-size: 15.95px; font-weight: 800; letter-spacing: .1em; }
.markdown-card h2 { font-size: 26px; line-height: 1.35; margin: 10px 0 20px; }
.markdown-card blockquote { padding: 14px 18px; color: var(--text-2); background: var(--accent-dim2); border-left: 3px solid var(--accent); }
.markdown-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 26px; }
.markdown-columns h3 { margin-bottom: 8px; font-size: 17.6px; }
.markdown-columns ul { padding-left: 19px; color: var(--text-muted); font-size: 15.95px; }
.content-disclaimer { margin-top: 28px; color: var(--text-muted); font-size: 15.95px; }

/* ===== Market calendar ===== */
.calendar-page { max-width: none; }
.calendar-page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.calendar-page-head .content-kicker { margin: 0 0 6px; font-size: 15.95px; }
.calendar-page-head h1 { margin: 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; }
.calendar-page-head .content-lead { max-width: 460px; margin: 0 0 2px; font-size: 15.95px; line-height: 1.6; text-align: right; }
@media (max-width: 860px) {
  .calendar-page-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .calendar-page-head .content-lead { max-width: none; text-align: left; }
}
.calendar-board { margin: 28px 0 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--surface2); }
.calendar-toolbar-nav { display: flex; align-items: center; gap: 10px; }
.calendar-toolbar-nav strong { min-width: 108px; font-size: 17.6px; }
.calendar-nav-btn, .calendar-today-btn { display: grid; place-items: center; padding: 7px 10px; border: 1px solid var(--border-hi); border-radius: 7px; background: var(--surface); color: var(--text-2); font: 750 14.5px var(--font); cursor: pointer; }
.calendar-nav-btn:hover, .calendar-today-btn:hover { color: var(--accent); border-color: var(--accent); }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15.95px; font-weight: 800; }
.calendar-legend span, .calendar-tag, .calendar-chip { border-radius: 999px; padding: 4px 9px; }
.cal-cat-macro { color: #1d4ed8; background: #dbeafe; }
.cal-cat-earnings { color: #15803d; background: #dcfce7; }
.cal-cat-expiry { color: #b45309; background: #fef3c7; }
.cal-cat-holiday { color: #6b7280; background: #e5e7eb; }
.cal-cat-policy { color: #7e22ce; background: #f3e8ff; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--border); background: var(--surface2); }
.calendar-weekdays span { padding: 9px 0; text-align: center; color: var(--text-muted); font-size: 15.95px; font-weight: 800; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-cell { min-width: 0; min-height: 108px; padding: 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell.is-empty { background: var(--surface2); }
.calendar-cell.has-event { background: var(--accent-dim2); }
.calendar-daynum { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 15.95px; font-weight: 750; }
.calendar-cell.is-today .calendar-daynum { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #000; }
.calendar-chips { display: flex; flex-direction: column; gap: 4px; }
.calendar-chip { display: block; width: 100%; overflow: hidden; border: 0; text-align: left; text-overflow: ellipsis; white-space: nowrap; font: 750 14.5px var(--font); cursor: pointer; }
.calendar-chip:hover, .calendar-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.calendar-more { color: var(--text-muted); font-size: 15.95px; font-weight: 700; }
.calendar-agenda-section { margin-top: 40px; }
.calendar-agenda-list { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.calendar-agenda-item { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.calendar-agenda-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; border-radius: 8px; background: var(--surface2); color: var(--text); text-align: center; }
.calendar-agenda-date b { font-size: 17.6px; }
.calendar-agenda-date span { color: var(--text-muted); font-size: 15.95px; }
.calendar-agenda-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.calendar-tag { font-size: 15.95px; letter-spacing: .02em; }
.calendar-agenda-title { padding: 0; border: 0; background: none; color: var(--text); font: 800 16px var(--font); text-align: left; cursor: pointer; }
.calendar-agenda-title:hover, .calendar-agenda-title:focus-visible { color: var(--accent); text-decoration: underline; outline: none; }
.calendar-agenda-body p { margin: 0; color: var(--text-muted); font-size: 15.95px; line-height: 1.55; }
.calendar-agenda-empty { padding: 16px; color: var(--text-muted); font-size: 15.95px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); }
.calendar-modal-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .calendar-cell { min-height: 84px; }
  .calendar-toolbar { flex-direction: column; align-items: flex-start; }
  .calendar-agenda-item { grid-template-columns: 1fr; }
  .calendar-agenda-date { flex-direction: row; justify-content: flex-start; gap: 6px; }
}
@media (max-width: 520px) {
  .calendar-weekdays span:nth-child(n) { font-size: 15.95px; }
  .calendar-chip { font-size: 15.95px; }
}

/* ===== Simulation guide ===== */
.simulation-page { max-width: 850px; }.simulation-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 38px 0; }.simulation-steps div { padding: 18px; border: 1.5px solid var(--border); background: var(--surface2); border-radius: var(--radius); }.simulation-steps span { color: var(--accent); font-size: 15.95px; font-weight: 800; }.simulation-steps h3 { margin: 10px 0 5px; font-size: 17px; }.simulation-steps p, .warning-card p { color: var(--text-muted); font-size: 15.95px; }.warning-card h2 { font-size: 19px; }.warning-card h2 i { color: var(--accent); }

.hero-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(360px, 1fr);
  gap: 18px;
  text-align: left;
}

.hero-focus,
.course-card {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}

.hero-focus {
  padding: 22px;
}

.hero-focus-badge {
  display: inline-block;
  font-size: 15.95px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.hero-focus h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.hero-focus p {
  color: var(--text-2);
  font-size: 17.6px;
}

.hero-bullets {
  margin-top: 16px;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.hero-bullets li {
  color: var(--text-2);
  font-size: 16.5px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.course-card {
  text-align: left;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}

.course-card:hover,
.course-card.active {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.course-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.course-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
}

.course-card p {
  color: var(--text-muted);
  font-size: 15.95px;
}

.quick-examples { margin-top: 22px; }

.examples-label {
  font-size: 15.95px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.example-chip {
  display: inline-block;
  margin: 5px;
  padding: 11px 22px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 17px;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.example-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Message bubbles */
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 38px; height: 38px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--accent);
}

.msg.user .msg-avatar { border-color: var(--accent); }

.msg-bubble {
  max-width: 72%;
  padding: 14px 20px;
  border-radius: var(--radius);
  line-height: 1.8;
  font-size: 17px;
}

.msg.user .msg-bubble {
  background: var(--accent-dim);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius) 4px var(--radius) var(--radius);
  color: var(--text);
}

.msg.bot .msg-bubble {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 4px var(--radius) var(--radius) var(--radius);
}

.msg-meta {
  font-size: 15.95px;
  color: var(--text-muted);
  margin-top: 7px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ref-btn {
  font-size: 15.95px;
  padding: 3px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ref-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* Typing indicator */
.typing-dots { display: flex; gap: 5px; align-items: center; padding: 4px 0; }
.typing-dots span {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
  opacity: 0.5;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-7px); opacity: 1; }
}

/* ===== Input area ===== */
.chat-input-area {
  padding: 16px 24px;
  border-top: 2px solid var(--border);
  background: var(--surface);
}

.input-row { display: flex; gap: 10px; align-items: flex-end; }

.question-input {
  flex: 1;
  padding: 13px 18px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 18px;
  font-family: var(--font);
  resize: none;
  outline: none;
  max-height: 140px;
  transition: border-color 0.15s;
  line-height: 1.5;
}

.question-input:focus { border-color: var(--accent); }
.question-input::placeholder { color: var(--text-muted); font-size: 17.6px; }

.send-btn {
  width: 50px; height: 50px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 19px;
  transition: background 0.15s, transform 0.1s;
}

.send-btn:hover  { background: var(--accent-hov); }
.send-btn:active { transform: scale(0.95); }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.input-hint {
  font-size: 15.95px;
  color: var(--text-muted);
  margin-top: 9px;
}

.input-hint span { color: var(--accent); font-weight: 700; }

/* ===== Reference panel ===== */
.ref-panel {
  background: var(--surface);
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ref-header {
  padding: 16px 20px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ref-header h3 {
  font-size: 17.6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-header h3 i { color: var(--accent); }

.ref-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.simulation-panel {
  border-top: 2px solid var(--border);
  background: var(--surface);
}

.simulation-header {
  border-top: none;
}

.sim-label {
  font-size: 15.95px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sim-ask-btn {
  margin-top: 2px;
}

.ref-empty {
  font-size: 16.5px;
  color: var(--text-muted);
  text-align: center;
  padding: 30px 0;
}

.ref-card {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.ref-card:hover { border-color: var(--accent); }

.ref-card-title {
  font-size: 15.95px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.ref-card-score {
  font-size: 15.95px;
  color: #000;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
}

.ref-card-content {
  font-size: 15.95px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .app-layout { grid-template-columns: 260px 1fr; }
  .ref-panel { display: none; }
  .hero-layout,
  .course-grid,
  .home-module-grid,
  .product-explainer-grid,
  .simulation-steps { grid-template-columns: 1fr; }
  .chat-header { align-items: flex-start; gap: 12px; }
  .brand-nav { flex-wrap: wrap; }
  .header-actions .domain-badge { display: none; }
}
@media (max-width: 640px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .chat-header { padding: 10px 12px; }
  .brand-nav-btn { padding: 7px; font-size: 15.95px; }
  .content-page { padding: 30px 16px 55px; }
  .home-stats, .markdown-columns { grid-template-columns: 1fr; }
  .home-stats div { border-right: 0; border-bottom: 1px solid var(--border); }
  .home-stats div:last-child { border-bottom: 0; }
}

/* ===== Light theme & off-canvas panels ===== */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #e2e8f0;
  --border-hi: #cbd5e1;
  --accent: #2563eb;
  --accent-hov: #1d4ed8;
  --accent-dim: rgba(37, 99, 235, 0.12);
  --accent-dim2: rgba(37, 99, 235, 0.05);
  --text: #14213d;
  --text-2: #3e4c63;
  --text-muted: #6b7a90;
  --danger: #dc2626;
  --success: #16a34a;
}

html, body { background: var(--bg); }
body { overflow: hidden; }
.app-layout { display: block; height: 100vh; }

.sidebar,
.ref-panel {
  position: fixed;
  inset-block: 0;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  transition: transform 0.24s ease;
}

.sidebar {
  left: 0;
  border-right: 1px solid var(--border);
  transform: translateX(-105%);
}

.ref-panel {
  right: 0;
  border-left: 1px solid var(--border);
  transform: translateX(105%);
}

body.left-panel-open .sidebar { transform: translateX(0); }
body.right-panel-open .ref-panel { transform: translateX(0); }

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.offcanvas-backdrop.visible { opacity: 1; pointer-events: auto; }

.chat-area { min-height: 100vh; background: var(--bg); }
.chat-header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.main-kms-title {
  color: var(--text);
  font-size: 17.6px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.main-kms-title:hover { color: var(--accent); }
.brand-nav {
  min-width: 0;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.brand-nav::-webkit-scrollbar { display: none; }
.header-actions { flex-shrink: 0; }
.panel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-close,
.panel-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: 700 14.5px var(--font);
}
.panel-close { width: 34px; height: 34px; flex: 0 0 auto; }
.panel-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; }
.panel-close:hover,
.panel-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim2); }
.panel-toggle-right { margin-left: 2px; }

.topic-nav .nav-label:not(:first-child) { margin-top: 22px; }
.theory-menu-btn { align-items: center; gap: 9px; font-size: 15.95px; }
.day-menu-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 39px;
  padding: 3px 5px;
  border-radius: 5px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 15.95px;
  font-weight: 800;
}
.topic-btn.theory-menu-btn.active .day-menu-number { background: var(--accent); color: #fff; }

/* 좌측: 학습과 계산 실습 / 우측: RAG 자료와 답변 근거 */
.sidebar .simulation-panel { border-top: 1px solid var(--border); }
.ref-panel .rag-panel {
  flex: 0 0 auto;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ref-panel .rag-panel .section-copy { margin-bottom: 14px; }
.ref-panel .rag-panel .text-ingest { margin-top: 4px; }
.ref-panel .ref-list { min-height: 180px; }

.theory-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.theory-overview div { padding: 20px; border-right: 1px solid var(--border); }
.theory-overview div:last-child { border-right: 0; }
.theory-overview strong { display: block; color: var(--accent); font-size: 17px; margin-bottom: 6px; }
.theory-overview span { color: var(--text-muted); font-size: 15.95px; line-height: 1.5; }
.theory-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.theory-day-card {
  position: relative;
  text-align: left;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.theory-day-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 24px rgba(37, 99, 235, .1); }
.theory-day-card > .fa-solid { color: var(--accent); font-size: 22px; margin: 19px 0 13px; }
.theory-day-card h2 { margin: 0 0 9px; font-size: 20px; }
.theory-day-card p { color: var(--text-2); line-height: 1.65; margin: 0 0 14px; }
.theory-day-card small { display: block; color: var(--text-muted); line-height: 1.55; }
.theory-day-card em { display: block; margin-top: 18px; color: var(--accent); font-style: normal; font-weight: 750; font-size: 15.95px; }
.theory-day-number { color: var(--accent); font-size: 15.95px; font-weight: 800; letter-spacing: .08em; }
.glossary-hint { margin: 8px 0 16px; color: var(--text-muted); font-size: 15.95px; line-height: 1.6; }
.glossary-hint i { color: var(--accent); margin-right: 4px; }

.theory-back { padding: 0; border: 0; background: none; color: var(--text-muted); font: 700 14.5px var(--font); cursor: pointer; }
.theory-back:hover { color: var(--accent); }
.theory-detail-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.62fr); gap: 28px; align-items: stretch; min-height: 142px; padding: 4px 0 6px; }.theory-detail-heading .theory-title-copy > .fa-solid { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 6px 0 2px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); font-size: 15.95px; }.theory-detail-heading h1 { margin: 4px 0 4px; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.25; letter-spacing: -.03em; }.theory-detail-heading p { max-width: none; color: var(--text-2); font-size: 15.95px; line-height: 1.5; }.theory-title-visual { position: relative; display: grid; min-height: 132px; padding: 17px 20px; overflow: hidden; border: 1px solid #bfdbfe; border-radius: 15px; color: #1d4ed8; background: radial-gradient(circle at 85% 15%,#bfdbfe 0,transparent 30%),linear-gradient(135deg,#f8fbff,#eaf2ff); }.theory-title-visual>span { color:#2563eb;font-size:15.95px;font-weight:900;letter-spacing:.12em }.title-orbit,.title-rate,.title-line,.title-allocation { display:flex;align-items:center;justify-content:center;gap:10px;align-self:center }.title-orbit i,.title-rate i { display:grid;place-items:center;width:45px;height:45px;border-radius:50%;background:#2563eb;color:#fff;font-size:19px }.title-orbit b,.title-rate b { color:#172554;font-size:20px }.title-orbit span,.title-rate span { color:#64748b;font-size:15.95px;font-weight:750 }.title-bars { display:flex;align-items:end;justify-content:center;gap:10px;height:78px;align-self:end }.title-bars span { display:flex;align-items:end;width:42px;padding:0 4px 7px;border-radius:8px 8px 2px 2px;background:linear-gradient(#60a5fa,#1d4ed8);color:#fff;font-size:15.95px;font-weight:900;text-align:center }.title-bars span:nth-child(2){background:linear-gradient(#2dd4bf,#0f766e)}.title-bars span:nth-child(3){background:linear-gradient(#fbbf24,#d97706)}.title-line { flex-direction:column;gap:0 }.title-line svg { width:100%;height:75px;color:#2563eb }.title-line span { color:#64748b;font-size:15.95px;font-weight:850;letter-spacing:.08em }.title-allocation { gap:8px;align-self:center }.title-allocation i { width:78px;height:78px;border-radius:50%;background:conic-gradient(#2563eb 0 42%,#2dd4bf 42% 72%,#fbbf24 72% 100%) }.title-allocation b { padding:7px 9px;border-radius:99px;background:#fff;color:#1e40af;font-size:15.95px }

/* 2일차 한국시장 매거진 섹션 */
.theory-day-2 .theory-lesson:nth-child(n+4) { position: relative; overflow: hidden; border-color: #bfdbfe; background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%); }
.theory-day-2 .theory-lesson:nth-child(n+4)::after { content: 'KOREA MARKET MAGAZINE'; position: absolute; top: 16px; right: 56px; color: rgba(37, 99, 235, .16); font-size: 15.95px; font-weight: 900; letter-spacing: .09em; }
.theory-day-2 .theory-lesson:nth-child(n+4) h2 { padding-right: 146px; }
.theory-goal, .theory-check, .theory-keywords { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.theory-goal { padding: 20px 22px; border-left: 4px solid var(--accent); }
.theory-goal strong, .theory-check strong, .theory-keywords > strong { color: var(--accent); font-size: 15.95px; }
.theory-goal p { margin: 8px 0 0; color: var(--text-2); line-height: 1.7; }
.lesson-inline-visual { margin: 22px 0 4px; padding: 17px; overflow: hidden; border: 1px solid #c8d9f5; border-radius: 12px; background: linear-gradient(135deg, #f8fbff, #eef5ff); }.lesson-inline-visual > span { display: block; margin-bottom: 12px; color: #2563eb; font-size: 15.95px; font-weight: 900; letter-spacing: .12em; }.lesson-inline-visual figcaption { margin-top: 12px; color: #64748b; font-size: 15.95px; line-height: 1.6; }.balance-visual, .position-portfolio-visual { display: flex; align-items: stretch; gap: 10px; }.balance-visual article, .position-portfolio-visual article { flex: 1; min-height: 105px; padding: 15px; border: 1px solid #d7e3f5; border-radius: 10px; background: #fff; }.balance-visual > i, .position-portfolio-visual > i { align-self: center; color: #2563eb; font-size: 19px; }.balance-visual i, .position-portfolio-visual article > i { display: block; margin-bottom: 9px; color: #2563eb; font-size: 20px; }.balance-visual b, .position-portfolio-visual b { display: block; color: #172554; font-size: 16.5px; }.balance-visual small, .position-portfolio-visual small { display: block; margin-top: 5px; color: #64748b; font-size: 15.95px; }.position-portfolio-visual em { display: block; margin-top: 10px; color: #0f766e; font-size: 15.95px; font-style: normal; font-weight: 750; }.portfolio-basket { background: #edf7ff !important; }.timeline-visual { display: flex; align-items: center; gap: 9px; }.timeline-visual b { flex: 1; padding: 13px 9px; border-radius: 9px; color: #1e3a8a; background: #fff; font-size: 15.95px; text-align: center; }.timeline-visual small { display: block; margin-top: 4px; color: #64748b; font-size: 15.95px; font-weight: 600; line-height: 1.4; }.timeline-visual > i { width: 26px; height: 2px; background: #93c5fd; }.timeline-visual > i::after { display: block; float: right; margin-top: -4px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid #2563eb; content: ''; }.rate-path b:first-child { color: #b45309; background: #fff7ed; }.rate-path b:nth-child(3) { color: #b91c1c; background: #fff1f2; }.metric-card-visual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.metric-card-visual article { padding: 15px; border-radius: 10px; background: #fff; border: 1px solid #d7e3f5; }.metric-card-visual i { display: block; margin-bottom: 9px; color: #2563eb; font-size: 20px; }.metric-card-visual b, .metric-card-visual small { display: block; }.metric-card-visual b { color: #172554; font-size: 15.95px; }.metric-card-visual small { margin-top: 5px; color: #64748b; font-size: 15.95px; }.allocation-inline { display: grid; grid-template-columns: 90px repeat(3, 1fr); gap: 10px; align-items: center; }.allocation-inline i { width: 82px; height: 82px; border-radius: 50%; background: conic-gradient(#2563eb 0 42%,#2dd4bf 42% 72%,#94a3b8 72% 100%); }.allocation-inline span { padding: 12px; border-radius: 9px; color: #1e3a8a; background: #fff; font-size: 15.95px; font-weight: 800; text-align: center; }.allocation-inline small { color: #64748b; font-size: 15.95px; font-weight: 600; }
.theory-detail-heading { grid-template-columns: minmax(240px, .7fr) minmax(460px, 1.3fr); min-height: 154px; }.theory-title-side { display: grid; grid-template-rows: 1fr auto; gap: 9px; }.theory-title-side .theory-goal { padding: 12px 16px; }.theory-title-side .theory-goal strong { font-size: 15.95px; }.theory-title-side .theory-goal p { margin-top: 4px; font-size: 15.95px; line-height: 1.55; }.theory-title-side .lesson-dashboard { margin: 0; }.theory-title-side .lesson-dashboard div { padding: 9px 14px; }.theory-title-side .lesson-dashboard strong { font-size: 19px; }.theory-title-side .lesson-dashboard small { font-size: 15.95px; }
.theory-lesson-list { margin: 18px 0; display: flex; flex-direction: column; gap: 14px; }
.day-roadmap { margin: 18px 0; padding: 24px; border: 1px solid #bfdbfe; border-radius: var(--radius); background: linear-gradient(135deg, #f8fbff, #eef6ff); }
.day-roadmap header { max-width: 760px; }
.day-roadmap header > span { color: var(--accent); font-size: 15.95px; font-weight: 900; letter-spacing: .12em; }
.day-roadmap h2 { margin: 7px 0; color: #102a5a; font-size: 22px; letter-spacing: -.03em; }
.day-roadmap p { margin: 0; color: var(--text-2); font-size: 15.95px; line-height: 1.7; }
.day-roadmap ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: none; }
.day-roadmap li { min-width: 0; }
.day-roadmap a { display: grid; grid-template-columns: 27px minmax(0, 1fr) 16px; gap: 8px; align-items: center; min-height: 50px; padding: 10px 12px; border: 1px solid #d6e5fb; border-radius: 10px; color: var(--text); background: #fff; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.day-roadmap a:hover { border-color: #60a5fa; box-shadow: 0 7px 16px rgba(37, 99, 235, .10); transform: translateY(-1px); }
.day-roadmap a b { color: var(--accent); font-size: 15.95px; letter-spacing: .06em; }
.day-roadmap a span { overflow: hidden; font-size: 15.95px; font-weight: 750; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.day-roadmap a i { color: var(--accent); font-size: 15.95px; text-align: center; }
.theory-lesson { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 58px 24px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.theory-lesson > span { color: var(--accent); font-size: 15.95px; font-weight: 800; letter-spacing: .08em; }
.theory-lesson h2 { margin: 0 0 12px; font-size: 21px; }
.theory-lesson p { margin: 0 0 10px; color: var(--text-2); font-size: 17.6px; line-height: 1.8; }
.theory-lesson p:last-child { margin-bottom: 0; }
.day4-projects .theory-lesson-body > ul > li > strong:first-child { color: #16835d; font-size: 18px; font-weight: 850; }
.day4-projects .theory-lesson-body > ul > li > ol > li:not(.has-implementation-detail)::after { display: block; margin-top: 3px; color: #8b5e3c; font-size: 15.95px; font-weight: 800; content: "기술스택 및 구현방안"; }
.day4-projects .implementation-detail { display: block; margin-top: 3px; color: #8b5e3c; font-size: 15.95px; font-weight: 800; }
.day4-projects .implementation-detail a { color: inherit; text-decoration: underline; }
.day4-projects .aws-operations-stack { margin: 8px 0 14px; padding: 10px 12px; border: 1px solid #dcc9b7; border-radius: 10px; background: #fffaf5; }
.day4-projects .aws-operations-stack > span { display: block; margin-top: 3px; }
.day4-projects .technology-stack-summary { margin: 14px 0 20px; }
.day4-projects .technology-stack-summary h3 { margin: 0 0 8px; color: #173d72; font-size: 19px; }
.day4-projects .technology-stack-summary > p { margin: 0 0 10px; color: var(--text-muted); font-size: 15.95px; line-height: 1.65; }
.day4-projects .technology-stack-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.day4-projects .technology-stack-summary table { width: 100%; min-width: 880px; border-collapse: collapse; background: var(--surface); }
.day4-projects .technology-stack-summary th,
.day4-projects .technology-stack-summary td { padding: 10px 12px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15.4px; line-height: 1.55; }
.day4-projects .technology-stack-summary th:first-child,
.day4-projects .technology-stack-summary td:first-child { border-left: 0; }
.day4-projects .technology-stack-summary thead th { border-top: 0; color: #173d72; background: var(--accent-dim2); font-weight: 850; }
.day4-projects .technology-stack-summary tbody th { width: 15%; color: #16835d; background: #f8fbff; }
.day4-projects .technology-stack-summary > .technology-stack-interview-note { margin: 20px 0 0; padding: 22px 24px; border: 2px solid #f6c453; border-left: 8px solid #f59e0b; border-radius: 14px; background: linear-gradient(135deg, #102a5d 0%, #214c9c 58%, #315ff4 100%); color: #fff; font-size: clamp(20px, 2vw, 26px); font-weight: 900; line-height: 1.55; letter-spacing: -.02em; box-shadow: 0 12px 30px rgba(16, 42, 93, .24); }
.day4-projects .technology-stack-summary > .technology-stack-interview-note::before { display: block; margin-bottom: 7px; color: #ffd875; font-size: 13.2px; font-weight: 900; letter-spacing: .14em; content: "INTERVIEW POINT"; }
.day4-projects .technology-stack-summary > .technology-stack-interview-note strong { color: #fff; font: inherit; }
.day4-projects .project-staffing-note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.day4-projects .project-staffing-note > strong { grid-column: 1 / -1; color: #173d72; font-size: 19.4px; line-height: 1.45; }
.day4-projects .project-staffing-note article { padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; background: #fbfcff; }
.day4-projects .project-staffing-note article:last-child { border-color: #9bd6b8; background: #f0fbf5; }
.day4-projects .project-staffing-note b,
.day4-projects .project-staffing-note span { display: block; }
.day4-projects .project-staffing-note b { color: #173d72; font-size: 17px; line-height: 1.5; }
.day4-projects .project-staffing-note span { margin-top: 4px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.day4-projects .project-staffing-note article:last-child b { color: #0c5f38; }
.day4-projects .project-deliverables { margin-top: 20px; }
.day4-projects .project-deliverables h4 { margin: 0 0 7px; color: #173d72; font-size: 18px; }
.day4-projects .project-deliverables > p { margin: 0 0 10px; color: var(--text-muted); font-size: 15.95px; line-height: 1.65; }
.day4-projects .project-deliverables-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.day4-projects .project-deliverables table { width: 100%; min-width: 900px; border-collapse: collapse; background: var(--surface); }
.day4-projects .project-deliverables th,
.day4-projects .project-deliverables td { padding: 10px 12px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15.4px; line-height: 1.55; }
.day4-projects .project-deliverables th:first-child,
.day4-projects .project-deliverables td:first-child { border-left: 0; }
.day4-projects .project-deliverables thead th { border-top: 0; color: #173d72; background: var(--accent-dim2); font-weight: 850; }
.day4-projects .project-deliverables tbody th { width: 15%; color: #7a4b12; background: #fffaf5; }
.day4-projects .project-progress-cautions { margin: 24px 0 18px; padding: 22px; border: 1px solid #b8ccf5; border-radius: 16px; background: linear-gradient(135deg, #eef4ff 0%, #f5f8ff 55%, #edf7ff 100%); box-shadow: 0 12px 28px rgba(35, 76, 145, .12); }
.day4-projects .project-progress-cautions::before { display: block; margin-bottom: 5px; color: #315ff4; font-size: 13.75px; font-weight: 900; letter-spacing: .12em; content: "PROJECT OPERATING GUIDE"; }
.day4-projects .project-progress-cautions h3 { margin: 0 0 15px; color: #123b72; font-size: 22px; line-height: 1.4; }
.day4-projects .project-progress-cautions ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: project-caution; color: #304867; font-size: 17px; line-height: 1.65; }
.day4-projects .project-progress-cautions li { position: relative; min-height: 48px; padding: 10px 14px 10px 52px; border: 1px solid #d6e2f7; border-radius: 10px; background: rgba(255, 255, 255, .9); counter-increment: project-caution; }
.day4-projects .project-progress-cautions li::before { position: absolute; top: 10px; left: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #315ff4; color: #fff; font-size: 15.4px; font-weight: 900; content: counter(project-caution); }
.day4-projects .project-progress-cautions b { color: #174ea6; }
.day4-projects .project-schedule { margin-top: 24px; }
.day4-projects .project-schedule h4 { margin: 0 0 7px; color: #173d72; font-size: 19.8px; }
.day4-projects .project-schedule > p { margin: 0 0 12px; color: var(--text-muted); font-size: 17.6px; line-height: 1.65; }
.day4-projects .project-schedule-role-guide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
.day4-projects .project-schedule-role-guide span { padding: 8px 10px; border-radius: 8px; background: var(--accent-dim2); color: #173d72; font-size: 15.18px; font-weight: 800; }
.day4-projects .project-schedule-sheet { margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.day4-projects .project-schedule-sheet-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 13px 14px; border-radius: 10px 10px 0 0; background: var(--accent-dim2); color: #173d72; }
.day4-projects .project-schedule-sheet-head span { font-size: 17.6px; font-weight: 900; }
.day4-projects .project-schedule-sheet-head b { font-size: 16.39px; text-align: right; }
.day4-projects .project-schedule-sheet-head small { grid-column: 2; color: var(--text-muted); font-size: 15.18px; text-align: right; }
.day4-projects .project-schedule-buffer-note { margin: 0; padding: 10px 14px; border-top: 1px solid var(--border); background: #fffaf0; color: #6f4d17; font-size: 15.18px; line-height: 1.55; }
.day4-projects .project-schedule-buffer-note b { margin-right: 5px; color: #9a5b00; }
.day4-projects .project-schedule-table-wrap { border-top: 1px solid var(--border); }
.day4-projects .project-schedule table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--surface); }
.day4-projects .project-schedule th,
.day4-projects .project-schedule td { padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15.73px; line-height: 1.45; }
.day4-projects .project-schedule thead th { color: #173d72; background: #eaf1ff; font-weight: 850; }
.day4-projects .project-schedule thead th:first-child { width: 11%; }
.day4-projects .project-schedule thead th:nth-child(2) { width: 13%; }
.day4-projects .project-schedule tbody th { color: #173d72; background: #f8fbff; text-align: center; }
.day4-projects .project-schedule tbody th b,
.day4-projects .project-schedule tbody th small,
.day4-projects .project-schedule td b,
.day4-projects .project-schedule td small { display: block; }
.day4-projects .project-schedule tbody th b { font-size: 16.5px; }
.day4-projects .project-schedule tbody th small { margin-top: 3px; color: #6b7d98; font-size: 13.31px; font-weight: 700; }
.day4-projects .project-schedule td b { color: #243b63; font-size: 15.18px; }
.day4-projects .project-schedule td small { margin-top: 5px; color: #64748b; font-size: 13.97px; }
.day4-projects .project-schedule td { word-break: keep-all; overflow-wrap: anywhere; }
.day4-projects .project-schedule td:nth-child(2) { background: #fbfcff; }
.day4-projects .schedule-project-tag { display: inline-block; margin-bottom: 5px; padding: 2px 7px; border-radius: 999px; background: #e5e7eb; color: #475569; font-size: 12.76px; font-weight: 900; }
.day4-projects .schedule-project-tag.robo { background: #e6f7ef; color: #087653; }
.day4-projects .schedule-project-tag.indicator { background: #eef3ff; color: #2455c7; }
.day4-projects .schedule-project-tag.integration { background: #f4edff; color: #6841c7; }
@media (max-width: 720px) { .day4-projects .project-staffing-note { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .day4-projects .project-schedule-role-guide { grid-template-columns: 1fr 1fr; }
  .day4-projects .project-schedule-sheet-head { grid-template-columns: 1fr; }
  .day4-projects .project-schedule-sheet-head b,
  .day4-projects .project-schedule-sheet-head small { grid-column: 1; text-align: left; }
  .day4-projects .project-schedule table,
  .day4-projects .project-schedule thead,
  .day4-projects .project-schedule tbody,
  .day4-projects .project-schedule tr,
  .day4-projects .project-schedule th,
  .day4-projects .project-schedule td { display: block; width: 100%; }
  .day4-projects .project-schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .day4-projects .project-schedule tbody tr { padding: 10px; border-bottom: 1px solid var(--border); }
  .day4-projects .project-schedule tbody tr:last-child { border-bottom: 0; }
  .day4-projects .project-schedule tbody th,
  .day4-projects .project-schedule td { box-sizing: border-box; border: 0; }
  .day4-projects .project-schedule tbody th { padding: 7px 10px; border-radius: 7px; text-align: left; }
  .day4-projects .project-schedule tbody th b,
  .day4-projects .project-schedule tbody th small { display: inline; margin: 0 0 0 7px; }
  .day4-projects .project-schedule td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
  .day4-projects .project-schedule td:last-child { border-bottom: 0; }
  .day4-projects .project-schedule td:nth-child(n + 3)::before { display: block; margin-bottom: 4px; color: var(--accent); font-size: 12.1px; font-weight: 900; }
  .day4-projects .project-schedule td:nth-child(3)::before { content: "1번 · 금융 Product Owner"; }
  .day4-projects .project-schedule td:nth-child(4)::before { content: "2번 · PM/아키텍처"; }
  .day4-projects .project-schedule td:nth-child(5)::before { content: "3번 · 데이터·퀀트/SA"; }
  .day4-projects .project-schedule td:nth-child(6)::before { content: "4번 · 풀스택 개발"; }
}
.lesson-accordion-toggle { position: absolute; z-index: 1; top: 16px; right: 16px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: var(--accent); font: 800 18px/1 var(--font); cursor: pointer; transition: transform .16s ease, background .16s ease; }
.lesson-accordion-toggle:hover { background: var(--accent-dim); }
.theory-lesson.is-collapsed .theory-lesson-body { display: none; }
.theory-lesson.is-collapsed h2 { margin-bottom: 0; }
.xai-lesson .theory-lesson-body h3 { margin: 24px 0 10px; color: var(--text-1); font-size: 19px; }
.xai-lesson .theory-lesson-body ul,
.xai-lesson .theory-lesson-body ol { margin: 0 0 16px; padding-left: 24px; color: var(--text-2); font-size: 17px; line-height: 1.75; }
.xai-table-wrap { margin: 14px 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.xai-table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--surface); }
.xai-table-wrap th,
.xai-table-wrap td { padding: 11px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.xai-table-wrap thead th { border-top: 0; color: var(--accent); background: var(--accent-dim2); }
.xai-lesson blockquote { margin: 20px 0 0; padding: 14px 18px; border-left: 4px solid var(--accent); border-radius: 8px; background: var(--accent-dim2); }
.xai-lesson blockquote p { margin: 0; }
.xai-lesson blockquote p + p { margin-top: 8px; }
.theory-lesson.is-collapsed .lesson-accordion-toggle { transform: rotate(180deg); }
.accordion-summary { position: relative; }
.section-accordion-toggle { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(186, 230, 253, .65); border-radius: 999px; background: rgba(15, 23, 42, .34); color: #e0f2fe; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.section-accordion-toggle:hover { background: rgba(30, 64, 175, .75); }
.section-accordion-toggle i { font-size: 15.95px; }
.accordion-section.is-collapsed > :not(.accordion-summary) { display: none; }
.accordion-section.is-collapsed .section-accordion-toggle { transform: rotate(180deg); }
.theory-check { display: flex; gap: 14px; padding: 20px 22px; background: #f8fbff; }
.theory-check > i { color: var(--accent); padding-top: 2px; }
.theory-check p { margin: 7px 0 0; color: var(--text-2); line-height: 1.7; }
.theory-keywords { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 16px 20px; }
.theory-keywords > div { display: flex; flex-wrap: wrap; gap: 7px; }
.theory-keywords span { padding: 5px 9px; border-radius: 99px; background: var(--accent-dim); color: var(--accent); font-size: 15.95px; font-weight: 700; }
.theory-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; margin: 28px 0 10px; }
.theory-actions .content-secondary { white-space: nowrap; }

/* ===== Interactive glossary ===== */
.glossary-term {
  display: inline;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px dotted var(--accent);
  background: var(--accent-dim2);
  color: inherit;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.glossary-term:hover, .glossary-term:focus-visible { color: var(--accent); background: var(--accent-dim); outline: none; }
.glossary-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.glossary-modal.open { opacity: 1; pointer-events: auto; }
.glossary-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .48); }
.glossary-dialog { position: relative; width: min(620px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow-y: auto; padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 28px 80px rgba(15, 23, 42, .28); }
.glossary-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface2); color: var(--text-2); cursor: pointer; }
.glossary-close:hover { color: var(--accent); border-color: var(--accent); }
.glossary-label { color: var(--accent); font-size: 15.95px; font-weight: 800; letter-spacing: .1em; }
.glossary-label { display: none; }
.glossary-dialog h2 { margin: 8px 42px 18px 0; font-size: 30px; line-height: 1.25; }
.glossary-names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.glossary-names span { display: flex; flex-direction: column; gap: 4px; padding: 11px; border-radius: 8px; background: var(--surface2); color: var(--text-2); font-size: 15.95px; word-break: break-word; }
.glossary-names b { color: var(--text-muted); font-size: 15.95px; }
.glossary-summary { margin: 22px 0 12px; color: var(--text); font-size: 18px; font-weight: 700; line-height: 1.65; }
.glossary-detail { color: var(--text-2); line-height: 1.8; }
.glossary-note { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 15.95px; line-height: 1.6; }
body.modal-open { overflow: hidden; }

.btn-primary,
.send-btn,
.content-cta { color: #fff; }
.ref-card-score { color: #fff; }
.msg.user .msg-bubble { color: var(--text); }
.msg.user > div:nth-child(2) { min-width: 0; max-width: calc(100% - 50px); }
.msg.user .msg-bubble { max-width: 100%; white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.typing-label { display: inline-block; margin-left: 10px; color: var(--text-muted); font-size: 14px; vertical-align: middle; }

/* Native dashboard: former 8000 landing content absorbed into the 80-port shell. */
.native-dashboard-page { width: min(1480px, 100%); max-width: none; }
.native-dashboard-intro { display:flex; justify-content:space-between; gap:28px; padding:34px; color:#fff; background:#0058a3; border-bottom:8px solid #ffda1a; }
.native-dashboard-intro > div:first-child { max-width:760px; }.native-dashboard-intro span { color:#ffda1a; font-size:12px; font-weight:850; letter-spacing:.12em; }.native-dashboard-intro h1 { margin:8px 0 12px; color:#fff; font-size:clamp(30px,4vw,52px); line-height:1.14; }.native-dashboard-intro h1 mark { color:#ffda1a; background:transparent; }.native-dashboard-intro p { margin:0; color:#fff; line-height:1.6; }
.native-dashboard-actions { display:grid; align-content:center; gap:8px; min-width:220px; }.native-dashboard-actions button { padding:13px 16px; border:1px solid #fff; color:#111; background:#ffda1a; font:inherit; font-weight:800; cursor:pointer; text-align:left; }.native-dashboard-actions button + button { color:#fff; background:transparent; }.native-dashboard-actions i { margin-right:9px; }
.native-dashboard-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; margin:20px 0; background:#d7d7d7; }.native-dashboard-shortcuts button { display:grid; grid-template-columns:auto 1fr; column-gap:14px; align-items:center; min-height:100px; padding:20px; border:0; color:#111; background:#fff; text-align:left; cursor:pointer; font:inherit; }.native-dashboard-shortcuts button:hover { background:#e8f1f8; }.native-dashboard-shortcuts i { grid-row:span 2; color:#0058a3; font-size:25px; }.native-dashboard-shortcuts b { font-size:17px; }.native-dashboard-shortcuts small { color:#5b5b5b; margin-top:5px; }
.native-dashboard-live { display:grid; grid-template-columns:minmax(270px,.8fr) minmax(0,1.6fr); gap:20px; }.native-dashboard-live .content-section { margin:0; }.native-dashboard-live .dashboard-asset-grid { grid-template-columns:1fr; }.native-dashboard-live .tick-dashboard { min-width:0; }
.investment-native-module-page,.investment-native-dashboard-page { width:min(1480px,100%); max-width:none; }.investment-native-module-page { padding:28px 0 56px; }

/* The central canvas always owns the full available width.  Side panels are
   off-canvas, so they must not leave a phantom right-hand column. */
.messages { width:100%; box-sizing:border-box; }
.messages > .content-page,
.investment-practice-page,
.investment-native-dashboard-page,
.investment-native-module-page { width:100% !important; max-width:none !important; margin:0 !important; box-sizing:border-box; }
.investment-practice-page { padding-right:0; }
.practice-hub-head,.practice-hub-grid,.practice-flow { width:100%; box-sizing:border-box; }

.data-viz-head { padding:30px 32px; color:#fff; background:#0058a3; border-bottom:8px solid #ffda1a; }.data-viz-head span { color:#ffda1a; font-size:12px; font-weight:850; letter-spacing:.12em; }.data-viz-head h1 { margin:8px 0; color:#fff; font-size:clamp(28px,3.3vw,44px); }.data-viz-head h1 mark { color:#ffda1a; background:transparent; }.data-viz-head p { margin:0; color:#fff; }
.compact-menu-head { display:flex; align-items:baseline; gap:14px; min-height:52px; padding:0 4px; color:#111; border-bottom:1px solid #d7d7d7; }.compact-menu-head strong { flex:0 0 auto; color:#0058a3; font-size:18px; }.compact-menu-head span { color:#5b5b5b; font-size:14px; line-height:1.45; }
.data-viz-scroll { display:flex; gap:1px; overflow-x:auto; margin:20px 0; background:#d7d7d7; scrollbar-width:thin; }.data-viz-scroll button { display:grid; grid-template-columns:auto 1fr; column-gap:10px; min-width:210px; padding:14px 16px; border:0; color:#111; background:#fff; text-align:left; font:inherit; cursor:pointer; }.data-viz-scroll button:hover,.data-viz-scroll button.active { background:#e8f1f8; }.data-viz-scroll i { grid-row:span 2; align-self:center; color:#0058a3; font-size:21px; }.data-viz-scroll b { font-size:15px; }.data-viz-scroll small { margin-top:4px; color:#5b5b5b; white-space:nowrap; }.data-viz-mount { min-height:440px; background:#fff; }

/* Header navigation is anchored to the right edge of the available header area. */
.chat-header .brand-nav { justify-content:flex-end; margin-left:auto; }
.chat-header .brand-nav-btn.nav-item { display:inline-flex; align-items:center; gap:6px; min-height:59px; padding:0 14px; color:#fff; border:0; border-left:0; background:transparent; font-size:14px; font-weight:inherit; }
.chat-header .brand-nav-btn.nav-item i { width:auto; color:inherit; font-size:inherit; }
.chat-header .brand-nav-btn.nav-item:hover,.chat-header .brand-nav-btn.nav-item.active { color:#111; border-left:0; background:#ffda1a; font-weight:inherit; }

/* Native module CSS is loaded after this sheet; IDs intentionally keep the
   capture controls in the portal's right-bottom utility position. */
#screenCaptureFab.screen-capture-fab { right:24px; left:auto; bottom:24px; z-index:1600; border-radius:0; color:#111; background:#ffda1a; }
#screenCaptureFab.screen-capture-fab:hover { color:#fff; background:#0058a3; }
#screenCapturePanel.screen-capture-panel { right:24px; left:auto; bottom:78px; z-index:1601; border-radius:0; border-top:6px solid #0058a3; }
@media (max-width:640px) { #screenCaptureFab.screen-capture-fab { right:14px; left:auto; bottom:14px; } #screenCapturePanel.screen-capture-panel { right:14px; left:auto; bottom:66px; } }

/* Account modal must sit above every imported 8000 offcanvas/modal widget. */
/* Native 8000 CSS also has .auth-modal rules.  This account dialog is a
   distinct full-viewport overlay, so keep its geometry isolated by its ID. */
#authModal.auth-modal { position:fixed; inset:0; z-index:2200; display:grid; place-items:center; width:auto; margin:0; padding:16px; background:transparent; border:0; border-radius:0; box-shadow:none; }
#authModal.auth-modal[hidden] { display:none; }
#authModal .auth-modal-backdrop { position:absolute; z-index:0; inset:0; display:block; width:auto; margin:0; padding:0; background:rgba(15,23,42,.62); border:0; border-radius:0; box-shadow:none; }
#authModal .auth-dialog { position:relative; z-index:1; width:min(460px, calc(100vw - 32px)) !important; height:auto !important; min-height:0 !important; max-height:calc(100dvh - 32px) !important; margin:0; padding:30px !important; overflow:auto; box-sizing:border-box; background:#fff; }
#authModal .auth-dialog form { display:grid; width:100%; gap:12px; }
#authModal .auth-dialog input { box-sizing:border-box; min-width:0; }
#authModal .auth-status { min-height:20px; }
@media (max-width:640px) { .compact-menu-head { align-items:flex-start; flex-direction:column; gap:3px; padding:12px 0; } }
@media (max-width:900px) { .native-dashboard-intro,.native-dashboard-live { grid-template-columns:1fr; display:grid; }.native-dashboard-actions { min-width:0; grid-template-columns:1fr 1fr; }.native-dashboard-shortcuts { grid-template-columns:1fr; } }
.domain-badge { border-color: #bfdbfe; }
.chat-area {
  height: 100vh;
  min-height: 0;
}

/* 본문은 중앙의 좁은 컬럼이 아니라, 헤더 아래 사용 가능한 전체 폭을 사용합니다. */
.messages {
  min-height: 0;
  flex: 1 1 auto;
  padding: clamp(16px, 2vw, 32px);
  overscroll-behavior: contain;
}

.chat-header,
.chat-input-area,
.app-footer { flex: 0 0 auto; }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; padding: 8px clamp(16px, 2.5vw, 32px); border-top: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 15.95px; line-height: 1.35; }
.app-footer span:first-child { color: var(--text-2); font-weight: 750; }

.content-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 36px clamp(20px, 2.5vw, 48px) 72px;
}

.theory-detail-page { padding-top: 18px; }
.msg.bot .msg-bubble,
.course-card,
.hero-focus,
.home-module,
.markdown-card,
.simulation-steps div,
.ref-card { box-shadow: 0 2px 7px rgba(15, 23, 42, 0.03); }

@media (max-width: 700px) {
  .chat-header { gap: 8px; padding: 10px 12px; }
  .main-kms-title { display: none; }
  .panel-toggle span { display: none; }
  .panel-toggle { padding: 8px 10px; }
  .brand-nav { gap: 2px; }
  .brand-nav-btn { padding: 7px 6px; }
  .header-actions { gap: 5px; }
  .header-actions .btn-ghost { padding: 8px 10px; }
  .content-page { padding: 28px 16px 52px; }
  .theory-detail-page { padding-top: 34px; }
  .stocks-page-head { grid-template-columns: 1fr; gap: 13px; }
  .atlas-day-tabs { gap: 6px; }
  .day-roadmap { padding: 18px; }
  .day-roadmap ol { grid-template-columns: 1fr; }
  .theory-overview, .theory-index-grid { grid-template-columns: 1fr; }
  .theory-overview div { border-right: 0; border-bottom: 1px solid var(--border); }
  .theory-overview div:last-child { border-bottom: 0; }
  .theory-actions { grid-template-columns: 1fr 1fr; }
  .theory-actions .content-cta { grid-column: 1 / -1; }
  .theory-lesson { grid-template-columns: 1fr; gap: 7px; padding: 20px; }
  .theory-keywords { align-items: flex-start; flex-direction: column; gap: 9px; }
  .glossary-dialog { padding: 26px 20px; }
  .glossary-names { grid-template-columns: 1fr; }
  .app-footer { align-items: flex-start; flex-direction: column; gap: 2px; padding: 7px 16px; }
}

.auth-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.auth-modal[hidden] { display: none; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .62); backdrop-filter: blur(3px); }
.auth-dialog { position: relative; z-index: 1; width: min(420px, 100%); padding: 30px; border: 1px solid #bfdbfe; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(15, 23, 42, .3); }
.auth-dialog h2 { margin: 4px 0 20px; color: #172554; }.auth-dialog form { display: grid; gap: 14px; }.auth-dialog label { display: grid; gap: 6px; color: #334155; font-size: 15.95px; font-weight: 700; }.auth-dialog input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }.auth-switch { margin-top: 16px; padding: 0; border: 0; color: #2563eb; background: transparent; font: 700 14.5px var(--font); cursor: pointer; }.auth-status { min-height: 18px; margin: 9px 0 0; color: #dc2626; font-size: 15.95px; }
.personal-schedule { margin: 18px 0; padding: 18px; border: 1px solid #bfdbfe; border-radius: 12px; background: #f8fbff; }.personal-schedule h2 { margin: 0 0 12px; color: #172554; font-size: 18px; }.personal-schedule form { display: flex; gap: 8px; }.personal-schedule input { padding: 9px; border: 1px solid #cbd5e1; border-radius: 7px; font: inherit; }.personal-events { display: grid; gap: 7px; margin-top: 12px; }.personal-events span { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 7px; background: #fff; color: #334155; font-size: 15.95px; }.personal-events button { border: 0; color: #dc2626; background: transparent; cursor: pointer; }

/* ===== Allocation workbench ===== */
.simulation-page { max-width: 1240px; }
.simulation-workbench { margin-top: 28px; }
.simulation-workbench .simulation-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}
.simulation-header { padding: 22px 26px; background: linear-gradient(115deg, #eff6ff, #fff); }
.simulation-header > div { display: flex; flex-direction: column; gap: 3px; }
.simulation-header h3 { font-size: 21px; }
.simulation-eyebrow { color: var(--accent); font-size: 15.95px; font-weight: 800; letter-spacing: .11em; }
.simulation-live { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 15.95px; font-weight: 750; }
.simulation-live i { font-size: 15.95px; }
.sim-scenario-lab { margin: 0 26px; padding: 20px 0 22px; border-top: 1px solid var(--border); }
.scenario-lab-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.scenario-lab-heading h4 { font-size: 18px; }
.scenario-lab-heading > p { color: var(--text-muted); font-size: 15.95px; }
.scenario-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 12px; }
.sim-scenario { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); color: var(--text-2); font: 700 14.5px var(--font); cursor: pointer; }
.sim-scenario:hover, .sim-scenario.active { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.scenario-result { padding: 16px; border-radius: 10px; background: #fff7ed; color: var(--text-2); }
.scenario-result-head span { display: block; margin-bottom: 12px; color: #c2410c; font-size: 16.5px; font-weight: 800; }
.scenario-result p { margin: 12px 0 0; font-size: 15.95px; line-height: 1.65; }
.scenario-result .scenario-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.scenario-result .scenario-breakdown span { padding: 10px 8px; border-radius: 7px; background: rgba(255, 255, 255, .65); color: var(--text-muted); font-size: 15.95px; line-height: 1.5; }
.scenario-result .scenario-breakdown b { display: block; margin-top: 5px; font-size: 17px; }
.scenario-result .scenario-breakdown b.up { color: #dc2626; }
.scenario-result .scenario-breakdown b.down { color: #2563eb; }
.scenario-reasons { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #fbd8ab; }
.scenario-reasons-label { margin: 0 0 10px; color: var(--text-muted); font-size: 15.95px; font-weight: 800; }
.scenario-reasons-label i { color: #c2410c; margin-right: 4px; }
.scenario-reason { display: grid; grid-template-columns: minmax(140px, .28fr) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(194, 65, 12, .12); }
.scenario-reason:first-of-type { border-top: 0; padding-top: 0; }
.scenario-reason b { font-size: 15.95px; font-weight: 800; white-space: nowrap; }
.scenario-reason b.up { color: #dc2626; }
.scenario-reason b.down { color: #2563eb; }
.scenario-reason span { color: var(--text-2); font-size: 15.95px; line-height: 1.6; }
.sim-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 26px; background: var(--surface2); }
.sim-footer p { flex: 1 1 0; min-width: 0; margin: 0; color: var(--text-muted); font-size: 15.95px; line-height: 1.55; }
.sim-footer p i { color: var(--accent); margin-right: 4px; }
.sim-footer .sim-ask-btn { width: auto; flex: 0 0 auto; margin: 0; white-space: nowrap; }

/* ===== Learning infographics ===== */
.learning-map { margin: -24px 0 46px; padding: 20px 22px; border: 1px solid #bfdbfe; border-radius: 14px; background: linear-gradient(110deg, #eff6ff, #fff); }
.map-heading, .roadmap-label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.map-heading span, .roadmap-label span { color: var(--accent); font-size: 15.95px; font-weight: 850; letter-spacing: .1em; }
.map-heading strong, .roadmap-label strong { font-size: 16.5px; }
.map-steps, .rag-flow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.map-steps > div, .rag-flow > div { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 5px; text-align: center; }
.map-steps > div > i, .rag-flow > div > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 16.5px; }
.map-steps b, .rag-flow b { font-size: 15.95px; }
.map-steps small, .rag-flow span { color: var(--text-muted); font-size: 15.95px; line-height: 1.4; }
.map-steps > i, .rag-flow > i { color: #93c5fd; font-size: 15.95px; }
.rag-flow { margin: 20px 0 18px; padding: 20px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface2); }
.rag-flow > div > i { background: #0f766e; width: 42px; height: 42px; font-size: 17px; }
.rag-flow b { font-size: 16.5px; }
.rag-flow span { font-size: 15.95px; }

.theory-roadmap { margin: 25px 0; padding: 19px 21px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface2); }
.theory-roadmap > div:last-child { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.theory-roadmap button { min-height: 104px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.theory-roadmap button:hover { border-color: var(--accent); box-shadow: 0 6px 14px rgba(37,99,235,.08); }
.theory-roadmap b, .theory-roadmap i, .theory-roadmap span { display: block; }
.theory-roadmap b { color: var(--accent); font-size: 15.95px; letter-spacing: .08em; }
.theory-roadmap i { margin: 10px 0 6px; color: var(--accent); font-size: 17px; }
.theory-roadmap span { color: var(--text-2); font-size: 15.95px; font-weight: 700; line-height: 1.4; }
.lesson-dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; margin: 15px 0 18px; border: 1px solid var(--border); border-radius: 10px; }
.lesson-dashboard div { padding: 14px 16px; border-right: 1px solid var(--border); background: var(--surface2); }
.lesson-dashboard div:last-child { border-right: 0; }
.lesson-dashboard span, .lesson-dashboard strong, .lesson-dashboard small { display: block; }
.lesson-dashboard span { color: var(--text-muted); font-size: 15.95px; font-weight: 800; letter-spacing: .09em; }
.lesson-dashboard strong { margin: 3px 0; color: var(--accent); font-size: 24px; line-height: 1.2; }
.lesson-dashboard strong i { font-size: 17px; }
.lesson-dashboard small { color: var(--text-2); font-size: 15.95px; }
/* 모든 일차에 표시되는 금융상품 학습 인포그래픽 */

.product-journey {
  margin: 28px 0;
  padding: 30px;
  color: #eff8ff;
  background: linear-gradient(135deg, #082c50, #0d5a70);
  border-radius: 18px;
}

.product-journey-heading span {
  color: #63d7ff;
  font-size: 15.95px;
  font-weight: 800;
  letter-spacing: .12em;
}

.product-journey-heading h2 { margin: 8px 0; color: #fff; }
.product-journey-heading p { margin: 0; color: #c8e6f2; }
.product-journey-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.product-journey-grid article { min-height: 128px; padding: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(176,232,255,.25); border-radius: 12px; }
.product-journey-grid h3 { margin: 0 0 10px; color: #fff; font-size: 17px; }
.product-journey-grid p { min-height: 40px; margin: 0; color: #e3f5fc; line-height: 1.55; }
.product-journey-grid small { display: block; margin-top: 12px; color: #81e0ff; line-height: 1.45; }
.product-journey-note { margin: 18px 0 0; color: #b9e7f5; font-size: 15.95px; }

.life-trade-guide { margin: 40px 0; padding: 34px; color: #eff8ff; background: linear-gradient(135deg, #312e81, #0f766e); border-radius: 18px; }
.life-trade-guide > div:first-child > span { color: #a5f3fc; font-size: 15.95px; font-weight: 850; letter-spacing: .12em; }
.life-trade-guide h2 { margin: 10px 0; color: #fff; font-size: clamp(24px, 3vw, 34px); }
.life-trade-guide > div:first-child > p { max-width: 700px; margin: 0; color: #d9f5f6; line-height: 1.65; }
.life-trade-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 25px; }
.life-trade-grid article { min-height: 130px; padding: 17px; background: rgba(255,255,255,.11); border: 1px solid rgba(207,250,254,.22); border-radius: 12px; }
.life-trade-grid i { color: #67e8f9; font-size: 20px; }.life-trade-grid h3 { margin: 12px 0 7px; color: #fff; font-size: 17.6px; }.life-trade-grid p { margin: 0; color: #d8f5f5; font-size: 15.95px; line-height: 1.55; }
.life-trade-guide footer { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 24px; color: #d5f7f7; font-size: 15.95px; }.life-trade-guide footer b { color: #fff; }.life-trade-guide footer i { width: 16px; height: 1px; background: #67e8f9; }

.lending-funnel { margin: 30px 0; padding: 34px; color: #ecfeff; background: #071a36; border-radius: 18px; overflow: hidden; }
.lending-funnel header { max-width: 760px; }.lending-funnel header > span { color: #67e8f9; font-size: 15.95px; font-weight: 850; letter-spacing: .12em; }.lending-funnel h2 { margin: 9px 0; color: #fff; font-size: clamp(25px, 3.2vw, 36px); line-height: 1.2; }.lending-funnel h2 em { color: #67e8f9; font-style: normal; }.lending-funnel header p { color: #cbd5e1; line-height: 1.65; }
.lending-funnel-chart { display: grid; gap: 8px; margin-top: 28px; }.funnel-level { display: grid; grid-template-columns: 1.15fr .75fr 1.35fr 1.35fr; gap: 16px; align-items: center; min-height: 92px; margin: 0 auto; padding: 16px 22px 16px 30px; clip-path: polygon(0 0, 96% 0, 100% 100%, 0 100%); }.funnel-level.level-1 { width: 100%; background: linear-gradient(90deg, #075985, #0e7490); }.funnel-level.level-2 { width: 88%; background: linear-gradient(90deg, #155e75, #0f766e); }.funnel-level.level-3 { width: 76%; background: linear-gradient(90deg, #92400e, #b45309); }.funnel-level.level-4 { width: 64%; background: linear-gradient(90deg, #991b1b, #b91c1c); }.funnel-level b { display: block; color: #fff; font-size: 17px; }.funnel-level div > span { display: block; margin-top: 5px; color: #e0f2fe; font-size: 15.95px; line-height: 1.4; }.funnel-level p { margin: 0; color: #f1f5f9; font-size: 15.95px; line-height: 1.45; }.funnel-level p strong { display: block; margin-bottom: 4px; color: #a5f3fc; font-size: 15.95px; letter-spacing: .06em; }.funnel-level.level-3 p strong { color: #fef3c7; }.funnel-level.level-4 p strong { color: #fee2e2; }
.lending-funnel footer { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 15px; color: #cbd5e1; background: rgba(255,255,255,.07); border: 1px solid rgba(125,211,252,.18); border-radius: 10px; font-size: 15.95px; line-height: 1.65; }.lending-funnel footer i { margin-top: 3px; color: #fbbf24; }

.aihub-rag-case { margin: 30px 0; padding: 34px; color: #e2e8f0; background: linear-gradient(135deg, #1e1b4b, #312e81); border-radius: 18px; }.aihub-rag-case header > span { color: #c4b5fd; font-size: 15.95px; font-weight: 850; letter-spacing: .12em; }.aihub-rag-case h2 { margin: 9px 0; color: #fff; font-size: clamp(25px, 3.2vw, 36px); line-height: 1.2; }.aihub-rag-case h2 em { color: #a5f3fc; font-style: normal; }.aihub-rag-case header p { max-width: 760px; margin: 0; color: #ddd6fe; line-height: 1.65; }
.aihub-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 25px; }.aihub-flow article { padding: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(196,181,253,.28); border-radius: 12px; }.aihub-flow b { color: #a5f3fc; font-size: 15.95px; letter-spacing: .08em; }.aihub-flow h3 { margin: 10px 0 8px; color: #fff; font-size: 17px; }.aihub-flow p { margin: 0; color: #e0e7ff; font-size: 15.95px; line-height: 1.6; }
.aihub-example { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 16px; padding: 22px; background: #111827; border-radius: 12px; }.aihub-example span { color: #67e8f9; font-size: 15.95px; font-weight: 850; letter-spacing: .1em; }.aihub-example h3 { margin: 7px 0; color: #fff; font-size: 19px; line-height: 1.45; }.aihub-example p { margin: 0; color: #cbd5e1; line-height: 1.65; }.aihub-example pre { display: flex; align-items: center; margin: 0; padding: 15px; color: #d1fae5; background: #052e2b; border: 1px solid #115e59; border-radius: 9px; white-space: pre-wrap; font: 14.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }.aihub-example code { font: inherit; }
.aihub-site-guide { margin-top: 16px; padding: 22px; color: #e0e7ff; background: rgba(15, 23, 42, .78); border: 1px solid rgba(196, 181, 253, .35); border-radius: 12px; }.aihub-site-guide > span { color: #a5f3fc; font-size: 15.95px; font-weight: 850; letter-spacing: .1em; }.aihub-site-guide h3 { margin: 7px 0 12px; color: #fff; font-size: 19px; }.aihub-site-guide ol { display: grid; gap: 8px; margin: 0; padding-left: 22px; }.aihub-site-guide li, .aihub-site-guide p { font-size: 15.95px; line-height: 1.65; }.aihub-site-guide p { margin: 14px 0 0; color: #cbd5e1; }.aihub-site-guide code { color: #d8b4fe; }.aihub-site-guide a { display: inline-block; margin-top: 14px; color: #fff; font-size: 15.95px; font-weight: 750; text-decoration: none; }.aihub-site-guide a:hover { color: #a5f3fc; }
.aihub-rag-case footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; color: #ddd6fe; font-size: 15.95px; line-height: 1.6; }.aihub-rag-case footer > i { color: #a5f3fc; }.aihub-rag-case footer span { flex: 1 1 600px; }.aihub-rag-case footer a { color: #fff; text-decoration: none; font-weight: 750; }.aihub-rag-case footer a:hover { color: #a5f3fc; }

/* Additive deep-dive blocks for the existing five-day curriculum. */
.extended-daily-guide { margin: 30px 0; padding: 34px; color: #172033; background: linear-gradient(135deg, #eff6ff, #f8fafc); border: 1px solid #bfdbfe; border-radius: 18px; }.extended-daily-guide header > span { color: #2563eb; font-size: 15.95px; font-weight: 850; letter-spacing: .12em; }.extended-daily-guide h2 { margin: 8px 0; color: #0f172a; font-size: clamp(24px, 3vw, 34px); line-height: 1.28; }.extended-daily-guide header p { max-width: 820px; margin: 0; color: #475569; line-height: 1.7; }.extended-guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }.extended-guide-cards article { padding: 20px; background: #fff; border: 1px solid #dbeafe; border-radius: 12px; box-shadow: 0 4px 14px rgba(30, 64, 175, .06); }.extended-guide-cards b { color: #2563eb; font-size: 15.95px; letter-spacing: .08em; }.extended-guide-cards h3 { margin: 10px 0 9px; color: #172033; font-size: 18px; line-height: 1.4; }.extended-guide-cards p { margin: 0; color: #475569; font-size: 15.95px; line-height: 1.75; }.extended-daily-guide footer { display: grid; grid-template-columns: auto auto 1fr; gap: 9px; align-items: start; margin-top: 16px; padding: 16px; color: #334155; background: #dbeafe; border-radius: 10px; font-size: 15.95px; line-height: 1.7; }.extended-daily-guide footer i { margin-top: 4px; color: #2563eb; }.extended-daily-guide footer strong { color: #1e3a8a; white-space: nowrap; }

.backtest-canvas { display: grid; grid-template-columns: 1fr auto 1fr auto 1.35fr auto 1.35fr auto 1fr; gap: 10px; align-items: center; margin: 30px 0 18px; padding: 24px; background: #071a36; border-radius: 16px; }.workflow-node { min-height: 150px; padding: 16px; color: #e0f2fe; background: #0c3657; border: 1px solid #1d6d96; border-radius: 12px; }.workflow-node.engine { background: #0f766e; border-color: #2dd4bf; }.workflow-node span { display: block; color: #7dd3fc; font-size: 15.95px; font-weight: 850; letter-spacing: .08em; }.workflow-node input, .workflow-node select { box-sizing: border-box; width: 100%; margin: 12px 0 7px; padding: 9px; color: #082f49; background: #fff; border: 0; border-radius: 7px; font: inherit; }.workflow-node select { cursor: pointer; }.workflow-node div { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }.workflow-node small { color: #bae6fd; font-size: 15.95px; line-height: 1.45; }.workflow-node strong { display: block; margin: 25px 0 15px; color: #fff; font-size: 24px; }.backtest-canvas > i { color: #67e8f9; }.backtest-actions { display:flex; align-items:center; gap:15px; }.backtest-actions span { color:#64748b; font-size:15.95px; }.backtest-result { min-height: 170px; margin-top: 26px; padding: 24px; border: 1px solid #dbeafe; border-radius: 14px; background: #fff; }.backtest-empty { display:grid; place-items:center; min-height:120px; color:#64748b; text-align:center; }.backtest-empty i { color:#0ea5e9; font-size:25px; }.backtest-result-head span { color:#0284c7; font-size:15.95px; font-weight:800; letter-spacing:.08em; }.backtest-result-head h2 { margin:6px 0 18px; }.backtest-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }.backtest-metrics article { padding:15px; background:#f8fafc; border-radius:10px; }.backtest-metrics span { display:block; color:#64748b; font-size:15.95px; }.backtest-metrics strong { display:block; margin-top:7px; font-size:22px; }.backtest-metrics strong.up { color:#e11d48; }.backtest-metrics strong.down { color:#2563eb; }#backtestChart { box-sizing:border-box; width:100%; height:250px; margin-top:22px; background:#f8fbff; border-radius:10px; }.backtest-disclaimer { color:#64748b; font-size:15.95px; line-height:1.55; }.backtest-result details { margin-top:12px; color:#475569; font-size:15.95px; }.backtest-result pre { overflow:auto; max-height:180px; padding:12px; color:#d1fae5; background:#052e2b; border-radius:8px; white-space:pre-wrap; }.backtest-error { padding:18px; color:#b91c1c; background:#fef2f2; border-radius:10px; }
.backtest-summary { margin: 0 0 18px; padding: 22px 24px; border: 1px solid #bfdbfe; border-radius: 12px; background: linear-gradient(115deg, #eff6ff, #f0fdfa); }.backtest-summary > span { display: block; color: #0369a1; font-size: 15.95px; font-weight: 850; letter-spacing: .06em; }.backtest-summary > span i { margin-right: 6px; color: #f59e0b; }.backtest-summary strong { display: block; margin-top: 9px; color: #0f172a; font-size: clamp(21px, 2.3vw, 31px); line-height: 1.35; letter-spacing: -.035em; }.backtest-summary em { color: #e11d48; font-style: normal; }.backtest-summary p { margin: 10px 0 0; color: #334155; font-size: 17.6px; line-height: 1.65; }.backtest-summary p b { color: #1d4ed8; }.backtest-summary small { display: block; margin-top: 11px; color: #64748b; font-size: 15.95px; line-height: 1.55; }
.backtest-page { padding-top: 26px; }.backtest-page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }.backtest-page-head .content-kicker { margin: 0 0 6px; font-size: 15.95px; }.backtest-page-head h1 { margin: 0; font-size: clamp(24px, 2.7vw, 34px); line-height: 1.2; }.backtest-page-head .content-lead { max-width: 430px; margin: 0 0 2px; font-size: 15.95px; line-height: 1.6; text-align: right; }
.lean-report-library { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:22px; padding:16px 18px; border:1px solid #a5f3fc; border-radius:14px; background:linear-gradient(120deg,#ecfeff,#f0f9ff); }.lean-report-library > div:first-child { min-width:190px; }.lean-report-library span { color:#0e7490; font-size:13px; font-weight:850; letter-spacing:.08em; }.lean-report-library h2 { margin:4px 0 0; color:#0f172a; font-size:18px; }.lean-report-library p { margin:5px 0 0; color:#475569; font-size:14px; line-height:1.45; }.lean-report-choices { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }.lean-report-choice { min-width:130px; padding:10px 12px; border:1px solid #bae6fd; border-radius:9px; color:#334155; background:#fff; font:inherit; text-align:left; cursor:pointer; }.lean-report-choice:hover,.lean-report-choice.selected { border-color:#0284c7; background:#e0f2fe; box-shadow:0 3px 10px rgba(2,132,199,.12); }.lean-report-choice b,.lean-report-choice small { display:block; }.lean-report-choice b { color:#0f172a; font-size:14px; }.lean-report-choice small { margin-top:3px; color:#64748b; font-size:12px; }
.portfolio-simulation-explainer { display:flex; gap:14px; margin-top:22px; padding:18px; border:1px solid #c4b5fd; border-radius:13px; background:linear-gradient(120deg,#f5f3ff,#eff6ff); }.portfolio-simulation-explainer > i { margin-top:3px; color:#7c3aed; font-size:24px; }.portfolio-simulation-explainer strong { color:#312e81; }.portfolio-simulation-explainer p { margin:5px 0 0; color:#475569; font-size:15px; line-height:1.55; }.portfolio-simulation-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:16px; margin-top:16px; }.portfolio-simulation-form,.portfolio-simulation-result { padding:20px; border:1px solid #dbeafe; border-radius:14px; background:#fff; }.portfolio-simulation-form h2,.portfolio-simulation-result h2 { margin:0 0 16px; color:#0f172a; font-size:20px; }.portfolio-simulation-form label { display:grid; gap:6px; margin:12px 0; color:#475569; font-size:14px; font-weight:750; }.portfolio-simulation-form input,.portfolio-simulation-form select { width:100%; box-sizing:border-box; padding:9px; border:1px solid #bfdbfe; border-radius:7px; color:#0f172a; background:#fff; font:inherit; }.portfolio-simulation-form .content-cta { width:100%; margin-top:10px; }.portfolio-simulation-result > header > span { color:#6d28d9; font-size:13px; font-weight:850; letter-spacing:.07em; }.portfolio-simulation-result > header h2 { margin:5px 0; }.portfolio-simulation-result > header p { margin:0; color:#475569; font-size:15px; line-height:1.5; }.portfolio-scenario-legend { display:flex; gap:14px; margin:17px 0 8px; color:#475569; font-size:13px; }.portfolio-scenario-legend span::before { content:''; display:inline-block; width:9px; height:9px; margin-right:5px; border-radius:50%; }.portfolio-scenario-legend .cautious::before { background:#ef4444; }.portfolio-scenario-legend .middle::before { background:#2563eb; }.portfolio-scenario-legend .positive::before { background:#16a34a; }.portfolio-scenario-chart svg { display:block; width:100%; height:240px; border-radius:9px; background:#f8fafc; }.portfolio-scenario-band { fill:rgba(196,181,253,.35); }.portfolio-scenario-line { fill:none; stroke-width:3; }.portfolio-scenario-line.cautious { stroke:#ef4444; }.portfolio-scenario-line.middle { stroke:#2563eb; }.portfolio-scenario-line.positive { stroke:#16a34a; }.portfolio-scenario-chart > div { display:flex; justify-content:space-between; padding:5px 3px; color:#64748b; font-size:13px; }.portfolio-scenario-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:14px; }.portfolio-scenario-summary article { padding:13px; border:1px solid #dbeafe; border-radius:9px; background:#f8fbff; }.portfolio-scenario-summary article.main { border-color:#a5b4fc; background:#eef2ff; }.portfolio-scenario-summary span,.portfolio-scenario-summary small { display:block; color:#64748b; font-size:13px; }.portfolio-scenario-summary strong { display:block; margin:6px 0; color:#0f172a; font-size:18px; }.portfolio-total-paid { margin:15px 0 0; color:#475569; font-size:14px; }
.integrated-dashboard-page,.minute-chart-page { max-width:1480px; padding:clamp(18px,3vw,46px); background:#f5f5f5; }.integrated-dashboard-page .simulation-guide-head,.minute-chart-page .simulation-guide-head { padding:clamp(24px,4vw,54px); color:#fff; background:#0058a3; border-bottom:12px solid #ffda1a; }.integrated-dashboard-page .simulation-guide-head h1,.minute-chart-page .simulation-guide-head h1 { color:#fff; font-size:clamp(30px,4vw,54px); }.integrated-dashboard-page .simulation-guide-head mark,.minute-chart-page .simulation-guide-head mark { color:#ffda1a; background:transparent; }.integrated-dashboard-page .simulation-guide-head .content-kicker,.minute-chart-page .simulation-guide-head .content-kicker { color:#ffda1a; }.integrated-dashboard-page .simulation-guide-head .content-lead,.minute-chart-page .simulation-guide-head .content-lead { color:#fff; }.integrated-dashboard-frame { min-height:980px; margin-top:0; overflow:hidden; border:0; border-radius:0; background:#f5f5f5; box-shadow:0 10px 24px rgba(0,55,113,.14); }.integrated-dashboard-frame iframe { display:block; width:100%; min-height:980px; border:0; background:#f5f5f5; }.integrated-dashboard-page .content-disclaimer,.minute-chart-page .content-disclaimer { margin:0; padding:18px 22px; color:#4a4a4a; background:#fff; border-left:6px solid #ffda1a; }.minute-chart-page .home-live-layout { margin-top:0; padding:clamp(16px,2.5vw,34px); background:#fff; }.minute-chart-page .content-section { border-radius:0; }.minute-chart-page .section-heading span { color:#0058a3; }.minute-chart-page .tick-card,.minute-chart-page .dashboard-asset-card { border-radius:0; }.minute-chart-page .tick-bucket-btn.active,.minute-chart-page .content-cta { background:#0058a3; }
.integrated-lesson-page { max-width:1480px; padding:clamp(18px,3vw,46px); background:#f5f5f5; }.integrated-lesson-page .simulation-guide-head { padding:clamp(20px,3vw,38px); color:#fff; background:#0058a3; border-bottom:10px solid #ffda1a; }.integrated-lesson-page .simulation-guide-head h1 { color:#fff; }.integrated-lesson-page .simulation-guide-head mark,.integrated-lesson-page .simulation-guide-head .content-kicker { color:#ffda1a; background:transparent; }.integrated-lesson-page .simulation-guide-head .content-lead { color:#fff; }.integrated-lesson-frame { min-height:1050px; background:#f5f5f5; box-shadow:0 8px 22px rgba(0,55,113,.12); }.integrated-lesson-frame iframe { display:block; width:100%; min-height:1050px; border:0; background:#f5f5f5; }.system-nav-btn { margin-left:auto; }.topic-nav { overflow-y:auto; }.integrated-lesson-btn { min-height:42px; margin-bottom:5px; font-size:15px; }.integrated-lesson-btn .day-menu-number { min-width:31px; padding:4px 5px; color:#0058a3; background:#e8f1f8; font-variant-numeric:tabular-nums; }.integrated-lesson-btn:hover .day-menu-number { color:#111; background:#ffda1a; }
.backtest-examples { margin-top: 24px; padding: 22px; border: 1px solid #bfdbfe; border-radius: 14px; background: linear-gradient(120deg,#f0f9ff,#f0fdfa); }.backtest-examples > div:first-child { display:flex; align-items:baseline; gap:12px; }.backtest-examples > div:first-child span { color:#0369a1; font-size:15.95px; font-weight:850; letter-spacing:.1em; }.backtest-examples h2 { margin:0; color:#0f172a; font-size:18px; }.backtest-example-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-top:16px; }.backtest-example { min-height:125px; padding:14px; color:#334155; background:#fff; border:1px solid #dbeafe; border-radius:10px; font:inherit; text-align:left; cursor:pointer; transition:.15s ease; }.backtest-example:hover,.backtest-example.selected { border-color:#0284c7; box-shadow:0 5px 16px rgba(2,132,199,.14); transform:translateY(-2px); }.backtest-example span { display:block; color:#0284c7; font-size:15.95px; font-weight:850; letter-spacing:.07em; }.backtest-example strong { display:block; margin-top:8px; color:#0f172a; font-size:15.95px; line-height:1.4; }.backtest-example small { display:block; margin-top:7px; color:#64748b; font-size:15.95px; line-height:1.45; }.backtest-parameters { display:flex; flex-wrap:wrap; gap:10px; align-items:end; margin:0 0 18px; padding:14px 16px; border:1px solid #dbeafe; border-radius:10px; background:#f8fbff; }.backtest-parameters label { display:grid; gap:5px; color:#475569; font-size:15.95px; font-weight:750; }.backtest-parameters input { box-sizing:border-box; width:120px; padding:8px; border:1px solid #bfdbfe; border-radius:7px; color:#0f172a; background:#fff; font:inherit; }.backtest-parameters small { flex:1 1 180px; color:#64748b; font-size:15.95px; line-height:1.45; }.investment-checklist { margin-top:20px; padding:20px; border:1px solid #bae6fd; border-radius:12px; background:#f0f9ff; }.investment-checklist header > span { color:#0369a1; font-size:15.95px; font-weight:850; letter-spacing:.08em; }.investment-checklist header h3 { margin:7px 0 15px; color:#0f172a; font-size:19px; }.investment-checklist > div { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.investment-checklist article { padding:14px; background:#fff; border:1px solid #dbeafe; border-radius:9px; }.investment-checklist article > span { color:#64748b; font-size:15.95px; }.investment-checklist article strong { display:block; margin-top:6px; color:#075985; font-size:16.5px; }.investment-checklist article p { margin:7px 0 0; color:#475569; font-size:15.95px; line-height:1.55; }.investment-checklist footer { margin-top:12px; padding-top:12px; border-top:1px solid #bae6fd; color:#475569; font-size:15.95px; line-height:1.55; }

/* ===== 선현물 베이시스 페이지 ===== */
.basis-method-grid, .basis-formula-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.basis-method-card, .basis-formula-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.basis-method-tag { display: block; margin-bottom: 6px; color: var(--accent); font-size: 14.3px; font-weight: 800; letter-spacing: .08em; }
.basis-method-card h3, .basis-formula-card h3 { margin: 0 0 8px; font-size: 17.6px; }
.basis-method-card p, .basis-formula-card p { margin: 0 0 8px; color: var(--text-2); font-size: 15.95px; line-height: 1.65; }
.basis-method-card p:last-child, .basis-formula-card p:last-child { margin-bottom: 0; }
.lesson-formula-inline { margin: 0 0 10px; padding: 10px 12px; border: 1px solid #cddafe; border-radius: 8px; background: #f8faff; color: #1743a0; font-weight: 800; text-align: center; }
.basis-tool-section .section-intro { margin-bottom: 16px; }
.basis-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface2); }
.basis-controls label { display: grid; gap: 5px; color: var(--text-2); font-size: 15.95px; font-weight: 750; }
.basis-controls input, .basis-controls select { box-sizing: border-box; width: 150px; padding: 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); font: inherit; }
.basis-actual-field { flex: 0 1 285px; }
.basis-input-row { display: flex; gap: 6px; }
.basis-input-row input { flex: 1 1 auto; min-width: 0; width: auto; }
.basis-clear-button, .basis-refresh-button { padding: 8px 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-2); background: var(--surface); font: inherit; font-size: 14.3px; font-weight: 750; cursor: pointer; }
.basis-clear-button:hover, .basis-refresh-button:hover { border-color: var(--accent); color: var(--accent); }
.basis-refresh-button { white-space: nowrap; }
.basis-controls small { flex: 1 1 220px; color: var(--text-muted); font-size: 15.95px; line-height: 1.5; }
.basis-data-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-2); background: var(--surface2); font-size: 14.3px; }
.basis-data-meta i { margin-right: 4px; color: var(--accent); }
.basis-data-warning, .basis-validation-error, .basis-actual-prompt { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; font-size: 14.3px; line-height: 1.5; }
.basis-data-warning { color: #1d4ed8; background: #eff6ff; }
.basis-validation-error { color: #b91c1c; background: #fef2f2; }
.basis-actual-prompt { color: #6d28d9; background: #f5f3ff; }
.basis-data-warning i, .basis-validation-error i { margin-right: 5px; }
.basis-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.basis-summary-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.basis-summary-card-actual { border-color: #c4b5fd; box-shadow: inset 3px 0 0 #7c3aed; }
.basis-summary-card span { display: block; color: var(--text-muted); font-size: 14.3px; line-height: 1.4; }
.basis-summary-card strong { display: block; margin-top: 7px; font-size: 20px; color: var(--text); }
.basis-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 17.6px !important; }
.basis-badge.contango { color: #b91c1c; background: #fee2e2; }
.basis-badge.backwardation { color: #1d4ed8; background: #dbeafe; }
.basis-badge.flat { color: var(--text-2); background: var(--surface2); }
.basis-chart-wrap { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.basis-chart-legend { display: flex; gap: 18px; margin: 10px 0 20px; font-size: 15.95px; color: var(--text-2); }
.basis-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.basis-chart-legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.basis-chart-legend .spot i { background: #2563eb; }
.basis-chart-legend .theory i { background: #dc2626; border-top: 2px dashed #dc2626; height: 0; }
.basis-chart-legend .actual i { width: 9px; height: 9px; border-radius: 50%; background: #7c3aed; }
.basis-strip-label { margin: 0 0 8px; color: var(--text-2); font-size: 15.95px; font-weight: 750; }
.basis-bar-strip { display: flex; align-items: end; gap: 8px; height: 110px; padding: 10px 12px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.basis-bar-col { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.basis-bar { width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; }
.basis-bar.contango { background: #ef4444; }
.basis-bar.backwardation { background: #3b82f6; }
.basis-bar.flat { background: var(--border-hi); }
.basis-bar-col small { color: var(--text-muted); font-size: 12.1px; }
.basis-empty { padding: 24px; color: var(--text-muted); text-align: center; }
@media (max-width: 700px) {
  .basis-method-grid, .basis-formula-grid { grid-template-columns: 1fr; }
  .basis-controls { align-items: stretch; }
  .basis-controls label, .basis-actual-field { flex: 1 1 100%; }
  .basis-controls input, .basis-controls select { width: 100%; }
  .basis-input-row input { width: auto; }
  .basis-chart-legend { flex-wrap: wrap; }
}

@media (max-width: 860px) { .product-journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .life-trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .funnel-level { width: 100% !important; grid-template-columns: repeat(2, minmax(0, 1fr)); clip-path: none; border-radius: 10px; } }
@media (max-width: 860px) { .aihub-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }.aihub-example { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .extended-guide-cards { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .backtest-canvas { grid-template-columns:1fr; }.backtest-canvas > i { transform:rotate(90deg); justify-self:center; }.backtest-metrics { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 860px) { .backtest-page-head { align-items: flex-start; flex-direction: column; gap: 7px; }.backtest-page-head .content-lead { max-width: none; text-align: left; } }
@media (max-width: 860px) { .lean-report-library { align-items:flex-start; flex-direction:column; }.lean-report-choices { justify-content:flex-start; } }
@media (max-width: 860px) { .portfolio-simulation-layout { grid-template-columns:1fr; }.portfolio-scenario-summary { grid-template-columns:1fr; } }
@media (max-width: 860px) { .integrated-dashboard-page,.minute-chart-page { padding:12px; }.integrated-dashboard-frame,.integrated-dashboard-frame iframe { min-height:1100px; } }
@media (max-width: 860px) { .integrated-lesson-page { padding:12px; }.integrated-lesson-frame,.integrated-lesson-frame iframe { min-height:1200px; }.system-nav-btn { margin-left:0; } }

/* ══════════════════════════════════════════════════════════════════
   Unified portal shell — IKEA-inspired design system for the 80 app
   ══════════════════════════════════════════════════════════════════ */
:root { --bg:#f5f5f5; --surface:#fff; --surface2:#f7f7f7; --border:#d7d7d7; --border-hi:#a8a8a8; --accent:#0058a3; --accent-hov:#003b6f; --accent-dim:rgba(0,88,163,.10); --accent-dim2:#e8f1f8; --text:#111; --text-2:#333; --text-muted:#5b5b5b; --radius:0; --radius-sm:0; }
html,body { background:#f5f5f5; color:#111; }.app-layout { grid-template-columns:286px minmax(0,1fr) 360px; background:#f5f5f5; }.sidebar { background:#fff; border-right:1px solid #d7d7d7; }.sidebar-header { padding:25px 22px 20px; color:#fff; background:#0058a3; border-bottom:7px solid #ffda1a; }.logo { color:#fff; font-size:21px; }.logo i { color:#ffda1a; }.logo-sub { color:#fff; opacity:.88; }.panel-close { color:#fff; border-color:rgba(255,255,255,.55); background:transparent; }.topic-nav { padding:18px 14px; border-bottom:1px solid #d7d7d7; background:#fff; }.nav-label { color:#0058a3; font-size:12px; letter-spacing:.13em; }.topic-btn { min-height:40px; margin-bottom:4px; padding:9px 10px; color:#222; border:0; border-left:4px solid transparent; background:#fff; font-size:14px; }.topic-btn:hover,.topic-btn.active { color:#003b6f; border-color:#ffda1a; background:#e8f1f8; }.topic-btn.active { padding:9px 10px; }.sidebar-section { padding:18px; border-bottom:1px solid #d7d7d7; background:#f7f7f7; }.sidebar-footer { padding:15px 18px; border-top:0; background:#fff; }.docs-link { color:#3f3f3f; }.docs-link:hover { color:#0058a3; }.chat-area { background:#f5f5f5; }.chat-header { min-height:66px; padding:0 28px; background:#0058a3; border-bottom:7px solid #ffda1a; box-shadow:none; }.main-kms-title { color:#fff; font-weight:800; }.panel-toggle { color:#0058a3; border-radius:0; background:#fff; }.brand-nav { gap:0; }.brand-nav-btn { min-height:59px; padding:0 14px; color:#fff; border-radius:0; font-size:14px; }.brand-nav-btn:hover,.brand-nav-btn.active { color:#111; background:#ffda1a; box-shadow:none; }.brand-nav-btn.system-nav-btn { border-left:1px solid rgba(255,255,255,.34); }.messages { padding:30px clamp(20px,3vw,46px) 42px; background:#f5f5f5; }.content-page { width:min(1480px,100%); padding:28px 0 56px; }.content-page:not(.integrated-dashboard-page):not(.minute-chart-page):not(.integrated-lesson-page) { color:#111; }.content-page h1 { color:#111; }.content-page h1 mark,.content-kicker,.section-heading span { color:#0058a3; }.content-lead,.section-intro { color:#4f4f4f; }.content-section,.tick-card,.backtest-result,.calendar-board,.portfolio-simulation-form,.portfolio-simulation-result { border-radius:0; border-color:#d7d7d7; background:#fff; box-shadow:0 2px 8px rgba(0,55,113,.08); }.content-cta,.btn-primary { border-radius:0; color:#fff; background:#0058a3; }.content-cta:hover,.btn-primary:hover { background:#003b6f; }.content-secondary,.btn-ghost { border-radius:0; color:#003b6f; border-color:#0058a3; background:#fff; }.input-field,.textarea-field,.question-input,.tick-search-input { color:#111; border-color:#a8a8a8; border-radius:0; background:#fff; }.input-field:focus,.textarea-field:focus,.question-input:focus,.tick-search-input:focus { border-color:#0058a3; box-shadow:0 0 0 2px rgba(0,88,163,.14); }.chat-input-area { border-top:1px solid #d7d7d7; background:#fff; }.send-btn { border-radius:0; color:#111; background:#ffda1a; }.input-hint { color:#5b5b5b; }.ref-panel { background:#fff; border-left:1px solid #d7d7d7; }.ref-header { color:#fff; background:#0058a3; border-bottom:7px solid #ffda1a; }.ref-header h3 { color:#fff; }.ref-header .btn-ghost { color:#fff; border-color:rgba(255,255,255,.55); background:transparent; }.ref-list { background:#f7f7f7; }.app-footer { border-top:1px solid #d7d7d7; background:#fff; color:#5b5b5b; }.app-footer span:first-child { color:#0058a3; }.dashboard-asset-card,.tick-card,.backtest-examples,.backtest-test-detail,.lean-report-library { border-radius:0; border-color:#d7d7d7; }.dashboard-asset-card:hover { border-color:#0058a3; }.backtest-page .backtest-examples,.lean-report-library { background:#fff; }.backtest-example,.lean-report-choice { border-radius:0; }.backtest-example:hover,.backtest-example.selected,.lean-report-choice:hover,.lean-report-choice.selected { border-color:#0058a3; background:#e8f1f8; box-shadow:none; }
@media (max-width:1080px) { .app-layout { grid-template-columns:1fr; }.sidebar,.ref-panel { box-shadow:0 12px 36px rgba(0,55,113,.22); }.chat-header { padding-inline:16px; }.brand-nav-btn { padding-inline:11px; } }
@media (max-width:640px) { .chat-header { min-height:58px; }.main-kms-title { display:none; }.brand-nav-btn { min-height:51px; padding-inline:10px; font-size:12px; }.brand-nav-btn i { display:none; }.messages { padding:16px 12px 28px; }.sidebar-header { padding:20px 18px 16px; } }
@media (max-width: 860px) { .backtest-example-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.investment-checklist > div { grid-template-columns:1fr; } }
@media (max-width: 520px) { .product-journey { padding: 22px; } .product-journey-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .life-trade-guide { padding: 24px; }.life-trade-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lending-funnel { padding: 24px; }.funnel-level { grid-template-columns: 1fr; padding: 18px; } }
@media (max-width: 520px) { .aihub-rag-case { padding: 24px; }.aihub-flow { grid-template-columns: 1fr; }.aihub-example { padding: 18px; } }
@media (max-width: 520px) { .extended-daily-guide { padding: 24px; }.extended-daily-guide footer { grid-template-columns: auto 1fr; }.extended-daily-guide footer span { grid-column: 1 / -1; } }
@media (max-width: 520px) { .backtest-metrics { grid-template-columns:1fr; }.backtest-actions { align-items:flex-start; flex-direction:column; } }
@media (max-width: 520px) { .backtest-example-grid { grid-template-columns:1fr; }.backtest-examples > div:first-child { display:block; }.backtest-examples h2 { margin-top:5px; } }

/* Account and screen-capture tools merged from the investment dashboard. */
.account-nav-btn { border-left: 1px solid rgba(255,255,255,.34); }
.auth-dialog { width: min(460px, 100%) !important; height: auto !important; max-height: min(720px, 90vh) !important; padding: 30px !important; overflow: auto; border: 0; border-top: 7px solid #ffda1a; border-radius: 0 !important; box-shadow: 0 22px 70px rgba(0,55,113,.3); }
.auth-dialog h2 { color: #0058a3; }.auth-description { margin: -10px 0 18px; color: #4f4f4f; font-size: 14px; line-height: 1.55; }.auth-dialog form { gap: 12px; }.auth-dialog label { color: #333; }.auth-dialog input { border-radius: 0; border-color: #a8a8a8; }.auth-dialog input:focus { outline: 2px solid rgba(0,88,163,.2); border-color: #0058a3; }.auth-profile-name { margin: 0; color: #111; font-size: 22px; font-weight: 800; }.auth-profile-email { margin: 4px 0 24px; color: #5b5b5b; }.auth-dialog h3 { margin: 0 0 10px; color: #0058a3; font-size: 15px; }.auth-activity { display: grid; gap: 7px; max-height: 230px; margin: 0 0 20px; padding: 0; overflow: auto; list-style: none; }.auth-activity li { padding: 10px 11px; color: #333; border-left: 3px solid #ffda1a; background: #f7f7f7; font-size: 13px; }.auth-logout { width: 100%; justify-content: center; }.screen-capture-fab { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: #111; background: #ffda1a; border: 0; border-radius: 0; box-shadow: 0 10px 26px rgba(0,55,113,.28); font: 800 14px var(--font); cursor: pointer; }.screen-capture-fab:hover { color: #fff; background: #0058a3; transform: translateY(-2px); }.screen-capture-fab.is-capturing { cursor: wait; opacity: .72; }.screen-capture-panel { position: fixed; z-index: 91; right: 24px; bottom: 78px; width: min(340px, calc(100vw - 32px)); padding: 14px; border: 1px solid #d7d7d7; border-top: 6px solid #0058a3; background: #fff; box-shadow: 0 16px 38px rgba(0,55,113,.24); }.screen-capture-panel[hidden] { display: none; }.screen-capture-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #111; }.screen-capture-panel-head strong i { color: #0058a3; }.screen-capture-panel-head button { width: 28px; height: 28px; border: 0; background: transparent; color: #333; cursor: pointer; }.screen-capture-panel img { display: block; width: 100%; max-height: 160px; object-fit: cover; object-position: top; background: #f5f5f5; border: 1px solid #d7d7d7; }.screen-capture-panel p { margin: 9px 0; color: #4f4f4f; font-size: 13px; line-height: 1.45; }.screen-capture-panel label { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; align-items: center; margin-bottom: 8px; color: #333; font-size: 13px; font-weight: 700; }.screen-capture-panel select { min-width: 0; padding: 8px; border: 1px solid #a8a8a8; border-radius: 0; background: #fff; font: inherit; }.screen-capture-open { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 10px; color: #fff; border: 0; background: #0058a3; font: 800 13px var(--font); cursor: pointer; }.screen-capture-open:hover { background: #003b6f; }.screen-capture-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }.screen-capture-actions button { padding: 8px 5px; color: #003b6f; border: 1px solid #a8a8a8; background: #fff; font: 700 12px var(--font); cursor: pointer; }.screen-capture-actions button:hover { color: #111; border-color: #ffda1a; background: #ffda1a; }
@media (max-width: 640px) { .account-nav-btn { display: none; }.screen-capture-fab { right: 14px; bottom: 14px; padding: 11px 13px; }.screen-capture-panel { right: 14px; bottom: 66px; }.screen-capture-fab span { display: none; } }

.atlas-detail-btn { width: 100%; margin-top: 16px; padding: 10px 12px; color: #075985; background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 8px; font: inherit; font-size: 15.95px; font-weight: 800; text-align: left; cursor: pointer; }
.atlas-detail-btn:hover { color: #fff; background: #0e7490; border-color: #0e7490; }
.atlas-magazine-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; }
.atlas-magazine-backdrop { position: absolute; inset: 0; background: rgba(2, 12, 27, .72); backdrop-filter: blur(5px); }
.atlas-magazine-sheet { position: relative; width: min(840px, 100%); max-height: min(850px, calc(100vh - 48px)); overflow: auto; color: #0f172a; background: #fff; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.atlas-magazine-sheet > header { padding: 34px 38px 25px; color: #f8fafc; background: radial-gradient(circle at 82% 12%, #1d8db4 0, transparent 35%), linear-gradient(130deg, #071d3a, #123e64); }
.atlas-magazine-sheet header > span, .atlas-magazine-lead span, .atlas-news > div span { color: #38bdf8; font-size: 15.95px; font-weight: 850; letter-spacing: .1em; }
.atlas-magazine-sheet h2 { margin: 7px 0; color: #fff; font-size: clamp(28px, 4vw, 42px); }
.atlas-magazine-sheet h2 small { color: #7dd3fc; font-size: .42em; font-weight: 700; }
.atlas-magazine-sheet header p { margin: 0; color: #c9e7f5; }
.atlas-magazine-close { position: absolute; z-index: 1; top: 16px; right: 16px; width: 36px; height: 36px; color: #fff; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; cursor: pointer; }
.atlas-magazine-lead { display: grid; grid-template-columns: 1.45fr .85fr; gap: 18px; padding: 28px 38px; background: #f8fafc; }
.atlas-magazine-lead h3 { margin: 7px 0 20px; color: #0f2f50; font-size: 20px; line-height: 1.45; }
.atlas-magazine-lead p { display: grid; grid-template-columns: 84px 1fr; gap: 12px; margin: 10px 0; line-height: 1.55; }
.atlas-magazine-lead p b { color: #0369a1; }
.atlas-price-panel { display: flex; flex-direction: column; justify-content: center; min-height: 160px; padding: 22px; color: #e0f2fe; background: #0c3657; border-radius: 12px; }
.atlas-price-panel > span { color: #7dd3fc; font-size: 15.95px; font-weight: 800; letter-spacing: .1em; }
.atlas-price-panel strong { margin: 12px 0 4px; color: #fff; font-size: 28px; }
.atlas-price-panel strong small { color: #bae6fd; font-size: 15.95px; }
.atlas-price-panel em { margin-bottom: 10px; font-style: normal; font-weight: 800; }.atlas-price-panel em.up { color: #fb7185; }.atlas-price-panel em.down { color: #60a5fa; }.atlas-price-panel > small { color: #bae6fd; font-size: 15.95px; }
.atlas-magazine-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px 38px; border-bottom: 1px solid #e2e8f0; }
.atlas-magazine-links a { padding: 9px 12px; color: #075985; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; font-size: 15.95px; font-weight: 750; text-decoration: none; }.atlas-magazine-links a:hover { color: #fff; background: #0284c7; }
.atlas-history-btn { padding: 9px 12px; border: 1px solid #bae6fd; border-radius: 8px; background: #f0f9ff; color: #075985; font: inherit; font-size: 15.95px; font-weight: 750; cursor: pointer; }.atlas-history-btn:hover:not(:disabled) { color: #fff; background: #0284c7; }.atlas-history-btn.active { color: #fff; background: #0c3657; border-color: #0c3657; }.atlas-history-btn:disabled { color: #94a3b8; background: #f1f5f9; border-color: #e2e8f0; cursor: not-allowed; }
.atlas-history { padding: 22px 38px 8px; border-bottom: 1px solid #e2e8f0; }.atlas-history > div:first-child span { color: #0284c7; }.atlas-history h3 { margin: 5px 0 16px; font-size: 20px; }
.atlas-history-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.atlas-history-range-btn { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #64748b; font: inherit; font-size: 15.95px; font-weight: 700; cursor: pointer; }.atlas-history-range-btn:hover { border-color: #0284c7; color: #0284c7; }.atlas-history-range-btn.active { background: #0284c7; border-color: #0284c7; color: #fff; }
.atlas-history-summary { margin-left: auto; font-size: 15.95px; color: #64748b; }.atlas-history-summary strong.up { color: #dc2626; }.atlas-history-summary strong.down { color: #2563eb; }
.atlas-history-chart-stage { position: relative; padding: 6px 0 2px; }
.atlas-history-chart-wrap svg { display: block; width: 100%; }
.atlas-history-disclaimer { margin: 10px 0 18px; color: #64748b; font-size: 15.95px; line-height: 1.6; }
.atlas-history .tick-legend { margin: 6px 0 4px; font-size: 15.95px; }
.atlas-news { padding: 28px 38px 35px; }.atlas-news h3 { margin: 5px 0 16px; font-size: 23px; }.atlas-news > div:first-child span { color: #0284c7; }
#atlasNewsList a { display: grid; grid-template-columns: 1fr auto 16px; gap: 12px; align-items: center; padding: 14px 0; color: #172554; border-top: 1px solid #e2e8f0; text-decoration: none; }#atlasNewsList a:hover span { color: #0284c7; text-decoration: underline; }#atlasNewsList a small { color: #64748b; font-size: 15.95px; }#atlasNewsList p { color: #64748b; }
.atlas-magazine-sheet footer { padding: 18px 38px; color: #64748b; background: #f8fafc; font-size: 15.95px; line-height: 1.55; }
.atlas-magazine-sheet > header > span { display: none; }
.atlas-magazine-sheet h2 { margin-top: 0; }
@media (max-width: 620px) { .atlas-magazine-modal { padding: 10px; }.atlas-magazine-sheet > header, .atlas-magazine-lead, .atlas-magazine-links, .atlas-history, .atlas-news, .atlas-magazine-sheet footer { padding-left: 22px; padding-right: 22px; }.atlas-magazine-lead { grid-template-columns: 1fr; }.atlas-magazine-sheet h2 { padding-right: 32px; } #atlasNewsList a { grid-template-columns: 1fr 16px; } #atlasNewsList a small { grid-column: 1; grid-row: 2; } }

/* Modal containers always occupy the same large viewport area. */
.glossary-dialog,
.auth-dialog,
.atlas-magazine-sheet {
  box-sizing: border-box;
  /* A single large modal frame across the main app. */
  width: 96vw !important;
  height: 96vh !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  overflow: auto;
  transform: none;
}

@media (max-width: 620px) {
  .glossary-dialog,
  .auth-dialog,
  .atlas-magazine-sheet {
    width: 96vw;
    height: 96vh;
    min-height: 0;
    max-height: none;
  }
}
.day-infographic { margin: 18px 0 26px; padding: 24px; border: 1px solid #bfdbfe; border-radius: 15px; background: linear-gradient(135deg, #f8fbff, #eff6ff); }
.butler-intro { margin: 18px 0 26px; padding: 26px; overflow: hidden; border: 1px solid #a7d7c4; border-radius: 16px; background: radial-gradient(circle at 96% 4%, #c9f4df 0, transparent 29%), linear-gradient(135deg, #f7fffb, #effbf5); }.butler-intro-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.butler-intro-head > span { color: #047857; font-size: 15.95px; font-weight: 900; letter-spacing: .12em; }.butler-intro-head a { padding: 7px 10px; border: 1px solid #86cdb1; border-radius: 8px; color: #047857; background: #fff; font-size: 15.95px; font-weight: 800; text-decoration: none; }.butler-intro-head a:hover { color: #fff; background: #047857; }.butler-intro h2 { margin: 9px 0; color: #124334; font-size: 25px; line-height: 1.3; }.butler-intro > p { max-width: 770px; margin: 0; color: #3f5e52; font-size: 15.95px; line-height: 1.75; }.butler-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }.butler-feature-grid article { min-height: 150px; padding: 16px; border: 1px solid #c7ead9; border-radius: 11px; background: rgba(255,255,255,.85); }.butler-feature-grid i { display: block; margin-bottom: 12px; color: #059669; font-size: 20px; }.butler-feature-grid b, .butler-feature-grid span { display: block; }.butler-feature-grid b { color: #124334; font-size: 15.95px; }.butler-feature-grid span { margin-top: 7px; color: #557267; font-size: 15.95px; line-height: 1.55; }.butler-intro > small { display: block; margin-top: 16px; color: #526c61; font-size: 15.95px; line-height: 1.65; }.butler-intro > small i { color: #059669; }
.learning-visual { margin: 18px 0 30px; padding: 28px; overflow: hidden; border: 1px solid #c7d7f5; border-radius: 16px; background: radial-gradient(circle at 90% 0, #dbeafe 0, transparent 30%), linear-gradient(135deg, #f8fbff, #eef5ff); }.learning-visual header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }.learning-visual header span { color: #2563eb; font-size: 15.95px; font-weight: 900; letter-spacing: .12em; }.learning-visual h2 { margin: 0; color: #172554; font-size: 24px; line-height: 1.25; }.learning-visual > p { margin: 17px 0 0; color: #475569; font-size: 15.95px; line-height: 1.65; }.visual-triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.visual-triad article, .visual-flow article { min-height: 120px; padding: 18px; border: 1px solid #d7e2f4; border-radius: 12px; background: #fff; }.visual-triad article.accent, .visual-flow article.accent { color: #fff; border-color: #2563eb; background: #2563eb; }.visual-triad i { display: block; margin-bottom: 12px; color: #2563eb; font-size: 20px; }.visual-triad .accent i { color: #bfdbfe; }.visual-triad b, .visual-triad span { display: block; }.visual-triad b { font-size: 17.6px; }.visual-triad span { margin-top: 7px; color: #64748b; font-size: 15.95px; line-height: 1.55; }.visual-triad .accent span { color: #dbeafe; }.visual-flow { display: flex; align-items: center; gap: 10px; }.visual-flow article { flex: 1; min-height: 96px; color: #172554; font-weight: 850; text-align: center; }.visual-flow article small { display: block; margin-top: 8px; color: #64748b; font-size: 15.95px; font-weight: 600; line-height: 1.5; }.visual-flow article.accent small { color: #dbeafe; }.visual-flow > i { color: #2563eb; font-size: 20px; }.visual-risk-chart { display: grid; grid-template-columns: 1.45fr .75fr; gap: 22px; align-items: center; padding: 12px 6px 0; }.visual-risk-chart svg { width: 100%; height: auto; }.visual-risk-chart > div { display: grid; gap: 9px; }.visual-risk-chart span { padding: 9px 11px; border-radius: 8px; background: #fff; color: #334155; font-size: 15.95px; font-weight: 750; }.visual-risk-chart i { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #2563eb; }.visual-risk-chart i.orange { background: #f97316; }.visual-risk-chart i.green { background: #10b981; }.visual-allocation { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center; }.allocation-ring { display: grid; place-items: center; width: 145px; height: 145px; border-radius: 50%; background: conic-gradient(#2563eb 0 38%, #2dd4bf 38% 68%, #fbbf24 68% 84%, #94a3b8 84% 100%); }.allocation-ring b { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; color: #172554; background: #f8fbff; font-size: 15.95px; line-height: 1.3; text-align: center; }.visual-allocation > div:last-child { display: grid; gap: 9px; }.visual-allocation span { color: #334155; font-size: 15.95px; font-weight: 750; }.visual-allocation i { display: inline-block; width: 11px; height: 11px; margin-right: 9px; border-radius: 2px; background: #2563eb; }.visual-allocation span:nth-child(2) i { background: #2dd4bf; }.visual-allocation span:nth-child(3) i { background: #fbbf24; }.visual-allocation span:nth-child(4) i { background: #94a3b8; }
.info-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.info-heading > span { color: var(--accent); font-size: 15.95px; font-weight: 850; letter-spacing: .11em; }
.info-heading h2 { margin: 0; color: #172554; font-size: 22px; line-height: 1.3; }
.institution-grid, .derivative-grid, .risk-four { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.institution-grid article, .derivative-grid article, .risk-four article { display: flex; flex-direction: column; gap: 5px; min-height: 134px; padding: 16px; border: 1px solid rgba(191,219,254,.8); border-radius: 10px; background: #fff; }
.institution-grid i, .derivative-grid i, .risk-four i { color: var(--accent); font-size: 20px; }
.institution-grid b, .derivative-grid b, .risk-four b { color: #172554; font-size: 16.5px; }.institution-grid span, .derivative-grid span, .risk-four span { color: var(--text-2); font-size: 15.95px; line-height: 1.5; }.institution-grid small, .derivative-grid small { margin-top: auto; color: var(--text-muted); font-size: 15.95px; }
.money-flow, .rebalancing-line { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; padding: 12px; border-radius: 8px; background: rgba(255,255,255,.72); color: #1d4ed8; font-size: 15.95px; font-weight: 750; }.money-flow i { color: #93c5fd; }
.company-strip > div { display: grid; gap: 10px; }.company-strip article { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; align-items: center; padding: 12px 14px; border-radius: 8px; background: #fff; }.company-strip b { color: #1d4ed8; font-size: 15.95px; }.company-strip span { color: var(--text-2); font-size: 15.95px; }.company-strip i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #38bdf8); }
.rate-meter { display: grid; grid-template-columns: 155px 1fr 230px; gap: 14px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 10px; background: #fff; }.rate-meter span { color: var(--text-muted); font-size: 15.95px; }.rate-meter span b { display: block; color: #1d4ed8; font-size: 26px; }.rate-meter span small { font-size: 15.95px; }.rate-meter > i, .concentration-meter > i { display: block; height: 12px; border-radius: 999px; background: #dbeafe; overflow: hidden; }.rate-meter > i b, .concentration-meter > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14b8a6, #2563eb); }.rate-meter em { color: var(--text-2); font-size: 15.95px; font-style: normal; line-height: 1.5; }
.risk-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }.risk-four article { min-height: 110px; }.concentration-meter { display: grid; grid-template-columns: 250px 1fr 180px; gap: 12px; align-items: center; margin-top: 16px; padding: 13px; border-radius: 8px; background: #fff; }.concentration-meter span, .concentration-meter strong { color: var(--text-2); font-size: 15.95px; }.concentration-meter strong { color: #b45309; text-align: right; }.concentration-meter > i b { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.allocation-pyramid { display: grid; gap: 6px; max-width: 760px; margin: 0 auto; }.allocation-pyramid article { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-radius: 8px; color: #fff; }.allocation-pyramid article:nth-child(1) { width: 64%; justify-self: center; background: #2563eb; }.allocation-pyramid article:nth-child(2) { width: 82%; justify-self: center; background: #0f766e; }.allocation-pyramid article:nth-child(3) { width: 100%; background: #64748b; }.allocation-pyramid b { font-size: 15.95px; }.allocation-pyramid span { font-size: 15.95px; }.rebalancing-line i { width: 52px; height: 2px; background: #93c5fd; }

/* ===== Korea market magazine ===== */
.daily-market-magazine { margin: 28px 0 34px; overflow: hidden; border: 1px solid #172554; border-radius: 20px; background: #fff; box-shadow: 0 16px 38px rgba(15, 23, 42, .08); }
.daily-magazine-hero { display: grid; grid-template-columns: 1.34fr .66fr; gap: 30px; padding: clamp(28px, 5vw, 56px); color: #e2e8f0; background: radial-gradient(circle at 84% 10%, #0ea5e9 0, #1d4ed8 23%, #172554 59%, #0f172a 100%); }
.daily-hero-copy { position: relative; }.daily-hero-copy::after { position: absolute; right: 7%; top: 36px; width: 82px; height: 82px; border: 1px solid rgba(125,211,252,.5); border-radius: 50%; content: ''; }.daily-hero-copy::before { position: absolute; right: 12%; top: 62px; width: 9px; height: 9px; border-radius: 50%; background: #7dd3fc; box-shadow: -88px 80px 0 #38bdf8, 26px 113px 0 #fbbf24; content: ''; }
.daily-magazine-hero > div > span, .daily-magazine-story > article > span, .daily-checklist span, .market-comparison > div > span { display: block; color: #93c5fd; font-size: 15.95px; font-weight: 900; letter-spacing: .14em; }
.daily-magazine-hero h2 { overflow: hidden; margin: 14px 0; color: #fff; font-size: clamp(24px, 2.7vw, 34px); line-height: 1.2; letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }.daily-magazine-hero h2 em { color: #7dd3fc; font-style: normal; }.daily-magazine-hero p { max-width: 700px; color: #cbd5e1; font-size: 16.5px; line-height: 1.78; }
.hero-orbit { position: absolute; top: 19px; right: 0; display: grid; place-items: center; width: 104px; height: 104px; border: 1px dashed rgba(186,230,253,.6); border-radius: 50%; transform: rotate(12deg); }.hero-orbit b { color: #fff; font-size: 29px; line-height: 1; }.hero-orbit i { position: absolute; right: 11px; bottom: 20px; color: #7dd3fc; font-size: 15.95px; }.hero-orbit em { position: absolute; left: -29px; bottom: -11px; color: #bae6fd; font-size: 15.95px; font-style: normal; font-weight: 900; letter-spacing: .12em; line-height: 1.3; transform: rotate(-12deg); }
.hero-signal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }.hero-signal span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(186,230,253,.28); border-radius: 99px; color: #e0f2fe; font-size: 15.95px; font-weight: 750; }.hero-signal span i { color: #7dd3fc; font-size: 15.95px; }.hero-signal span:nth-of-type(2) i { color: #fbbf24; }.hero-signal span:nth-of-type(3) i { color: #5eead4; }.hero-signal b { color: #7dd3fc; font-size: 15.95px; }
.daily-pulse { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 7px; min-height: 258px; padding: 16px; border: 1px solid rgba(186,230,253,.25); border-radius: 14px; background: rgba(15,23,42,.36); }.daily-pulse > span, .daily-pulse > p { grid-column: 1 / -1; margin: 0; color: #bae6fd; font-size: 15.95px; font-weight: 850; letter-spacing: .1em; }.daily-pulse > p { color: #94a3b8; font-weight: 500; letter-spacing: 0; line-height: 1.45; }
.daily-pulse > div { display: grid; grid-template-rows: 27px 138px 17px; align-items: end; justify-items: center; gap: 7px; min-width: 0; }.daily-pulse b { color: #e0f2fe; font-size: 15.95px; text-align: center; word-break: keep-all; }.daily-pulse i { display: flex; align-items: end; width: 100%; max-width: 33px; height: 138px; overflow: hidden; border-radius: 7px 7px 2px 2px; background: rgba(255,255,255,.1); }.daily-pulse em { width: 100%; border-radius: inherit; background: linear-gradient(#7dd3fc, #2563eb); }.daily-pulse small { color: #7dd3fc; font: 800 14.5px var(--font); }
.daily-magazine-story { display: grid; grid-template-columns: 1.5fr .75fr; gap: 1px; background: #bfdbfe; }.daily-magazine-story > article, .daily-magazine-story > aside { padding: 30px; background: #fff; }.daily-magazine-story h3 { margin: 12px 0; color: #172554; font-size: 26px; line-height: 1.3; }.daily-magazine-story p { color: var(--text-2); font-size: 15.95px; line-height: 1.8; }.daily-magazine-story aside { color: #dbeafe; background: #0f766e; }.daily-magazine-story aside > i { display: block; margin-bottom: 16px; color: #99f6e4; font-size: 28px; }.daily-magazine-story aside > b { color: #fff; font-size: 17px; }.daily-magazine-story aside ol { margin: 12px 0; padding-left: 18px; color: #d1fae5; font-size: 15.95px; line-height: 1.9; }.daily-magazine-story aside p { color: #ccfbf1; font-size: 15.95px; line-height: 1.65; }
.market-file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #cbd5e1; }.market-file { position: relative; min-height: 262px; padding: 27px; background: #fff; }.market-file > span { color: #2563eb; font-size: 15.95px; font-weight: 900; letter-spacing: .1em; }.market-file h3 { margin: 9px 0 4px; color: #172554; font-size: 24px; }.market-file > b { color: #0f766e; font-size: 15.95px; }.market-file > p { margin: 16px 0 20px; color: var(--text-2); font-size: 15.95px; line-height: 1.75; }.market-file > div { display: flex; gap: 8px; align-items: flex-start; margin-top: auto; color: #1d4ed8; }.market-file > div i { margin-top: 2px; }.market-file > div small { color: #1e40af; font-size: 15.95px; font-weight: 750; line-height: 1.5; }.market-file:hover { background: #f0f9ff; }
.market-file:nth-child(4n + 1)::after { position: absolute; right: 21px; top: 23px; width: 20px; height: 20px; border: 3px solid #38bdf8; border-radius: 50%; content: ''; }.market-file:nth-child(4n + 2)::after { position: absolute; right: 24px; top: 28px; width: 24px; height: 24px; border-radius: 4px; background: #fef3c7; transform: rotate(16deg); content: ''; }.market-file:nth-child(4n + 3)::after { position: absolute; right: 22px; top: 26px; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 22px solid #5eead4; content: ''; }.market-file:nth-child(4n)::after { position: absolute; right: 23px; top: 26px; color: #f59e0b; content: '✦'; font-size: 28px; }
.market-comparison { display: grid; grid-template-columns: .72fr 1.28fr; gap: 26px; padding: 31px; background: #eff6ff; }.market-comparison h3 { margin-top: 8px; color: #172554; font-size: 24px; line-height: 1.3; }.comparison-table { display: grid; gap: 7px; }.comparison-table p { display: grid; grid-template-columns: .8fr 1fr 1.15fr; gap: 10px; margin: 0; padding: 11px 13px; border-radius: 7px; background: #fff; font-size: 15.95px; }.comparison-table b { color: #1d4ed8; }.comparison-table span { color: var(--text-2); }.comparison-table em { color: #0f766e; font-style: normal; font-weight: 750; }
.daily-checklist { display: grid; grid-template-columns: .66fr 1.34fr; gap: 25px; align-items: center; padding: 25px 31px; color: #fff; background: #172554; }.daily-checklist strong { display: block; margin-top: 7px; font-size: 20px; }.daily-checklist ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: daily-check; }.daily-checklist li { position: relative; min-height: 58px; padding: 12px 10px 10px 38px; border: 1px solid rgba(191,219,254,.25); border-radius: 8px; color: #dbeafe; font-size: 15.95px; line-height: 1.5; counter-increment: daily-check; }.daily-checklist li::before { position: absolute; left: 12px; top: 11px; color: #7dd3fc; content: '0' counter(daily-check); font-size: 15.95px; font-weight: 900; }.market-source-note { margin: 0; padding: 15px 28px; color: #64748b; background: #f8fafc; font-size: 15.95px; line-height: 1.65; }.market-source-note i { margin-right: 4px; color: #2563eb; }

/* ===== 200 company atlas ===== */
.stocks-page { width: 100%; max-width: none; }
.stocks-page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 32px; align-items: end; margin-bottom: 22px; padding: 8px 4px 2px; }
.stocks-page-head > div > span { color: #2563eb; font-size: 15.95px; font-weight: 900; letter-spacing: .14em; }
.stocks-page-head h1 { margin: 8px 0 0; color: #172554; font-size: clamp(31px, 4vw, 54px); line-height: 1.05; letter-spacing: -.06em; }
.stocks-page-head h1 mark { color: #1d4ed8; background: transparent; }
.stocks-page-head > p { margin: 0; color: #475569; font-size: 15.95px; line-height: 1.75; }
.atlas-day-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0 12px; }
.atlas-day-tabs button { display: grid; place-items: center; min-width: 0; min-height: 54px; padding: 10px; border: 1px solid #cbdcf5; border-radius: 10px; color: #1d4ed8; background: #fff; font: 800 18px/1 var(--font); cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.atlas-day-tabs button:hover { border-color: #60a5fa; background: #f8fbff; }.atlas-day-tabs button.active { border-color: #1d4ed8; color: #fff; background: #1d4ed8; box-shadow: 0 8px 18px rgba(29, 78, 216, .18); }
.stocks-page-note { margin: 0 0 8px; padding: 12px 14px; border: 1px solid #dbeafe; border-radius: 9px; color: #475569; background: #f8fbff; font-size: 15.95px; line-height: 1.6; }.stocks-page-note i { margin-right: 5px; color: #2563eb; }.stocks-page-note b { color: #1e40af; }
.company-atlas { margin: 34px 0; overflow: hidden; border: 1px solid #1e3a8a; border-radius: 20px; background: #f8fafc; box-shadow: 0 18px 46px rgba(15,23,42,.09); }
.atlas-header { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; gap: 26px; padding: clamp(28px, 5vw, 54px); overflow: hidden; color: #e0f2fe; background: linear-gradient(120deg, #020617, #172554 54%, #1d4ed8); }.atlas-header::after { position: absolute; right: -100px; bottom: -110px; width: 310px; height: 310px; border: 1px solid rgba(186,230,253,.25); border-radius: 50%; box-shadow: 0 0 0 35px rgba(125,211,252,.05), 0 0 0 70px rgba(125,211,252,.04); content: ''; }
.atlas-header > div:first-child { position: relative; z-index: 1; }.atlas-header > div:first-child > span { color: #7dd3fc; font-size: 15.95px; font-weight: 900; letter-spacing: .15em; }.atlas-header h2 { margin: 13px 0; color: #fff; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.04; letter-spacing: -.055em; }.atlas-header h2 em { color: #fbbf24; font-style: normal; }.atlas-header p { max-width: 690px; color: #cbd5e1; font-size: 15.95px; line-height: 1.75; }
.atlas-number-board { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; justify-self: end; width: 198px; height: 198px; border: 1px solid rgba(186,230,253,.5); border-radius: 50%; background: rgba(15,23,42,.24); transform: rotate(-8deg); }.atlas-number-board b { color: #fff; font-size: 78px; line-height: .85; letter-spacing: -.08em; }.atlas-number-board span { position: absolute; right: 26px; bottom: 30px; color: #7dd3fc; font-size: 15.95px; font-weight: 900; letter-spacing: .12em; line-height: 1.25; text-align: right; }.atlas-number-board i { position: absolute; left: 25px; top: 28px; color: #fbbf24; font-size: 22px; }
.atlas-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 24px; border-bottom: 1px solid #bfdbfe; background: #eff6ff; }.atlas-count, .atlas-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }.atlas-count { color: #1e40af; font-size: 15.95px; font-weight: 800; letter-spacing: .06em; }.atlas-count b { color: #1d4ed8; font-size: 16.5px; }.atlas-count i { width: 4px; height: 4px; border-radius: 50%; background: #60a5fa; }.atlas-filters button { padding: 8px 11px; border: 1px solid #bfdbfe; border-radius: 999px; background: #fff; color: #1e40af; font: 800 14.5px var(--font); cursor: pointer; }.atlas-filters button:hover, .atlas-filters button.active { border-color: #1d4ed8; background: #1d4ed8; color: #fff; }
.atlas-arrow-line { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 13px; color: #1d4ed8; background: #fff; font-size: 15.95px; font-weight: 850; }.atlas-arrow-line i { position: relative; width: 50px; height: 1px; background: #93c5fd; }.atlas-arrow-line i::after { position: absolute; right: 0; top: -3px; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 6px solid #60a5fa; content: ''; }
.atlas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #cbd5e1; }.atlas-card { min-height: 260px; padding: 20px; background: #fff; transition: background .15s ease, transform .15s ease; }.atlas-card:hover { position: relative; z-index: 1; background: #f0f9ff; box-shadow: 0 5px 18px rgba(15,23,42,.1); transform: translateY(-2px); }.atlas-card[hidden] { display: none; }.atlas-card-top { display: flex; align-items: center; justify-content: space-between; }.atlas-card-top span { padding: 4px 7px; border-radius: 4px; background: #dbeafe; color: #1d4ed8; font-size: 15.95px; font-weight: 900; letter-spacing: .08em; }.atlas-card[data-atlas-market="KOSDAQ"] .atlas-card-top span { background: #ccfbf1; color: #0f766e; }.atlas-card-top b { color: #94a3b8; font-size: 15.95px; letter-spacing: .08em; }.atlas-card h3 { margin: 16px 0 4px; color: #172554; font-size: 20px; line-height: 1.2; }.atlas-sector { margin: 0; color: #0f766e; font-size: 15.95px; font-weight: 800; }.atlas-summary { margin: 14px 0; color: #334155; font-size: 15.95px; line-height: 1.68; }.atlas-watch, .atlas-risk { display: flex; gap: 7px; align-items: flex-start; margin-top: 8px; font-size: 15.95px; line-height: 1.45; }.atlas-watch i { color: #2563eb; }.atlas-risk i { color: #d97706; }.atlas-watch span, .atlas-risk span { color: #475569; }.atlas-watch b, .atlas-risk b { display: inline-block; margin-right: 4px; color: #172554; }.atlas-risk { padding-top: 8px; border-top: 1px dashed #cbd5e1; }
.atlas-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #1e3a8a; }.atlas-footer > div { display: grid; grid-template-columns: 30px 1fr; gap: 3px 10px; padding: 22px; background: #172554; }.atlas-footer i { grid-row: 1 / span 2; color: #7dd3fc; font-size: 20px; }.atlas-footer strong { color: #fff; font-size: 15.95px; }.atlas-footer span { color: #bfdbfe; font-size: 15.95px; line-height: 1.6; }
/* Readability pass: corporate names, codes, and explanatory text stay legible. */
.market-source-note { color: #475569; font-size: 15.95px; line-height: 1.7; }
.atlas-count { font-size: 15.95px; }.atlas-count b { font-size: 17px; }.atlas-filters button { padding: 9px 13px; font-size: 15.95px; }
.atlas-arrow-line { padding: 15px; font-size: 15.95px; }.atlas-card { min-height: 290px; padding: 22px; }.atlas-card-top span { padding: 5px 8px; font-size: 15.95px; }.atlas-card-top b { font-size: 15.95px; }
.atlas-card h3 { margin: 17px 0 5px; font-size: 23px; line-height: 1.25; }.atlas-ticker, .company-ticker { display: inline-block; margin-left: 3px; padding: 3px 6px; border: 1px solid #bfdbfe; border-radius: 4px; background: #eff6ff; color: #1d4ed8; font-size: 15.95px; font-weight: 850; letter-spacing: .04em; vertical-align: 2px; }.atlas-sector { font-size: 15.95px; }.atlas-summary { margin: 15px 0; font-size: 15.95px; line-height: 1.72; }.atlas-watch, .atlas-risk { gap: 8px; margin-top: 9px; font-size: 15.95px; line-height: 1.55; }.atlas-risk { padding-top: 9px; }
.atlas-footer i { font-size: 22px; }.atlas-footer strong { font-size: 16.5px; }.atlas-footer span { font-size: 15.95px; line-height: 1.65; }
.daily-pulse > span, .daily-pulse > p, .daily-pulse b, .daily-pulse small { font-size: 15.95px; }.daily-magazine-story p { font-size: 16.5px; }.daily-magazine-story aside p { font-size: 15.95px; }.market-file > span { font-size: 15.95px; }.market-file > b { font-size: 15.95px; }.market-file > p { font-size: 15.95px; }.market-file > div small { font-size: 15.95px; }.comparison-table p { font-size: 15.95px; }.daily-checklist li { font-size: 15.95px; }.daily-checklist li::before { font-size: 15.95px; }
.market-magazine { margin: 28px 0 34px; border: 1px solid #172554; border-radius: 18px; overflow: hidden; background: #f8fbff; }
.magazine-hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; padding: clamp(28px, 5vw, 56px); color: #eff6ff; background: radial-gradient(circle at 88% 15%, #1d4ed8 0, #172554 38%, #0f172a 100%); }
.magazine-hero > div > span, .lead-story > span, .market-check > span, .sector-lens > div > span { display: block; color: #93c5fd; font-size: 15.95px; font-weight: 850; letter-spacing: .12em; }
.magazine-hero h2 { overflow: hidden; margin: 13px 0; font-size: clamp(24px, 2.7vw, 34px); line-height: 1.2; letter-spacing: -.05em; text-overflow: ellipsis; white-space: nowrap; }
.magazine-hero h2 em { color: #60a5fa; font-style: normal; }
.magazine-hero p { max-width: 640px; color: #cbd5e1; font-size: 17.6px; line-height: 1.7; }
.market-pulse { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; min-height: 230px; gap: 9px; padding: 16px; border: 1px solid rgba(191,219,254,.25); border-radius: 14px; background: rgba(15,23,42,.34); }
.market-pulse > span, .market-pulse small { grid-column: 1 / -1; color: #bfdbfe; font-size: 15.95px; font-weight: 800; letter-spacing: .1em; }
.market-pulse > div { display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; height: 155px; }
.market-pulse b { color: #cbd5e1; font-size: 15.95px; text-align: center; word-break: keep-all; }
.market-pulse i { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#60a5fa, #2563eb); }
.market-pulse small { color: #94a3b8; font-weight: 500; letter-spacing: 0; line-height: 1.45; }
.magazine-lead-grid { display: grid; grid-template-columns: 1.5fr .75fr; gap: 16px; padding: 22px; }
.lead-story, .market-check { min-height: 244px; padding: 26px; border-radius: 13px; background: #fff; }
.lead-story { border: 1px solid #bfdbfe; }
.lead-story h3, .market-check strong { display: block; margin: 10px 0; color: #172554; font-size: 26px; line-height: 1.25; }
.lead-story p { color: var(--text-2); font-size: 15.95px; line-height: 1.75; }
.mini-compare { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: #1d4ed8; font-size: 15.95px; font-weight: 800; }
.mini-compare i { flex: 1; height: 3px; background: #bfdbfe; }
.market-check { color: #e2e8f0; background: #0f766e; }
.market-check > span { color: #99f6e4; }
.market-check strong { color: #fff; }
.market-check ol { padding-left: 20px; color: #d1fae5; font-size: 15.95px; line-height: 2.05; }
.company-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #cbd5e1; border-top: 1px solid #cbd5e1; }
.company-feature { position: relative; min-height: 210px; padding: 22px; overflow: hidden; background: #fff; }
.company-feature > span { color: #60a5fa; font-size: 15.95px; font-weight: 900; letter-spacing: .09em; }
.company-feature h3 { margin: 10px 0 3px; color: #172554; font-size: 21px; }
.company-feature b { display: block; color: #0f766e; font-size: 15.95px; }
.company-feature p { margin-top: 17px; color: var(--text-2); font-size: 15.95px; line-height: 1.65; }
.company-feature > i { position: absolute; right: -10px; bottom: -18px; color: rgba(37,99,235,.09); font-size: 78px; transform: rotate(-10deg); }
.company-feature:hover { background: #eff6ff; }
.sector-lens { display: grid; grid-template-columns: .65fr 1.35fr; gap: 20px; padding: 27px; background: #e0f2fe; }
.sector-lens h3 { margin-top: 8px; color: #172554; font-size: 24px; line-height: 1.3; }
.sector-lens-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sector-lens-grid p { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 7px; background: rgba(255,255,255,.7); font-size: 15.95px; }
.sector-lens-grid b { color: #1d4ed8; }.sector-lens-grid span { color: var(--text-muted); text-align: right; }

/* ===== Expanded allocation dashboard ===== */
.simulation-page { max-width: none; }
.simulation-guide-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.simulation-guide-head .content-kicker { margin: 0 0 7px; font-size: 15.95px; }
.simulation-guide-head h1 { margin: 0; font-size: clamp(24px, 2.7vw, 34px); line-height: 1.2; }
.simulation-guide-head .content-lead { max-width: 620px; margin: 0 0 3px; font-size: 16.5px; line-height: 1.6; text-align: right; }
.simulation-steps { display: flex; align-items: center; gap: 12px; margin: 18px 0 20px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface2); }
.simulation-steps div { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.simulation-steps span { font-size: 15.95px; }
.simulation-steps h3 { margin: 0; font-size: 15.95px; }
.simulation-steps > i { color: #93c5fd; font-size: 15.95px; }
.simulation-workbench { margin-top: 0; }
.simulation-workbench .simulation-panel { border-radius: 22px; }
.simulation-workbench .sim-scenario-lab { max-width: 960px; margin: 0 auto; padding: 32px 0; }
@media (max-width: 900px) {
  .simulation-guide-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .simulation-guide-head .content-lead { max-width: none; text-align: left; }
  .magazine-hero, .magazine-lead-grid, .sector-lens, .daily-magazine-hero, .daily-magazine-story, .market-comparison, .daily-checklist { grid-template-columns: 1fr; }
  .company-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-header { grid-template-columns: 1fr; }.atlas-number-board { justify-self: start; width: 150px; height: 150px; }.atlas-number-board b { font-size: 58px; }.atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate-meter, .concentration-meter { grid-template-columns: 1fr; }
  .rate-meter em, .concentration-meter strong { text-align: left; }
}
@media (max-width: 620px) {
  .simulation-steps { gap: 8px; padding: 10px; }
  .simulation-steps > i { display: none; }
  .simulation-header { padding: 18px; align-items: flex-start; }
  .simulation-live { display: none; }
  .sim-scenario-lab { margin: 0 18px; }
  .scenario-lab-heading, .sim-footer { align-items: flex-start; flex-direction: column; }
  .scenario-result .scenario-breakdown { grid-template-columns: 1fr; gap: 8px; }
  .scenario-reason { grid-template-columns: 1fr; gap: 4px; }
  .sim-footer { padding: 18px; }
  .sim-footer .sim-ask-btn { width: 100%; }
  .map-steps > i, .rag-flow > i { display: none; }
  .map-steps, .rag-flow { gap: 5px; }
  .map-steps small, .rag-flow span { font-size: 15.95px; }
  .theory-roadmap > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theory-roadmap button:last-child { grid-column: 1 / -1; min-height: auto; }
  .market-magazine { margin-inline: -2px; }
  .daily-market-magazine { margin-inline: -2px; }.daily-magazine-hero { padding: 28px 22px; }.daily-magazine-hero h2 { font-size: 26px; }.daily-pulse { min-height: 215px; }.daily-pulse > div { grid-template-rows: 25px 106px 17px; }.daily-pulse i { height: 106px; }.daily-magazine-story > article, .daily-magazine-story > aside { padding: 21px; }.daily-magazine-story h3 { font-size: 22px; }.market-file-grid { grid-template-columns: 1fr; }.market-file { min-height: 0; padding: 22px; }.market-comparison { gap: 16px; padding: 22px; }.comparison-table p { grid-template-columns: 1fr; gap: 4px; }.daily-checklist { gap: 15px; padding: 22px; }.daily-checklist ol { grid-template-columns: 1fr; }.market-source-note { padding: 14px 20px; }
  .company-atlas { margin-inline: -2px; }.atlas-header { padding: 28px 22px; }.atlas-header h2 { font-size: 36px; }.atlas-number-board { display: none; }.atlas-toolbar { align-items: flex-start; flex-direction: column; padding: 15px 18px; }.atlas-arrow-line { justify-content: flex-start; overflow-x: auto; padding-inline: 18px; white-space: nowrap; }.atlas-arrow-line i { min-width: 24px; }.atlas-grid { grid-template-columns: 1fr; }.atlas-card { min-height: 0; padding: 19px; }.atlas-footer { grid-template-columns: 1fr; }
  .hero-orbit, .daily-hero-copy::before, .daily-hero-copy::after { display: none; }.hero-signal { gap: 5px; }.hero-signal b { display: none; }.hero-signal span { padding: 7px 8px; font-size: 15.95px; }
  .magazine-hero { padding: 28px 22px; }.magazine-hero h2 { font-size: 26px; }
  .market-pulse { min-height: 190px; }.market-pulse > div { height: 118px; }
  .company-card-grid, .sector-lens-grid { grid-template-columns: 1fr; }
  .magazine-lead-grid { padding: 14px; }.lead-story, .market-check { min-height: auto; padding: 20px; }
  .theory-detail-heading { grid-template-columns: 1fr; gap: 14px; min-height: 0; }.theory-title-visual { min-height: 108px; }.day-infographic { padding: 18px; }.learning-visual { padding: 20px; }.learning-visual header { align-items: flex-start; flex-direction: column; gap: 5px; }.visual-triad { grid-template-columns: 1fr; }.visual-flow { flex-direction: column; }.visual-flow > i { transform: rotate(90deg); }.visual-risk-chart, .visual-allocation { grid-template-columns: 1fr; }.allocation-ring { margin: auto; }.info-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .balance-visual, .position-portfolio-visual, .timeline-visual { flex-direction: column; }.balance-visual > i, .position-portfolio-visual > i { align-self: center; transform: rotate(90deg); }.timeline-visual > i { width: 2px; height: 20px; transform: none; }.timeline-visual > i::after { margin-top: 16px; margin-right: -3px; border-top: 7px solid #2563eb; border-right: 5px solid transparent; border-left: 5px solid transparent; border-bottom: 0; }.metric-card-visual { grid-template-columns: 1fr; }.allocation-inline { grid-template-columns: 1fr; justify-items: stretch; }.allocation-inline i { justify-self: center; }
  .institution-grid, .derivative-grid, .risk-four { grid-template-columns: 1fr; }
  .institution-grid article, .derivative-grid article { min-height: 104px; }
  .money-flow, .rebalancing-line { flex-wrap: wrap; gap: 8px; }.money-flow i, .rebalancing-line i { display: none; }
  .company-strip article { grid-template-columns: 1fr; gap: 4px; }
  .allocation-pyramid article:nth-child(n) { width: 100%; }
}

@media (max-width: 700px) {
  .butler-intro { padding: 20px; }.butler-intro-head { align-items: flex-start; flex-direction: column; }.butler-intro h2 { font-size: 22px; }.butler-feature-grid { grid-template-columns: 1fr; }.butler-feature-grid article { min-height: 0; }
  .theory-day-2 .theory-lesson:nth-child(n+4)::after { position: static; display: block; margin-bottom: 8px; }
  .theory-day-2 .theory-lesson:nth-child(n+4) h2 { padding-right: 0; }
}

/* Compact calendar header */
.calendar-page { padding-top: 20px; }
.calendar-page-head { align-items: center; gap: 16px; }
.calendar-page-head .content-kicker { margin-bottom: 3px; font-size: 15.95px; }
.calendar-page-head h1 { font-size: clamp(24px, 2vw, 30px); line-height: 1.15; }
.calendar-page-head .content-lead { max-width: 430px; margin: 0; font-size: 15.95px; line-height: 1.45; }
.calendar-page .personal-schedule { margin: 12px 0; padding: 12px 16px; border-radius: 10px; }
.calendar-page .personal-schedule p { margin: 0; font-size: 15.95px; }
.calendar-page .calendar-board { margin: 16px 0 28px; }
@media (max-width: 860px) {
  .calendar-page { padding-top: 18px; }
  .calendar-page-head { gap: 5px; }
  .calendar-page-head h1 { font-size: 26px; }
}

/* Compact listed-company atlas introduction */
.stocks-page { padding-top: 18px; }
.stocks-page-head { grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 18px; align-items: center; margin-bottom: 10px; padding: 0; }
.stocks-page-head > div > span { font-size: 15.95px; }
.stocks-page-head h1 { margin-top: 5px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.08; }
.stocks-page-head > p { font-size: 15.95px; line-height: 1.5; }
.atlas-day-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 0 8px; }
.atlas-day-tabs button { min-height: 40px; padding: 7px; border-radius: 8px; font-size: 16.5px; }
.stocks-page-note { margin-bottom: 6px; padding: 9px 12px; font-size: 15.95px; line-height: 1.45; }
.company-atlas { margin: 18px 0 26px; border-radius: 14px; }
@media (max-width: 700px) {
  .stocks-page { padding-top: 16px; }
  .stocks-page-head { gap: 6px; }
  .stocks-page-head h1 { font-size: 27px; }
  .atlas-day-tabs button { min-height: 38px; }
}

/* Compact one-line page titles */
.content-page { padding-top: 16px; padding-bottom: 44px; }
.content-kicker { margin-bottom: 5px; font-size: 15.95px; }
.content-page h1 { margin: 0 0 6px; font-size: clamp(22px, 2vw, 30px); line-height: 1.12; white-space: nowrap; }
.content-lead { margin: 0; font-size: 15.95px; line-height: 1.5; }
.simulation-guide-head { align-items: center; gap: 16px; }
.simulation-guide-head .content-kicker { margin-bottom: 3px; }
.simulation-guide-head h1 { font-size: clamp(22px, 2vw, 30px); white-space: nowrap; }
.simulation-guide-head .content-lead { font-size: 15.95px; line-height: 1.45; }
.simulation-steps { margin: 10px 0 14px; padding: 9px 12px; }
.simulation-workbench .simulation-panel { border-radius: 14px; }
.stocks-page-head h1, .atlas-header h2 { white-space: nowrap; }
@media (max-width: 700px) {
  .content-page { padding-top: 14px; }
  .content-page h1 { font-size: 24px; }
  .simulation-guide-head { gap: 4px; }
  .stocks-page-head h1, .atlas-header h2 { white-space: normal; }
}

/* Application footer */
.app-footer { min-height: 52px; padding: 14px clamp(16px, 2.5vw, 32px); border-top: 1px solid #25324a; background: #080d1a; color: #aebbd0; }
.app-footer span:first-child { color: #f1f5f9; }

/* Two-pane calendar workspace */
.calendar-page { padding-bottom: 16px; }
.calendar-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .85fr); gap: 14px; align-items: stretch; margin-top: 12px; }
.calendar-page .calendar-board { margin: 0; }
.calendar-page .calendar-agenda-section { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.calendar-page .calendar-agenda-section .section-heading { margin-bottom: 10px; }
.calendar-page .calendar-agenda-section .section-heading h2 { margin: 0; font-size: 18px; }
.calendar-page .calendar-agenda-list { gap: 7px; }
.calendar-page .calendar-agenda-item { grid-template-columns: 48px minmax(0, 1fr); gap: 9px; padding: 9px; border-radius: 8px; }
.calendar-page .calendar-agenda-date { padding: 5px; }
.calendar-page .calendar-agenda-date b { font-size: 15.95px; }
.calendar-page .calendar-agenda-body { gap: 3px; }
.calendar-page .calendar-tag { font-size: 15.95px; }
.calendar-page .calendar-agenda-title { font-size: 15.95px; }
.calendar-page .calendar-agenda-body p { display: -webkit-box; overflow: hidden; font-size: 15.95px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

@media (min-width: 861px) {
  .calendar-page .calendar-split { height: min(590px, calc(100dvh - 325px)); }
  .calendar-page .calendar-board { display: flex; flex-direction: column; }
  .calendar-page .calendar-grid { flex: 1 1 auto; grid-auto-rows: minmax(0, 1fr); }
  .calendar-page .calendar-cell { min-height: 0; padding: 5px; }
  .calendar-page .calendar-daynum { margin-bottom: 3px; font-size: 15.95px; }
  .calendar-page .calendar-cell.is-today .calendar-daynum { min-width: 18px; height: 18px; }
  .calendar-page .calendar-chips { gap: 2px; }
  .calendar-page .calendar-chip { padding: 3px 5px; font-size: 15.95px; }
  .calendar-page .calendar-agenda-item:nth-child(n + 5) { display: none; }
  .calendar-page .content-disclaimer { margin: 9px 0 0; font-size: 15.95px; line-height: 1.35; }
}

@media (max-width: 860px) {
  .calendar-split { grid-template-columns: 1fr; }
  .calendar-page .calendar-board { margin: 12px 0 0; }
  .calendar-page .calendar-agenda-section { margin: 0; }
}

/* LEAN 투자 판단 실습: 테스트 목록과 상세 해석을 나란히 표시 */
.backtest-workspace { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.backtest-page .backtest-examples { position: sticky; top: 12px; margin: 0; padding: 16px; background: linear-gradient(150deg, #eff6ff, #f8fafc); }
.backtest-page .backtest-examples > div:first-child { display: block; }
.backtest-page .backtest-examples > div:first-child span { font-size: 15.95px; }
.backtest-page .backtest-examples h2 { margin-top: 5px; font-size: 17px; }
.backtest-page .backtest-examples > div:first-child p { margin-top: 6px; color: #64748b; font-size: 15.95px; line-height: 1.45; }
.backtest-page .backtest-example-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 13px; }
.backtest-page .backtest-example { position: relative; min-height: 0; padding: 11px 29px 11px 12px; }
.backtest-page .backtest-example strong { margin-top: 4px; font-size: 15.95px; }
.backtest-page .backtest-example small { margin-top: 4px; font-size: 15.95px; }
.backtest-page .backtest-example > i { position: absolute; top: 50%; right: 11px; color: #93c5fd; font-size: 15.95px; transform: translateY(-50%); }
.backtest-page .backtest-example.selected > i { color: #0284c7; }
.backtest-main { min-width: 0; }
.backtest-test-detail { padding: 18px; border: 1px solid #bae6fd; border-radius: 14px; background: linear-gradient(120deg, #f0f9ff, #f8fafc); }
.backtest-test-detail header > span { color: #0284c7; font-size: 15.95px; font-weight: 850; letter-spacing: .1em; }
.backtest-test-detail h2 { margin: 5px 0 4px; color: #0f172a; font-size: 21px; line-height: 1.3; }
.backtest-test-detail header > p { margin: 0; color: #475569; font-size: 15.95px; line-height: 1.5; }
.backtest-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.backtest-detail-grid article { min-height: 106px; padding: 12px; border: 1px solid #dbeafe; border-radius: 9px; background: #fff; }
.backtest-detail-grid article > i { margin-right: 6px; color: #0284c7; font-size: 15.95px; }
.backtest-detail-grid article > b { color: #0f172a; font-size: 15.95px; }
.backtest-detail-grid article p { margin: 6px 0 0; color: #475569; font-size: 15.95px; line-height: 1.5; }
.backtest-detail-grid article.caution { border-color: #fde68a; background: #fffbeb; }
.backtest-detail-grid article.caution > i { color: #d97706; }
.backtest-page .backtest-canvas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; padding: 14px; }
.backtest-page .backtest-canvas > i { display: none; }
.backtest-page .workflow-node { min-height: 122px; padding: 12px; }
.backtest-page .workflow-node input, .backtest-page .workflow-node select { margin: 8px 0 5px; padding: 7px; font-size: 15.95px; }
.backtest-page .workflow-node small { font-size: 15.95px; }
.backtest-page .workflow-node strong { margin: 18px 0 10px; font-size: 20px; }
.backtest-page .backtest-parameters { margin-bottom: 12px; padding: 12px; }
.backtest-page .backtest-result { margin-top: 16px; }

/* LEAN 백테스트 화면의 보조 문구·라벨 가독성 */
.backtest-page .content-kicker,
.backtest-page .backtest-examples > div:first-child span,
.backtest-page .backtest-example span,
.backtest-page .backtest-test-detail header > span,
.backtest-page .workflow-node span,
.backtest-page .workflow-node small,
.backtest-page .backtest-result-head span,
.backtest-page .backtest-summary > span,
.backtest-page .investment-checklist header > span {
  font-size: 15.95px;
}
.backtest-page .content-lead,
.backtest-page .backtest-examples > div:first-child p,
.backtest-page .backtest-test-detail header > p {
  font-size: 16.5px;
}
.backtest-page .backtest-example strong { font-size: 16.5px; }
.backtest-page .backtest-example small { font-size: 15.95px; }
.backtest-page .backtest-detail-grid article > i { font-size: 15.95px; }
.backtest-page .backtest-detail-grid article > b { font-size: 15.95px; }
.backtest-page .backtest-detail-grid article p { font-size: 15.95px; }
.backtest-page .workflow-node input,
.backtest-page .workflow-node select { font-size: 15.95px; }
.backtest-page .backtest-parameters label { font-size: 15.95px; }
.backtest-page .backtest-parameters small,
.backtest-page .backtest-actions span,
.backtest-page .backtest-metrics span,
.backtest-page .backtest-disclaimer,
.backtest-page .backtest-result details,
.backtest-page .backtest-summary small,
.backtest-page .investment-checklist article > span,
.backtest-page .investment-checklist article p,
.backtest-page .investment-checklist footer { font-size: 15.95px; }

@media (max-width: 860px) {
  .backtest-workspace { grid-template-columns: 1fr; }
  .backtest-page .backtest-examples { position: static; }
  .backtest-page .backtest-example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backtest-page .backtest-canvas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .backtest-detail-grid, .backtest-page .backtest-example-grid, .backtest-page .backtest-canvas { grid-template-columns: 1fr; }
  .backtest-detail-grid article { min-height: 0; }
}

/* 시뮬레이션: 시나리오 탭을 실습 패널 최상단에 배치 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.simulation-workbench .simulation-panel { border-top: 0; }
.simulation-workbench .sim-scenario-lab { max-width: 960px; margin: 0 auto; padding: 16px 0 22px; border-top: 0; }
.simulation-workbench .scenario-actions { margin: 0 0 10px; }
.simulation-workbench .sim-scenario-lab > .section-copy { margin: 0 0 12px; color: var(--text-muted); font-size: 15.95px; line-height: 1.45; }

/* RAG 화면의 데이터 이용·근거 안내 */
.rag-source-guide { margin: 18px 0 0; padding: 18px 22px; color: #334155; background: #f8fbff; border: 1px solid #dbeafe; border-radius: 10px; text-align: left; }
.rag-source-guide > span { display: block; margin-bottom: 8px; color: #2563eb; font-size: 15.95px; font-weight: 850; letter-spacing: .08em; }
.rag-source-guide p { margin: 0; font-size: 16.5px; line-height: 1.65; }
.rag-source-guide code { padding: 1px 5px; color: #1d4ed8; background: #eff6ff; border-radius: 3px; font-size: 15.95px; }
.rag-runtime { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:14px 0; border:1px solid #d7d7d7; background:#fff; }.rag-runtime span { display:grid; gap:4px; padding:12px 14px; border-right:1px solid #d7d7d7; }.rag-runtime span:last-child { border-right:0; }.rag-runtime b { color:#5b5b5b; font-size:12px; }.rag-runtime strong { color:#0058a3; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }@media(max-width:700px){.rag-runtime{grid-template-columns:1fr;}.rag-runtime span{border-right:0;border-bottom:1px solid #d7d7d7;}.rag-runtime span:last-child{border-bottom:0;}}

.investment-practice-page { max-width: 1180px; }.practice-hub-head { padding: 30px 32px; color: #fff; background: #0058a3; border-bottom: 8px solid #ffda1a; }.practice-hub-head span { color: #ffda1a; font-size: 13px; font-weight: 850; letter-spacing: .1em; }.practice-hub-head h1 { margin: 7px 0; color: #fff; font-size: clamp(30px, 4vw, 46px); }.practice-hub-head h1 mark { color: #ffda1a; background: transparent; }.practice-hub-head p { margin: 0; color: #fff; opacity: .92; }.practice-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 20px; background: #d7d7d7; }.practice-hub-grid button { display: flex; flex-direction: column; align-items: flex-start; min-height: 240px; padding: 25px; color: #111; border: 0; background: #fff; text-align: left; font: inherit; cursor: pointer; }.practice-hub-grid button:hover { background: #e8f1f8; }.practice-hub-grid i { margin-bottom: 26px; color: #0058a3; font-size: 28px; }.practice-hub-grid span { color: #0058a3; font-size: 12px; font-weight: 850; letter-spacing: .08em; }.practice-hub-grid strong { margin-top: 9px; font-size: 21px; line-height: 1.3; }.practice-hub-grid small { margin-top: auto; color: #5b5b5b; font-size: 14px; line-height: 1.5; }.practice-flow { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 0; padding: 22px; color: #003b6f; background: #f7f7f7; font-size: 14px; font-weight: 800; }.practice-flow i { color: #ffb300; }@media (max-width: 760px) { .practice-hub-grid { grid-template-columns: 1fr; }.practice-flow { align-items: flex-start; flex-direction: column; }.practice-flow i { transform: rotate(90deg); } }


/* Account uses a compact dialog; it must not inherit the large content-modal frame. */
.auth-dialog { width: min(460px, calc(100vw - 32px)) !important; height: auto !important; min-height: 0 !important; max-width: 460px !important; max-height: min(720px, calc(100vh - 32px)) !important; padding: 30px !important; overflow: auto; border: 0; border-top: 7px solid #ffda1a; border-radius: 0 !important; }
@media (max-width: 620px) { .auth-dialog { width: calc(100vw - 24px) !important; max-width: none !important; padding: 22px !important; } }

/* The integrated dashboard and lessons are content, not a second application shell. */
.messages:has(.integrated-dashboard-page), .messages:has(.integrated-lesson-page) { padding: 0; background: #fff; }
.integrated-dashboard-page, .integrated-lesson-page { width: 100%; max-width: none; min-height: calc(100dvh - 73px); padding: 0; background: #fff; }
.integrated-dashboard-frame, .integrated-lesson-frame { width: 100%; min-height: calc(100dvh - 73px); margin: 0; overflow: hidden; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.integrated-dashboard-frame iframe, .integrated-lesson-frame iframe { width: 100%; min-height: calc(100dvh - 73px); border: 0; background: #fff; box-shadow: none; }
@media (max-width: 1080px) { .integrated-dashboard-page, .integrated-lesson-page, .integrated-dashboard-frame, .integrated-lesson-frame, .integrated-dashboard-frame iframe, .integrated-lesson-frame iframe { min-height: calc(100dvh - 58px); } }

/* Lessons live in the portal content area; they do not render a second GNB/LNB. */
.lesson-content-page { max-width: 1240px; }
.lesson-document { margin-top: 22px; padding: clamp(22px, 4vw, 46px); color: #222; border: 1px solid #d7d7d7; background: #fff; box-shadow: 0 2px 8px rgba(0,55,113,.08); font-size: 16px; line-height: 1.85; }
.lesson-document h2 { margin: 46px 0 18px; padding: 0 0 11px; color: #0058a3; border-bottom: 2px solid #ffda1a; font-size: 25px; line-height: 1.35; scroll-margin-top: 86px; }
.lesson-document h3 { margin: 32px 0 12px; color: #111; font-size: 19px; line-height: 1.45; scroll-margin-top: 86px; }
.lesson-document p { margin: 0 0 15px; }.lesson-document ul,.lesson-document ol { margin: 0 0 18px 22px; }.lesson-document li { margin: 5px 0; }.lesson-document blockquote { margin: 20px 0; padding: 14px 18px; border-left: 4px solid #0058a3; background: #e8f1f8; }.lesson-document table { display: block; width: 100%; margin: 20px 0; overflow-x: auto; border-collapse: collapse; }.lesson-document th,.lesson-document td { padding: 10px; border: 1px solid #d7d7d7; text-align: left; vertical-align: top; }.lesson-document th { color: #fff; background: #0058a3; }.lesson-intro { color: #4f4f4f; }.lesson-loading,.lesson-load-error { margin: 0; color: #5b5b5b; }.lesson-load-error { color: #b42318; }.lesson-outline { display: grid; gap: 2px; margin: 0 0 34px; padding: 16px 18px; border-left: 4px solid #ffda1a; background: #f7f7f7; }.lesson-outline b { margin-bottom: 5px; color: #0058a3; font-size: 14px; }.lesson-outline a { color: #333; font-size: 14px; text-decoration: none; }.lesson-outline a:hover { color: #0058a3; text-decoration: underline; }.lesson-outline a.sub { padding-left: 14px; color: #5b5b5b; }
@media (max-width: 640px) { .lesson-document { margin-top: 14px; padding: 22px 18px; font-size: 15px; }.lesson-document h2 { margin-top: 34px; font-size: 21px; }.lesson-document h3 { font-size: 17px; } }

/* Compact document headers: menu name plus one functional sentence only. */
.simulation-guide-head,
.practice-hub-head,
.backtest-page-head {
  display:flex;
  align-items:baseline;
  gap:14px;
  min-height:52px;
  margin:0;
  padding:0 4px;
  color:#111;
  background:transparent;
  border:0;
  border-bottom:1px solid #d7d7d7;
}
.simulation-guide-head .content-kicker,
.practice-hub-head > div > span,
.backtest-page-head .content-kicker { display:none; }
.simulation-guide-head > div,
.practice-hub-head > div { display:contents; }
.simulation-guide-head h1,
.practice-hub-head h1,
.backtest-page-head h1 {
  flex:0 0 auto;
  margin:0;
  color:#0058a3;
  font-size:18px;
  line-height:1.35;
  white-space:nowrap;
}
.simulation-guide-head h1 mark,
.practice-hub-head h1 mark,
.backtest-page-head h1 mark { color:inherit; background:transparent; }
.simulation-guide-head .content-lead,
.practice-hub-head p,
.backtest-page-head .content-lead {
  max-width:none;
  margin:0;
  color:#5b5b5b;
  font-size:14px;
  line-height:1.45;
  text-align:left;
}
@media (max-width:640px) {
  .simulation-guide-head,.practice-hub-head,.backtest-page-head { align-items:flex-start; flex-direction:column; gap:3px; padding:12px 0; }
  .simulation-guide-head h1,.practice-hub-head h1,.backtest-page-head h1 { white-space:normal; }
}
