/* Daily Outlook dashboard — ported from the Cowork artifact and slimmed down. */

:root { color-scheme: light; }

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1A1A1A;
  margin: 0;
  padding: 18px 22px;
  background: #fff;
  line-height: 1.45;
  max-width: 1400px;
  margin-inline: auto;
}

h1 { font-size: 22px; margin: 0 0 4px; color: #1F4E79; }
h2 { font-size: 17px; margin: 18px 0 8px; color: #1F4E79; border-bottom: 1px solid #E1E5EA; padding-bottom: 4px; }
h3 { font-size: 14px; margin: 12px 0 4px; color: #2A2A2A; }

.sub { color: #5C5C5C; font-size: 12px; margin: 0 0 14px; }

.score-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0 18px;
}
.card {
  background: #F7F9FC;
  border: 1px solid #E1E5EA;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
}
.card .label {
  font-size: 11px;
  color: #5C5C5C;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.card .value { font-size: 22px; font-weight: 700; }

.accent { color: #1F4E79; }
.green  { color: #0E8A4E; }
.red    { color: #B12424; }
.muted  { color: #5C5C5C; }
.amber  { color: #B2700A; }

table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th, td { padding: 6px 8px; border-bottom: 1px solid #E1E5EA; text-align: left; vertical-align: middle; }
th { background: #F0F3F8; font-weight: 600; color: #1F4E79; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.ctr, th.ctr { text-align: center; }

.pos { color: #0E8A4E; font-weight: 600; }
.neg { color: #B12424; font-weight: 600; }

.pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.pill-long  { background: #E5F4EC; color: #0E8A4E; }
.pill-short { background: #FBEBEB; color: #B12424; }
.conf-HIGH  { background: #E5F4EC; color: #0E8A4E; }
.conf-MED   { background: #FFF1DC; color: #B2700A; }
.conf-LOW   { background: #FBEBEB; color: #B12424; }

.st-closed_t1, .st-closed_t2 { color: #0E8A4E; font-weight: 700; }
.st-closed_stop              { color: #B12424; font-weight: 700; }
.st-open                     { color: #B2700A; font-weight: 700; }
.st-expired                  { color: #5C5C5C; font-weight: 700; }

.alert {
  background: #FFF7E6;
  border-left: 3px solid #D9941F;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin: 10px 0;
  font-size: 13px;
}
.recap {
  background: #EEF6F2;
  border-left: 3px solid #0E8A4E;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin: 10px 0;
  font-size: 13px;
}
.recap.warn { background: #FBEBEB; border-left-color: #B12424; }
.thesis { color: #2A2A2A; font-size: 11.5px; line-height: 1.4; }
.legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: #5C5C5C;
  flex-wrap: wrap;
  margin: 4px 0 8px;
}

.tab-row {
  display: flex;
  gap: 6px;
  margin: 14px 0 0;
  border-bottom: 2px solid #E1E5EA;
  flex-wrap: wrap;
}
.tab {
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #5C5C5C;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s;
  user-select: none;
}
.tab:hover { color: #2A2A2A; }
.tab.active { color: #1F4E79; border-bottom-color: #1F4E79; }
.tab-pane { display: none; padding-top: 12px; }
.tab-pane.active { display: block; }

.news { padding: 0; margin: 6px 0 0; list-style: none; }
.news li {
  padding: 8px 12px;
  border-left: 3px solid #1F4E79;
  background: #F7F9FC;
  margin-bottom: 6px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
}
.news li.geo  { border-left-color: #B12424; }
.news li.fed  { border-left-color: #B2700A; }
.news li.warn { border-left-color: #D9941F; background: #FFF7E6; }

.footer {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid #E1E5EA;
  font-size: 11px;
  color: #5C5C5C;
}

.staleness-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 12px;
}
.staleness-bar.fresh { background: #EEF6F2; color: #0E6E3E; border: 1px solid #B8DCC9; }
.staleness-bar.stale { background: #FFF7E6; color: #8C5E00; border: 1px solid #E6CF8E; }
.staleness-bar.error { background: #FBEBEB; color: #B12424; border: 1px solid #E6BFBF; }

.empty-state {
  padding: 24px;
  text-align: center;
  color: #5C5C5C;
  font-style: italic;
  background: #F7F9FC;
  border: 1px dashed #C0C8D2;
  border-radius: 6px;
}

.book-stub {
  padding: 18px 22px;
  background: #F7F9FC;
  border: 1px solid #E1E5EA;
  border-radius: 8px;
  font-size: 13px;
  color: #2A2A2A;
}
.book-stub h3 { margin-top: 0; }
.book-stub code {
  background: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #E1E5EA;
  font-size: 12px;
}

.book-btn {
  background: #1F4E79;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.book-btn:hover { background: #163A5C; }
.book-btn:disabled { background: #8FA7BF; cursor: not-allowed; }
.book-btn.secondary {
  background: #fff;
  color: #1F4E79;
  border: 1px solid #1F4E79;
}
.book-btn.secondary:hover { background: #F0F3F8; }
.took-mini-btn {
  background: #1F4E79;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.took-mini-btn:hover { background: #163A5C; }
.mini-btn {
  background: #fff;
  color: #5C5C5C;
  border: 1px solid #C0C8D2;
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 600;
  margin-right: 2px;
  cursor: pointer;
  font-family: inherit;
}
.mini-btn:hover { background: #F0F3F8; color: #1F4E79; border-color: #1F4E79; }
.mini-btn-danger { color: #B12424; border-color: #E6BFBF; }
.mini-btn-danger:hover { background: #FBEBEB; color: #B12424; border-color: #B12424; }

@media (max-width: 700px) {
  body { padding: 12px 14px; }
  .score-card { grid-template-columns: 1fr 1fr; }
  table { font-size: 11px; }
  .tab { padding: 6px 10px; font-size: 12px; }
}
