/* css/investor-studio.css — loaded after finance-studio.css */
body:not(.crime-mode) #screen-game .investor-studio {
  --is-cream:#fffdf5; --is-paper:#fbf3e2; --is-ink:#07513f; --is-emerald:#086049;
  --is-gold:#c49c55; --is-gold-soft:#e4cfaa; --is-text:#1e2a26;
  box-sizing:border-box; width:100%; min-width:0; margin:0; padding:14px 16px 18px;
  color:var(--is-text); background:var(--is-cream);
  border:1px solid var(--is-gold-soft); border-radius:14px;
  box-shadow:0 1px 0 var(--is-gold-soft), 0 8px 22px rgba(7,81,63,.06);
  font-family:Georgia,'Times New Roman',serif;
}
body:not(.crime-mode) #screen-game .investor-studio *,
body:not(.crime-mode) #screen-game .investor-studio *::before,
body:not(.crime-mode) #screen-game .investor-studio *::after { box-sizing:border-box; min-width:0; max-width:100%; }
body:not(.crime-mode) #screen-game .investor-studio button,
body:not(.crime-mode) #screen-game .investor-studio input { font:inherit; color:inherit; }
body:not(.crime-mode) #screen-game .investor-studio button { cursor:pointer; line-height:1.2; }

/* Top */
body:not(.crime-mode) #screen-game .investor-studio .is-top {
  display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between;
  gap:12px; margin:0 0 12px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-heading { min-width:0; }
body:not(.crime-mode) #screen-game .investor-studio .is-heading h1 {
  margin:0; font-family:Georgia,serif; font-weight:700; color:var(--is-ink);
  font-size:28px; line-height:1.15; letter-spacing:.1px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-sub {
  margin:2px 0 0; font-family:Georgia,serif; font-size:16px; color:var(--is-emerald);
}
body:not(.crime-mode) #screen-game .investor-studio .is-metrics {
  display:flex; flex-wrap:wrap; gap:8px; align-items:stretch;
}
body:not(.crime-mode) #screen-game .investor-studio .is-stat {
  display:flex; flex-direction:column; gap:2px; min-width:132px; padding:7px 12px;
  background:var(--is-paper); border:1px solid var(--is-gold-soft); border-radius:10px;
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
}
body:not(.crime-mode) #screen-game .investor-studio .is-stat-label { font-size:11px; color:#6b7365; }
body:not(.crime-mode) #screen-game .investor-studio .is-stat-value {
  font-family:Georgia,serif; font-size:17px; font-weight:700; color:var(--is-ink);
  white-space:nowrap;
}
body:not(.crime-mode) #screen-game .investor-studio .is-stat-value.is-up,
body:not(.crime-mode) #screen-game .investor-studio .is-change.is-up { color:var(--is-emerald); }
body:not(.crime-mode) #screen-game .investor-studio .is-stat-value.is-down,
body:not(.crime-mode) #screen-game .investor-studio .is-change.is-down { color:#a5342a; }
body:not(.crime-mode) #screen-game .investor-studio .is-stat-value.is-muted,
body:not(.crime-mode) #screen-game .investor-studio .is-change.is-muted,
body:not(.crime-mode) #screen-game .investor-studio .is-price.is-muted { color:#8c8272; }

/* Layout */
body:not(.crime-mode) #screen-game .investor-studio .is-layout {
  display:grid; grid-template-columns:2fr 1fr; gap:12px; align-items:start;
}
body:not(.crime-mode) #screen-game .investor-studio .is-workspace { min-width:0; }

/* Toolbar */
body:not(.crime-mode) #screen-game .investor-studio .is-toolbar {
  display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 8px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-tabs { display:flex; flex-wrap:wrap; gap:6px; }
body:not(.crime-mode) #screen-game .investor-studio .is-tabs button {
  flex:0 1 auto; min-height:36px; min-width:96px; padding:8px 14px;
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; font-size:13px;
  background:var(--is-paper); color:var(--is-ink);
  border:1px solid var(--is-gold-soft); border-radius:9px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-tabs button[aria-selected="true"] {
  background:var(--is-emerald); color:var(--is-cream); border-color:var(--is-emerald);
}
body:not(.crime-mode) #screen-game .investor-studio .is-search { flex:1 1 200px; min-width:200px; display:block; }
body:not(.crime-mode) #screen-game .investor-studio .is-search input {
  width:100%; min-height:36px; padding:8px 12px;
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; font-size:13px;
  background:var(--is-cream); color:var(--is-text);
  border:1px solid var(--is-gold-soft); border-radius:9px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-visually {
  position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
}
body:not(.crime-mode) #screen-game .investor-studio .is-sectors {
  display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-sectors button {
  flex:0 0 auto; min-height:32px; padding:6px 12px; font-size:12.5px;
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  background:var(--is-cream); color:var(--is-ink);
  border:1px solid var(--is-gold-soft); border-radius:999px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-sectors button[aria-pressed="true"] {
  background:var(--is-emerald); color:var(--is-cream); border-color:var(--is-emerald);
}
body:not(.crime-mode) #screen-game .investor-studio .is-result-count {
  margin:0 0 8px; font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:12.5px; color:#6b7365;
}

