
.ko-overview {
  min-width: 0;
  margin-bottom: 20px;
  color: var(--text);
}
.ko-overview * { box-sizing: border-box; }
.ko-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ko-overview .ko-header h1 { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.35; }
.ko-source { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.ko-source time { font-family: var(--mono); white-space: nowrap; }
.ko-windows { display: flex; flex: none; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.ko-overview .ko-windows button { min-height: 27px; padding: 4px 9px; border-radius: 4px; color: var(--muted); font: 11px var(--mono); }
.ko-overview .ko-windows button[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent); }
.ko-panel, .ko-expanded { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ko-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 19px; padding: 9px 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.ko-summary span { display: inline-flex; align-items: baseline; gap: 6px; }
.ko-summary b { color: var(--text); font: 600 12px var(--mono); white-space: nowrap; }
.ko-summary i { font-style: normal; }
.ko-bullish { color: var(--green); }
.ko-bearish { color: var(--red); }
.ko-neutral { color: var(--muted); }
.ko-grid { display: grid; grid-template-columns: minmax(220px, .92fr) minmax(0, 2fr); }
.ko-current { min-width: 0; padding: 11px 13px; border-right: 1px solid var(--line); }
.ko-current-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ko-current-top label, .ko-price { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 10px; }
.ko-overview .ko-current select { min-width: 0; max-width: 100%; min-height: 30px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface2); color: var(--text); font: 11px var(--mono); }
.ko-price { justify-items: end; text-align: right; }
.ko-price strong { color: var(--text); font: 600 clamp(13px, 1.4vw, 18px) var(--mono); white-space: nowrap; }
.ko-ratio { display: flex; flex-wrap: wrap; gap: 4px 11px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.ko-ratio span { white-space: nowrap; }
.ko-levels { min-width: 0; padding: 9px 12px 11px; }
.ko-levels-heading, .ko-expanded-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ko-overview .ko-levels h2, .ko-overview .ko-expanded h2 { margin: 0; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.4; }
.ko-overview .ko-link { min-height: 25px; padding: 2px 0; color: var(--accent); font-size: 10px; text-align: right; }
.ko-overview .ko-link:hover { text-decoration: underline; }
.ko-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ko-overview .ko-level { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 5px; min-width: 0; min-height: 39px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface2); color: var(--text); text-align: left; }
.ko-overview .ko-level:hover, .ko-overview .ko-level[aria-pressed="true"] { background: var(--accent-bg); }
.ko-level-kind { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 5px; grid-column: 1 / -1; font-size: 10px; }
.ko-level-kind small, .ko-level-count { font-size: 9px; }
.ko-level-count { color: var(--muted); white-space: nowrap; }
.ko-level strong { color: var(--text); font: 600 12px var(--mono); white-space: nowrap; }
.ko-level-authors { grid-column: 1 / -1; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.ko-overview :is(button, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ko-expanded { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.6fr); margin-top: 8px; }
.ko-expanded-col { min-width: 0; padding: 12px 13px; }
.ko-expanded-col + .ko-expanded-col { border-left: 1px solid var(--line); }
.ko-expanded h2 small { margin-left: 4px; color: var(--muted); font: 11px var(--mono); }
.ko-note { margin: 6px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.ko-preview > .ko-note { grid-column: 1 / -1; }
.ko-empty { margin: 0; padding: 14px 13px; color: var(--muted); font-size: 11px; }
.ko-level-list, .ko-opinion-list { display: grid; align-content: start; gap: 5px; max-height: 260px; overflow-y: auto; padding: 3px; overscroll-behavior: contain; }
.ko-opinion { padding: 8px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface2); }
.ko-opinion > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 10px; }
.ko-opinion strong { font-weight: 600; }
.ko-opinion time { margin-left: auto; color: var(--muted); font: 9px var(--mono); white-space: nowrap; }
.ko-opinion p { margin: 5px 0 0; color: var(--text); font-size: 11px; line-height: 1.6; }

.ko-ai { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 7px; background: var(--surface); }
.ko-ai > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 10px; }
.ko-ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.ko-overview .ko-ai-actions .ko-link { min-height: 23px; font-size: 11px; }
.ko-overview .ko-ai h2 { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 16px; font-weight: 650; }
.ko-ai h2 span { color: var(--accent); font: 12px var(--mono); }
.ko-ai-label { color: var(--muted); font-size: 11px; }
.ko-overview .ko-ai p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.ko-ai-bias strong { display: inline-block; margin-right: 9px; color: var(--text); font-size: 14px; }
.ko-ai-section { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ko-ai-section-head, .ko-ai-view > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ko-ai-section-head > span, .ko-ai-view time, .ko-ai-detail h4 small { color: var(--muted); font-size: 11px; font-weight: 400; }
.ko-overview .ko-ai h3, .ko-overview .ko-ai h4 { margin: 0; font-size: 13px; font-weight: 650; }
.ko-ai-grid { display: grid; grid-template-columns: repeat(var(--ko-ai-cols, 3), minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ko-ai-detail { min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface2); }
.ko-ai-detail h4 small { margin-left: 4px; }
.ko-ai-levels { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.ko-ai-levels li { color: var(--muted); font-size: 12px; }
.ko-ai-levels b { color: var(--text); font: 600 12px var(--mono); }
.ko-ai-levels small { color: var(--muted); font-size: 10px; }
.ko-ai-view > div { font-size: 12px; }
.ko-overview .ko-ai-view p { color: var(--text); }
.ko-ai.is-compact { padding: 10px 14px; }
.ko-ai.is-compact .ko-ai-section { margin-top: 8px; padding-top: 7px; }
.ko-overview .ko-ai.is-compact p { margin-top: 4px; line-height: 1.5; }
.ko-ai.is-compact .ko-ai-grid { margin-top: 6px; }
.ko-ai.is-compact .ko-ai-detail { padding: 6px 9px; }
.ko-ai.is-compact .ko-ai-levels { margin-top: 4px; }

@media (max-width: 850px) {
  .ko-overview .ko-level { grid-template-columns: 1fr; }
  .ko-level strong { font-size: 11px; }
  .ko-summary { column-gap: 12px; }
}
@media (max-width: 650px) {
  .ko-overview { margin-bottom: 15px; }
  .ko-overview .ko-header h1 { font-size: 17px; }
  .ko-overview .ko-windows button { min-height: 33px; padding-inline: 7px; }
  .ko-summary { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 10px; font-size: 10px; }
  .ko-summary span { flex-wrap: wrap; gap: 3px 5px; }
  .ko-grid, .ko-expanded { grid-template-columns: minmax(0, 1fr); }
  .ko-current { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; }
  .ko-overview .ko-current select { min-height: 33px; }
  .ko-levels { padding: 7px 10px 9px; }
  .ko-overview .ko-level { min-height: 44px; padding-inline: 6px; }
  .ko-expanded-col + .ko-expanded-col { border-top: 1px solid var(--line); border-left: 0; }
  .ko-ai, .ko-ai.is-compact { padding: 10px 12px; }
  .ko-ai-grid { grid-template-columns: 1fr; }
}

