
.silvally-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.silvally-dot--up       { background: #4fc87a; box-shadow: 0 0 6px #4fc87a; }
.silvally-dot--degraded { background: var(--rsn-orange); box-shadow: 0 0 6px var(--rsn-orange); }
.silvally-dot--down     { background: var(--rsn-red); }

.app-body--nosidebar { grid-template-columns: 1fr; gap: 0; }
.app-body--nosidebar .sidebar      { display: none !important; }

#message-view {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
}
@media (max-width: 780px) {
  #message-view { grid-template-columns: 1fr; }
}

.msg-card {
  background: var(--rsn-surface-1);
  border: 1px solid var(--rsn-border);
  border-radius: var(--rsn-radius-lg);
  padding: 24px;
}
.msg-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.msg-card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--rsn-text-primary);
  margin: 0;
}
.msg-card-desc {
  font-size: 12.5px;
  color: var(--rsn-text-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.silvally-status-row  { display: flex; align-items: center; gap: 6px; }
.silvally-status-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--rsn-text-muted);
}

#silvally-question,
#feedback-name {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: #0f1117;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--rsn-text-primary);
  font: 13px/1.4 Poppins, sans-serif;
  outline: none;
  transition: border-color .15s;
}
#feedback-name:focus { border-color: var(--rsn-cyan); }
#feedback-name::placeholder { color: var(--rsn-text-muted); }

#feedback-text {
  width: 100%;
  box-sizing: border-box;
  background: var(--rsn-surface-0);
  border: 1.5px solid var(--rsn-border);
  border-radius: var(--rsn-radius-sm);
  padding: 10px 14px;
  color: var(--rsn-text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  display: block;
  transition: border-color var(--rsn-dur-base) var(--rsn-ease),
              box-shadow   var(--rsn-dur-base) var(--rsn-ease);
}
#silvally-question::placeholder,
#feedback-text::placeholder { color: var(--rsn-text-muted); }

#silvally-question {
  margin-bottom: 8px;
}
#silvally-question:focus {
  border-color: var(--rsn-yellow);
  box-shadow: 0 0 0 3px rgba(248,247,112,.15);
}

#feedback-text {
  resize: vertical;
  min-height: 110px;
  max-height: 260px;
  margin-bottom: 4px;
}
#feedback-text:focus {
  border-color: var(--rsn-cyan);
  box-shadow: 0 0 0 3px rgba(97,209,250,.12);
}

#silvally-ask-btn,
#feedback-btn {
  box-sizing: border-box;
  background: var(--rsn-yellow);
  color: #12151d;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  border: none;
  border-radius: var(--rsn-radius-pill);
  padding: 9px 18px;
  width: 100%;
  cursor: pointer;
  transition: background var(--rsn-dur-fast) var(--rsn-ease);
}
#silvally-ask-btn:hover:not(:disabled),
#feedback-btn:hover:not(:disabled) { background: #ffff99; }
#silvally-ask-btn:disabled,
#feedback-btn:disabled { opacity: .38; cursor: not-allowed; filter: grayscale(.6); }

#silvally-progress {
  min-height: 18px;
  color: var(--rsn-text-muted);
  font-size: 12px;
  font-style: italic;
  margin: 8px 0;
}
#silvally-answer {
  background: var(--rsn-surface-0);
  border: 1px solid var(--rsn-border);
  border-radius: var(--rsn-radius-md);
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.65;
  min-height: 48px;
  color: var(--rsn-text-primary);
  word-break: break-word;
  margin-bottom: 6px;
}
#silvally-answer:empty  { display: none; }
#silvally-answer strong { color: var(--rsn-text-primary); }
#silvally-answer em     { color: var(--rsn-text-secondary); }
#silvally-source {
  font-size: 10.5px;
  color: var(--rsn-text-muted);
  margin-bottom: 10px;
}

.msg-char-counter {
  font-size: 10.5px;
  color: var(--rsn-text-muted);
  text-align: right;
  margin-bottom: 10px;
  transition: color var(--rsn-dur-fast) var(--rsn-ease);
}
.msg-char-counter--warn { color: var(--rsn-orange); }
.msg-char-counter--over { color: var(--rsn-red); }

#feedback-status { margin-top: 10px; font-size: 12px; min-height: 18px; }
#feedback-status.ok  { color: #4fc87a; }
#feedback-status.err { color: var(--rsn-red); }

.msg-disclaimer {
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--rsn-text-muted);
}
.msg-disclaimer--secondary { color: var(--rsn-border-strong); }
