.boot {
  padding: 80px;
  text-align: center;
  color: #767280;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f6f5f8;
  padding: 24px;
}
.auth-card {
  background: white;
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid #e7e4ed;
  border-radius: 14px;
  box-shadow: 0 18px 80px #392f5910;
}
.auth-card h1 {
  font-size: 25px;
  margin: 28px 0 9px;
}
.auth-card p {
  color: #777281;
  line-height: 1.7;
  font-size: 13px;
}
.auth-card label {
  display: block;
  font-size: 12px;
  margin: 18px 0 7px;
}
.auth-card input {
  width: 100%;
  padding: 11px;
  border: 1px solid #ded9e6;
  border-radius: 6px;
  font: inherit;
}
.auth-card .btn {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
}
.auth-error {
  color: #ae4949 !important;
  margin-top: 15px;
}
.auth-error:empty {
  display: none;
}
.auth-caption {
  font-size: 10px !important;
  margin-top: 18px;
}
.full-width {
  width: 100%;
}
.live-scroll {
  height: 100%;
  overflow: auto;
}
.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 100%;
}
.live-pane {
  padding: 28px 34px;
}
.live-side {
  padding: 24px;
  border-left: 1px solid var(--line);
  background: #fcfbfe;
}
.live-side h3 {
  margin-bottom: 13px;
}
.live-side label,
.form-stack label {
  display: block;
  font-size: 11px;
  margin: 16px 0 6px;
  color: #777181;
}
.live-side input,
.live-side textarea,
.live-side select,
.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  padding: 9px;
  border: 1px solid #dedbe7;
  background: white;
  border-radius: 5px;
  font: inherit;
  font-size: 12px;
  color: #51495c;
}
.live-side textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}
.form-stack textarea {
  min-height: 100px;
  resize: vertical;
}
.live-side .btn {
  margin-top: 18px;
}
.live-section {
  margin: 22px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.live-section:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.live-section p {
  font-size: 12px;
  color: #77717e;
  line-height: 1.8;
}
.live-section h3 {
  margin-bottom: 12px;
}
.live-card {
  border: 1px solid #e7e2ed;
  border-radius: 8px;
  padding: 17px;
  margin: 13px 0;
  background: #fff;
}
.live-card h3 {
  margin-bottom: 8px;
}
.live-card p {
  font-size: 12px;
  line-height: 1.75;
  margin: 7px 0;
}
.live-card pre,
.evidence-pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.7;
  padding: 14px;
  background: #f7f5fa;
  border-radius: 6px;
  color: #655d70;
  max-height: 330px;
  overflow: auto;
}
.live-card .flex {
  flex-wrap: wrap;
  margin-top: 12px;
}
.live-card small {
  color: #8b8495;
}
.message-text {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.message.user .message-body {
  background: #f3f0fa;
  padding: 15px;
  border-radius: 9px;
}
.live-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.live-chat .chat-messages {
  flex: 1;
  overflow: auto;
}
.live-chat .composer-wrap {
  background: #fff;
}
.live-chat textarea {
  width: 100%;
  resize: vertical;
  min-height: 55px;
  max-height: 180px;
  border: 0;
  background: none;
  font: inherit;
  padding: 8px;
  outline: none;
}
.live-chat .composer {
  display: block;
}
.live-chat .composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 7px 7px;
  color: #8a8195;
  font-size: 10px;
}
.live-chat .message {
  margin-bottom: 24px;
}
.tool-check {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin: 9px 0 !important;
}
.tool-check input {
  width: auto !important;
}
.live-empty {
  padding: 65px 24px;
  text-align: center;
  max-width: 650px;
  margin: auto;
}
.live-empty h1 {
  font-size: 25px;
  margin: 15px 0;
}
.live-empty p {
  font-size: 13px;
  line-height: 1.8;
  color: #867d92;
  margin-bottom: 20px;
}
.task-table .state {
  white-space: nowrap;
}
.case-item strong {
  line-height: 1.5;
}
.action-warning {
  border-left: 3px solid #bb9449;
  padding: 12px 16px;
  background: #fcf8ee;
  font-size: 12px;
  line-height: 1.8;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 23px 0;
}
.metric-grid > div {
  padding: 21px;
}
.metric-grid > div + div {
  border-left: 1px solid var(--line);
}
.metric-grid strong {
  display: block;
  font-size: 28px;
  margin-top: 7px;
  font-weight: 500;
}
.metric-grid small {
  color: #918a9b;
  font-size: 11px;
}
.tabs .tab {
  cursor: pointer;
}
.live-table-wrap {
  overflow: auto;
}
.live-source {
  font-size: 10px;
  color: #8b8296;
}
.danger-text {
  color: #a45151;
}
.modal.wide {
  width: min(1100px, 95vw);
  max-width: 1100px;
  max-height: 90vh;
  overflow: auto;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.details-grid label {
  color: #999;
  font-size: 10px;
  display: block;
  margin-bottom: 6px;
}
.quiet-btn {
  border: none;
  background: none;
  color: #807687;
  cursor: pointer;
  font-size: 11px;
}
.toolbar .filter {
  font-size: 12px;
}
.small-muted {
  color: #8a8391;
  font-size: 11px;
  line-height: 1.75;
}
.auth-link {
  margin-top: 18px;
  font-size: 11px;
  color: #7c6a9b;
  text-align: center;
  cursor: pointer;
}
.rail-agent .count {
  margin-left: auto;
}
.live-key {
  user-select: all;
  word-break: break-all;
}
.mobile-menu {
  display: none;
}
.app-shell .main {
  overflow: hidden;
}
.live-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.button-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.error-banner {
  padding: 12px 20px;
  background: #fff2f0;
  color: #a04e46;
  font-size: 12px;
}
.form-stack .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.loading {
  color: #89769c;
  animation: blink 1.5s infinite;
}
details summary {
  font-size: 12px;
  cursor: pointer;
  color: #756485;
  margin: 12px 0;
}
.build-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.build-diff pre {
  margin: 0;
}
@media (max-width: 1000px) {
  .live-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .live-pane {
    padding: 25px;
  }
  .metric-grid > div {
    padding: 16px;
  }
  .metric-grid strong {
    font-size: 23px;
  }
}
@media (max-width: 700px) {
  .live-grid {
    display: block;
  }
  .live-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .live-pane {
    padding: 22px 18px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-grid > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .metric-grid > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .mobile-menu {
    display: block;
  }
  .live-top-actions .pill {
    display: none;
  }
  .form-stack .row,
  .build-diff {
    grid-template-columns: 1fr;
  }
  .task-table {
    min-width: 540px;
  }
  .auth-card {
    padding: 26px;
  }
  .live-chat {
    min-height: 65vh;
  }
  .live-empty {
    padding: 40px 20px;
  }
}
