.rbv-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .rbv-shell {
    grid-template-columns: 1fr;
  }
}

.rbv-panel {
  display: block;
}

.rbv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.rbv-tab {
  border: 1px solid var(--border, #d0d7de);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--surface, #fff);
  cursor: pointer;
}

.rbv-tab[aria-selected="true"] {
  border-color: rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.rbv-tabpanel {
  margin-top: 6px;
}

.rbv-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .rbv-grid-2 {
    grid-template-columns: 1fr;
  }
}

.rbv-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

@media (max-width: 520px) {
  .rbv-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.rbv-textarea {
  min-height: 140px;
  resize: vertical;
}

.rbv-textarea.is-dragover {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
  background: rgba(14, 165, 233, 0.06);
}

.rbv-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.rbv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.rbv-actions .button {
  flex: 1 1 220px;
}

@media (max-width: 520px) {
  .rbv-actions .button {
    flex: 1 1 100%;
  }
}

.rbv-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.rbv-pill {
  border: 1px solid var(--border, #d0d7de);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rbv-pill strong {
  font-weight: 700;
}

.rbv-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #d0d7de);
  background: var(--surface, #fff);
}

.rbv-banner--error {
  border-color: rgba(217, 48, 37, 0.6);
  background: rgba(217, 48, 37, 0.08);
}

.rbv-banner--warn {
  border-color: rgba(180, 120, 0, 0.55);
  background: rgba(180, 120, 0, 0.08);
}

.rbv-result-card {
  border: 1px solid var(--border, #d0d7de);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface, #fff);
}

.rbv-pre {
  margin: 0;
  font-size: 0.92rem;
}

.rbv-details {
  margin-top: 10px;
}

.rbv-checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.rbv-checkline--align {
  align-self: end;
}

@media print {
  header,
  nav,
  .lang-switch,
  .ad-slot,
  #comments {
    display: none !important;
  }

  .container {
    max-width: none !important;
  }
}
