﻿.session-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.session-tools a,
.live a:not(.step) {
  color: #315488;
}
.live .ledger-nav a[aria-current] {
  color: #244f48;
  border-bottom-color: #244f48;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
.session-tools button,
.minor,
.live select,
.live input,
.entry-body input,
.entry-body select,
.entry-body textarea {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 10px;
  background: white;
  color: var(--ink);
  font-size: 13px;
}
.live .library-head p {
  max-width: 780px;
}
.live section,
.live .card,
.live .list-panel {
  min-width: 0;
}
.live .tablebox {
  margin: 0;
}
.live .tablebox td {
  overflow-wrap: anywhere;
}
.live .tablebox small,
.source-line {
  display: block;
}
.list-panel > .tablebox {
  padding: 0 12px;
}
.live .list-tools {
  gap: 8px;
}
.live .list-tools input {
  width: min(350px, 100%);
}
.live .list-tools .minor {
  margin-left: auto;
}
.live .work-block {
  margin-bottom: 18px;
}
.live .page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.live .page-actions a {
  font-size: 13px;
}
.live .blank {
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
}
.live .current-post {
  word-break: break-word;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.live .subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 13px 0;
}
.subnav a,
.live .filter-link {
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  background: white;
}
.subnav a[aria-current],
.live .filter-link[aria-current] {
  background: var(--navy);
  color: white;
}
.study-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
}
.study-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.study-rail a {
  text-decoration: none;
}
.study-rail .step {
  padding: 9px;
}
.stage-title {
  font-size: clamp(24px, 3vw, 38px);
  margin: 14px 0 12px;
}
.study-main {
  min-width: 0;
}
.live .study-main p {
  overflow-wrap: anywhere;
}
#modal {
  width: min(650px, 94vw);
  max-height: 85vh;
}
#modal .entry-body {
  padding: 16px 21px;
}
#modal h2 {
  margin: 0;
  font-size: 18px;
}
#modal form {
  display: grid;
  gap: 12px;
}
#modal label {
  display: grid;
  gap: 5px;
  font-size: 13px;
}
#modal .opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#modal input,
#modal textarea {
  width: 100%;
}
#modal-error,
#notice {
  color: #8e4327;
  font-size: 13px;
}
#modal-error {
  margin: 0 21px 14px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 3px 15px #0002;
  z-index: 4;
}
.live .sub {
  overflow-wrap: anywhere;
}
.worker-card a {
  text-decoration: none;
}
.live .notice a {
  margin-left: 8px;
}
.live .stack {
  display: grid;
  gap: 10px;
}
.live .evidence-link {
  margin: 2px;
}
.live .plaintext {
  white-space: pre-line;
}
.live .card .ledger-nav {
  margin: 6px 0;
}
.live .progress-line {
  display: block;
  height: 5px;
  max-width: 100%;
  accent-color: #5275ab;
}
.live .source-all {
  display: inline-block;
  margin-bottom: 8px;
}
.live .state-tab,
.live .source-group,
.live .worker-card {
  text-decoration: none;
}
.live .state-tab:hover span,
.live .worker-card:hover strong {
  text-decoration: underline;
}
.live .study-title {
  font-weight: 650;
}
.live .tablebox small,
#modal small {
  color: var(--muted);
  font-size: 12px;
}
.live .list-tools form[data-search] {
  display: flex;
  gap: 6px;
  flex: 1 1 280px;
  max-width: 420px;
}
.live .list-tools input {
  min-width: 0;
}
.live .card + .card,
.study-main > .stats {
  margin: 14px 0;
}
.live .list-footer div {
  display: flex;
  gap: 12px;
}
.entry-body .raw-comment {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.raw-comment p {
  margin: 6px 0;
  white-space: pre-wrap;
}
#modal label.inline-check {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}
#modal .inline-check input {
  width: auto;
}
.entry-body blockquote {
  margin: 8px 0;
  padding-left: 12px;
  border-left: 3px solid #607dba;
}
.live .stats {
  margin-bottom: 14px;
}
@media (max-width: 760px) {
  .study-shell {
    display: block;
  }
  .study-rail {
    flex-direction: row;
    overflow: auto;
    margin-bottom: 10px;
  }
  .study-rail .step {
    white-space: nowrap;
  }
  .session-tools {
    gap: 5px;
  }
  .session-tools a {
    display: none;
  }
  .live .tablebox {
    overflow-x: auto;
  }
  .live .list-tools input {
    width: 100%;
  }
  .live .library-head {
    gap: 8px;
  }
  .live .page-actions {
    gap: 7px;
  }
}
