/**
 * Derpixon Discovery Hub - Interactive Tools & Catalogue CSS
 * Version: 1.0.0
 * Pure Vanilla CSS - Zero external dependencies
 */

/* ==========================================================================
   Work Finder UI
   ========================================================================== */
.dh-work-finder {
	margin: 2rem 0;
	font-family: inherit;
}

.dh-finder-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	background: #ffffff;
	padding: 1.25rem;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	margin-bottom: 1.5rem;
}

.dh-search-box {
	flex: 1 1 260px;
	min-width: 0;
	max-width: 100%;
}

.dh-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.dh-search-icon {
	position: absolute;
	left: 14px;
	color: #94a3b8;
	pointer-events: none;
}

.dh-input-wrapper input[type="search"] {
	width: 100%;
	padding: 0.75rem 2.5rem 0.75rem 2.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.95rem;
	background: #f8fafc;
	color: #0f172a;
	transition: all 0.2s ease;
}

.dh-input-wrapper input[type="search"]:focus {
	outline: none;
	border-color: #4f46e5;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.dh-clear-btn {
	position: absolute;
	right: 10px;
	background: none;
	border: none;
	font-size: 1.25rem;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px 8px;
	display: none;
}

.dh-filter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.dh-select-wrapper select {
	padding: 0.65rem 2rem 0.65rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.9rem;
	background-color: #f8fafc;
	color: #1e293b;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: calc(100% - 10px) center;
	transition: border-color 0.2s ease;
}

.dh-select-wrapper select:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.dh-btn-reset-secondary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0.65rem 1rem;
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dh-btn-reset-secondary:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Status Bar */
.dh-finder-status-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0.5rem 1rem;
	font-size: 0.9rem;
	color: #64748b;
}

.dh-finder-loader {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #4f46e5;
	font-weight: 500;
}

.dh-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #e0e7ff;
	border-top-color: #4f46e5;
	border-radius: 50%;
	animation: dh-spin 0.6s linear infinite;
}

@keyframes dh-spin {
	to { transform: rotate(360deg); }
}

/* Grid & Cards */
.dh-works-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.dh-work-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dh-work-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
	border-color: #cbd5e1;
}

.dh-card-media {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
	background: #f1f5f9;
	overflow: hidden;
}

.dh-card-media .dh-card-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.dh-work-card:hover .dh-card-img {
	transform: scale(1.03);
}

.dh-card-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	color: #64748b;
	gap: 8px;
}

.dh-placeholder-badge {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #475569;
}

.dh-card-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	z-index: 2;
}

.dh-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.dh-badge-featured {
	background: #4f46e5;
	color: #ffffff;
}

.dh-badge-rating {
	background: rgba(15, 23, 42, 0.85);
	color: #ffffff;
	backdrop-filter: blur(4px);
}

.dh-badge-rating.mature-18-plus,
.dh-badge-rating.mature {
	background: #e11d48;
	color: #ffffff;
}

.dh-card-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.dh-card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	color: #64748b;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.dh-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.5rem 0;
}

.dh-card-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.15s ease;
}

.dh-card-title a:hover {
	color: #4f46e5;
}

.dh-card-desc {
	font-size: 0.875rem;
	color: #475569;
	line-height: 1.5;
	margin: 0 0 1.25rem 0;
	flex-grow: 1;
}

.dh-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 0.75rem;
	border-top: 1px solid #f1f5f9;
}

.dh-btn-details {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #4f46e5;
	text-decoration: none;
	transition: gap 0.2s ease, color 0.2s ease;
}

.dh-btn-details:hover {
	color: #3730a3;
	gap: 9px;
}

.dh-btn-source {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	font-weight: 500;
	color: #64748b;
	background: #f1f5f9;
	padding: 4px 8px;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.15s ease;
}

.dh-btn-source:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Empty State */
.dh-finder-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 4rem 1.5rem;
	background: #ffffff;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
}

.dh-empty-icon {
	color: #94a3b8;
	margin-bottom: 1rem;
}

.dh-finder-empty h4 {
	font-size: 1.25rem;
	color: #1e293b;
	margin: 0 0 0.5rem 0;
}

