@import url("./research-ui.css");

.cl-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.cl-water {
  background: var(--rx-card);
  color: var(--rx-deep);
  border-radius: 5px;
  padding: 18px;
}
.cl-water h2 {
  font-size: 26px;
}
.cl-water .rx-btn {
  background: var(--rx-soft);
  color: var(--rx-deep);
  border-color: var(--rx-rule);
}
.cl-water .rx-primary {
  background: var(--rx-accent);
  color: var(--rx-accent-ink);
}
.cl-event {
  border: 0;
  border-top: 1px solid var(--rx-rule);
  display: grid;
  align-items: center;
  grid-template-columns: 21px 58px 1fr 52px;
  gap: 5px;
  background: none;
  color: inherit;
  width: 100%;
  padding: 11px 4px;
  text-align: left;
  font-family: monospace !important;
}
.cl-event.active {
  background: var(--rx-selected);
}
.cl-event i {
  position: relative;
  height: 13px;
  background: var(--rx-soft);
}
.cl-event em {
  position: absolute;
  top: 1px;
  height: 11px;
  background: var(--rx-accent);
}
.cl-event small {
  text-align: right;
}

@media (max-width: 700px) {
  .cl-layout {
    grid-template-columns: 1fr;
  }
}
.cl-scale {
  display: grid;
  grid-template-columns: 82px repeat(3, 1fr);
  padding: 6px 4px;
  align-items: center;
  color: var(--rx-muted);
  font: 11px/1.2 monospace;
}
.cl-scale span:last-child {
  text-align: right;
}
.cl-timestamp {
  margin: 10px 0 !important;
  font-family: monospace;
}
.cl-timestamp span {
  border: 1px solid var(--rx-rule);
  border-radius: 3px;
  padding: 2px 5px;
}
.rx-clinic .rx-title h1 {
  font-size: clamp(27px, 3vw, 36px);
}

.cl-water {
  border: 1px solid var(--rx-rule);
}
.cl-event.active {
  color: var(--rx-selected-ink);
}
/* A trace recorder: each key occupies its measured share of elapsed time. */
.rx-clinic:has(.cl-osc) .rx-surface {
  background: var(--rx-bg);
  max-width: 1180px;
}
.rx-clinic:has(.cl-osc) .rx-title {
  align-items: flex-end;
  margin-bottom: 11px;
}
.rx-clinic:has(.cl-osc) .rx-title h1 {
  font:
    650 clamp(27px, 4vw, 43px)/1.1 ui-monospace,
    monospace;
  letter-spacing: -0.065em;
}
.cl-layout {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.92fr);
  gap: 10px;
}
.cl-water {
  border: 1px solid #445345;
  background: #19251e;
  color: #e8f3df;
  padding: 12px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px #303b32;
}
.cl-osc {
  background: #bce0ae;
  color: #122916;
  border: 4px solid #111c14;
  border-radius: 2px;
}
.cl-dials {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px 0;
  font:
    600 11px/1.3 ui-monospace,
    monospace;
  letter-spacing: 0.045em;
}
.cl-signal {
  display: flex;
  align-items: stretch;
  padding: 0 7px 5px;
  overflow-x: auto;
  background-image:
    linear-gradient(#577c4c2b 1px, transparent 1px),
    linear-gradient(90deg, #577c4c2b 1px, transparent 1px);
  background-size: 16px 16px;
}
.cl-signal button {
  min-width: 25px;
  flex-basis: 0;
  display: grid;
  grid-template-rows: 55px 18px;
  background: transparent;
  color: #153c20;
  border: 0;
  text-align: center;
  padding: 0;
  font:
    600 11px ui-monospace,
    monospace;
}
.cl-signal button[aria-pressed="true"] {
  background: #739a65;
  color: #081b0b;
}
.cl-signal button.cl-denied {
  color: #6c2514;
}
.cl-signal button svg {
  width: 100%;
  height: 100%;
}
.cl-listhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
  flex-wrap: wrap;
}
.cl-listhead h2 {
  font:
    600 16px ui-monospace,
    monospace;
  letter-spacing: -0.03em;
}
.cl-water .rx-tools {
  margin: 0;
}
.cl-water .rx-btn {
  background: #2b392f;
  color: #edf4e5;
  border-color: #627462;
}
.cl-water .rx-primary {
  background: #c3dfb5;
  color: #112815;
}
.cl-scale {
  color: #cbd6c6;
}
.cl-event {
  border-color: #4b594d;
  padding: 7px 4px;
  color: #f2f4ee;
}
.cl-event.active {
  color: #fcfffa;
  background: #3a4e3d;
}
.cl-event i {
  background: #334235;
}
.cl-event em {
  background: #c2e4af;
}
.cl-layout > aside {
  border-top: 4px solid var(--rx-deep);
}
.cl-layout > aside .rx-panel {
  border-radius: 0;
}
@media (max-width: 700px) {
  .cl-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
