.toolgarage-tool-page {
	background: transparent;
	color: #424242;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	width: 100%;
}

.tg-tool-shell {
	margin: 0 auto;
	max-width: 1180px;
	padding: 0 22px;
}

.tg-tool-layout {
	align-items: start;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 760px) 320px;
	justify-content: center;
}

.tg-tool-kicker,
.tg-section-kicker {
	color: #555;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.tg-tool-title-card {
	align-items: flex-start;
	background: #fff;
	border: 1px solid #dedede;
	border-top: 4px solid #424242;
	display: grid;
	gap: 18px;
	grid-template-columns: 52px 1fr;
	padding: 24px 26px 20px;
	text-align: left;
}

.tg-tool-mark {
	align-items: center;
	background: #f6f6f6;
	border: 1px solid #dcdcdc;
	display: inline-flex;
	height: 48px;
	justify-content: center;
	width: 48px;
}

.tg-tool-mark img {
	height: 28px;
	width: 28px;
}

.tg-tool-title-card h1 {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.45;
	margin: 0;
}

.tg-tool-lead {
	color: #424242;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.9;
	margin: 16px 0 0;
	max-width: 560px;
}

.tg-tool-section {
	padding: 42px 0 72px;
}

.tg-tool {
	display: grid;
	gap: 0;
}

.tg-condition-table,
.tg-results-panel,
.tg-work-panel,
.tg-info-section article {
	background: #fff;
	border: 1px solid #dedede;
	box-shadow: none;
}

.tg-condition-table {
	display: grid;
	margin-top: 0;
	border-top: 0;
}

.tg-condition-row {
	display: grid;
	grid-template-columns: 170px 1fr;
	min-height: 68px;
}

.tg-condition-row + .tg-condition-row {
	border-top: 3px solid #fff;
}

.tg-condition-head {
	align-items: center;
	background: #ededed;
	border-right: 3px solid #fff;
	color: #424242;
	display: flex;
	font-weight: 800;
	padding: 18px 20px;
}

.tg-condition-body {
	align-items: center;
	background: #f7f7f7;
	display: grid;
	gap: 14px;
	padding: 16px 20px;
}

.tg-choice-group,
.tg-choice-grid,
.tg-inline-control {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
}

.tg-choice-grid label,
.tg-choice-group label,
.tg-inline-control label,
.tg-prefix-control label {
	align-items: center;
	color: #444;
	display: inline-flex;
	font-size: 15px;
	gap: 8px;
	line-height: 1.45;
}

.tg-condition-table input[type="checkbox"],
.tg-condition-table input[type="radio"] {
	accent-color: #424242;
	height: 17px;
	width: 17px;
}

.tg-number-label {
	font-weight: 700;
}

.tg-number-label input,
.tg-prefix-control input {
	background: #fff;
	border: 1px solid #d5d5d5;
	color: #424242;
	font-size: 15px;
	min-height: 40px;
	padding: 0 10px;
}

.tg-number-label input {
	margin-left: 8px;
	width: 86px;
}

.tg-prefix-control {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
}

.tg-prefix-control input {
	width: 92px;
}

.tg-tool-actions {
	background: #fff;
	border-left: 1px solid #dedede;
	border-right: 1px solid #dedede;
	border-top: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	padding: 24px;
}

