.ocs-card { padding: 28px; min-width: 0; }
.ocs-title-bar { background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.ocs-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; }

.ocs-intro { text-align: center; color: #4b5563; font-size: .92em; line-height: 1.6; max-width: 680px; margin: 0 auto 22px; }
.ocs-disclaimer { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 14px; font-size: .86em; line-height: 1.55; color: #78350f; margin: 0 0 22px; }

.ocs-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ocs-panel { border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px; background: #fff; min-width: 0; }
.ocs-panel h2 { font-size: 1.02em; margin: 0 0 12px; color: #23272f; }

.ocs-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.ocs-field label { font-size: .84em; font-weight: 600; color: #374151; }
.ocs-input { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: .92em; background: #fff; color: #23272f; min-width: 0; }
.ocs-input:focus { border-color: var(--site-light); outline: none; }
textarea.ocs-input { min-height: 260px; resize: vertical; font-family: Consolas, "Courier New", monospace; font-size: .84em; line-height: 1.5; white-space: pre; }
.ocs-hint { font-size: .78em; color: #6b7280; }

.ocs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ocs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 30px; padding: 9px 18px; font: inherit; font-weight: 600; font-size: .9em; cursor: pointer; transition: background .2s ease; }
.ocs-btn:focus-visible, .ocs-input:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }
.ocs-btn-primary { background: var(--site-dark); color: #fff; }
.ocs-btn-primary:hover { background: var(--site-dark-2); }
.ocs-btn-ghost { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.ocs-btn-ghost:hover { background: #e5e7eb; }

.ocs-message { font-size: .86em; color: #374151; margin: 12px 0 0; min-height: 1.3em; }

.ocs-score-box { display: flex; align-items: center; gap: 16px; background: #f7f8fa; border: 1px solid #eee; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.ocs-score { font-size: 1.9em; font-weight: 800; color: var(--site-dark); line-height: 1; min-width: 4.2em; }
.ocs-score-text { min-width: 0; }
.ocs-score-label { font-weight: 700; color: #23272f; font-size: .95em; }
.ocs-summary { font-size: .84em; color: #4b5563; margin-top: 4px; }

.ocs-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ocs-check { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; background: #fff; min-width: 0; }
.ocs-check-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .9em; color: #23272f; }
.ocs-check-detail { font-size: .86em; color: #4b5563; line-height: 1.5; overflow-wrap: anywhere; }
.ocs-badge { flex-shrink: 0; min-width: 52px; text-align: center; font-size: .72em; font-weight: 800; letter-spacing: .05em; padding: 4px 6px; border-radius: 6px; }
.ocs-check-pass .ocs-badge { background: #d1fae5; color: #065f46; }
.ocs-check-warn .ocs-badge { background: #fef3c7; color: #92400e; }
.ocs-check-fail .ocs-badge { background: #fee2e2; color: #991b1b; }
.ocs-check-pass { border-left: 4px solid #10b981; }
.ocs-check-warn { border-left: 4px solid #f59e0b; }
.ocs-check-fail { border-left: 4px solid #ef4444; }
.ocs-empty { color: #6b7280; font-size: .9em; margin: 0; }

@media (max-width: 860px) {
    .ocs-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .ocs-card { padding: 18px 16px; }
    .ocs-title-bar { margin: -18px -16px 20px; padding: 14px 16px; }
    .ocs-title-bar h1 { font-size: 1.2em; }
    .ocs-panel { padding: 14px; }
    textarea.ocs-input { min-height: 200px; }
    .ocs-actions .ocs-btn { flex: 1 1 auto; }
}
