:root {
	--oomt-form-font: inherit;
	--oomt-form-bg: #fff;
	--oomt-form-text: #172033;
	--oomt-form-placeholder: #6b7280;
	--oomt-form-border: rgba(148, 163, 184, 0.45);
	--oomt-form-border-hover: rgba(37, 99, 235, 0.45);
	--oomt-form-border-focus: #2563eb;
	--oomt-form-ring: 0 0 0 4px rgba(37, 99, 235, 0.14);
	--oomt-form-disabled-bg: #f1f5f9;
	--oomt-form-disabled-text: #64748b;
	--oomt-form-radius: 14px;
	--oomt-form-padding-y: 12px;
	--oomt-form-padding-x: 14px;
	--oomt-form-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.oomt-diff-results {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.oomt-diff-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

.oomt-diff-col h4 {
	margin: 0 0 8px;
}

.oomt-diff-lines {
	border: 1px solid var(--oomt-border);
	border-radius: 14px;
	overflow: hidden;
}

.oomt-diff-line {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 10px;
	padding: 8px 10px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.07);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 13px;
}

.oomt-diff-line:last-child {
	border-bottom: 0;
}

.oomt-diff-line-no {
	color: var(--oomt-muted);
}

.oomt-diff-line-text {
	white-space: pre-wrap;
	word-break: break-word;
}

.oomt-diff-line.is-added {
	background: rgba(22, 163, 74, 0.12);
}

.oomt-diff-line.is-removed {
	background: rgba(220, 38, 38, 0.12);
}

.oomt-diff-line.is-changed {
	background: rgba(245, 158, 11, 0.15);
}

.oomt-diff-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.oomt-diff-pill {
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 700;
}

.oomt-diff-pill.is-added {
	background: rgba(22, 163, 74, 0.14);
}

.oomt-diff-pill.is-removed {
	background: rgba(220, 38, 38, 0.14);
}

.oomt-diff-pill.is-changed {
	background: rgba(245, 158, 11, 0.18);
}

.oomt-diff-pill.is-same {
	background: rgba(100, 116, 139, 0.16);
}

.oomt-password-strength {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 12px;
}

.oomt-password-strength-badge {
	border-radius: 999px;
	padding: 6px 10px;
	background: rgba(220, 38, 38, 0.14);
	font-size: 12px;
	font-weight: 700;
}

.oomt-password-strength-badge[data-score="2"] {
	background: rgba(245, 158, 11, 0.18);
}

.oomt-password-strength-badge[data-score="3"] {
	background: rgba(14, 116, 144, 0.2);
}

.oomt-password-strength-badge[data-score="4"] {
	background: rgba(22, 163, 74, 0.2);
}

.oomt-tool-card,
.oomt-tabs-wrapper {
	--oomt-bg: #f8fafc;
	--oomt-surface: #fff;
	--oomt-surface-soft: #f8fbff;
	--oomt-text: #172033;
	--oomt-muted: #5f6c82;
	--oomt-border: rgba(15, 23, 42, 0.08);
	--oomt-accent: #2563eb;
	--oomt-accent-strong: #7c3aed;
	--oomt-success: #0f766e;
	--oomt-danger: #b42318;
	box-sizing: border-box;
	margin: 20px 0;
	border: 1px solid var(--oomt-border);
	border-radius: 24px;
	background:
		radial-gradient(circle at top right, rgba(37, 99, 235, 0.09), transparent 0, transparent 32%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
	color: var(--oomt-text);
}

.oomt-tabs-wrapper {
	padding: 22px;
	overflow: hidden;
}

.oomt-tool-card {
	padding: 22px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.oomt-tool-card:hover {
	transform: translateY(-2px);
	border-color: rgba(37, 99, 235, 0.2);
	box-shadow: 0 22px 50px rgba(37, 99, 235, 0.12);
}

.oomt-suite-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.oomt-suite-copy h2 {
	margin: 6px 0;
	font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem);
	line-height: 1.15;
}

.oomt-tool-header h3,
.oomt-tool-header h4 {
	margin: 8px 0 6px;
	font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem);
	line-height: 1.25;
}

.oomt-suite-copy p,
.oomt-tool-header p {
	margin: 0;
	color: var(--oomt-muted);
	line-height: 1.6;
}

.oomt-suite-eyebrow,
.oomt-tool-kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.1);
	color: var(--oomt-accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.oomt-suite-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.oomt-search-field {
	display: flex;
	min-width: min(280px, 100%);
}

.oomt-tool-search {
	min-width: 220px;
}

.oomt-suite-layout {
	display: grid;
	grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.oomt-tabs-nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 8px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--oomt-border);
	backdrop-filter: blur(10px);
}