/* Cards */
body:not(.crime-mode) #screen-game .investor-studio .is-company-grid {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-card {
  display:flex; flex-direction:column; gap:8px; min-width:0; padding:12px 14px;
  background:var(--is-paper); border:1px solid var(--is-gold); border-radius:12px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-card-head {
  display:flex; align-items:flex-start; gap:10px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-company-icon {
  flex:0 0 42px; width:42px; height:42px; display:inline-flex; align-items:center;
  justify-content:center; background:var(--is-cream); border:1px solid var(--is-gold-soft);
  border-radius:10px; overflow:hidden;
}
body:not(.crime-mode) #screen-game .investor-studio .is-company-icon svg { width:24px; height:24px; display:block; }
body:not(.crime-mode) #screen-game .investor-studio .is-company-meta { flex:1 1 auto; min-width:0; }
body:not(.crime-mode) #screen-game .investor-studio .is-company-name {
  margin:0; font-family:Georgia,serif; font-weight:700; font-size:17px; line-height:1.2;
  color:var(--is-ink); overflow-wrap:anywhere;
}
body:not(.crime-mode) #screen-game .investor-studio .is-company-sector {
  display:block; margin-top:2px; font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:12.5px; color:#6b7365; overflow-wrap:anywhere;
}
body:not(.crime-mode) #screen-game .investor-studio .is-owned {
  align-self:flex-start; flex:0 0 auto; padding:3px 8px; border-radius:999px;
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; font-size:11px;
  color:#0a5a3c; background:#dff0e3; border:1px solid #bfe0c8; white-space:nowrap;
}
body:not(.crime-mode) #screen-game .investor-studio .is-quote {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:8px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-price {
  font-family:Georgia,serif; font-weight:700; font-size:24px; line-height:1.1;
  color:var(--is-ink); overflow-wrap:anywhere;
}
body:not(.crime-mode) #screen-game .investor-studio .is-change {
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; font-size:13px;
  font-weight:600; white-space:nowrap;
}
body:not(.crime-mode) #screen-game .investor-studio .is-sparkline {
  display:block; width:100%; height:auto; min-height:64px; max-height:80px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-sparkline.is-detail-spark { min-height:auto; }
body:not(.crime-mode) #screen-game .investor-studio .is-spark-cap {
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; fill:#8c8272;
}
body:not(.crime-mode) #screen-game .investor-studio .is-position {
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px;
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; font-size:12.5px; color:var(--is-text);
}
body:not(.crime-mode) #screen-game .investor-studio .is-profit { font-weight:600; }
body:not(.crime-mode) #screen-game .investor-studio .is-profit.is-up { color:var(--is-emerald); }
body:not(.crime-mode) #screen-game .investor-studio .is-profit.is-down { color:#a5342a; }
body:not(.crime-mode) #screen-game .investor-studio .is-profit.is-muted { color:#8c8272; }
body:not(.crime-mode) #screen-game .investor-studio .is-card-footer { margin-top:auto; }
body:not(.crime-mode) #screen-game .investor-studio .is-detail-button {
  min-height:36px; padding:8px 16px;
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; font-size:13px;
  background:var(--is-cream); color:var(--is-ink);
  border:1px solid var(--is-gold); border-radius:9px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-detail-button:disabled {
  color:#8c8272; border-color:var(--is-gold-soft); cursor:not-allowed;
}

/* Empty */
body:not(.crime-mode) #screen-game .investor-studio .is-empty {
  grid-column:1 / -1; padding:14px; background:var(--is-cream);
  border:1px dashed var(--is-gold-soft); border-radius:10px;
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; font-size:13px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-empty p { margin:0 0 10px; }
body:not(.crime-mode) #screen-game .investor-studio .is-reset {
  min-height:36px; padding:8px 14px; font-size:13px;
  background:var(--is-paper); color:var(--is-ink);
  border:1px solid var(--is-gold); border-radius:9px;
}

