.live-panel {
  padding: 24px;
  margin-bottom: 20px;
}
.live-panel h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
.live-panel p {
  color: #78887b;
  line-height: 1.8;
}
.live-panel input,
.live-panel select,
.live-panel textarea,
.login input,
.filters select {
  border: 1px solid #dce5db;
  border-radius: 7px;
  padding: 11px;
  background: #fff;
  color: #294332;
  max-width: 100%;
}
.live-panel textarea {
  width: 100%;
  min-height: 160px;
  font-family: monospace;
}
.live-panel label,
.login label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 13px 0;
  color: #6b7b6c;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.live-panel pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2f6ef;
  padding: 20px;
  border-radius: 8px;
  max-height: 330px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.7;
}
.notice {
  padding: 14px 18px;
  background: #faf2dd;
  color: #856b37;
  border: 1px solid #ebdfbd;
  border-radius: 8px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.notice.good {
  background: #eaf4e6;
  color: #467344;
  border-color: #d7e8ce;
}
.login {
  max-width: 420px;
  margin: 10vh auto;
  padding: 35px;
}
.login h1 {
  margin-bottom: 15px;
}
.login input {
  width: 100%;
}
.login .button {
  width: 100%;
  margin-top: 20px;
}
.table-wrap {
  overflow: auto;
}
.live-table {
  width: 100%;
  border-collapse: collapse;
}
.live-table td,
.live-table th {
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.live-table small {
  display: block;
  color: #87977f;
  font-size: 10px;
  margin-top: 5px;
}
.live-table-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: inherit;
  white-space: nowrap;
}
.live-table-sort:hover {
  color: #385b40;
}
.live-table-sort-indicator {
  color: #6f8d69;
  font-size: 11px;
}
.live-table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  padding: 13px 22px;
  border-top: 1px solid #edf1e8;
  color: #8e9c89;
  font-size: 10px;
}
.live-table-pagination span {
  min-width: 120px;
  text-align: center;
}
.live-table-pagination .button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.funnel-row {
  display: grid;
  grid-template-columns: 130px 1fr 100px;
  align-items: center;
  gap: 15px;
  margin: 24px 0;
}
.funnel-bar {
  display: flex;
  min-height: 42px;
  min-width: 2px;
  border-radius: 6px;
  overflow: hidden;
}
.funnel-bar span {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 10px;
  min-width: 0;
}
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 12px 0;
  color: #698065;
  font-size: 12px;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 3px;
}
.touch {
  border-left: 2px solid #d8e8d0;
  padding: 5px 20px 22px;
  margin-left: 8px;
  line-height: 1.9;
}
.touch strong {
  color: #2c6043;
}
.touch small {
  color: #83917c;
  display: block;
}
.journey-card {
  padding: 20px;
  border: 1px solid #e1e8dc;
  border-radius: 8px;
  margin: 15px 0;
}
.journey-card summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.journey-card .touch:first-of-type {
  margin-top: 22px;
}
.statusline {
  font-size: 11px;
  color: #819079;
  margin-top: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.error-text {
  color: #a14b3c;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}
.inline-form label {
  flex: 1;
  min-width: 150px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.nav a {
  padding: 13px 15px;
  border-radius: 7px;
  font-size: 13px;
}
.nav a.active {
  background: #d8eac5;
  color: #254a35;
  font-weight: 600;
}
.nav a:hover {
  background: #365442;
}
.sidebar-bottom {
  font-size: 11px;
  line-height: 1.8;
  color: #92aa98;
  padding: 15px;
}
.topbar .button {
  font-size: 11px;
}
.definition {
  font-size: 11px;
  color: #899782;
  line-height: 1.8;
}
.live-panel input[type="checkbox"] {
  width: auto;
}
.search-journey {
  width: 100%;
  padding: 12px;
  border: 1px solid #dce5db;
  border-radius: 8px;
  margin-bottom: 12px;
}
@media (max-width: 850px) {
  .sidebar {
    width: 150px;
  }
  .main {
    margin-left: 150px;
  }
  .nav a {
    padding: 12px 6px;
    font-size: 12px;
  }
  .brand {
    font-size: 18px;
    padding: 0 5px 24px;
  }
  .sidebar .brand div {
    display: block;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .funnel-row {
    grid-template-columns: 80px 1fr 60px;
    gap: 8px;
  }
  .topbar {
    height: auto;
    min-height: 60px;
  }
  .sidebar-bottom {
    display: block;
    padding: 8px;
  }
  .page-title .button {
    font-size: 11px;
  }
  .title-actions .button:first-child {
    display: inline-flex;
  }
}
@media (max-width: 560px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 14px;
  }
  .sidebar .brand,
  .sidebar-bottom,
  .nav-label {
    display: none;
  }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .nav a {
    padding: 8px;
  }
  .main {
    margin-left: 0;
  }
  .live-panel {
    padding: 16px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric-value {
    font-size: 22px;
  }
  .content {
    padding: 15px;
  }
  .topbar {
    padding: 12px;
  }
  .funnel-bar span {
    font-size: 8px;
  }
  .login {
    margin: 5vh 16px;
  }
  .table-wrap {
    max-width: 100%;
  }
}
.nav a.active:hover {
  background: #d8eac5;
  color: #254a35;
}
