@font-face {
  font-family: Hub;
  src: local("Segoe UI");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f7fb;
  color: #1b2a42;
  font-family: Hub, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  transition: background 0.15s;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: #2361c5;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7ab0ff;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: #748196;
}
.frame {
  display: grid;
  grid-template-columns: 218px 1fr;
  min-height: 100vh;
}
.rail {
  background: #14243c;
  color: #aebbd0;
  padding: 27px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: white;
  font-size: 21px;
  font-weight: 700;
  padding: 0 10px 28px;
}
.brand span {
  background: #3d7aed;
  border-radius: 11px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.nav {
  padding: 13px 14px;
  border-radius: 9px;
  display: block;
  color: #b8c6dc;
}
.nav.active {
  background: #293f60;
  color: #fff;
}
.rail-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 20px 14px 4px;
  color: #7288a6;
}
.rail-bottom {
  margin-top: auto;
  border-top: 1px solid #30415a;
  padding: 20px 12px;
  font-size: 12px;
  line-height: 1.7;
}
.rail-bottom strong {
  color: #a3d5b3;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  background: white;
  border-bottom: 1px solid #e4e9f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 34px;
  gap: 20px;
}
.crumb {
  color: #8190a5;
}
.crumb b {
  color: #35465e;
  font-weight: 500;
}
.session {
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  border-radius: 50%;
  background: #e9effa;
  color: #3863a1;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 36px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10px;
  font-weight: 700;
  color: #5980af;
  margin-bottom: 11px;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.intro p {
  max-width: 660px;
  color: #718096;
  line-height: 1.65;
  margin-bottom: 0;
}
.pill {
  padding: 6px 10px;
  background: #eaf4ef;
  color: #388260;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  align-self: flex-start;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid #e2e8f1;
  border-radius: 13px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px #18335603;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.panel-head h2 {
  margin: 0;
}
.section-num {
  display: inline-grid;
  place-items: center;
  background: #edf3fe;
  border-radius: 7px;
  color: #4578c7;
  font-size: 12px;
  width: 27px;
  height: 27px;
  margin-right: 8px;
}
.tabs {
  display: flex;
  padding: 5px;
  background: #f1f4f9;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 24px;
}
.tab {
  flex: 1;
  border: 0;
  padding: 12px;
  border-radius: 7px;
  color: #65748b;
  background: transparent;
}
.tab.selected {
  background: white;
  color: #285ba7;
  box-shadow: 0 2px 6px #18335612;
  font-weight: 600;
}
label {
  display: block;
  font-size: 12px;
  color: #526079;
  font-weight: 600;
  margin: 17px 0 8px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d7dfeb;
  border-radius: 7px;
  background: white;
  color: #25354f;
}
textarea {
  min-height: 210px;
  resize: vertical;
  line-height: 1.7;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6799ed;
  outline: 2px solid #d6e6ff;
}
.row {
  display: flex;
  gap: 15px;
  align-items: end;
}
.row > * {
  flex: 1;
  min-width: 0;
}
.primary {
  border: 0;
  border-radius: 8px;
  background: #2869d8;
  color: white;
  padding: 12px 20px;
  font-weight: 600;
}
.primary:hover {
  background: #1858c3;
}
.secondary,
.small-btn {
  border: 1px solid #d8e1ed;
  border-radius: 7px;
  background: white;
  color: #526681;
  padding: 10px 13px;
}
.small-btn {
  padding: 7px 9px;
  font-size: 12px;
}
.secondary:hover,
.small-btn:hover {
  background: #edf3fb;
}
.link-btn {
  background: none;
  border: 0;
  color: #346ec4;
  font-size: 12px;
  padding: 5px 0;
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}
.help {
  font-size: 12px;
  color: #8190a3;
  line-height: 1.6;
}
.status {
  font-size: 11px;
  background: #edf2fb;
  border-radius: 5px;
  padding: 4px 7px;
  white-space: nowrap;
  color: #5575a3;
}
.status.succeeded {
  background: #e8f5ed;
  color: #2e8a57;
}
.status.partial {
  background: #fff3dd;
  color: #977128;
}
.status.failed,
.status.interrupted {
  background: #fff0ed;
  color: #aa594c;
}
.history {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history li + li {
  border-top: 1px solid #edf0f5;
}
.history button {
  background: none;
  border: 0;
  text-align: left;
  width: 100%;
  padding: 14px 0;
  color: #2e4260;
  line-height: 1.6;
}
.history .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  font-size: 11px;
  color: #8390a3;
}
.tip {
  padding: 15px;
  background: #f2f6fc;
  border-radius: 9px;
  color: #65758e;
  line-height: 1.7;
  font-size: 12px;
}
.tip b {
  color: #496283;
}
.empty {
  text-align: center;
  padding: 32px 15px;
  color: #8a97aa;
  line-height: 1.7;
}
.empty .icon {
  font-size: 28px;
  color: #95aed0;
  margin-bottom: 12px;
}
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.result-title {
  margin: 12px 0 22px;
}
.claim {
  padding: 17px 0;
  border-top: 1px solid #edf0f5;
  line-height: 1.75;
}
.claim .kind {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 650;
  color: #7291b5;
  margin-bottom: 7px;
}
.claim.hypothesis .kind {
  color: #b58942;
}
.claim p {
  margin-bottom: 7px;
}
.evidence {
  font-size: 12px;
  color: #4c7abd;
  background: #f2f6fc;
  border: 0;
  border-radius: 5px;
  padding: 5px 8px;
  text-align: left;
  max-width: 100%;
}
.limitations {
  border-left: 3px solid #d6e0ef;
  padding: 5px 14px;
  margin: 22px 0 0;
  font-size: 12px;
  color: #7c899c;
  line-height: 1.7;
}
.draft {
  border: 1px solid #e1e7f1;
  border-radius: 10px;
  padding: 18px;
  margin-top: 15px;
  background: #fcfdff;
}
.draft label {
  margin-top: 12px;
}
.draft textarea {
  min-height: 75px;
}
.draft .uncertain {
  color: #aa7d2b;
  font-size: 12px;
  line-height: 1.6;
}
.draft .draft-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
  color: #56718f;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #dbe7fa;
  border-top-color: #397bdc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.error {
  background: #fff4f0;
  color: #a35d4e;
  border-radius: 8px;
  padding: 15px;
  line-height: 1.6;
}
.login {
  max-width: 470px;
  margin: 60px auto;
}
.login h2 {
  margin: 15px 0;
}
.login .primary {
  width: 100%;
  margin-top: 22px;
}
dialog {
  border: 1px solid #d7e0ed;
  border-radius: 13px;
  max-width: 800px;
  width: 90%;
  padding: 25px;
}
dialog::backdrop {
  background: #14243c66;
}
dialog form {
  float: right;
}
dialog form button {
  border: 0;
  background: none;
  color: #63758f;
  font-size: 20px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
  font:
    13px/1.8 "Segoe UI",
    sans-serif;
  max-height: 65vh;
  overflow: auto;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: #203952;
  color: white;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 8px 30px #14243c33;
  z-index: 10;
}
#toast:not(:empty) {
  padding: 15px 20px;
}
.upload {
  font-size: 12px;
}
.diagnostic {
  font-size: 11px;
  color: #a0aabc;
  margin-top: 20px;
}
.full {
  grid-column: 1/-1;
}
.badge-line {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 14px;
}
.overview-note {
  font-size: 12px;
  color: #7d899b;
  margin: 0 0 20px;
}
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: minmax(0, 1fr) 225px;
  }
  main {
    padding: 28px 24px;
  }
  .frame {
    grid-template-columns: 180px 1fr;
  }
}
@media (max-width: 850px) {
  .frame {
    grid-template-columns: 65px 1fr;
  }
  .rail {
    padding: 25px 8px;
  }
  .brand {
    padding: 0 6px 20px;
  }
  .brand b,
  .rail-label,
  .rail-bottom,
  .nav .label {
    display: none;
  }
  .nav {
    padding: 12px;
    text-align: center;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 20px;
  }
  .session .actor-name {
    display: none;
  }
  main {
    padding: 25px 18px;
  }
  .intro {
    flex-direction: column;
  }
  .intro .pill {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
}
@media (max-width: 500px) {
  .row {
    flex-direction: column;
    align-items: stretch;
  }
  .row > * {
    width: 100%;
  }
  .panel {
    padding: 18px;
  }
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .topbar {
    height: 66px;
  }
  .session select {
    max-width: 130px;
  }
  .tabs {
    flex-direction: column;
  }
  .result-head {
    align-items: start;
    flex-direction: column;
  }
}
