:root { color-scheme: light; }
body { grid-template-columns: 232px minmax(0, 1fr); background: #f3f8fc; color: #17324d; font-family: "Trebuchet MS", "Segoe UI", sans-serif; }
.sidebar {
  width: 232px; background: #164b91; color: #fff; border-right: 0; padding: 26px 18px;
  box-shadow: inset -1px 0 #0d376d;
}
.brand { padding-bottom: 24px; border-bottom: 1px solid #5b83b8; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: #ff6b57; color: #fff; }
.brand small { color: #cfe0f5; }
.sidebar nav { gap: 7px; }
.sidebar nav a { border-radius: 6px; color: #dbe9fb; padding: 12px 14px; }
.sidebar nav a:hover, .sidebar nav a.active { background: #fff; color: #164b91; box-shadow: 0 3px 0 #ff6b57; }
.app-shell { width: auto; min-width: 0; margin-left: 0; padding: 26px 34px 48px; box-sizing: border-box; }
.topbar {
  background: #fff; border: 1px solid #bfd0df; border-left: 8px solid #ff6b57;
  border-radius: 6px; padding: 22px 24px; box-shadow: 0 8px 24px rgb(30 73 113 / 8%);
}
.topbar h1 { max-width: 720px; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.08; color: #12345a; }
.eyebrow { color: #dd4937; font-weight: 800; }
button { border-radius: 6px; background: #164b91; color: #fff; box-shadow: 0 3px 0 #0d376d; }
button:hover { background: #0d376d; }
.metrics-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.metrics-grid article {
  position: relative; min-width: 0; overflow: hidden; border: 1px solid #bfd0df; border-radius: 6px; background: #fff; box-shadow: none;
}
.metrics-grid article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #46a6a1; }
.metrics-grid article:nth-child(2)::before { background: #ff6b57; }
.metrics-grid article:nth-child(3)::before { background: #f2b84b; }
.metrics-grid article:nth-child(4)::before { background: #164b91; }
.content-grid { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr); gap: 16px; }
.panel { min-width: 0; border: 1px solid #bfd0df; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgb(30 73 113 / 7%); }
.panel.wide { grid-column: 1 / -1; }
.panel.wide:last-child { grid-column: 1 / -1; border-left: 5px solid #46a6a1; }
.panel-header { border-bottom: 1px dashed #bfd0df; }
.table-list > *, .deal-list > *, .channel-list > * { border-radius: 4px; border-color: #d6e3ee; }
.auth-session { min-height: 42px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: #fff; color: #12345a; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.agenda-header { align-items: flex-start; }
.result-count { margin: 6px 0 0; color: #60758c; font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.toolbar input, .toolbar select { min-height: 42px; border: 1px solid #93abc0; border-radius: 4px; padding: 0 11px; background: #fff; color: #17324d; font: inherit; }
.toolbar input { width: min(240px, 100%); }
.toolbar .tertiary { border: 1px solid #93abc0; background: #fff; color: #164b91; box-shadow: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 780px; border-collapse: collapse; }
th, td { padding: 13px 18px; border-bottom: 1px solid #d6e3ee; text-align: left; vertical-align: middle; }
th { background: #edf4fa; color: #365a7d; font-size: 12px; text-transform: uppercase; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: #60758c; }
.empty-state { padding: 30px 18px; text-align: center; }
.empty-state span { display: block; margin-top: 7px; color: #60758c; }
.error-message { padding: 18px; border: 1px solid #edb5ad; background: #fff5f3; color: #8c2f24; }
.error-message p { margin: 7px 0 0; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ff6b57; outline-offset: 3px; }
@media (max-width: 900px) {
  body { display: block; }
  .sidebar { position: static; width: auto; height: auto; }
  .sidebar nav { display: grid; grid-template-columns: repeat(4, 1fr); }
  .app-shell { width: auto; margin-left: 0; }
  .content-grid { grid-template-columns: 1fr; }
  .panel.wide { grid-column: auto; }
  .agenda-header { align-items: stretch; }
  .toolbar { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .app-shell { padding: 18px 14px 36px; }
  .sidebar nav { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .toolbar > * { width: 100%; }
}
