/*!
 * DD Sachdeva Tools — styles. All classes are prefixed with dds-.
 * Tokens can be overridden by the theme via CSS custom properties on :root.
 */

/* ---------------------------------------------------------------- base */
.dds-tool,
.dds-hub,
.dds-list {
	color: var(--dds-text, #1F2937);
	font-family: inherit;
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}
.dds-tool *,
.dds-tool *::before,
.dds-tool *::after,
.dds-hub *,
.dds-hub *::before,
.dds-hub *::after,
.dds-list *,
.dds-list *::before,
.dds-list *::after {
	box-sizing: border-box;
}
.dds-tool [hidden],
.dds-hub [hidden] {
	display: none !important;
}
.dds-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.dds-icon {
	width: 20px;
	height: 20px;
	flex: none;
	vertical-align: middle;
}
.dds-tool :focus-visible,
.dds-hub :focus-visible,
.dds-list :focus-visible {
	outline: 2px solid var(--dds-accent, #006B54);
	outline-offset: 2px;
}
.dds-tool p,
.dds-hub p {
	margin: 0;
}

/* ---------------------------------------------------------------- tool card */
.dds-tool {
	margin: 0 0 40px;
}
.dds-card {
	background: #fff;
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: var(--dds-radius-lg, 28px);
	padding: 28px;
	box-shadow: 0 24px 60px -36px rgba(17, 24, 39, .2);
}
.dds-tool-card {
	display: grid;
	gap: 22px;
	min-width: 0;
}
.dds-tool-card > * {
	min-width: 0;
}
.dds-privacy {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--dds-muted, #6B7280);
}
.dds-privacy .dds-icon {
	width: 18px;
	height: 18px;
	color: var(--dds-accent, #006B54);
}
.dds-note {
	font-size: 13px;
	color: var(--dds-muted, #6B7280);
}
.dds-panel {
	background: var(--dds-soft, #F8F9FA);
	border-radius: var(--dds-radius, 14px);
	padding: 18px;
}
.dds-subhead {
	font-size: 15px;
	font-weight: 700;
	color: var(--dds-ink, #0B1220);
	margin: 0 0 10px;
}

/* ---------------------------------------------------------------- drop zone */
.dds-drop {
	position: relative;
}
.dds-drop__label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 180px;
	padding: 28px 20px;
	text-align: center;
	cursor: pointer;
	background: var(--dds-tint, #F4FAF7);
	border: 2px dashed #CFE3DA;
	border-radius: 22px;
	transition: border-color .15s ease, background-color .15s ease;
}
.dds-drop__label:hover,
.dds-drop.is-over .dds-drop__label {
	border-color: var(--dds-accent, #006B54);
	background: var(--dds-pill, #EAF4F0);
}
.dds-drop__input:focus-visible + .dds-drop__label {
	outline: 2px solid var(--dds-accent, #006B54);
	outline-offset: 2px;
}
.dds-drop__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: #fff;
	color: var(--dds-accent, #006B54);
	box-shadow: 0 8px 20px -12px rgba(0, 107, 84, .45);
	margin-bottom: 6px;
}
.dds-drop__icon .dds-icon {
	width: 24px;
	height: 24px;
}
.dds-drop__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--dds-ink, #0B1220);
}
.dds-drop__hint {
	font-size: 13px;
	color: var(--dds-muted, #6B7280);
}
.dds-drop--compact .dds-drop__label {
	min-height: 120px;
	padding: 18px;
}

/* ---------------------------------------------------------------- fields */
.dds-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 16px 18px;
	align-items: end;
}
.dds-fields--2 {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.dds-field {
	display: grid;
	gap: 6px;
	min-width: 0;
}
.dds-field--full {
	grid-column: 1 / -1;
}
.dds-label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dds-ink, #0B1220);
}
.dds-label__aside {
	font-weight: 500;
	font-size: 13px;
	color: var(--dds-muted, #6B7280);
	font-variant-numeric: tabular-nums;
}
.dds-req {
	color: #A12B2B;
	font-weight: 700;
}
html body .dds-input,
html body .dds-select,
html body .dds-textarea {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--dds-text, #1F2937);
	background: var(--dds-field, #FAFAFB);
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.dds-select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	cursor: pointer;
}
.dds-textarea {
	min-height: 160px;
	resize: vertical;
}
html body .dds-input:hover,
html body .dds-select:hover,
html body .dds-textarea:hover {
	border-color: #D1D5DB;
}
html body .dds-input:focus,
html body .dds-select:focus,
html body .dds-textarea:focus {
	border-color: var(--dds-accent, #006B54);
	background-color: #fff;
}
.dds-input[aria-invalid="true"],
.dds-textarea[aria-invalid="true"] {
	border-color: #C2410C;
	background-color: #FFF7F3;
}
.dds-input[readonly] {
	background: #fff;
}
.dds-input--mono,
.dds-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 14px;
}
.dds-input-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.dds-input-row > .dds-input,
.dds-input-row > .dds-select {
	flex: 1 1 auto;
	min-width: 0;
}
.dds-color {
	flex: none;
	width: 56px;
	height: 48px;
	padding: 4px;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}
.dds-color::-webkit-color-swatch-wrapper { padding: 0; }
.dds-color::-webkit-color-swatch { border: 0; border-radius: 8px; }
.dds-color::-moz-color-swatch { border: 0; border-radius: 8px; }
.dds-range {
	width: 100%;
	height: 44px;
	margin: 0;
	accent-color: var(--dds-accent, #006B54);
	background: transparent;
	cursor: pointer;
}
.dds-help {
	font-size: 13px;
	color: var(--dds-muted, #6B7280);
}
.dds-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-size: 15px;
	color: var(--dds-text, #1F2937);
	cursor: pointer;
}
.dds-check input {
	width: 20px;
	height: 20px;
	margin: 0;
	flex: none;
	accent-color: var(--dds-accent, #006B54);
	cursor: pointer;
}
.dds-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
}

/* segmented control (radio group) */
.dds-seg {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.dds-seg legend {
	padding: 0;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dds-ink, #0B1220);
	width: 100%;
}
.dds-seg__opt {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}
.dds-seg__opt input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}
.dds-seg__opt span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dds-body, #374151);
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 999px;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.dds-seg__opt:hover span {
	border-color: #CFE3DA;
}
.dds-seg__opt input:checked + span {
	background: var(--dds-pill, #EAF4F0);
	border-color: var(--dds-accent, #006B54);
	color: var(--dds-accent, #006B54);
}
.dds-seg__opt input:focus-visible + span {
	outline: 2px solid var(--dds-accent, #006B54);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- buttons */
.dds-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.dds-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 20px;
	margin: 0;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 12px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.dds-btn .dds-icon {
	width: 18px;
	height: 18px;
}
.dds-btn--primary {
	background: var(--dds-accent, #006B54);
	color: var(--dds-accent-ink, #FFFFFF);
}
.dds-btn--primary:hover {
	background: #005A47;
	color: var(--dds-accent-ink, #FFFFFF);
}
.dds-btn--secondary {
	background: #fff;
	color: var(--dds-ink, #0B1220);
	border-color: #D1D5DB;
}
.dds-btn--secondary:hover {
	border-color: var(--dds-accent, #006B54);
	color: var(--dds-accent, #006B54);
}
.dds-btn--ghost {
	background: transparent;
	color: var(--dds-body, #374151);
	padding: 0 12px;
}
.dds-btn--ghost:hover {
	background: var(--dds-soft, #F8F9FA);
}
.dds-btn--sm {
	min-height: 44px;
	padding: 0 14px;
	font-size: 14px;
	border-radius: 10px;
}
.dds-btn--icon {
	width: 44px;
	min-height: 44px;
	padding: 0;
}
.dds-btn[disabled],
.dds-btn[aria-disabled="true"] {
	opacity: .5;
	cursor: not-allowed;
}
.dds-btn.is-copied {
	background: var(--dds-pill, #EAF4F0);
	border-color: var(--dds-accent, #006B54);
	color: var(--dds-accent, #006B54);
}

/* ---------------------------------------------------------------- status */
.dds-status {
	min-height: 1.5em;
	font-size: 14px;
	color: var(--dds-body, #374151);
}
.dds-status:empty {
	min-height: 0;
}
.dds-status.is-error {
	color: #B42318;
}
.dds-status.is-ok {
	color: var(--dds-accent, #006B54);
}
.dds-progress {
	height: 6px;
	border-radius: 99px;
	background: var(--dds-border, #EEF0F3);
	overflow: hidden;
}
.dds-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--dds-accent, #006B54);
	transition: width .2s ease;
}

/* ---------------------------------------------------------------- results */
.dds-results {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dds-result {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 12px 14px;
	background: var(--dds-field, #FAFAFB);
	border-radius: var(--dds-radius, 14px);
	margin: 0;
}
.dds-result__thumb {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
	background: #EEF0F3;
	display: block;
}
.dds-result__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--dds-ink, #0B1220);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dds-result__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	font-size: 13px;
	color: var(--dds-muted, #6B7280);
	font-variant-numeric: tabular-nums;
}
.dds-result__actions {
	display: flex;
	gap: 6px;
}
.dds-saved {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--dds-pill, #EAF4F0);
	color: var(--dds-accent, #006B54);
	font-weight: 700;
	font-size: 12px;
}
.dds-saved.is-neutral {
	background: #F3F4F6;
	color: var(--dds-body, #374151);
}
/* Before / after preview (Image Compressor) */
.dds-result.is-selectable {
	cursor: pointer;
	box-shadow: inset 0 0 0 1px transparent;
	transition: box-shadow .15s ease, background .15s ease;
}
.dds-result.is-selectable:hover {
	box-shadow: inset 0 0 0 1px var(--dds-line, #E5E7EB);
}
.dds-result.is-active {
	background: var(--dds-pill, #EAF4F0);
	box-shadow: inset 0 0 0 1.5px var(--dds-accent, #006B54);
}
.dds-compare {
	margin: 0;
	padding: 0;
}
.dds-compare[hidden] {
	display: none;
}
.dds-compare__stage {
	position: relative;
	width: 100%;
	max-height: 520px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: var(--dds-radius, 14px);
	background-color: #F3F4F6;
	background-image: linear-gradient(45deg, #E5E7EB 25%, transparent 25%), linear-gradient(-45deg, #E5E7EB 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #E5E7EB 75%), linear-gradient(-45deg, transparent 75%, #E5E7EB 75%);
	background-size: 18px 18px;
	background-position: 0 0, 0 9px, 9px -9px, -9px 0;
	user-select: none;
	touch-action: pan-y;
}
html body .dds-compare__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	display: block;
	margin: 0;
	border: 0;
	border-radius: 0;
	pointer-events: none;
}
.dds-compare__line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(11, 18, 32, .18);
	pointer-events: none;
}
.dds-compare__knob {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 10px rgba(11, 18, 32, .22);
}
.dds-compare__knob::before,
.dds-compare__knob::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 0;
	height: 0;
	margin-top: -5px;
	border: 5px solid transparent;
}
.dds-compare__knob::before {
	left: 5px;
	border-right-color: var(--dds-accent, #006B54);
}
.dds-compare__knob::after {
	right: 5px;
	border-left-color: var(--dds-accent, #006B54);
}
.dds-compare__tag {
	position: absolute;
	top: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(11, 18, 32, .72);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
	white-space: nowrap;
}
.dds-compare__tag--l {
	left: 10px;
}
.dds-compare__tag--r {
	right: 10px;
	background: var(--dds-accent, #006B54);
}
html body .dds-compare__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
}
html body .dds-compare__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 44px;
	height: 520px;
}
html body .dds-compare__range::-moz-range-thumb {
	width: 44px;
	height: 520px;
	border: 0;
}
.dds-compare__cap {
	margin-top: 8px;
	font-size: 13px;
	color: var(--dds-muted, #6B7280);
	text-align: center;
}
@media (max-width: 600px) {
	.dds-compare__stage {
		max-height: 360px;
	}
	.dds-compare__tag {
		font-size: 11px;
		top: 8px;
	}
}
.dds-result.is-error {
	grid-template-columns: minmax(0, 1fr);
	color: #B42318;
	font-size: 14px;
}
.dds-results__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}
.dds-summary {
	font-size: 14px;
	color: var(--dds-body, #374151);
	font-variant-numeric: tabular-nums;
}
.dds-summary strong {
	color: var(--dds-ink, #0B1220);
}

/* ---------------------------------------------------------------- stage (canvas previews) */
.dds-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	background-color: #F3F4F6;
	background-image:
		linear-gradient(45deg, #E9EBEE 25%, transparent 25%),
		linear-gradient(-45deg, #E9EBEE 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #E9EBEE 75%),
		linear-gradient(-45deg, transparent 75%, #E9EBEE 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0;
	border-radius: 18px;
	overflow: hidden;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}
.dds-stage canvas,
.dds-stage img {
	display: block;
	max-width: 100%;
	height: auto;
}
.dds-preview-img {
	display: block;
	max-width: 100%;
	max-height: 420px;
	margin: 0 auto;
	border-radius: 12px;
}
.dds-crop-wrap {
	position: relative;
	display: inline-block;
	line-height: 0;
}
.dds-crop-box {
	position: absolute;
	border: 2px solid #fff;
	box-shadow: 0 0 0 9999px rgba(11, 18, 32, .55);
	cursor: move;
	touch-action: none;
}
.dds-crop-box::before,
.dds-crop-box::after {
	content: "";
	position: absolute;
	pointer-events: none;
	border: 0 dashed rgba(255, 255, 255, .55);
}
.dds-crop-box::before {
	left: 33.333%;
	right: 33.333%;
	top: 0;
	bottom: 0;
	border-left-width: 1px;
	border-right-width: 1px;
}
.dds-crop-box::after {
	top: 33.333%;
	bottom: 33.333%;
	left: 0;
	right: 0;
	border-top-width: 1px;
	border-bottom-width: 1px;
}
.dds-crop-box:focus-visible {
	outline: 3px solid var(--dds-accent, #006B54);
	outline-offset: 0;
}
.dds-crop-handle {
	position: absolute;
	width: 22px;
	height: 22px;
	background: #fff;
	border: 2px solid var(--dds-accent, #006B54);
	border-radius: 50%;
	z-index: 2;
	touch-action: none;
}
.dds-crop-handle::after {
	content: "";
	position: absolute;
	inset: -11px;
}
.dds-crop-handle[data-h="nw"] { left: -12px; top: -12px; cursor: nwse-resize; }
.dds-crop-handle[data-h="ne"] { right: -12px; top: -12px; cursor: nesw-resize; }
.dds-crop-handle[data-h="sw"] { left: -12px; bottom: -12px; cursor: nesw-resize; }
.dds-crop-handle[data-h="se"] { right: -12px; bottom: -12px; cursor: nwse-resize; }
.dds-stage__empty {
	font-size: 14px;
	color: var(--dds-muted, #6B7280);
	padding: 20px;
	text-align: center;
}
.dds-picker-canvas {
	cursor: crosshair;
	touch-action: none;
}
.dds-picker-dot {
	position: absolute;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .3);
	pointer-events: none;
}

/* ---------------------------------------------------------------- color UI */
.dds-swatch-big {
	width: 100%;
	min-height: 120px;
	border-radius: 18px;
	border: 1px solid rgba(0, 0, 0, .06);
}
.dds-codes {
	display: grid;
	gap: 10px;
}
.dds-code-row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
}
.dds-code-row .dds-label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--dds-muted, #6B7280);
}
.dds-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 12px;
}
.dds-swatch {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	margin: 0;
	font: inherit;
	text-align: left;
	background: #fff;
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.dds-swatch:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -16px rgba(17, 24, 39, .35);
}
.dds-swatch__color {
	display: block;
	height: 76px;
}
.dds-swatch__label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	min-height: 44px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dds-ink, #0B1220);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dds-swatch__label small {
	font-family: inherit;
	font-weight: 600;
	font-size: 11px;
	color: var(--dds-muted, #6B7280);
}
.dds-swatch.is-copied .dds-swatch__label small {
	color: var(--dds-accent, #006B54);
}
.dds-grad-preview {
	height: 240px;
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, .05);
}
.dds-stops {
	display: grid;
	gap: 10px;
}
.dds-stop {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) 72px auto;
	gap: 10px;
	align-items: center;
	padding: 8px 10px;
	background: var(--dds-field, #FAFAFB);
	border-radius: 14px;
}
.dds-stop .dds-input {
	min-height: 44px;
	padding: 8px 10px;
}

/* ---------------------------------------------------------------- code output */
.dds-output {
	display: grid;
	gap: 10px;
}
.dds-output__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.dds-pre {
	margin: 0;
	padding: 16px 18px;
	max-height: 420px;
	overflow: auto;
	white-space: pre;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 13px;
	line-height: 1.6;
	color: #E5E7EB;
	background: #0B1220;
	border-radius: 14px;
	tab-size: 2;
}
.dds-pre--wrap {
	white-space: pre-wrap;
	word-break: break-word;
}

/* ---------------------------------------------------------------- stats */
.dds-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}
.dds-stat {
	padding: 16px 18px;
	background: var(--dds-field, #FAFAFB);
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 16px;
}
.dds-stat__value {
	display: block;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--dds-ink, #0B1220);
	font-variant-numeric: tabular-nums;
}
.dds-stat__label {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--dds-muted, #6B7280);
}
.dds-meter {
	display: grid;
	gap: 6px;
}
.dds-meter__track {
	position: relative;
	height: 8px;
	border-radius: 99px;
	background: var(--dds-border, #EEF0F3);
	overflow: hidden;
}
.dds-meter__bar {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 99px;
	background: var(--dds-accent, #006B54);
	transition: width .15s ease, background-color .15s ease;
}
.dds-meter__row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: var(--dds-muted, #6B7280);
	font-variant-numeric: tabular-nums;
}
.dds-flag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	background: #F3F4F6;
	color: var(--dds-body, #374151);
}
.dds-flag::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}
.dds-flag.is-good { background: #E7F5EE; color: #0B6B3A; }
.dds-flag.is-warn { background: #FFF4E0; color: #8A4B00; }
.dds-flag.is-bad  { background: #FDECEC; color: #B42318; }
.dds-meter.is-good .dds-meter__bar { background: #12805C; }
.dds-meter.is-warn .dds-meter__bar { background: #D98A00; }
.dds-meter.is-bad .dds-meter__bar  { background: #D92D20; }

/* ---------------------------------------------------------------- tables */
.dds-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 16px;
}
.dds-table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
	margin: 0;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.dds-table th,
.dds-table td {
	padding: 11px 14px;
	text-align: left;
	border: 0;
	border-bottom: 1px solid var(--dds-border, #EEF0F3);
	vertical-align: top;
}
.dds-table thead th {
	background: var(--dds-soft, #F8F9FA);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--dds-muted, #6B7280);
	font-weight: 700;
}
.dds-table tbody tr:last-child th,
.dds-table tbody tr:last-child td {
	border-bottom: 0;
}
.dds-table tbody th {
	font-weight: 600;
	color: var(--dds-ink, #0B1220);
}
.dds-table caption {
	text-align: left;
	padding: 0 0 8px;
	font-weight: 700;
}
.dds-num {
	text-align: right !important;
}
.dds-mark {
	background: #FFE7A3;
	color: inherit;
	border-radius: 3px;
	padding: 0 2px;
}
.dds-highlight {
	max-height: 320px;
	overflow: auto;
	padding: 16px 18px;
	font-size: 15px;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-word;
	background: var(--dds-field, #FAFAFB);
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 14px;
}

/* ---------------------------------------------------------------- tabs (generic) */
.dds-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.dds-tab {
	min-height: 44px;
	padding: 8px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--dds-body, #374151);
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 999px;
	cursor: pointer;
}
.dds-tab[aria-selected="true"],
.dds-tab[aria-pressed="true"] {
	background: var(--dds-pill, #EAF4F0);
	border-color: var(--dds-accent, #006B54);
	color: var(--dds-accent, #006B54);
}

/* ---------------------------------------------------------------- list rows (pdf, rename) */
.dds-rows {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dds-row {
	display: grid;
	grid-template-columns: auto 48px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 8px 10px;
	margin: 0;
	background: var(--dds-field, #FAFAFB);
	border-radius: 14px;
}
.dds-row__n {
	width: 28px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--dds-muted, #6B7280);
	font-variant-numeric: tabular-nums;
}
.dds-row__thumb {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	background: #EEF0F3;
	display: block;
}
.dds-row__text {
	min-width: 0;
	font-size: 14px;
}
.dds-row__text span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dds-row__old {
	color: var(--dds-muted, #6B7280);
	font-size: 13px;
}
.dds-row__new {
	color: var(--dds-ink, #0B1220);
	font-weight: 600;
}
.dds-row__actions {
	display: flex;
	gap: 4px;
}

/* ---------------------------------------------------------------- SERP preview (generic) */
.dds-serp {
	padding: 20px;
	background: #fff;
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 18px;
	font-family: Arial, Helvetica, sans-serif;
	overflow: hidden;
}
.dds-serp--mobile {
	max-width: 400px;
	padding: 16px;
	border-radius: 22px;
	box-shadow: 0 12px 30px -22px rgba(17, 24, 39, .35);
}
.dds-serp__site {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	min-width: 0;
}
.dds-serp__fav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #F1F3F4;
	border: 1px solid #E5E7EB;
	color: #3C4043;
	font-size: 12px;
	font-weight: 700;
}
.dds-serp__sitetext {
	display: grid;
	min-width: 0;
	line-height: 1.3;
}
.dds-serp__name {
	font-size: 14px;
	color: #202124;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dds-serp__url {
	font-size: 12px;
	color: #4D5156;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dds-serp__title {
	display: block;
	margin: 0 0 4px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 400;
	color: #1A0DAB;
	white-space: nowrap;
	overflow: hidden;
}
.dds-serp--mobile .dds-serp__title {
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 18px;
}
.dds-serp__desc {
	font-size: 14px;
	line-height: 1.58;
	color: #4D5156;
	word-wrap: break-word;
}
.dds-serp--mobile .dds-serp__desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dds-serp__desc b {
	color: #202124;
	font-weight: 700;
}
.dds-serp__scroll {
	overflow-x: auto;
}
.dds-serp--desktop {
	min-width: 640px;
	max-width: 652px;
}
.dds-preview-label {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--dds-muted, #6B7280);
}

/* ---------------------------------------------------------------- video preview (generic) */
.dds-yt {
	--yt-bg: #FFFFFF;
	--yt-text: #0F0F0F;
	--yt-sub: #606060;
	--yt-ph: #E5E5E5;
	padding: 20px;
	background: var(--yt-bg);
	color: var(--yt-text);
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 18px;
	font-family: Roboto, Arial, sans-serif;
	transition: background-color .2s ease;
}
.dds-yt.is-dark {
	--yt-bg: #0F0F0F;
	--yt-text: #F1F1F1;
	--yt-sub: #AAAAAA;
	--yt-ph: #272727;
	border-color: #0F0F0F;
}
.dds-yt__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.dds-yt__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: var(--yt-ph);
}
.dds-yt__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.dds-yt__thumb-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: var(--yt-sub);
	text-align: center;
	padding: 8px;
}
.dds-yt__dur {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 1px 4px;
	border-radius: 4px;
	background: rgba(0, 0, 0, .8);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
}
.dds-yt__meta {
	display: flex;
	gap: 12px;
	margin-top: 12px;
}
.dds-yt__avatar {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #3346A8;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}
.dds-yt__title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	color: var(--yt-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}
.dds-yt__sub {
	font-size: 14px;
	line-height: 20px;
	color: var(--yt-sub);
}
.dds-yt__ph {
	opacity: .55;
}
.dds-yt__ph .dds-yt__bar {
	display: block;
	height: 12px;
	border-radius: 6px;
	background: var(--yt-ph);
	margin: 4px 0 8px;
}
.dds-yt__ph .dds-yt__bar--short {
	width: 60%;
}
.dds-yt__search {
	display: grid;
	grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}
.dds-yt__search .dds-yt__title {
	font-size: 18px;
	line-height: 26px;
	font-weight: 400;
}
.dds-yt__chan {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
	font-size: 12px;
	color: var(--yt-sub);
}
.dds-yt__chan .dds-yt__avatar {
	width: 24px;
	height: 24px;
	font-size: 11px;
}
.dds-yt__mobile {
	max-width: 360px;
	margin: 0 auto;
	padding: 0 0 12px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--yt-bg);
	box-shadow: 0 0 0 8px #111827, 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.dds-yt__mobile .dds-yt__thumb {
	border-radius: 0;
}
.dds-yt__mobile .dds-yt__meta {
	padding: 0 12px;
}
.dds-yt__mobile .dds-yt__title {
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}
.dds-yt__mobile .dds-yt__sub {
	font-size: 12px;
	line-height: 18px;
}
.dds-yt-views {
	display: grid;
	gap: 18px;
}

/* ---------------------------------------------------------------- thumbnails grid (downloader / favicon) */
.dds-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}
.dds-thumb {
	display: grid;
	gap: 10px;
	padding: 12px;
	margin: 0;
	background: var(--dds-field, #FAFAFB);
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 18px;
}
.dds-thumb__img {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #EEF0F3;
}
.dds-thumb__img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.dds-thumb__title {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	align-items: baseline;
	font-size: 14px;
	font-weight: 700;
	color: var(--dds-ink, #0B1220);
}
.dds-thumb__title small {
	font-size: 12px;
	font-weight: 600;
	color: var(--dds-muted, #6B7280);
}
.dds-thumb .dds-actions .dds-btn {
	flex: 1 1 auto;
}
.dds-thumb.is-missing .dds-thumb__img::after {
	content: attr(data-missing);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	text-align: center;
	font-size: 13px;
	color: var(--dds-muted, #6B7280);
	background: #F3F4F6;
}
.dds-fav-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-end;
}
.dds-fav-prev {
	display: grid;
	justify-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--dds-muted, #6B7280);
	font-variant-numeric: tabular-nums;
}
.dds-fav-prev canvas {
	background-color: #fff;
	background-image:
		linear-gradient(45deg, #EEF0F3 25%, transparent 25%),
		linear-gradient(-45deg, #EEF0F3 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #EEF0F3 75%),
		linear-gradient(-45deg, transparent 75%, #EEF0F3 75%);
	background-size: 10px 10px;
	background-position: 0 0, 0 5px, 5px -5px, -5px 0;
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 6px;
	image-rendering: auto;
}
.dds-browser-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 260px;
	padding: 8px 14px;
	border-radius: 10px 10px 0 0;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-bottom: 0;
	font-size: 13px;
	color: #1F2937;
}
.dds-browser-tab span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dds-browser-bar {
	padding: 10px 10px 0;
	background: #E5E7EB;
	border-radius: 14px 14px 0 0;
}

/* ---------------------------------------------------------------- font pairing */
.dds-fonts-layout {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}
.dds-font-list {
	display: grid;
	gap: 6px;
	max-height: 520px;
	overflow: auto;
	padding: 2px;
	margin: 0;
	list-style: none;
}
.dds-font-opt {
	display: grid;
	width: 100%;
	gap: 2px;
	min-height: 44px;
	padding: 10px 12px;
	font: inherit;
	text-align: left;
	background: #fff;
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 12px;
	cursor: pointer;
}
.dds-font-opt strong {
	font-size: 14px;
	color: var(--dds-ink, #0B1220);
}
.dds-font-opt span {
	font-size: 12px;
	color: var(--dds-muted, #6B7280);
}
.dds-font-opt[aria-pressed="true"] {
	background: var(--dds-pill, #EAF4F0);
	border-color: var(--dds-accent, #006B54);
}
.dds-font-preview {
	padding: 28px;
	min-height: 320px;
	background: #fff;
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 20px;
	transition: opacity .2s ease;
}
.dds-font-preview.is-loading {
	opacity: .55;
}
.dds-font-preview__h {
	margin: 0 0 14px;
	font-size: clamp(28px, 4.2vw, 42px);
	line-height: 1.15;
	color: var(--dds-ink, #0B1220);
	word-break: break-word;
}
.dds-font-preview__p {
	margin: 0;
	font-size: 17px;
	line-height: 1.7;
	color: var(--dds-body, #374151);
	word-break: break-word;
}
.dds-font-names {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

/* ---------------------------------------------------------------- size guide */
.dds-guide {
	display: grid;
	gap: 28px;
}
.dds-guide__platform {
	display: grid;
	gap: 10px;
	scroll-margin-top: 90px;
}
.dds-guide__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--dds-ink, #0B1220);
}
.dds-ratio {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--dds-pill, #EAF4F0);
	color: var(--dds-accent, #006B54);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.dds-callout {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px 16px;
	font-size: 14px;
	color: var(--dds-body, #374151);
	background: #FFF8EB;
	border: 1px solid #F6E2B8;
	border-radius: 14px;
}
.dds-callout .dds-icon {
	color: #8A4B00;
	margin-top: 1px;
}
.dds-callout--info {
	background: var(--dds-tint, #F4FAF7);
	border-color: var(--dds-tint-border, #DCEBE5);
}
.dds-callout--info .dds-icon {
	color: var(--dds-accent, #006B54);
}

/* ---------------------------------------------------------------- schema */
.dds-repeater {
	display: grid;
	gap: 12px;
}
.dds-repeater__item {
	display: grid;
	gap: 10px;
	padding: 14px;
	background: var(--dds-field, #FAFAFB);
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 14px;
}
.dds-repeater__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--dds-muted, #6B7280);
}
.dds-issues {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
	font-size: 14px;
}
.dds-issues li {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0;
}
.dds-issues li::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-top: 7px;
	border-radius: 50%;
	background: #D98A00;
}
.dds-issues li.is-error::before { background: #D92D20; }
.dds-issues li.is-ok::before { background: #12805C; }

/* ---------------------------------------------------------------- soon */
.dds-soon {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 24px 10px;
	text-align: center;
}
.dds-soon__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--dds-pill, #EAF4F0);
	color: var(--dds-accent, #006B54);
}
.dds-soon__text {
	max-width: 46ch;
	color: var(--dds-body, #374151);
}
.dds-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}
.dds-badge--soon {
	background: #F3F4F6;
	color: var(--dds-body, #374151);
}
.dds-notice {
	padding: 12px 16px;
	border-radius: 12px;
	background: #FFF8EB;
	color: #8A4B00;
}

/* ---------------------------------------------------------------- content sections */
.dds-content {
	display: grid;
	gap: 40px;
	margin-top: 44px;
}
.dds-ad-slot {
	margin: 28px 0 0;
}
.dds-section > h2 {
	margin: 0 0 16px;
	font-size: clamp(22px, 2.6vw, 28px);
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--dds-ink, #0B1220);
}
.dds-steps {
	counter-reset: dds-step;
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dds-steps__item {
	counter-increment: dds-step;
	position: relative;
	margin: 0;
	padding: 16px 18px 16px 64px;
	min-height: 60px;
	background: var(--dds-soft, #F8F9FA);
	border-radius: var(--dds-radius, 14px);
	color: var(--dds-body, #374151);
	font-size: 16px;
}
.dds-steps__item::before {
	content: counter(dds-step);
	position: absolute;
	left: 16px;
	top: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--dds-accent, #006B54);
	color: var(--dds-accent-ink, #fff);
	font-weight: 800;
	font-size: 14px;
}
.dds-why p {
	margin: 0 0 1em;
	font-size: 17px;
	line-height: 1.75;
	color: var(--dds-body, #374151);
}
.dds-why p:last-child {
	margin-bottom: 0;
}
.dds-faq {
	display: grid;
	gap: 10px;
}
.dds-faq__item {
	background: #fff;
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: var(--dds-radius, 14px);
	overflow: hidden;
}
.dds-faq__q {
	position: relative;
	display: block;
	padding: 16px 52px 16px 18px;
	min-height: 44px;
	font-size: 16px;
	font-weight: 700;
	color: var(--dds-ink, #0B1220);
	cursor: pointer;
	list-style: none;
}
.dds-faq__q::-webkit-details-marker {
	display: none;
}
.dds-faq__q::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -7px;
	border-right: 2px solid var(--dds-accent, #006B54);
	border-bottom: 2px solid var(--dds-accent, #006B54);
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.dds-faq__item[open] > .dds-faq__q::after {
	transform: rotate(-135deg);
	margin-top: -2px;
}
.dds-faq__q:focus-visible {
	outline-offset: -2px;
}
.dds-faq__a {
	padding: 0 18px 16px;
	color: var(--dds-body, #374151);
	font-size: 15px;
	line-height: 1.7;
}
.dds-faq__a p {
	margin: 0;
}
.dds-allTools {
	margin-top: 16px !important;
}
.dds-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-weight: 700;
	color: var(--dds-accent, #006B54);
	text-decoration: none;
}
.dds-link-arrow:hover {
	text-decoration: underline;
}
.dds-link-arrow .dds-icon {
	width: 18px;
	height: 18px;
}

/* ---------------------------------------------------------------- hub + cards */
.dds-hub {
	display: grid;
	gap: 44px;
	margin: 0 0 40px;
}
.dds-hub--single {
	gap: 24px;
}
.dds-hub__tools {
	display: grid;
	gap: 16px;
	position: relative;
}
.dds-search {
	position: relative;
	max-width: 640px;
}
.dds-search__icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--dds-muted, #6B7280);
	display: inline-flex;
	pointer-events: none;
}
.dds-search__input.dds-input {
	min-height: 56px;
	padding-left: 50px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 40px -30px rgba(17, 24, 39, .3);
}
.dds-search__input::-webkit-search-cancel-button {
	-webkit-appearance: searchfield-cancel-button;
}
.dds-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.dds-pill {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dds-accent, #006B54);
	text-decoration: none;
	background: var(--dds-pill, #EAF4F0);
	border-radius: 999px;
	transition: background-color .15s ease;
}
.dds-pill:hover {
	background: var(--dds-tint-border, #DCEBE5);
	color: var(--dds-accent, #006B54);
}
.dds-group {
	display: grid;
	gap: 18px;
	scroll-margin-top: 90px;
}
.dds-group__head {
	display: flex;
	align-items: center;
	gap: 14px;
}
.dds-group__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--dds-g-bg, #EAF4F0);
	color: var(--dds-g-ink, #006B54);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .02em;
}
.dds-group__title {
	margin: 0 !important;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--dds-ink, #0B1220);
}
.dds-group__intro {
	font-size: 14px;
	color: var(--dds-muted, #6B7280);
}
.dds-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}
.dds-tcard {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--dds-border, #EEF0F3);
	border-radius: 18px;
	color: inherit;
	text-decoration: none;
	scroll-margin-top: 90px;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.dds-tcard:hover {
	border-color: var(--dds-tint-border, #DCEBE5);
	box-shadow: 0 18px 40px -28px rgba(17, 24, 39, .35);
	transform: translateY(-2px);
	color: inherit;
}
.dds-tcard.is-soon {
	background: var(--dds-soft, #F8F9FA);
	cursor: default;
}
.dds-tcard__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--dds-g-bg, #EAF4F0);
	color: var(--dds-g-ink, #006B54);
}
.dds-tcard.is-soon .dds-tcard__icon {
	filter: grayscale(1);
	opacity: .7;
}
.dds-tcard__body {
	display: grid;
	gap: 4px;
	min-width: 0;
	justify-items: start;
}
.dds-tcard__name {
	margin: 0 !important;
	font-size: 16px !important;
	line-height: 1.35 !important;
	font-weight: 700 !important;
	color: var(--dds-ink, #0B1220);
	letter-spacing: 0;
}
.dds-tcard__desc {
	font-size: 14px;
	line-height: 1.5;
	color: var(--dds-muted, #6B7280);
}
.dds-tcard .dds-badge {
	margin-top: 6px;
}
.dds-hub__empty {
	padding: 28px;
	text-align: center;
	color: var(--dds-body, #374151);
	background: var(--dds-soft, #F8F9FA);
	border-radius: 18px;
}

/* compact list */
.dds-list {
	margin: 0 0 24px;
}
.dds-list__title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 800;
	color: var(--dds-ink, #0B1220);
}
.dds-list__items {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dds-list__item {
	margin: 0;
	padding: 0;
}
.dds-list__item::before {
	display: none;
}
.dds-list__link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 10px;
	border-radius: 12px;
	color: var(--dds-text, #1F2937);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
a.dds-list__link:hover {
	background: var(--dds-soft, #F8F9FA);
	color: var(--dds-accent, #006B54);
}
.dds-list__link.is-soon {
	color: var(--dds-muted, #6B7280);
}
.dds-list__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--dds-g-bg, #EAF4F0);
	color: var(--dds-g-ink, #006B54);
}
.dds-list__icon .dds-icon {
	width: 18px;
	height: 18px;
}

/* ---------------------------------------------------------------- layout helpers */
.dds-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}
.dds-stack {
	display: grid;
	gap: 16px;
	min-width: 0;
}
.dds-divider {
	height: 1px;
	background: var(--dds-border, #EEF0F3);
	border: 0;
	margin: 0;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 860px) {
	.dds-split,
	.dds-fonts-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.dds-font-list {
		display: flex;
		max-height: none;
		overflow-x: auto;
		padding-bottom: 6px;
	}
	.dds-font-list li {
		flex: 0 0 200px;
	}
	.dds-yt__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.dds-yt__grid > :nth-child(3) {
		display: none;
	}
}
@media (max-width: 600px) {
	.dds-card {
		padding: 18px;
		border-radius: 22px;
	}
	.dds-tool-card {
		gap: 18px;
	}
	.dds-drop__label {
		min-height: 150px;
	}
	.dds-result {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 10px 12px;
	}
	.dds-result__thumb {
		width: 48px;
		height: 48px;
	}
	.dds-result__actions {
		grid-column: 1 / -1;
	}
	.dds-result__actions .dds-btn {
		flex: 1 1 auto;
	}
	.dds-actions > .dds-btn {
		flex: 1 1 auto;
	}
	.dds-code-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.dds-code-row .dds-label {
		grid-column: 1 / -1;
	}
	.dds-stop {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}
	.dds-stop .dds-stop__pos {
		grid-column: 1 / -1;
		order: 5;
	}
	.dds-row {
		grid-template-columns: 40px minmax(0, 1fr) auto;
	}
	.dds-row__n {
		display: none;
	}
	.dds-row__thumb {
		width: 40px;
		height: 40px;
	}
	.dds-yt {
		padding: 12px;
	}
	.dds-yt__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.dds-yt__grid > :nth-child(n+2) {
		display: none;
	}
	.dds-yt__search {
		grid-template-columns: minmax(0, 1fr);
	}
	.dds-steps__item {
		padding-left: 58px;
		font-size: 15px;
	}
	.dds-steps__item::before {
		left: 14px;
	}
	.dds-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.dds-tcard {
		padding: 16px 18px;
	}
	.dds-hub {
		gap: 36px;
	}
	.dds-font-preview {
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dds-tool *,
	.dds-hub *,
	.dds-list * {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
	a.dds-tcard:hover,
	.dds-swatch:hover {
		transform: none;
	}
}

/* ---------------------------------------------------------------- additions */
.dds-stage--pad {
	padding: 16px;
}
.dds-checks--col {
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}
.dds-panel > legend + * {
	margin-top: 0;
}
/* Grid children must be allowed to shrink so wide previews/tables scroll inside their wrappers. */
.dds-tool-card > *,
.dds-stack > *,
.dds-split > *,
.dds-fields > *,
.dds-guide > *,
.dds-guide__platform > *,
.dds-yt-views > * {
	min-width: 0;
}
/* Contain visually-hidden (absolute) elements so they never widen the page. */
.dds-tool-card,
.dds-table-wrap,
.dds-hub,
.dds-field,
.dds-check {
	position: relative;
}

/* ---------------------------------------------------------------- theme guards
   Some themes (e.g. GeneratePress) color every <button> on hover/focus.
   Keep the tool controls' own colors. */
html body .dds-swatch:hover,
html body .dds-swatch:focus,
html body .dds-tab:hover,
html body .dds-tab:focus,
html body .dds-font-opt:hover,
html body .dds-font-opt:focus {
	background-color: #fff;
	color: var(--dds-body, #374151);
}
html body .dds-tab[aria-selected="true"],
html body .dds-tab[aria-pressed="true"],
html body .dds-font-opt[aria-pressed="true"] {
	background-color: var(--dds-pill, #EAF4F0);
}
html body .dds-tab[aria-selected="true"],
html body .dds-tab[aria-pressed="true"] {
	color: var(--dds-accent, #006B54);
}
