/* --- GDZ AI --- */
.gdzai,
.gdzai-answer {
	--gdzai-accent: #f5c84c;
	--gdzai-accent-dark: #e0b53f;
	--gdzai-blue: #4f92ff;
	--gdzai-border: #e3e8ef;
	--gdzai-muted: #6b7785;
	--gdzai-soft: #f7f9fc;
}
.gdzai .title {
	margin-left: 0;
	font-weight: 700;
}
.gdzai-hero {
	margin-bottom: 16px;
}
.gdzai-lead {
	margin: 8px 0 12px 0;
	color: #3a4653;
	line-height: 1.5;
}
.gdzai-meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.gdzai-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef4ff;
	color: #2f5fb3;
	font-size: 12px;
}
.gdzai-card {
	background: #fff;
	border: 1px solid var(--gdzai-border);
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 8px 18px rgba(28, 44, 68, 0.06);
}
.gdzai-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: start;
}
.gdzai-label {
	display: block;
	font-weight: 600;
	margin: 12px 0 8px 0;
}
.gdzai textarea {
	width: 100%;
	min-height: 140px;
	padding: 12px;
	border: 1px solid #d7dee8;
	border-radius: 10px;
	background: #fff;
	box-sizing: border-box;
	font-size: 14px;
}
.gdzai-hint {
	margin-top: 6px;
	font-size: 12px;
	color: var(--gdzai-muted);
}
.gdzai-upload {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px dashed #a7c5ff;
	border-radius: 12px;
	padding: 14px;
	background: #eaf3ff;
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	min-width: 0;
}
.gdzai-upload input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}
.gdzai-upload-btn {
	background: #3f88ff;
	color: #fff;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 14px;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	pointer-events: none;
	max-width: 100%;
	min-width: 0;
	flex: 0 1 auto;
	box-sizing: border-box;
	justify-content: center;
	text-align: center;
}
.gdzai-upload-name {
	color: #2a2f36;
	font-size: 14px;
	word-break: break-word;
	flex: 1 1 100%;
	max-width: 100%;
}
.gdzai-preview-wrap {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gdzai-preview-wrap[hidden] {
	display: none;
}
.gdzai-preview {
	position: relative;
	display: inline-block;
	max-width: 320px;
}
.gdzai-preview img {
	display: block;
	max-width: 100%;
	border-radius: 8px;
	border: 1px solid #e2e7ee;
	background: #fff;
}
.gdzai-preview-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	background: rgba(15, 23, 42, 0.75);
	color: #fff;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
}
.gdzai-preview-change {
	align-self: flex-start;
}
.gdzai-cropper {
	margin-top: 12px;
	padding: 12px;
	border-radius: 0;
	border: 1px solid #d9e2f2;
	background: #f6f8fc;
}
.gdzai-cropper-head {
	font-weight: 600;
	margin-bottom: 4px;
}
.gdzai-cropper-tip {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.35;
	color: #516171;
}
.gdzai-cropper-canvas-wrap {
	position: relative;
	width: 100%;
	border-radius: 0;
	overflow: hidden;
	background: #dfe7f3;
	border: 1px solid #cbd5e1;
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: none;
	user-select: none;
}
#gdzai-crop-canvas {
	max-width: 100%;
	height: auto;
	display: block;
	touch-action: none;
	background: #fff;
	border-radius: 0;
	user-select: none;
}
.gdzai-cropper-actions {
	margin-top: 10px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}