.oomt-tab-btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	border: 1px solid transparent;
	border-radius: 16px;
	padding: 12px 14px;
	background: transparent;
	color: var(--oomt-text);
	cursor: pointer;
	font-weight: 600;
	text-align: left;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.oomt-tab-btn-title {
	font-size: 0.98rem;
}

.oomt-tab-btn-meta {
	margin-top: 3px;
	color: var(--oomt-muted);
	font-size: 0.78rem;
	font-weight: 500;
}

.oomt-btn,
.oomt-copy-btn,
.oomt-theme-toggle {
	border: 0;
	border-radius: 12px;
	padding: 11px 16px;
	cursor: pointer;
	font-weight: 700;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.oomt-btn {
	background: linear-gradient(135deg, var(--oomt-accent), var(--oomt-accent-strong));
	color: #fff;
}

.oomt-btn:disabled {
	opacity: 0.8;
	cursor: wait;
}

.oomt-copy-btn,
.oomt-theme-toggle {
	background: rgba(37, 99, 235, 0.08);
	color: var(--oomt-text);
}

.oomt-copy-btn.is-success {
	background: rgba(15, 118, 110, 0.12);
	color: var(--oomt-success);
}

.oomt-tab-btn.is-active {
	background: linear-gradient(135deg, var(--oomt-accent), var(--oomt-accent-strong));
	color: #fff;
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.oomt-tab-btn.is-active .oomt-tab-btn-meta {
	color: #fff;
}

.oomt-btn:hover,
.oomt-copy-btn:hover,
.oomt-tab-btn:hover,
.oomt-theme-toggle:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.oomt-btn:focus-visible,
.oomt-copy-btn:focus-visible,
.oomt-tab-btn:focus-visible,
.oomt-theme-toggle:focus-visible {
	outline: 2px solid var(--oomt-form-border-focus, #2563eb);
	outline-offset: 2px;
}

/* Shared front-end form system.
 * Add .oomt-form-scope to any theme/plugin wrapper to opt into the same
 * UI safely.
 */
:where(.oomt-form, .oomt-form-scope) {
	--oomt-form-bg: rgba(255, 255, 255, 0.92);
	--oomt-form-text: var(--oomt-text, #172033);
	--oomt-form-placeholder: #5f6c82;
	--oomt-form-border: rgba(148, 163, 184, 0.35);
	--oomt-form-border-hover: rgba(37, 99, 235, 0.45);
	--oomt-form-border-focus: var(--oomt-accent, #2563eb);
	--oomt-form-ring: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

:where(.oomt-form, .oomt-form-scope) :where(label, .oomt-label) {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.oomt-tool-header + .oomt-form {
	margin-top: 14px;
}

.oomt-hidden-label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:where(.oomt-form, .oomt-form-scope) :where(
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
textarea,
select
) {
	width: 100%;
	min-height: 46px;
	margin-bottom: 14px;
	box-sizing: border-box;
	border: 1px solid var(--oomt-form-border);
	border-radius: var(--oomt-form-radius);
	padding: var(--oomt-form-padding-y) var(--oomt-form-padding-x);
	background: var(--oomt-form-bg);
	color: var(--oomt-form-text);
	font-family: var(--oomt-form-font);
	font-size: max(14px, 1em);
	line-height: 1.5;
	box-shadow: var(--oomt-form-shadow);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

:where(.oomt-form, .oomt-form-scope) textarea {
	resize: vertical;
}

:where(.oomt-form, .oomt-form-scope) :where(
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
textarea,
select
):hover {
	border-color: var(--oomt-form-border-hover);
}

:where(.oomt-form, .oomt-form-scope) :where(
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
textarea,
select
):focus,
:where(.oomt-form, .oomt-form-scope) :where(
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
textarea,
select
):focus-visible {
	outline: 2px solid transparent;
	border-color: var(--oomt-form-border-focus);
	box-shadow: var(--oomt-form-ring);
}

:where(.oomt-form, .oomt-form-scope) :where(
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
textarea,
select
):active {
	border-color: var(--oomt-form-border-focus);
}

:where(.oomt-form, .oomt-form-scope) :where(
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
textarea
)::placeholder,
:where(.oomt-form, .oomt-form-scope) :where(
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
textarea
)::-webkit-input-placeholder,
:where(.oomt-form, .oomt-form-scope) :where(
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
textarea
)::-moz-placeholder {
	color: var(--oomt-form-placeholder);
	opacity: 1;
}

:where(.oomt-form, .oomt-form-scope) :where(
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
textarea,
select
):disabled,
:where(.oomt-form, .oomt-form-scope) :where(
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
textarea,
select
)[aria-disabled="true"] {
	background: var(--oomt-form-disabled-bg);
	color: var(--oomt-form-disabled-text);
	border-color: rgba(148, 163, 184, 0.28);
	cursor: not-allowed;
	box-shadow: none;
	opacity: 1;
}

:where(.oomt-form, .oomt-form-scope) :where(
input:not([type="checkbox"]),
textarea,
select
):required {
	border-inline-start-width: 3px;
	border-inline-start-color: rgba(37, 99, 235, 0.55);
}

:where(.oomt-form, .oomt-form-scope) :where(input[type="checkbox"], input[type="radio"]) {
	accent-color: var(--oomt-form-border-focus);
}

/* DNS / Subnet / Morse dropdown — explicit sizing, chevron, hover */
:where(.oomt-form, .oomt-form-scope) select,
.oomt-record-select {
	appearance: none;
	-webkit-appearance: none;
	min-height: 46px;
	width: 100%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6c82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding: 12px 42px 12px 14px;
	font-size: 16px;
	line-height: 1.5;
	cursor: pointer;
}

:where(.oomt-form, .oomt-form-scope) select::-ms-expand {
	display: none;
}

:where(.oomt-form, .oomt-form-scope) select:hover,
.oomt-record-select:hover {
	border-color: var(--oomt-form-border-hover);
	background-color: rgba(255, 255, 255, 1);
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.oomt-grid.two-col,
.oomt-option-grid,
.oomt-binary-grid {
	display: grid;
	gap: 12px;
}

.oomt-grid.two-col {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.oomt-dns-form-row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
	gap: 12px;
	align-items: end;
	margin-bottom: 14px;
}

.oomt-field-inline {
	display: flex;
	flex-direction: column;
}

.oomt-field-inline--wide {
	min-width: 0;
}

.oomt-field-inline--narrow {
	min-width: 180px;
}

.oomt-field-inline input,
.oomt-field-inline select {
	margin-bottom: 0;
}

.oomt-dns-form-row input[type="text"] {
	min-height: 48px;
	padding: 12px 14px;
	font-size: 16px;
	line-height: 1.5;
}

.oomt-dns-form-row input[type="text"]::placeholder {
	font-size: 16px;
	line-height: 1.5;
}

.oomt-dns-form-row input,
.oomt-dns-form-row select {
	min-height: 48px;
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
}

.oomt-option-grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin-bottom: 14px;
}

.oomt-checkbox {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 46px;
	padding: 10px 14px;
	margin-bottom: 10px;
	border: 1px solid var(--oomt-border);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	cursor: pointer;
}

.oomt-checkbox span,
.oomt-checkbox .oomt-checkbox-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.oomt-checkbox:hover {
	border-color: rgba(37, 99, 235, 0.4);
}

.oomt-checkbox:focus-within {
	border-color: var(--oomt-form-border-focus);
}

.oomt-checkbox input[type="checkbox"] {

	/* Fixed 16px so the box never collapses */
	width: 16px;
	height: 16px;
	min-width: 16px;
	margin: 0;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: var(--oomt-accent);
}

.oomt-option-grid .oomt-checkbox {
	margin-bottom: 0;
}

.oomt-action-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 10px 0 18px;
}

.oomt-result-wrap,
.oomt-result-html,
.oomt-subnet-summary,
.oomt-subnet-divide-results,
.oomt-explanation,
.oomt-result-field,
.oomt-tab-empty {
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid var(--oomt-border);
	border-radius: 18px;
	padding: 14px;
}

.oomt-result-wrap {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.oomt-result-html {
	height: 12rem;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.oomt-result-wrap + .oomt-result-html {
	margin-top: 12px;
}

.oomt-result-output {
	min-height: 120px;
}

.oomt-result-html[hidden],
.oomt-result-html:empty {
	display: none !important;
}

.oomt-morse-mode-group {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

.oomt-morse-mode-options {
	margin-bottom: 0;
}

.oomt-morse-mode-options .oomt-checkbox {
	margin-bottom: 0;
}

.oomt-subnet-field-grid,
.oomt-subnet-divider-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin: 14px 0;
}

.oomt-subnet-divider-results {
	display: grid;
	gap: 12px;
}

.oomt-field-row {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.oomt-field-row input {
	flex: 1 1 180px;
	margin-bottom: 0;
}

.oomt-field-row .oomt-copy-btn,
.oomt-result-wrap .oomt-copy-btn {
	width: auto;
	align-self: flex-start;
}

.oomt-dns-results {
	margin-top: 12px;
	padding-top: 4px;
}

.oomt-dns-results ul {
	margin: 0 0 0 18px;
}

.oomt-message {
	min-height: 22px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.08);
	color: var(--oomt-accent);
	font-size: 14px;
	line-height: 1.5;
	font-weight: 700;
}

.oomt-message:empty {
	display: none;
}

.oomt-message.is-success {
	background: rgba(15, 118, 110, 0.1);
	color: var(--oomt-success);
}

.oomt-message.is-error {
	background: rgba(180, 35, 24, 0.1);
	color: var(--oomt-danger);
}

.oomt-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(148, 163, 184, 0.45);
	border-top-color: var(--oomt-accent);
	animation: oomt-spin 0.8s linear infinite;
}

.oomt-spinner[hidden] {
	display: none;
	animation: none;
}

.oomt-form.is-loading {
	opacity: 0.92;
}

.oomt-binary-grid div {
	display: grid;
	gap: 6px;
	margin-bottom: 10px;
}

.oomt-binary-grid span,
.oomt-result-output {
	word-break: break-word;
	font-family: Consolas, Monaco, monospace;
}

.oomt-binary-grid span {
	display: block;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.04);
}

/* Explanation block — guaranteed readable spacing */
.oomt-subnet-summary,
.oomt-explanation,
.oomt-subnet-divide-results {
	margin-top: 12px;
	line-height: 1.7;
	font-size: 14px;
}

.oomt-subnet-summary,
.oomt-subnet-divide-results {
	padding: 16px;
	border: 1px solid rgba(37, 99, 235, 0.12);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
}

.oomt-subnet-summary p,
.oomt-subnet-divide-results p {
	margin: 0 0 10px;
}

.oomt-subnet-summary ul,
.oomt-subnet-divide-results ul {
	margin: 0;
	padding-left: 18px;
}

.oomt-explanation + .oomt-explanation {
	margin-top: 12px;
}

.oomt-explanation h4 {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.oomt-explanation p {
	margin: 0 0 12px;
	color: var(--oomt-muted);
	font-size: 14px;
	line-height: 1.65;
}

.oomt-explanation ul {
	margin: 0 0 4px;
	padding-left: 20px;
}

.oomt-explanation li {
	margin-bottom: 6px;
	font-size: 14px;
	line-height: 1.55;
}

/* Subnet divider separator */
.oomt-divider {
	border: 0;
	border-top: 1px solid var(--oomt-border);
	margin: 22px 0;
}

.oomt-divide-header {
	margin-top: 0;
}

.oomt-kicker-alt {
	background: rgba(124, 58, 237, 0.1);
	color: var(--oomt-accent-strong);
}

/* Subnet division results table */
.oomt-divide-output {
	overflow-x: hidden;
	border-radius: 16px;
}

.oomt-divide-table {
	width: 100%;
	min-width: 0;
	table-layout: auto;
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 12px;
	font-size: 0.92rem;
	font-family: Consolas, Monaco, monospace;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid var(--oomt-border);
	border-radius: 14px;
	overflow: hidden;
}

.oomt-divide-table th,
.oomt-divide-table td {
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--oomt-border);
	word-break: break-word;
	overflow-wrap: anywhere;
}

.oomt-divide-table th {
	font-weight: 700;
	font-family: inherit;
	color: var(--oomt-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: rgba(37, 99, 235, 0.04);
}

.oomt-divide-table tr:last-child td {
	border-bottom: 0;
}

.oomt-divide-table tr:hover td {
	background: rgba(37, 99, 235, 0.04);
}

.oomt-divide-table code {
	display: inline-block;
	max-width: 100%;
	white-space: normal;
	word-break: break-word;
}

.oomt-subnet-divide-results p {
	margin: 0 0 10px;
	color: var(--oomt-muted);
}

.oomt-theme-dark .oomt-divide-table th {
	color: var(--oomt-muted);
}

.oomt-theme-dark .oomt-divide-table tr:hover td {
	background: rgba(96, 165, 250, 0.06);
}

.oomt-tab-empty p {
	margin: 0;
	color: var(--oomt-muted);
}

[data-tooltip] {
	position: relative;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 6px 8px;
	border-radius: 8px;
	background: #0f172a;
	color: #fff;
	font-size: 0.75rem;
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.oomt-theme-dark {
	--oomt-bg: #08111f;
	--oomt-surface: #0f172a;
	--oomt-surface-soft: #111c34;
	--oomt-text: #eef4ff;
	--oomt-muted: #b7c3d9;
	--oomt-border: rgba(148, 163, 184, 0.18);
	--oomt-form-bg: rgba(15, 23, 42, 0.88);
	--oomt-form-text: #eef4ff;
	--oomt-form-placeholder: #b7c3d9;
	--oomt-form-border: rgba(148, 163, 184, 0.22);
	--oomt-form-border-hover: rgba(96, 165, 250, 0.45);
	--oomt-form-border-focus: #60a5fa;
	--oomt-form-ring: 0 0 0 4px rgba(96, 165, 250, 0.18);
	--oomt-form-disabled-bg: rgba(15, 23, 42, 0.65);
	--oomt-form-disabled-text: #94a3b8;
	background:
		radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 0, transparent 30%),
		linear-gradient(180deg, rgba(8, 17, 31, 0.98), rgba(15, 23, 42, 0.98));
	color: var(--oomt-text);
}

.oomt-theme-dark .oomt-tool-card,
.oomt-theme-dark .oomt-tabs-nav,
.oomt-theme-dark .oomt-result-wrap,
.oomt-theme-dark .oomt-result-html,
.oomt-theme-dark .oomt-subnet-summary,
.oomt-theme-dark .oomt-explanation,
.oomt-theme-dark .oomt-result-field,
.oomt-theme-dark .oomt-tab-empty {
	background: rgba(15, 23, 42, 0.84);
	border-color: var(--oomt-border);
	color: var(--oomt-text);
}

.oomt-theme-dark .oomt-checkbox {
	border-color: var(--oomt-border);
	color: var(--oomt-text);
}

.oomt-theme-dark .oomt-tool-header p,
.oomt-theme-dark .oomt-label {
	color: var(--oomt-muted);
}

.oomt-theme-dark textarea,
.oomt-theme-dark input,
.oomt-theme-dark select {
	background: rgba(15, 23, 42, 0.88);
	border-color: rgba(148, 163, 184, 0.22);
	color: var(--oomt-text);
}

.oomt-theme-dark select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b7c3d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.oomt-theme-dark select:hover {
	border-color: rgba(96, 165, 250, 0.45);
	background-color: rgba(15, 23, 42, 0.95);
}

.oomt-theme-dark .oomt-copy-btn,
.oomt-theme-dark .oomt-theme-toggle {
	background: rgba(96, 165, 250, 0.14);
	color: var(--oomt-text);
}

.oomt-theme-dark .oomt-message {
	background: rgba(96, 165, 250, 0.14);
	color: #93c5fd;
}

.oomt-flash {
	animation: oomt-flash 0.55s ease;
}

@keyframes oomt-spin {

	to {
		transform: rotate(360deg);
	}
}

@keyframes oomt-flash {

	0% {
		box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.18);
	}

	100% {
		box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
	}
}

@media (max-width: 900px) {

	.oomt-suite-layout {
		grid-template-columns: 1fr;
	}

	.oomt-tabs-nav {
		flex-direction: row;
		overflow-x: auto;
	}

	.oomt-tab-btn {
		min-width: 180px;
	}
}

@media (max-width: 640px) {

	.oomt-tabs-wrapper,
	.oomt-tool-card {
		padding: 14px;
		border-radius: 18px;
	}

	.oomt-divide-table,
	.oomt-divide-table thead,
	.oomt-divide-table tbody,
	.oomt-divide-table th,
	.oomt-divide-table td,
	.oomt-divide-table tr {
		display: block;
		width: 100%;
	}

	.oomt-divide-table thead {
		display: none;
	}

	.oomt-divide-table tr {
		margin-bottom: 10px;
		border-bottom: 1px solid var(--oomt-border);
	}

	.oomt-divide-table td {
		border-bottom: 0;
		padding: 8px 10px;
	}

	.oomt-suite-header {
		flex-direction: column;
	}

	.oomt-suite-controls,
	.oomt-search-field,
	.oomt-tool-search {
		width: 100%;
	}

	.oomt-dns-form-row {
		grid-template-columns: 1fr;
	}

	.oomt-btn,
	.oomt-copy-btn,
	.oomt-theme-toggle,
	.oomt-tab-btn {
		min-height: 44px;
	}
}
