@font-face {
  font-family: system;
  src: local("Inter"), local("Arial");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f3ee;
  color: #203b35;
  font:
    15px/1.55 system,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: #276657;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
  border: 1px solid #c9d3ca;
  background: white;
  color: #254a3e;
  border-radius: 7px;
  padding: 9px 15px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary,
.primary {
  background: #214d40;
  color: white;
  border-color: #214d40;
}
button.quiet {
  background: transparent;
  border: 0;
  padding: 7px 0;
  text-align: left;
  color: inherit;
}
button.danger {
  color: #9d403b;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9d2cb;
  border-radius: 6px;
  background: #fff;
  color: #243c35;
}
input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
label input,
label textarea,
label select {
  margin-top: 6px;
  font-weight: 400;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  background: #153d33;
  color: #e9efe9;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: white;
  font-size: 23px;
  letter-spacing: 3px;
  font-weight: 600;
  line-height: 1.25;
}
.brand img {
  width: 46px;
}
.brand-sub {
  display: block;
  font-size: 12px;
  letter-spacing: 5px;
  color: #ddcf99;
}
.workspace {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #a9c0b5;
  margin: 28px 0 20px;
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  padding: 11px 12px;
  border-radius: 6px;
  color: #cddcd1;
  font-size: 14px;
}
nav a.active,
nav a:hover {
  background: #31574a;
  color: #fff;
  text-decoration: none;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #aabeb1;
}
.sidebar-bottom p {
  padding-bottom: 20px;
  border-bottom: 1px solid #476153;
}
#identity {
  padding-top: 12px;
}
main {
  margin-left: 245px;
  min-height: 100vh;
  padding: 0 45px;
}
.topbar {
  height: 79px;
  border-bottom: 1px solid #d9ded5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7b70;
}
.tag {
  display: inline-block;
  background: #e6eadd;
  color: #54654f;
  font-size: 11px;
  letter-spacing: 0.4px;
  padding: 5px 9px;
  border-radius: 5px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #7c896d;
  text-transform: uppercase;
}
h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 9px 0 15px;
}
h2 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
}
h3 {
  font-size: 17px;
  margin: 0 0 9px;
  font-weight: 600;
}
p {
  margin: 10px 0 16px;
}
#view {
  max-width: 1200px;
  margin: 42px auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 28px;
}
.muted {
  color: #718176;
  font-size: 13px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid #dde2d8;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 18px;
}
.cards .card {
  margin: 0;
}
.card h3 a {
  color: #23493c;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 24px 0 30px;
}
.stat {
  border-top: 2px solid #a7b68e;
  padding: 15px 18px;
  background: #eaece2;
  border-radius: 0 0 8px 8px;
}
.stat strong {
  font-size: 30px;
  font-weight: 500;
  display: block;
}
.stat span {
  color: #64765e;
  font-size: 12px;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.row > * {
  flex: 1;
  min-width: 120px;
}
.row > button {
  flex: 0 0 auto;
  min-width: 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.full {
  grid-column: 1/-1;
}
.empty {
  padding: 42px;
  border: 1px dashed #bdc9b7;
  border-radius: 9px;
  text-align: center;
  background: #f8f8f3;
}
.empty p {
  max-width: 540px;
  margin: 10px auto 20px;
}
.notice {
  padding: 12px 18px;
  background: #f1e4bf;
  border-radius: 7px;
  color: #65502a;
  white-space: pre-wrap;
}
.error {
  background: #f6e3dc;
  color: #903f33;
}
#notice:not(:empty) {
  margin: 20px 0;
}
footer {
  font-size: 11px;
  color: #7e897c;
  margin: 50px auto 20px;
  max-width: 1200px;
  border-top: 1px solid #dce0d5;
  padding-top: 16px;
}
.pill {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  background: #edf1e9;
  color: #4e6951;
  white-space: nowrap;
}
.warning {
  background: #fbefd0;
  color: #8a6723;
}
.meta {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  color: #819080;
  font-size: 12px;
  margin: 12px 0;
}
.quote {
  border-left: 3px solid #c3b77e;
  background: #f6f5ed;
  padding: 14px 18px;
  margin: 14px 0;
  white-space: pre-wrap;
}
.find-text {
  font-size: 17px;
}
.evidence-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.evidence-buttons button {
  padding: 5px 9px;
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 20px 0;
}
.tabs a {
  background: #e6eadf;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  color: #526e56;
}
.progress {
  height: 6px;
  border-radius: 3px;
  background: #e0e6da;
  overflow: hidden;
  margin: 20px 0;
}
.progress span {
  display: block;
  background: #708c5e;
  height: 100%;
  width: 35%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
dialog {
  border: 1px solid #c5d0bf;
  border-radius: 10px;
  max-width: 850px;
  width: 90vw;
  max-height: 88vh;
  overflow: auto;
  color: #203b35;
  padding: 30px;
}
dialog::backdrop {
  background: #0c2d2580;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  border-bottom: 1px solid #e0e4da;
  padding: 11px;
  text-align: left;
  vertical-align: top;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2f4ed;
  padding: 15px;
  font-size: 12px;
}
.login {
  background: #e9ede3;
}
.login main {
  margin: 7vh auto;
  max-width: 570px;
  min-height: 0;
  background: #fff;
  border-radius: 16px;
  padding: 45px;
  box-shadow: 0 15px 65px #294a3810;
}
.login-logo {
  width: 58px;
}
.login form {
  margin: 30px 0;
}
.login h1 {
  font-size: 36px;
}
.login button {
  width: 100%;
}
.login p {
  color: #6e7f71;
}
.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.checkline {
  font-weight: 400;
}
.small {
  font-size: 12px;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .sidebar {
    width: 190px;
    padding: 25px 15px;
  }
  main {
    margin-left: 190px;
    padding: 0 24px;
  }
  .grid,
  .split {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .topbar .tag {
    display: none;
  }
  h1 {
    font-size: 31px;
  }
}
@media (max-width: 620px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 17px;
  }
  .brand {
    font-size: 18px;
  }
  .brand img {
    width: 36px;
  }
  .workspace,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 14px;
  }
  nav a {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px;
  }
  main {
    margin: 0;
    padding: 0 18px;
  }
  .topbar {
    height: 45px;
  }
  #view {
    margin-top: 24px;
  }
  .stats {
    gap: 6px;
  }
  .stat {
    padding: 10px;
  }
  .stat strong {
    font-size: 24px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .card,
  .panel {
    padding: 18px;
  }
  .login main {
    margin: 20px;
    max-width: none;
    padding: 25px;
  }
}

#new-research > *,
#research-scope > * {
  min-width: 0;
}
#new-research select {
  max-width: 100%;
}
#research-voice-status {
  overflow-wrap: anywhere;
}
#research-mic[aria-pressed="true"] {
  color: #9d403b;
  border-color: #9d403b;
}

.keyword-scroll{overflow:auto;max-width:100%}.keyword-scroll table{width:100%;border-collapse:collapse}.keyword-scroll th,.keyword-scroll td{padding:10px;text-align:left;vertical-align:top;border-bottom:1px solid #d5ded8;min-width:95px}.keyword-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.keyword-tabs [aria-pressed=true]{background:#245e49;color:white}.keyword-runs{display:flex;gap:16px;overflow:auto;align-items:flex-start}.keyword-runs>section{min-width:min(640px,90vw);flex:0 0 640px}.keyword-ours{background:#e1f1e5}.keyword-theme{padding:14px 0;border-top:1px solid #d5ded8}#keyword-import textarea{width:100%;font-family:monospace}#kw-import-error{color:#9e3026}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}