/* News */
body:not(.crime-mode) #screen-game .investor-studio .is-news {
  min-width:0; padding:12px 14px; background:var(--is-cream);
  border:1px solid var(--is-gold-soft); border-radius:12px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-news-heading {
  font-family:Georgia,serif; font-weight:700; font-size:18px; color:var(--is-ink);
  margin:0 0 4px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-news-note {
  margin:0 0 10px; font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:11.5px; color:#6b7365;
}
body:not(.crime-mode) #screen-game .investor-studio .is-news-item {
  display:flex; align-items:flex-start; gap:8px; padding:8px 0;
  border-top:1px solid var(--is-gold-soft);
}
body:not(.crime-mode) #screen-game .investor-studio .is-news-item:first-of-type { border-top:0; padding-top:0; }
body:not(.crime-mode) #screen-game .investor-studio .is-news-icon {
  flex:0 0 32px; width:32px; height:32px; display:inline-flex; align-items:center;
  justify-content:center; background:var(--is-paper); border:1px solid var(--is-gold-soft);
  border-radius:8px;
}
body:not(.crime-mode) #screen-game .investor-studio .is-news-icon svg { width:20px; height:20px; display:block; }
body:not(.crime-mode) #screen-game .investor-studio .is-news-copy {
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; font-size:12.5px;
  line-height:1.4; color:var(--is-text); overflow-wrap:anywhere;
}
body:not(.crime-mode) #screen-game .investor-studio .is-news-days {
  font-size:11px; color:#6b7365; white-space:nowrap;
}
body:not(.crime-mode) #screen-game .investor-studio .is-news-empty {
  margin:0; font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:12.5px; color:#6b7365;
}
body:not(.crime-mode) #screen-game .investor-studio .is-more-news { margin-top:10px; }
body:not(.crime-mode) #screen-game .investor-studio .is-more-news summary {
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; font-size:12px;
  color:var(--is-emerald); cursor:pointer;
}

/* Focus */
body:not(.crime-mode) #screen-game .investor-studio button:focus-visible,
body:not(.crime-mode) #screen-game .investor-studio input:focus-visible,
body:not(.crime-mode) #screen-game .investor-studio .is-more-news summary:focus-visible {
  outline:3px solid var(--is-gold); outline-offset:2px;
}

/* Responsive */
@media (max-width:900px) {
  body:not(.crime-mode) #screen-game .investor-studio .is-layout { grid-template-columns:minmax(0,1fr); }
  body:not(.crime-mode) #screen-game .investor-studio .is-news { margin-top:2px; }
}
@media (max-width:600px) {
  body:not(.crime-mode) #screen-game .investor-studio { padding:12px; }
  body:not(.crime-mode) #screen-game .investor-studio .is-heading h1 { font-size:23px; }
  body:not(.crime-mode) #screen-game .investor-studio .is-company-grid { grid-template-columns:minmax(0,1fr); }
  body:not(.crime-mode) #screen-game .investor-studio .is-search { flex:1 1 100%; min-width:0; }
  body:not(.crime-mode) #screen-game .investor-studio .is-detail-button { min-height:44px; }
  body:not(.crime-mode) #screen-game .investor-studio .is-tabs { width:100%; }
  body:not(.crime-mode) #screen-game .investor-studio .is-tabs button { flex:1 1 0; min-width:0; }
}

/* Modal chart — ONLY scope */
body:not(.crime-mode) #modal-box .investor-company-chart .is-sparkline {
  display:block; width:100%; height:auto; min-height:64px; max-height:80px;
}
body:not(.crime-mode) #modal-box .investor-company-chart .is-spark-cap {
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; fill:#8c8272;
}

@media (prefers-reduced-motion:reduce) {
  body:not(.crime-mode) #screen-game .investor-studio *,
  body:not(.crime-mode) #screen-game .investor-studio *::before,
  body:not(.crime-mode) #screen-game .investor-studio *::after {
    transition:none !important; animation:none !important;
  }
}

body:not(.crime-mode) #screen-game .investor-studio .is-stat-value{white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body:not(.crime-mode) #screen-game .investor-studio .is-company-description{margin:4px 0 0;font:12px/1.35 system-ui,sans-serif;color:#626455;overflow-wrap:anywhere}
body:not(.crime-mode) #screen-game .investor-studio .is-history-empty,body:not(.crime-mode) #modal-box .investor-company-chart .is-history-empty{display:flex;align-items:center;justify-content:center;min-height:64px;font:12px/1.4 system-ui,sans-serif;color:#746c5d;text-align:center;overflow-wrap:anywhere}
@media(max-width:600px){body:not(.crime-mode) #screen-game .investor-studio .is-card-head{flex-wrap:wrap}body:not(.crime-mode) #screen-game .investor-studio .is-company-meta{flex:1 1 120px}body:not(.crime-mode) #screen-game .investor-studio .is-owned{flex:0 1 auto;white-space:normal;overflow-wrap:anywhere}body:not(.crime-mode) #screen-game .investor-studio :is(button,input,summary){min-height:44px}}

body:not(.crime-mode) #modal-box .investor-company-chart .is-order-error{margin:5px 0 0;font:12px/1.4 system-ui,sans-serif;color:#9f342c;overflow-wrap:anywhere}
body:not(.crime-mode) #modal-box .investor-company-chart .is-order-error:empty{margin:0}

@media(max-width:600px){
body:not(.crime-mode) #screen-game .investor-studio .is-tabs button,
body:not(.crime-mode) #screen-game .investor-studio .is-sectors button,
body:not(.crime-mode) #screen-game .investor-studio .is-search input,
body:not(.crime-mode) #screen-game .investor-studio .is-reset,
body:not(.crime-mode) #screen-game .investor-studio .is-more-news summary{min-height:44px}
}