.dh-finder-empty p {
	color: #64748b;
	font-size: 0.95rem;
	max-width: 480px;
	margin: 0 auto 1.5rem;
}

.dh-btn-reset {
	display: inline-block;
	background: #4f46e5;
	color: #ffffff;
	border: none;
	padding: 0.65rem 1.25rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.dh-btn-reset:hover {
	background: #4338ca;
}

/* Pagination */
.dh-finder-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 2rem;
}

.dh-page-btn {
	padding: 0.5rem 0.85rem;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	color: #1e293b;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dh-page-btn:hover {
	background: #f8fafc;
	border-color: #94a3b8;
}

.dh-page-btn.is-active {
	background: #4f46e5;
	color: #ffffff;
	border-color: #4f46e5;
	cursor: default;
}

.dh-page-dots {
	padding: 0 4px;
	color: #94a3b8;
}

/* ==========================================================================
   Tool Shared Box Layout
   ========================================================================== */
.dh-tool-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 2rem;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
	margin: 2rem 0;
	font-family: inherit;
}

.dh-tool-header {
	margin-bottom: 2rem;
	text-align: left;
}

.dh-tool-badge {
	display: inline-block;
	background: #eef2ff;
	color: #4f46e5;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 10px;
	border-radius: 9999px;
	margin-bottom: 0.75rem;
}

.dh-tool-title {
	font-size: 1.75rem;
	color: #0f172a;
	font-weight: 800;
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.02em;
}

.dh-tool-subtitle {
	font-size: 1rem;
	color: #475569;
	line-height: 1.6;
	margin: 0;
	max-width: 780px;
}

/* ==========================================================================
   Tool A: Frame-Rate Calculator
   ========================================================================== */
.dh-calc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

@media (max-width: 860px) {
	.dh-calc-grid {
		grid-template-columns: 1fr;
	}
}

.dh-calc-inputs {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.dh-field-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 0.5rem;
}

.dh-toggle-pill-group {
	display: flex;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 10px;
	gap: 4px;
}

.dh-pill-btn {
	flex: 1;
	padding: 0.6rem 1rem;
	border: none;
	background: transparent;
	color: #64748b;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dh-pill-btn.is-active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dh-fps-buttons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
	gap: 8px;
}

.dh-fps-btn {
	padding: 0.6rem 0.5rem;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #1e293b;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.dh-fps-btn small {
	font-size: 0.65rem;
	font-weight: 500;
	color: #64748b;
}

.dh-fps-btn.is-active {
	background: #4f46e5;
	color: #ffffff;
	border-color: #4f46e5;
}

.dh-fps-btn.is-active small {
	color: #e0e7ff;
}

.dh-duration-inputs {
	display: flex;
	gap: 12px;
}

.dh-input-unit {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
}

.dh-text-input {
	width: 100%;
	padding: 0.75rem 3rem 0.75rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 1rem;
	background: #f8fafc;
	color: #0f172a;
	font-weight: 600;
}

.dh-text-input:focus {
	outline: none;
	border-color: #4f46e5;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.dh-unit-tag {
	position: absolute;
	right: 12px;
	font-size: 0.85rem;
	color: #94a3b8;
	font-weight: 600;
}

.dh-quick-presets {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding-top: 0.5rem;
}

.dh-presets-label {
	font-size: 0.8rem;
	color: #64748b;
	margin-right: 4px;
}

.dh-preset-link {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 0.75rem;
	padding: 3px 8px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.15s ease;
}

