/*
 * SVG Wave & Blob Generator ([svg_waves]). Loaded after tools.css; the code
 * boxes reuse its .gg-output styles.
 */

.wv-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }

.wv-stage { position: sticky; top: 96px; padding: 18px; border-radius: 28px; background: repeating-conic-gradient(#F2F2F6 0% 25%, #fff 0% 50%) 0 0 / 20px 20px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.wv-canvas { width: 100%; max-height: 70vh; display: flex; justify-content: center; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.wv-canvas svg { display: block; width: 100%; height: 100%; }
.wv-stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.wv-size-label { font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace; font-size: 12.5px; color: #55555F; }

.wv-side { display: grid; gap: 14px; }
.wv-card { background: #fff; border: 1px solid #F0F0F0; border-radius: 24px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.wv-card-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6E6E78; margin-bottom: 12px; }

.wv-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: #F4F4F7; margin-bottom: 12px; }
.wv-seg button { padding: 8px 4px !important; border: 0 !important; border-radius: 999px !important; background: transparent !important; font-size: 13px !important; font-weight: 600 !important; color: #45454F !important; cursor: pointer; box-shadow: none !important; }
.wv-seg button[aria-pressed="true"] { background: #fff !important; color: #111 !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .1) !important; }

.wv-slider { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.wv-slider label { min-width: 56px; font-size: 13px; font-weight: 600; color: #333; }
.wv-slider input { flex: 1; }
.wv-slider span { min-width: 40px; text-align: right; font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace; font-size: 13px; color: #55555F; }
.wv-slider[hidden], .wv-check[hidden], #wv-add[hidden] { display: none !important; }
.wv-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 600; color: #333; cursor: pointer; }
.wv-check input { width: 16px; height: 16px; margin: 0; accent-color: #111; }

.wv-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wv-stops { margin-bottom: 4px; }
.wv-row input[type="color"] { width: 40px !important; height: 40px !important; padding: 0 !important; border: 0 !important; border-radius: 12px !important; background: none !important; cursor: pointer; flex-shrink: 0; }
.wv-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.wv-row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.wv-row input[type="text"] { flex: 1; min-width: 90px; font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace; text-transform: uppercase; }
.wv-bg { margin-top: 6px; margin-bottom: 0; }
.wv-bg > label:first-child { font-size: 13px; font-weight: 600; color: #333; }
.wv-bg .wv-check { margin-top: 0; }

.wv-btn {
	display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px !important; margin: 0 !important;
	border: 1px solid #E2E2E8 !important; border-radius: 999px !important; background: #fff !important; color: #222 !important;
	font-size: 13px !important; font-weight: 600 !important; cursor: pointer; box-shadow: none !important;
}
.wv-btn:hover { border-color: #111 !important; }
.wv-btn .tg-i { width: 15px; height: 15px; }
.wv-btn-primary { background: #111 !important; border-color: #111 !important; color: #fff !important; padding: 10px 18px !important; font-size: 14px !important; }
.wv-btn-primary:hover { background: #333 !important; }
.wv-remove { width: 30px; height: 30px; padding: 0 !important; justify-content: center; }

.wv-outputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.wv-outputs pre { max-height: 180px !important; overflow: auto !important; word-break: break-all !important; overflow-wrap: anywhere !important; }
.wv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

@media (max-width: 860px) {
	.wv-layout, .wv-outputs { grid-template-columns: 1fr; }
	.wv-stage { position: static; }
}

/* Dark mode */
html[data-theme="dark"] .tg-tool .wv-stage { background: repeating-conic-gradient(#191922 0% 25%, #121219 0% 50%) 0 0 / 20px 20px !important; }
html[data-theme="dark"] .tg-tool .wv-card { background: #15151D !important; border-color: rgba(255, 255, 255, .09) !important; }
html[data-theme="dark"] .tg-tool .wv-seg { background: #1D1D27 !important; }
html[data-theme="dark"] .tg-tool .wv-seg button { color: #B9B9C6 !important; }
html[data-theme="dark"] .tg-tool .wv-seg button[aria-pressed="true"] { background: #262633 !important; color: #EDEDF2 !important; }
html[data-theme="dark"] .tg-tool .wv-slider label, html[data-theme="dark"] .tg-tool .wv-check, html[data-theme="dark"] .tg-tool .wv-bg > label:first-child { color: #EDEDF2 !important; }
html[data-theme="dark"] .tg-tool .wv-slider span, html[data-theme="dark"] .tg-tool .wv-size-label { color: #9393A3 !important; }
html[data-theme="dark"] .tg-tool .wv-btn { background: #1D1D27 !important; border-color: rgba(255, 255, 255, .16) !important; color: #EDEDF2 !important; }
html[data-theme="dark"] .tg-tool .wv-btn-primary { background: #fff !important; border-color: #fff !important; color: #111 !important; }