.tg-button {
	border: 1px solid transparent;
	cursor: pointer;
	font-size: 15px;
	font-weight: 800;
	min-height: 46px;
	padding: 0 18px;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tg-button:hover,
.tg-button:focus-visible {
	transform: translateY(-1px);
}

.tg-button--primary,
.tg-button--orange {
	background: #424242;
	color: #fff;
}

.tg-button--primary:hover,
.tg-button--primary:focus-visible,
.tg-button--orange:hover,
.tg-button--orange:focus-visible {
	background: #565656;
	color: #fff;
}

.tg-button--light {
	background: #fff;
	border-color: #d8d8d8;
	color: #424242;
}

.tg-button--light:hover,
.tg-button--light:focus-visible,
.tg-button--copy:hover,
.tg-button--copy:focus-visible {
	border-color: #424242;
	color: #424242;
}

.tg-button--dark {
	background: #565656;
	color: #fff;
}

.tg-button--dark:hover,
.tg-button--dark:focus-visible {
	background: #424242;
}

.tg-button--copy {
	background: #fff;
	border-color: #d8d8d8;
	color: #424242;
}

.tg-button:disabled {
	cursor: progress;
	opacity: 0.62;
	transform: none;
}

.tg-result-spacer {
	height: 34px;
}

.tg-work-panel + .tg-results-panel,
.tg-tool-actions + .tg-results-panel {
	margin-top: 28px;
}

.tg-work-panel {
	border-top: 0;
	padding: 24px;
}

.tg-panel-head {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.tg-panel-head h2 {
	font-size: 22px;
	letter-spacing: 0;
	line-height: 1.3;
	margin: 0;
}

.tg-textarea {
	background: #fbfbfb;
	border: 1px solid #dcdcdc;
	color: #424242;
	font: inherit;
	font-size: 16px;
	line-height: 1.75;
	min-height: 280px;
	padding: 16px;
	resize: vertical;
	width: 100%;
}

.tg-textarea:focus {
	border-color: #424242;
	box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
	outline: 0;
}

.tg-textarea--result {
	background: #fff;
	font-family: Consolas, "Courier New", monospace;
	min-height: 170px;
}

.tg-result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tg-metric-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-metric-card {
	background: #fafafa;
	border: 1px solid #e5e5e5;
	padding: 16px;
}

.tg-metric-card span,
.tg-metric-card strong {
	display: block;
}

.tg-metric-card span {
	color: #666;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 8px;
}

.tg-metric-card strong {
	color: #424242;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.tg-file-drop {
	align-items: center;
	background: #fafafa;
	border: 2px dashed #d6d6d6;
	color: #424242;
	cursor: pointer;
	display: grid;
	gap: 8px;
	justify-items: center;
	min-height: 160px;
	padding: 24px;
	text-align: center;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.tg-file-drop:hover,
.tg-file-drop:focus-within {
	background: #fff;
	border-color: #424242;
}

.tg-file-drop input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.tg-file-drop span {
	font-size: 17px;
	font-weight: 800;
}

.tg-file-drop small {
	color: #666;
	font-size: 13px;
	overflow-wrap: anywhere;
}

.tg-resize-controls {
	align-items: end;
	background: #f7f7f7;
	border: 1px solid #e6e6e6;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 18px;
	padding: 16px;
}

.tg-resize-controls .tg-number-label {
	align-items: flex-start;
	display: grid;
	gap: 8px;
}

.tg-resize-controls .tg-number-label input {
	margin-left: 0;
	width: 100%;
}

.tg-check-label {
	align-items: center;
	color: #444;
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	gap: 8px;
	grid-column: 1 / -1;
	line-height: 1.45;
}

.tg-check-label input {
	accent-color: #424242;
	height: 17px;
	width: 17px;
}

.tg-tool-actions--inside {
	border: 0;
	padding: 20px 0 0;
}

.tg-download-link {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	text-decoration: none;
}

.tg-download-link[hidden] {
	display: none;
}

.tg-preview-box {
	align-items: center;
	background: #fafafa;
	border: 1px solid #e5e5e5;
	color: #666;
	display: flex;
	justify-content: center;
	min-height: 260px;
	overflow: hidden;
	padding: 16px;
	text-align: center;
}

.tg-preview-box img {
	display: block;
	height: auto;
	max-height: 520px;
	max-width: 100%;
}

.tg-results-panel {
	border-top: 4px solid #424242;
	padding: 24px;
}

.tg-results-head {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 14px;
}

.tg-results-head h2 {
	font-size: 24px;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0;
}

.tg-status {
	color: #666;
	font-size: 14px;
	margin: 0 0 16px;
	min-height: 22px;
}

.tg-password-list {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-password-card {
	align-items: center;
	background: #fafafa;
	border: 1px solid #e5e5e5;
	color: #424242;
	cursor: pointer;
	display: grid;
	gap: 12px;
	grid-template-columns: 44px minmax(0, 1fr);
	min-height: 56px;
	padding: 10px 14px;
	text-align: left;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tg-password-card:hover,
.tg-password-card:focus-visible {
	background: #fff;
	border-color: #424242;
	transform: translateY(-1px);
}

.tg-password-card span {
	align-items: center;
	background: #424242;
	color: #fff;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.tg-password-card strong {
	font-family: Consolas, "Courier New", monospace;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.tg-info-section {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 24px;
}

.tg-info-section article {
	padding: 22px;
}

.tg-info-section h2 {
	border-left: 4px solid #424242;
	font-size: 19px;
	letter-spacing: 0;
	line-height: 1.35;
	margin: 0 0 10px;
	padding-left: 10px;
}

.tg-info-section p {
	color: #555;
	font-size: 15px;
	line-height: 1.8;
	margin: 0;
}

.tg-tool-sidebar {
	position: sticky;
	top: 24px;
}

.tg-tool-sidebar h2 {
	background: #424242;
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.35;
	margin: 0;
	padding: 14px 16px;
}

.tg-side-tool-list {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.tg-side-tool {
	align-items: center;
	background: #fff;
	border: 1px solid #eeeeee;
	color: #424242;
	display: grid;
	gap: 12px;
	grid-template-columns: 46px minmax(0, 1fr) 18px;
	min-height: 62px;
	padding: 10px 12px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tg-side-tool:hover,
.tg-side-tool:focus-visible,
.tg-side-tool.is-current {
	background: #f7f7f7;
	border-color: #424242;
	color: #424242;
	transform: translateX(2px);
}

.tg-side-tool__mark {
	align-items: center;
	background: #f2f2f2;
	border: 1px solid #e0e0e0;
	color: #424242;
	display: inline-flex;
	font-size: 16px;
	font-weight: 800;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.tg-side-tool__text {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.tg-side-tool__text strong {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.tg-side-tool__text small {
	color: #666;
	font-size: 12px;
	line-height: 1.35;
}

.tg-side-tool__arrow {
	color: #424242;
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
}

@media (max-width: 820px) {
	.tg-tool-layout {
		grid-template-columns: 1fr;
	}

	.tg-tool-sidebar {
		position: static;
	}

	.tg-condition-row {
		grid-template-columns: 1fr;
	}

	.tg-condition-head {
		border-bottom: 3px solid #fff;
		border-right: 0;
		padding: 12px 16px;
	}

	.tg-condition-body {
		padding: 14px 16px;
	}

	.tg-password-list,
	.tg-metric-grid,
	.tg-resize-controls,
	.tg-info-section {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.tg-tool-shell {
		padding: 0 16px;
	}

	.tg-tool-section {
		padding-top: 24px;
	}

	.tg-tool-title-card {
		grid-template-columns: 1fr;
		padding: 20px 16px;
		text-align: center;
	}

	.tg-tool-mark {
		margin: 0 auto;
	}

	.tg-tool-lead {
		margin-left: auto;
		margin-right: auto;
	}

	.tg-tool-actions,
	.tg-panel-head,
	.tg-results-head {
		align-items: stretch;
		flex-direction: column;
	}

	.tg-button {
		width: 100%;
	}

	.tg-number-label {
		align-items: flex-start;
		flex-direction: column;
	}

	.tg-number-label input {
		margin-left: 0;
		width: 100%;
	}
}

/* Minimal tool pages */
.toolgarage-tool-page {
	--tg-accent: #2563eb;
	--tg-accent-soft: #eff6ff;
	--tg-accent-border: #bfdbfe;
	--tg-password: #f97316;
	--tg-password-soft: #fff7ed;
	--tg-text: #16a34a;
	--tg-text-soft: #f0fdf4;
	--tg-image: #0891b2;
	--tg-image-soft: #ecfeff;
	--tg-convert: #7c3aed;
	--tg-convert-soft: #f5f3ff;
	color: #111;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
}

.tg-tool-shell {
	max-width: 1120px;
	padding: 0 24px;
}

.tg-tool-layout {
	gap: 28px;
	grid-template-columns: minmax(0, 740px) 300px;
}

.tg-tool-section {
	padding: 44px 0 80px;
}

.tg-tool-kicker,
.tg-section-kicker {
	color: var(--tg-accent);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	margin-bottom: 9px;
	text-transform: uppercase;
}

.tg-tool-title-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px 8px 0 0;
	border-top: 1px solid #e8e8e8;
	gap: 16px;
	grid-template-columns: 42px 1fr;
	padding: 24px;
}

.tg-tool-mark {
	background: var(--tg-accent-soft);
	border: 1px solid var(--tg-accent-border);
	border-radius: 8px;
	color: var(--tg-accent);
	font-size: 13px;
	font-weight: 500;
	height: 42px;
	width: 42px;
}

.tg-tool-mark img {
	display: block;
	height: 24px;
	width: 24px;
}

.tg-tool-mark::before {
	content: none;
}

.tg-tool-title-card h1,
.tg-panel-head h2,
.tg-results-head h2,
.tg-info-section h2 {
	color: #111;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.tg-tool-title-card h1 {
	font-size: 24px;
	line-height: 1.45;
}

.tg-tool-lead {
	color: #666;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.8;
	margin-top: 14px;
}

.tg-condition-table,
.tg-results-panel,
.tg-work-panel,
.tg-info-section article {
	background: #fff;
	border-color: #e8e8e8;
	box-shadow: none;
}

.tg-condition-table {
	border-top: 0;
}

.tg-condition-row {
	min-height: 64px;
}

.tg-condition-row + .tg-condition-row {
	border-top: 1px solid #f0f0f0;
}

.tg-condition-head {
	background: #fafafa;
	border-right: 1px solid #f0f0f0;
	color: #111;
	font-weight: 500;
}

.tg-condition-body {
	background: #fff;
}

.tg-choice-grid label,
.tg-choice-group label,
.tg-inline-control label,
.tg-prefix-control label,
.tg-check-label {
	color: #444;
	font-size: 14px;
	font-weight: 400;
}

.tg-condition-table input[type="checkbox"],
.tg-condition-table input[type="radio"],
.tg-check-label input {
	accent-color: #111;
}

.tg-number-label {
	font-weight: 500;
}

.tg-number-label input,
.tg-prefix-control input,
.tg-textarea {
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	color: #111;
}

.tg-number-label input:focus,
.tg-prefix-control input:focus,
.tg-textarea:focus {
	background: #fff;
	border-color: var(--tg-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	outline: 0;
}

.tg-tool-actions {
	background: #fff;
	border-color: #e8e8e8;
	padding: 22px;
}

.tg-button {
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	min-height: 42px;
	padding: 0 16px;
	transform: none;
}

.tg-button:hover,
.tg-button:focus-visible {
	transform: none;
}

.tg-button--primary,
.tg-button--orange {
	background: #111;
	border-color: #111;
	color: #fff;
}

.tg-button--primary:hover,
.tg-button--primary:focus-visible,
.tg-button--orange:hover,
.tg-button--orange:focus-visible {
	background: #333;
	border-color: #333;
	color: #fff;
}

.tg-button--light,
.tg-button--copy {
	background: #fff;
	border-color: #e8e8e8;
	color: #111;
}

.tg-button--light:hover,
.tg-button--light:focus-visible,
.tg-button--copy:hover,
.tg-button--copy:focus-visible {
	background: #f5f5f5;
	border-color: #d8d8d8;
	color: #111;
}

.tg-button--dark {
	background: #f5f5f5;
	border-color: #e8e8e8;
	color: #111;
}

.tg-button--dark:hover,
.tg-button--dark:focus-visible {
	background: #ededed;
}

.tg-work-panel {
	border-radius: 0 0 8px 8px;
	padding: 24px;
}

.tg-panel-head {
	margin-bottom: 14px;
}

.tg-panel-head h2,
.tg-results-head h2 {
	font-size: 22px;
}

.tg-textarea {
	font-size: 15px;
	min-height: 250px;
}

.tg-metric-card,
.tg-password-card,
.tg-file-drop,
.tg-resize-controls,
.tg-preview-box {
	background: #f5f5f5;
	border-color: #e8e8e8;
	border-radius: 8px;
}

.tg-metric-card strong,
.tg-password-card strong {
	color: #111;
	font-weight: 500;
}

.tg-file-drop:hover,
.tg-file-drop:focus-within,
.tg-password-card:hover,
.tg-password-card:focus-visible {
	background: #fff;
	border-color: #999;
	transform: none;
}

.tg-file-drop span {
	font-weight: 500;
}

.tg-results-panel {
	border-radius: 8px;
	border-top: 1px solid #e8e8e8;
	padding: 24px;
}

.tg-tool-actions + .tg-results-panel,
.tg-work-panel + .tg-results-panel {
	margin-top: 24px;
}

.tg-password-card {
	grid-template-columns: 38px minmax(0, 1fr);
}

.tg-password-card span {
	background: var(--tg-accent);
	border-radius: 8px;
	font-weight: 500;
	height: 32px;
	width: 32px;
}

.tg-info-section {
	gap: 12px;
	margin-top: 24px;
}

.tg-info-section article {
	border-radius: 8px;
	padding: 22px;
}

.tg-info-section h2 {
	border-left: 0;
	font-size: 18px;
	margin-bottom: 10px;
	padding-left: 0;
}

.tg-info-section p {
	color: #666;
	font-size: 14px;
	line-height: 1.8;
}

.tg-static-content {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 0 0 8px 8px;
	border-top: 0;
	color: #333;
	font-size: 15px;
	line-height: 1.9;
	padding: 28px;
}

.tg-static-content > *:first-child {
	margin-top: 0;
}

.tg-static-content > *:last-child {
	margin-bottom: 0;
}

.tg-static-content h2 {
	border-top: 1px solid #f0f0f0;
	color: #111;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.45;
	margin: 28px 0 10px;
	padding-top: 24px;
}

.tg-static-content h2:first-child {
	border-top: 0;
	margin-top: 0;
	padding-top: 0;
}

.tg-static-content p,
.tg-static-content li {
	color: #555;
}

.tg-static-content p {
	margin: 0 0 16px;
}

.tg-static-content ul,
.tg-static-content ol {
	margin: 0 0 18px 1.25em;
	padding: 0;
}

.tg-static-content a {
	color: #111;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tg-sitemap-content {
	display: grid;
	gap: 30px;
}

.tg-sitemap-section h2 {
	margin-bottom: 14px;
}

.tg-sitemap-list {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-sitemap-item {
	align-items: center;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	color: #111;
	display: grid;
	gap: 12px;
	grid-template-columns: 34px minmax(0, 1fr);
	padding: 12px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.tg-sitemap-item:hover,
.tg-sitemap-item:focus-visible {
	background: #f8f8f8;
	border-color: #d8d8d8;
	color: #111;
}

.tg-sitemap-item__mark {
	align-items: center;
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	color: #111;
	display: inline-flex;
	font-size: 13px;
	font-weight: 500;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.tg-sitemap-item strong,
.tg-sitemap-item small {
	display: block;
}

.tg-sitemap-item strong {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.tg-sitemap-item small {
	color: #888;
	font-size: 12px;
	line-height: 1.5;
	margin-top: 2px;
}

.tg-sitemap-item[data-cat="web"] .tg-sitemap-item__mark {
	background: var(--tg-password-soft);
	color: var(--tg-password);
}

.tg-sitemap-item[data-cat="text"] .tg-sitemap-item__mark {
	background: var(--tg-text-soft);
	color: var(--tg-text);
}

.tg-sitemap-item[data-cat="image"] .tg-sitemap-item__mark {
	background: var(--tg-image-soft);
	color: var(--tg-image);
}

.tg-sitemap-item[data-cat="convert"] .tg-sitemap-item__mark {
	background: var(--tg-convert-soft);
	color: var(--tg-convert);
}

.tg-sitemap-item[data-cat="site"] .tg-sitemap-item__mark {
	background: #f8fafc;
	color: #475569;
}

.tg-tool-sidebar h2 {
	background: transparent;
	border-bottom: 1px solid #e8e8e8;
	color: #888;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	padding: 0 0 12px;
	text-transform: uppercase;
}

.tg-sidebar-block + .tg-sidebar-block {
	margin-top: 30px;
}

.tg-side-empty {
	background: #f8f8f8;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	color: #888;
	font-size: 13px;
	line-height: 1.7;
	margin: 12px 0 0;
	padding: 14px;
}

.tg-side-tool-list {
	gap: 0;
	margin-top: 0;
}

.tg-side-tool {
	background: #fff;
	border: 0;
	border-bottom: 1px solid #f0f0f0;
	color: #111;
	grid-template-columns: 36px minmax(0, 1fr) 16px;
	min-height: 62px;
	padding: 13px 0;
}

.tg-side-tool:hover,
.tg-side-tool:focus-visible {
	background: #f5f5f5;
	border-color: #f0f0f0;
	color: #111;
	transform: none;
}

.tg-side-tool.is-current {
	background: #f5f5f5;
	border-color: #e8e8e8;
	border-radius: 8px;
	color: #111;
	margin: 10px 0;
	padding-left: 12px;
	padding-right: 12px;
	transform: none;
}

.tg-side-tool__mark {
	background: var(--side-soft, #f5f5f5);
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	color: var(--side-color, #111);
	font-size: 13px;
	font-weight: 500;
	height: 32px;
	width: 32px;
}

.tg-side-tool.is-current .tg-side-tool__mark {
	background: var(--side-color, #111);
	border-color: var(--side-color, #111);
	color: #fff;
}

.tg-side-tool__text strong {
	font-size: 14px;
	font-weight: 500;
}

.tg-side-tool__text small,
.tg-status,
.tg-file-drop small,
.tg-preview-box {
	color: #888;
}

.tg-side-tool.is-current .tg-side-tool__text small {
	color: #666;
}

.tg-side-tool.is-current .tg-side-tool__arrow {
	color: #111;
}

.tg-side-tool__arrow {
	color: #aaa;
	font-size: 22px;
	font-weight: 400;
}

.tg-side-tool[href*="password-generator"] {
	--side-color: var(--tg-password);
	--side-soft: var(--tg-password-soft);
}

.tg-side-tool[href*="text-counter"] {
	--side-color: var(--tg-text);
	--side-soft: var(--tg-text-soft);
}

.tg-side-tool[href*="heic-to-jpeg"],
.tg-side-tool[href*="image-resize"] {
	--side-color: var(--tg-image);
	--side-soft: var(--tg-image-soft);
}

.tg-side-tool[href*="base64"] {
	--side-color: var(--tg-convert);
	--side-soft: var(--tg-convert-soft);
}

body:has([data-password-generator]) .toolgarage-tool-page {
	--tg-accent: var(--tg-password);
	--tg-accent-soft: var(--tg-password-soft);
	--tg-accent-border: #fed7aa;
}

/* Password generator: TOOLGARAGE workspace layout */
.tg-password-tool {
	display: grid;
	gap: 18px;
}

.tg-password-hero {
	align-items: flex-start;
	border-radius: 10px;
	border-top: 1px solid #e8e8e8;
}

.tg-password-hero .tg-tool-mark {
	margin-top: 2px;
}

.tg-password-workspace {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
	gap: 18px;
	align-items: start;
}

.tg-password-settings,
.tg-password-output {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
}

.tg-password-settings {
	display: grid;
	gap: 0;
	overflow: hidden;
}

.tg-setting-panel {
	display: grid;
	gap: 14px;
	padding: 18px;
	border-bottom: 1px solid #ededed;
}

.tg-setting-panel:last-child {
	border-bottom: 0;
}

.tg-setting-panel--preset {
	background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.tg-setting-head h2,
.tg-output-head h2 {
	margin: 0;
	color: #111;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.tg-setting-head p {
	margin: 6px 0 0;
	color: #777;
	font-size: 13px;
	line-height: 1.7;
}

.tg-segment-group {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	padding: 4px;
	background: #f5f5f5;
	border: 1px solid #ececec;
	border-radius: 10px;
}

.tg-segment,
.tg-toggle-chip,
.tg-mini-options label {
	position: relative;
	cursor: pointer;
	user-select: none;
}

.tg-segment input,
.tg-toggle-chip input,
.tg-mini-options input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tg-segment span {
	display: grid;
	min-height: 38px;
	place-items: center;
	border-radius: 8px;
	color: #666;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tg-segment input:checked + span {
	background: #2f3135;
	color: #fff;
	box-shadow: 0 1px 3px rgba(17, 17, 17, 0.14);
}

.tg-number-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.tg-number-card {
	display: grid;
	gap: 10px;
	padding: 14px;
	background: #f8f8f8;
	border: 1px solid #ececec;
	border-radius: 10px;
}

.tg-number-card > label {
	color: #555;
	font-size: 13px;
	font-weight: 500;
}

.tg-number-card input[type="number"],
.tg-prefix-card input[type="text"] {
	width: 100%;
	min-height: 42px;
	background: #fff;
	border: 1px solid #dedede;
	border-radius: 8px;
	color: #111;
	font-size: 18px;
	font-weight: 500;
}

.tg-number-card input[type="number"]:focus,
.tg-prefix-card input[type="text"]:focus {
	border-color: #999;
	box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
	outline: none;
}

.tg-mini-options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tg-mini-options span {
	display: grid;
	min-width: 42px;
	min-height: 30px;
	place-items: center;
	background: #fff;
	border: 1px solid #dedede;
	border-radius: 999px;
	color: #666;
	font-size: 12px;
	font-weight: 500;
}

.tg-mini-options input:checked + span {
	background: #2f3135;
	border-color: #2f3135;
	color: #fff;
}

.tg-toggle-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.tg-toggle-chip span {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 0 12px 0 38px;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	color: #444;
	font-size: 14px;
	font-weight: 500;
	position: relative;
}

.tg-toggle-chip span::before,
.tg-check-line span::before {
	content: "";
	position: absolute;
	left: 13px;
	top: 50%;
	width: 14px;
	height: 14px;
	border: 1px solid #bbb;
	border-radius: 4px;
	transform: translateY(-50%);
	background: #fff;
}

.tg-toggle-chip input[type="radio"] + span::before {
	border-radius: 50%;
}

.tg-toggle-chip input:checked + span {
	background: #fff7ed;
	border-color: #fed7aa;
	color: #111;
}

.tg-toggle-chip input:checked + span::before,
.tg-check-line input:checked + span::before {
	background: #f97316;
	border-color: #f97316;
	box-shadow: inset 0 0 0 3px #fff;
}

.tg-prefix-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 90px;
	gap: 10px;
	align-items: center;
	padding: 12px;
	background: #f8f8f8;
	border: 1px solid #ececec;
	border-radius: 10px;
}

.tg-check-line {
	display: flex;
	align-items: center;
	min-height: 28px;
	color: #444;
	font-size: 14px;
	font-weight: 500;
	position: relative;
	cursor: pointer;
}

.tg-check-line input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tg-check-line span {
	position: relative;
	display: block;
	padding-left: 30px;
	line-height: 1.6;
}

.tg-check-line small {
	display: block;
	color: #888;
	font-size: 12px;
	font-weight: 400;
}

.tg-option-stack {
	display: grid;
	gap: 10px;
}

.tg-password-output {
	position: sticky;
	top: 92px;
	display: grid;
	gap: 14px;
	padding: 18px;
}

.tg-output-head {
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
	border-bottom: 1px solid #ededed;
}

.tg-tool-actions--compact {
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	border: 0;
}

.tg-password-list--workspace {
	grid-template-columns: 1fr;
	gap: 8px;
	max-height: 560px;
	overflow: auto;
	padding-right: 4px;
}

.tg-password-list--workspace .tg-password-card {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	min-height: 54px;
	padding: 10px 12px;
	text-align: left;
}

.tg-password-card em {
	color: #999;
	font-size: 12px;
	font-style: normal;
	white-space: nowrap;
}

.tg-password-notes {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
	.tg-password-workspace {
		grid-template-columns: 1fr;
	}

	.tg-password-output {
		position: static;
	}
}

@media (max-width: 640px) {
	.tg-password-workspace,
	.tg-password-tool {
		gap: 14px;
	}

	.tg-setting-panel,
	.tg-password-output {
		padding: 14px;
	}

	.tg-number-grid,
	.tg-toggle-grid,
	.tg-password-notes {
		grid-template-columns: 1fr;
	}

	.tg-segment-group {
		grid-template-columns: 1fr;
	}

	.tg-prefix-card {
		grid-template-columns: 1fr;
	}

	.tg-output-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.tg-password-list--workspace .tg-password-card {
		grid-template-columns: 34px minmax(0, 1fr);
	}

	.tg-password-card em {
		grid-column: 2;
	}
}

body:has([data-text-counter]) .toolgarage-tool-page {
	--tg-accent: var(--tg-text);
	--tg-accent-soft: var(--tg-text-soft);
	--tg-accent-border: #bbf7d0;
}

body:has([data-heic-converter]) .toolgarage-tool-page,
body:has([data-image-resize]) .toolgarage-tool-page {
	--tg-accent: var(--tg-image);
	--tg-accent-soft: var(--tg-image-soft);
	--tg-accent-border: #a5f3fc;
}

body:has([data-base64-tool]) .toolgarage-tool-page {
	--tg-accent: var(--tg-convert);
	--tg-accent-soft: var(--tg-convert-soft);
	--tg-accent-border: #ddd6fe;
}

body:has([data-static-page]) .toolgarage-tool-page {
	--tg-accent: #475569;
	--tg-accent-soft: #f8fafc;
	--tg-accent-border: #e2e8f0;
}

@media (max-width: 820px) {
	.tg-condition-head {
		border-bottom: 1px solid #f0f0f0;
		border-right: 0;
	}

	.tg-tool-sidebar {
		border-top: 1px solid #e8e8e8;
		padding-top: 24px;
	}
}

@media (max-width: 620px) {
	.tg-tool-shell {
		padding: 0 16px;
	}

	.tg-tool-section {
		padding: 28px 0 56px;
	}

	.tg-tool-title-card {
		grid-template-columns: 1fr;
		padding: 20px;
		text-align: left;
	}

	.tg-tool-mark {
		margin: 0;
	}

	.tg-tool-title-card h1 {
		font-size: 22px;
	}

	.tg-sitemap-list {
		grid-template-columns: 1fr;
	}
}