.dh-preset-link:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Results Display */
.dh-calc-results {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.dh-result-hero-card {
	background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
	color: #ffffff;
	padding: 1.75rem;
	border-radius: 14px;
	text-align: center;
	box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.dh-result-label {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #c7d2fe;
	margin-bottom: 0.5rem;
}

.dh-result-hero-val {
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 0.5rem;
	letter-spacing: -0.03em;
}

.dh-result-timecode {
	display: inline-block;
	background: rgba(0, 0, 0, 0.25);
	padding: 4px 12px;
	border-radius: 9999px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.85rem;
	color: #e0e7ff;
}

.dh-result-breakdown {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.25rem;
}

.dh-breakdown-heading {
	font-size: 0.875rem;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 1rem 0;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.dh-breakdown-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

@media (max-width: 500px) {
	.dh-breakdown-grid {
		grid-template-columns: 1fr;
	}
}

.dh-breakdown-col {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 0.85rem;
	text-align: center;
}

.dh-breakdown-col.is-standard {
	border-color: #6366f1;
	background: #f5f3ff;
}

.dh-step-title {
	font-size: 0.75rem;
	font-weight: 700;
	color: #475569;
	margin-bottom: 4px;
}

.dh-breakdown-col.is-standard .dh-step-title {
	color: #4f46e5;
}

.dh-step-frames {
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 4px;
}

.dh-step-desc {
	font-size: 0.7rem;
	color: #64748b;
	line-height: 1.3;
}

.dh-formula-box {
	background: #f1f5f9;
	border-radius: 8px;
	padding: 0.85rem 1rem;
	font-size: 0.8rem;
	color: #334155;
}

.dh-formula-title {
	font-weight: 700;
	margin-bottom: 4px;
	color: #0f172a;
}

.dh-formula-box code {
	display: block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.8rem;
	color: #4338ca;
	word-break: break-all;
}

/* ==========================================================================
   Tool B: Storyboard Planner
   ========================================================================== */
.dh-sb-action-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}

.dh-sb-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.dh-stat-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 0.85rem;
	color: #475569;
}

.dh-stat-pill.is-highlight {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #3730a3;
}

.dh-sb-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.dh-btn-add-scene {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #4f46e5;
	color: #ffffff;
	border: none;
	padding: 0.6rem 1.15rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.dh-btn-add-scene:hover {
	background: #4338ca;
}

.dh-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	color: #334155;
	border: 1px solid #cbd5e1;
	padding: 0.6rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dh-btn-secondary:hover {
	background: #f8fafc;
	border-color: #94a3b8;
	color: #0f172a;
}

.dh-btn-text {
	background: none;
	border: none;
	color: #ef4444;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0.6rem 0.75rem;
}

.dh-privacy-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	color: #64748b;
	background: #f1f5f9;
	padding: 8px 12px;
	border-radius: 8px;
	margin-bottom: 1.5rem;
}

.dh-scenes-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.dh-scene-card {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	padding: 1.25rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	transition: border-color 0.15s ease;
}

.dh-scene-card:hover {
	border-color: #94a3b8;
}

.dh-scene-top-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #f1f5f9;
}

.dh-scene-badge-num {
	display: inline-flex;
	align-items: center;
	background: #0f172a;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 6px;
	text-transform: uppercase;
}

.dh-scene-top-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.dh-scene-arrow-btn,
.dh-scene-del-btn {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #475569;
	border-radius: 6px;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 0.8rem;
	transition: all 0.15s ease;
}

.dh-scene-arrow-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.dh-scene-del-btn {
	color: #ef4444;
}

.dh-scene-del-btn:hover {
	background: #fee2e2;
	border-color: #fca5a5;
}

.dh-scene-inputs-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 12px;
}

@media (max-width: 768px) {
	.dh-scene-inputs-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.dh-scene-inputs-grid {
		grid-template-columns: 1fr;
	}
}

.dh-scene-input-group label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #475569;
	margin-bottom: 4px;
}

.dh-scene-input-group input,
.dh-scene-input-group select,
.dh-scene-input-group textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 0.875rem;
	background: #f8fafc;
	color: #0f172a;
}

.dh-scene-input-group textarea {
	resize: vertical;
	min-height: 60px;
}

