.ovsv {
	--ov-bg: #ffffff;
	--ov-soft: #F8F4EC;
	--ov-line: #E6DFD2;
	--ov-text: #1A1A17;
	--ov-muted: #6E685E;
	--ov-brand: #1F4D3A;
	--ov-gold: #E8A33D;
	--ov-ink: #1A1A17;
	--ov-brand-dark: #163828;
	--ov-ok: #138a52;
	--ov-ok-bg: #e7f6ee;
	--ov-warn: #a86400;
	--ov-warn-bg: #fff4e0;
	--ov-err: #c62a3c;
	--ov-err-bg: #fdecee;
	--ov-none: #5d6474;
	--ov-none-bg: #eef0f4;
	--ov-radius: 14px;
	color: var(--ov-text);
	font-size: 16px;
	line-height: 1.5;
	max-width: 1100px;
	margin: 0 auto;
	box-sizing: border-box;
}
.ovsv *, .ovsv *::before, .ovsv *::after { box-sizing: border-box; }

.ovsv-card {
	background: var(--ov-bg);
	border: 1px solid var(--ov-line);
	border-radius: var(--ov-radius);
	padding: 28px;
	box-shadow: 0 10px 30px rgba(29, 27, 46, .06);
	margin-bottom: 20px;
}

/* tabs */
.ovsv-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--ov-line); margin-bottom: 22px; }
.ovsv-tab {
	background: none; border: 0; padding: 12px 18px; font: inherit; font-weight: 600; color: var(--ov-muted);
	cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.ovsv-tab.is-active { color: var(--ov-text); border-bottom: 3px solid var(--ov-gold); }
.ovsv-panel { display: none; }
.ovsv-panel.is-active { display: block; }

.ovsv label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.ovsv input[type="url"], .ovsv textarea, .ovsv input[type="file"] {
	width: 100%; padding: 14px 16px; border: 1px solid var(--ov-line); border-radius: 10px;
	font: inherit; color: var(--ov-text); background: #fff;
}
.ovsv textarea { resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.ovsv input:focus, .ovsv textarea:focus { outline: 2px solid var(--ov-brand); outline-offset: 1px; border-color: transparent; }
.ovsv-hint { color: var(--ov-muted); font-size: 13px; margin: 8px 0 0; }

.ovsv-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 100%; margin-top: 20px;
	background: var(--ov-brand); color: #fff; border: 2px solid var(--ov-brand); border-radius: 10px; padding: 15px 22px;
	font: inherit; font-weight: 700; cursor: pointer; transition: background .15s;
}
.ovsv-btn:hover { background: var(--ov-brand-dark); border-color: var(--ov-brand-dark); color: #fff; }
.ovsv-btn:disabled { opacity: .55; cursor: wait; }
.ovsv-btn-ghost { width: auto; margin: 0; background: #fff; color: var(--ov-brand); border: 2px solid var(--ov-brand); padding: 10px 18px; }
.ovsv-btn-ghost:hover { background: var(--ov-brand); color: #fff; }
.ovsv-link { background: none; border: 0; color: var(--ov-ink); text-decoration: underline; font: inherit; font-weight: 600; cursor: pointer; }

.ovsv-msg { margin: 14px 0 0; font-size: 14px; color: var(--ov-muted); min-height: 1em; }
.ovsv-msg.is-error { color: var(--ov-err); }

/* progress */
.ovsv-progress { padding: 18px 24px; }
.ovsv-progress-top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
.ovsv-bar { height: 8px; background: var(--ov-soft); border-radius: 99px; overflow: hidden; }
.ovsv-bar span { display: block; height: 100%; width: 0; background: var(--ov-brand); transition: width .3s; }

/* summary */
.ovsv-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ovsv-stat { background: #fff; border: 1px solid var(--ov-line); border-radius: 12px; padding: 16px; }
.ovsv-stat strong { display: block; font-size: 28px; line-height: 1.1; }
.ovsv-stat span { color: var(--ov-muted); font-size: 13px; font-weight: 600; }
.ovsv-stat.is-valid strong { color: var(--ov-ok); }
.ovsv-stat.is-warning strong { color: var(--ov-warn); }
.ovsv-stat.is-error strong { color: var(--ov-err); }
.ovsv-stat.is-none strong, .ovsv-stat.is-failed strong { color: var(--ov-none); }

.ovsv-toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ovsv-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ovsv-chip {
	background: #fff; border: 1px solid var(--ov-line); border-radius: 99px; padding: 6px 14px;
	font: inherit; font-size: 13px; font-weight: 600; color: var(--ov-muted); cursor: pointer;
}
.ovsv-chip.is-active { background: var(--ov-brand); border-color: var(--ov-brand); color: #fff; }

/* rows */
.ovsv-row { background: #fff; border: 1px solid var(--ov-line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.ovsv-row > summary {
	display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
	padding: 14px 18px; cursor: pointer; list-style: none;
}
.ovsv-row > summary::-webkit-details-marker { display: none; }
.ovsv-row[open] > summary { border-bottom: 1px solid var(--ov-line); background: var(--ov-soft); }
.ovsv-url { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovsv-types { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ovsv-tag { background: var(--ov-soft); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; color: var(--ov-muted); }
.ovsv-meta { color: var(--ov-muted); font-size: 13px; white-space: nowrap; }

.ovsv-badge { display: inline-block; text-align: center; border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.ovsv-badge.is-valid { background: var(--ov-ok-bg); color: var(--ov-ok); }
.ovsv-badge.is-warning { background: var(--ov-warn-bg); color: var(--ov-warn); }
.ovsv-badge.is-error { background: var(--ov-err-bg); color: var(--ov-err); }
.ovsv-badge.is-none, .ovsv-badge.is-failed, .ovsv-badge.is-pending { background: var(--ov-none-bg); color: var(--ov-none); }

.ovsv-detail { padding: 18px; }
.ovsv-detail h4 { margin: 0 0 8px; font-size: 14px; }
.ovsv-note { color: var(--ov-muted); font-size: 14px; margin: 0 0 12px; }
.ovsv-item { border: 1px solid var(--ov-line); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.ovsv-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ovsv-fmt { font-size: 12px; color: var(--ov-muted); border: 1px solid var(--ov-line); border-radius: 6px; padding: 1px 6px; }
.ovsv-item-head .ovsv-meta { margin-left: auto; }
.ovsv-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ov-none); }
.ovsv-dot.is-valid { background: var(--ov-ok); }
.ovsv-dot.is-warning { background: var(--ov-warn); }
.ovsv-dot.is-error { background: var(--ov-err); }

.ovsv-issues { list-style: none; margin: 12px 0 0; padding: 0; }
.ovsv-issues li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--ov-line); font-size: 14px; }
.ovsv-issues p { margin: 0; }
.ovsv-fix { color: var(--ov-muted); margin-top: 2px !important; }
.ovsv-lvl { flex: 0 0 72px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding-top: 2px; }
.ovsv-issues li.is-error .ovsv-lvl { color: var(--ov-err); }
.ovsv-issues li.is-warning .ovsv-lvl { color: var(--ov-warn); }
.ovsv-issues li.is-notice .ovsv-lvl { color: var(--ov-none); }

.ovsv-code { margin-top: 10px; }
.ovsv-code summary { cursor: pointer; color: var(--ov-ink); text-decoration: underline; font-weight: 600; font-size: 13px; }
.ovsv-code pre {
	background: #163828; color: #F8F4EC; padding: 14px; border-radius: 8px; overflow: auto;
	max-height: 360px; font-size: 12px; line-height: 1.5; margin: 8px 0 0; white-space: pre;
}
.ovsv-empty { color: var(--ov-muted); text-align: center; padding: 24px; }

@media (max-width: 720px) {
	.ovsv-card { padding: 20px; }
	.ovsv-row > summary { grid-template-columns: 1fr; gap: 6px; }
	.ovsv-types { justify-content: flex-start; }
	.ovsv-lvl { flex-basis: 60px; }
}

/* folds */
.ovsv-fold { margin-top: 10px; }
.ovsv-fold > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ov-muted); list-style: none; }
.ovsv-fold > summary::-webkit-details-marker { display: none; }
.ovsv-fold > summary::before { content: "▸ "; }
.ovsv-fold[open] > summary::before { content: "▾ "; }
.ovsv-clean { border-top: 1px solid var(--ov-line); padding-top: 10px; }
.ovsv-clean .ovsv-item { margin-top: 10px; }
.ovsv-notes .ovsv-issues li { opacity: .85; }

.ovsv-more { display: block; margin: 14px auto 0 !important; }