.gdzai-crop-zoom {
	margin-left: auto;
	display: inline-flex;
	gap: 6px;
}
.gdzai-zoom-btn {
	border: 1px solid #d4dbe3;
	background: #f1f3f6;
	color: #2a2a2a;
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	min-width: 42px;
	min-height: 42px;
}
.gdzai-zoom-btn:disabled {
	opacity: 0.45;
	cursor: default;
}
.gdzai-actions {
	margin-top: 16px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.gdzai-btn {
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 12px 18px;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	font-weight: 600;
}
.gdzai-btn-primary {
	background: var(--gdzai-accent);
	color: #1f1f1f;
}
.gdzai-btn-primary:hover {
	background: var(--gdzai-accent-dark);
}
.gdzai-btn-ghost {
	background: #f1f3f6;
	color: #2a2a2a;
	border-color: #d4dbe3;
}
.gdzai-btn-ghost.gdzai-btn-warn {
	background: #fdecec;
	color: #8f2a2a;
	border-color: #f4bcbc;
}
.gdzai-btn-ghost.gdzai-btn-warn:hover {
	background: #f9dada;
}
.gdzai-btn-success {
	background: #33b249;
	color: #fff;
}
.gdzai-btn-danger {
	background: #e15252;
	color: #fff;
}
.gdzai-status {
	margin-top: 16px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f4f6f8;
	border: 1px solid #e4e8ee;
	color: #333;
	line-height: 1.4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.gdzai-status-text {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
}
.gdzai-status-jump {
	flex: 0 0 auto;
	border: 1px solid #d4dbe3;
	background: #ffffff;
	color: #2a2a2a;
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
}
.gdzai-status-success .gdzai-status-jump {
	border-color: #9fd5ae;
	background: #f5fff7;
	color: #1f7a35;
}
.gdzai-status-jump[hidden] {
	display: none;
}
.gdzai-status[hidden] {
	display: none;
}
.gdzai-status-success {
	background: #e7f6ea;
	border-color: #c7e9d0;
	color: #1f7a35;
}
.gdzai-status-error {
	background: #fdeaea;
	border-color: #f3c6c6;
	color: #b02b2b;
}
.gdzai-status-loading {
	background: linear-gradient(180deg, #eff5ff 0%, #e9f1ff 100%);
	border-color: #d6e4ff;
	color: #2e5fa3;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.gdzai-note {
	margin-top: 10px;
	font-size: 12px;
	color: var(--gdzai-muted);
}
.gdzai-limit {
	margin-top: 6px;
	font-size: 12px;
	color: #6b7280;
	background: #f7f8fa;
	border: 1px solid #e6e9ee;
	padding: 6px 10px;
	border-radius: 10px;
	display: inline-block;
}
.gdzai-limit.is-exhausted {
	background: #fff2f2;
	border-color: #f1cccc;
	color: #8f2a2a;
}
.gdzai-ad-slot {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
	text-align: center;
}
.gdzai-ad-slot[hidden] {
	display: none;
}
.gdzai-ad-slot-before-result {
	margin-top: 12px;
}
.gdzai-result {
	margin-top: 20px;
}
.gdzai-block {
	margin-top: 14px;
	padding: 12px;
	border: 1px solid #e6e9ee;
	border-radius: 12px;
	background: #fff;
}
.gdzai-block h2 {
	margin: 0 0 10px 0;
	font-size: 18px;
}
.gdzai-text p {
	margin: 0 0 10px 0;
}
.gdzai-text h3 {
	margin: 12px 0 8px;
	font-size: 16px;
	font-weight: 700;
}
.gdzai-text ul {
	margin: 0 0 10px 18px;
}
.gdzai-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0;
	font-size: 14px;
}
.gdzai-table th,
.gdzai-table td {
	border: 1px solid #e2e7ee;
	padding: 6px 8px;
	text-align: center;
}
.gdzai-table th {
	background: #f3f6fb;
	font-weight: 600;
}
.gdzai-answer-part {
	margin-bottom: 10px;
}
.gdzai-answer-part strong {
	display: block;
	margin-bottom: 6px;
}
.gdzai-similar-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px 16px;
	padding-left: 0;
	list-style: none;
}
.gdzai-similar-item {
	margin: 0;
}
.gdzai-similar-item a {
	display: block;
	padding: 8px 10px;
	border: 1px solid #e2e7ee;
	border-radius: 8px;
	background: #f7f9fb;
	color: #2a2a2a;
	text-decoration: none;
}
.gdzai-similar-item a:hover {
	border-color: var(--gdzai-blue);
	text-decoration: none;
}
.gdzai-feedback {
	margin-top: 20px;
	padding: 14px;
	border-radius: 12px;
	background: #f7f9fb;
	border: 1px solid #e2e7ee;
}
.gdzai-feedback-title {
	font-weight: 700;
	margin-bottom: 10px;
}
.gdzai-feedback-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.gdzai-feedback-thanks {
	font-size: 14px;
	color: #1f7a35;
	display: none;
}
.gdzai-feedback-thanks.is-visible {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.gdzai-history {
	margin-top: 20px;
	padding-top: 10px;
	border-top: 1px solid #e2e7ee;
	scroll-margin-top: 20px;
}
.gdzai-history-list {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gdzai-history-item {
	padding: 12px;
	border-radius: 8px;
	border: 1px solid #e2e7ee;
	background: #fff;
}
.gdzai-history-title {
	font-weight: 700;
	margin-bottom: 4px;
}
.gdzai-history-date {
	font-size: 12px;
	color: #6d6d6d;
	margin-top: 4px;
}
.gdzai-history-actions {
	margin-top: 8px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.gdzai-history-toggle {
	background: #eef2f7;
	border: 1px solid #dbe1ea;
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 13px;
}
.gdzai-history-answer {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #edf0f4;
}
.gdzai-history-pagination {
	margin-top: 12px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}
.gdzai-page-btn {
	border: 1px solid #d4dbe3;
	background: #f1f3f6;
	color: #2a2a2a;
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 13px;
}
.gdzai-page-btn.is-active {
	background: var(--gdzai-blue);
	border-color: var(--gdzai-blue);
	color: #fff;
}
.gdzai-section {
	margin-top: 26px;
	padding: 0 6px;
}
.gdzai-section-title {
	font-size: 20px;
	margin: 0 0 12px 0;
}
.gdzai-steps {
	margin: 0;
	padding-left: 20px;
}
.gdzai-steps li {
	margin-bottom: 8px;
}
.gdzai-seo-text {
	background: #fff;
	border: 1px solid #e6e9ee;
	border-radius: 12px;
	padding: 14px;
	line-height: 1.55;
	color: #344053;
}
.gdzai-faq details {
	border: 1px solid #e2e7ee;
	border-radius: 10px;
	padding: 10px 12px;
	background: #fff;
	margin-bottom: 8px;
}
.gdzai-faq summary {
	font-weight: 600;
	cursor: pointer;
}
.gdzai-faq-body {
	margin-top: 8px;
	color: #4b5563;
}
.gdzai-other-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}
.gdzai-other-item {
	border: 1px solid #e2e7ee;
	border-radius: 12px;
	padding: 12px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.gdzai-other-title {
	font-weight: 600;
	color: #1f2a37;
}
.gdzai-other-link {
	color: #2f5fb3;
	text-decoration: none;
	font-size: 14px;
	display: block;
}
.gdzai-other-link:hover .gdzai-other-title {
	color: #234a8f;
	text-decoration: underline;
}
.gdzai-other-card {
	padding: 12px;
	border: 1px solid var(--gdzai-border);
	border-radius: 12px;
	background: #fff;
	margin: 0;
}
.gdzai-status-loading {
	position: relative;
	padding-left: 14px;
	overflow: hidden;
	padding-bottom: 15px;
	--gdzai-wait-progress: 0;
}
.gdzai-status-loading:before {
	content: '';
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 6px;
	height: 4px;
	border-radius: 999px;
	background: rgba(91,124,194,0.18);
}
.gdzai-status-loading:after {
	content: '';
	position: absolute;
	left: 10px;
	bottom: 6px;
	height: 4px;
	width: calc((100% - 20px) * var(--gdzai-wait-progress, 0));
	border-radius: 999px;
	background: linear-gradient(90deg, #7fa9f4 0%, #5f88d8 45%, #7fa9f4 100%);
	background-size: 220% 100%;
	transition: width 120ms linear;
	animation: gdzai-progress-shine 1.6s linear infinite;
	box-shadow: 0 0 0 1px rgba(95,136,216,0.2), 0 0 12px rgba(95,136,216,0.22);
}
.gdzai-status-loading:not([data-wait-active]):after {
	left: 10px;
	width: calc(100% - 20px);
	background: linear-gradient(90deg, rgba(127,169,244,0.18) 0%, rgba(95,136,216,0.62) 45%, rgba(127,169,244,0.18) 100%);
	background-size: 240% 100%;
	animation: gdzai-progress-loop 2.2s linear infinite;
}
@keyframes gdzai-progress-shine {
	0% { background-position: 200% 50%; }
	100% { background-position: 0% 50%; }
}
@keyframes gdzai-progress-loop {
	0% { background-position: 200% 50%; }
	100% { background-position: -40% 50%; }
}
.gdzai-heart {
	color: #e53935;
}
.gdzai-follow-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}
.gdzai-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}
.gdzai-modal[hidden] {
	display: none;
}
.gdzai-modal-inner {
	background: #fff;
	border-radius: 14px;
	padding: 16px;
	max-width: 360px;
	width: min(420px, calc(100% - 32px));
	margin: 0 16px;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}
.gdzai-modal-text {
	font-size: 14px;
	line-height: 1.5;
	color: #1f2a37;
	margin-bottom: 12px;
}
.gdzai-modal-actions {
	display: flex;
	justify-content: flex-end;
}
.gdzai-modal-btn {
	background: var(--gdzai-accent);
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 600;
	cursor: pointer;
}
.gdzai-loading {
	opacity: 0.7;
	pointer-events: none;
}
@media (max-width: 768px) {
	.gdzai-status {
		flex-wrap: wrap;
	}
	.gdzai-status-jump {
		width: 100%;
		text-align: center;
	}
	.gdzai-actions,
	.gdzai-cropper-actions {
		flex-direction: column;
	}
	.gdzai-btn {
		width: 100%;
	}
	.gdzai-crop-zoom {
		width: 100%;
		justify-content: center;
	}
	.gdzai-cropper-tip {
		font-size: 12px;
	}
	.gdzai-upload-btn {
		width: 100%;
		justify-content: center;
		white-space: normal;
	}
	.gdzai-upload-name {
		font-size: 12px;
	}
}
@media (max-width: 520px) {
	.gdzai-upload {
		flex-direction: column;
		align-items: stretch;
	}
	.gdzai-upload-btn {
		width: 100%;
		justify-content: center;
	}
	.gdzai-preview {
		max-width: 100%;
	}
}
.gdzai-admin-inline {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--gdzai-muted);
}
.gdzai-admin-inline[data-admin="0"] {
	display: none;
}
.gdzai-admin-title {
	font-weight: 700;
	margin-bottom: 8px;
}
.gdzai-admin-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.gdzai-admin-input {
	width: 90px;
	padding: 6px 8px;
	border: 1px solid var(--gdzai-border);
	border-radius: 8px;
}
.gdzai-admin-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
}
.gdzai-admin-note {
	color: var(--gdzai-muted);
	font-size: 12px;
}
.gdzai-graphs {
	display: grid;
	gap: 12px;
}
.gdzai-chart {
	border: 1px solid var(--gdzai-border);
	background: #fff;
	border-radius: 12px;
	padding: 12px;
}
.gdzai-chart-title {
	font-weight: 600;
	margin: 0 0 8px;
	font-size: 14px;
}
.gdzai-chart-canvas {
	width: 100%;
	overflow: hidden;
}
.gdzai-chart-data {
	display: none;
}
.gdzai-chart-canvas svg {
	width: 100%;
	height: auto;
	display: block;
}
.gdzai-chart-canvas .function-plot path.line {
	stroke-width: 2.5 !important;
}
.gdzai-chart-error {
	color: #b02b2b;
	font-size: 12px;
	margin-top: 6px;
}