.dh-scene-text-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 600px) {
	.dh-scene-text-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Tool C: Animation Glossary
   ========================================================================== */
.dh-glossary-controls {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.dh-glossary-search {
	position: relative;
	display: flex;
	align-items: center;
}

.dh-glossary-search svg {
	position: absolute;
	left: 14px;
	color: #94a3b8;
}

.dh-glossary-search input {
	width: 100%;
	padding: 0.75rem 1rem 0.75rem 2.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 0.95rem;
	background: #f8fafc;
	color: #0f172a;
}

.dh-glossary-search input:focus {
	outline: none;
	border-color: #4f46e5;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.dh-glossary-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dh-glossary-tab {
	padding: 0.5rem 1rem;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #475569;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dh-glossary-tab.is-active {
	background: #4f46e5;
	color: #ffffff;
	border-color: #4f46e5;
}

.dh-glossary-status {
	font-size: 0.85rem;
	color: #64748b;
	margin-bottom: 1rem;
	font-weight: 500;
}

.dh-glossary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.dh-glossary-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.25rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dh-glossary-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	border-color: #cbd5e1;
}

.dh-term-header {
	margin-bottom: 0.5rem;
}

.dh-term-tag {
	display: inline-block;
	background: #eef2ff;
	color: #4f46e5;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.dh-term-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.dh-term-desc {
	font-size: 0.875rem;
	color: #475569;
	line-height: 1.55;
	margin: 0;
}

/* ==========================================================================
   Tool D: Official Link Directory
   ========================================================================== */
.dh-directory-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-left: 4px solid #4f46e5;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	margin-bottom: 2rem;
	font-size: 0.875rem;
	color: #334155;
	line-height: 1.5;
}

.dh-alert-icon {
	color: #4f46e5;
	flex-shrink: 0;
	margin-top: 2px;
}

.dh-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.5rem;
}

.dh-dir-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
	transition: all 0.2s ease;
}

.dh-dir-card:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
}

.dh-dir-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.dh-dir-platform-badge {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dh-platform-name {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #64748b;
}

.dh-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	color: #15803d;
	background: #dcfce7;
	padding: 2px 6px;
	border-radius: 9999px;
}

.dh-status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #16a34a;
}

.dh-verified-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	color: #2563eb;
	background: #eff6ff;
	padding: 2px 6px;
	border-radius: 4px;
}

.dh-dir-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 4px 0;
}

.dh-dir-type {
	font-size: 0.8rem;
	color: #4f46e5;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.dh-dir-notes {
	font-size: 0.875rem;
	color: #475569;
	line-height: 1.5;
	margin: 0 0 1.25rem 0;
	flex-grow: 1;
}

.dh-dir-footer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 1rem;
	border-top: 1px solid #f1f5f9;
}

.dh-dir-vdate {
	font-size: 0.75rem;
	color: #94a3b8;
}

.dh-dir-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #0f172a;
	color: #ffffff;
	padding: 0.65rem 1rem;
	border-radius: 8px;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background 0.15s ease;
}

.dh-dir-cta:hover {
	background: #4f46e5;
}

/* ==========================================================================
   Tool E: Animation Checklist
   ========================================================================== */
.dh-checklist-progress-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
}

.dh-progress-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
}

.dh-progress-label {
	color: #475569;
	font-weight: 500;
}

.dh-progress-text {
	color: #4f46e5;
	font-weight: 700;
}

.dh-progress-track {
	width: 100%;
	height: 10px;
	background: #e2e8f0;
	border-radius: 9999px;
	overflow: hidden;
	margin-bottom: 1rem;
}

.dh-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #4f46e5, #06b6d4);
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dh-progress-controls {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.dh-checklist-groups {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.dh-group-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.85rem 0;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid #e2e8f0;
}

.dh-checklist-items {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dh-check-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 0.85rem 1rem;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dh-check-item:hover {
	border-color: #94a3b8;
	background: #fafafa;
}

.dh-study-checkbox {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: #4f46e5;
	cursor: pointer;
	flex-shrink: 0;
}

.dh-check-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 3px;
}

.dh-check-desc {
	font-size: 0.85rem;
	color: #64748b;
	line-height: 1.5;
	margin: 0;
}

.dh-check-item:has(input:checked) {
	background: #f5f3ff;
	border-color: #c7d2fe;
}

.dh-check-item:has(input:checked) .dh-check-title {
	color: #4f46e5;
	text-decoration: line-through;
}

/* Print Stylesheet */
@media print {
	.dh-sb-buttons,
	.dh-progress-controls,
	.dh-privacy-notice,
	.dh-scene-arrow-btn,
	.dh-scene-del-btn,
	.dh-btn-add-scene {
		display: none !important;
	}

	.dh-tool-box {
		box-shadow: none !important;
		border: 1px solid #000 !important;
		padding: 1rem !important;
	}
}
