body.setup-body {
	margin: 0;
	padding: 0;
}

body.setup-body .custom-api-box {
	box-sizing: border-box;
	height: auto;
	min-height: 100vh;
}

#settingsdiv.setup-settings {
	display: block !important;
	position: relative !important;
	animation: none !important;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
}

#setup-language option,
#setup-timezone optgroup {
	color: black !important;
}

.setup-description {
	font-size: 14pt;
}

.setup-device-ai-alert {
	width: min(640px, 90%);
	margin: 18px auto 0 auto;
	padding: 0;
	border: 0;
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.setup-device-ai-alert-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
}

.setup-device-ai-alert-text {
	flex: 0 1 auto;
	min-width: 0;
	padding: 0;
	font-style: italic;
}

.setup-device-ai-alert-checking {
	color: #d6dde1;
}

.setup-device-ai-alert-ready {
	color: #69f0ae;
}

.setup-device-ai-alert-downloading {
	color: #ffd740;
}

.setup-device-ai-alert-unavailable {
	color: #ff6b6b;
}

.setup-device-ai-alert-checking .setup-device-ai-alert-icon {
	background: transparent;
}

.setup-device-ai-alert-ready .setup-device-ai-alert-icon {
	background: transparent;
}

.setup-device-ai-alert-downloading .setup-device-ai-alert-icon {
	background: transparent;
}

.setup-device-ai-alert-unavailable .setup-device-ai-alert-icon {
	background: transparent;
}

.setup-download-divider {
	width: 100%;
	max-width: 640px;
	height: 1px;
	margin: 20px auto;
	background: rgba(255, 255, 255, 0.2);
}

#download-local-ai-progress {
	width: min(640px, 90%);
	height: 14px;
}

.setup-download-files {
	width: min(640px, 90%);
	margin: 10px auto 0 auto;
	text-align: left;
	font-family: Consolas, Monaco, 'Courier New', monospace;
	font-size: 12px;
	line-height: 1.35;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 80px;
	overflow-y: auto;
	padding: 0;
}

#setup-device-ai-progress {
	width: 100%;
	height: 6px;
	margin-top: 10px;
	border-radius: 3px;
	border: none;
	appearance: none;
	background: rgba(255, 255, 255, 0.15);
}

#setup-device-ai-progress::-webkit-progress-bar {
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.15);
}

#setup-device-ai-progress::-webkit-progress-value {
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.7);
	transition: width 0.3s ease;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.88);
}

#init-demo-chat,
#init-demo-chat-2 {
	display: inline-block !important;
	margin-left: 12px;
}

.custom-api-box.setup-box {
	height: 100vh;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: transparent !important;
}

.settings-section.setup-container {
	max-width: 1024px;
	text-align: center;
	margin: auto;
}

.setup-icon {
	font-size: 60px;
	margin-bottom: 20px;
	color: white;
}

.setup-btn {
	font-family: inherit;
	background: rgb(7 7 8 / 78%);
	color: white;
	height: 50px;
	border: 1px solid white;
	padding-left: 14px;
	padding-right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	/* cursor: text; */
	font-size: 17px;
	font-weight: 300;
	box-shadow: none;
	/* margin-bottom: 20px; */
	margin: auto;
	white-space: nowrap;
	margin-bottom: 20px;
	text-decoration: none;
	width: min-content;
}

.next-btn {
	margin: auto;
}

.setup-btn.next-btn {
	/* width: 60%; */
	padding: 12px;
}

.button-row.setup-button-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-top: 0;
	text-align: center;
	margin-left: 0;
	cursor: pointer;
}

.button-row.setup-button-row .setup-btn {
	margin: 0;
}

.setup-primary-action {
	flex-direction: column;
	cursor: pointer;
}

.setup-main-btn {
	cursor: pointer;
	gap: 10px;
}

.setup-final-open-btn {
	gap: 0px;
	padding-left: 22px;
	padding-right: 22px;
}

#setup-openrouter-callout {
	cursor: default;
	height: auto;
	min-height: 56px;
	min-width: 320px;
	padding: 14px 28px;
	width: auto;
}

.setup-provider-icon {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.setup-secondary-link {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.setup-secondary-link:hover,
.setup-secondary-link:focus {
	color: white;
	outline: none;
}

.static {
	position: static !important;
	bottom: auto !important;
	right: auto !important;
	margin-top: 20px;
	margin: 0;

}

.slide {
	display: none;
	animation: fadeIn 0.5s;
	margin: 24px;
}

.slide.active {
	display: block;
	text-align: center;
}

.setup-assistant-choice-list {
	width: min(980px, 98%);
	margin: 24px auto 18px auto;
	display: flex;
	justify-content: center;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 10px;
}

.setup-btn.setup-assistant-action {
	width: auto;
	min-width: 0;
	min-height: 74px;
	margin: 0;
	padding: 12px 18px;
	gap: 10px;
	box-shadow: none;
	background: rgba(0, 0, 0, 0.28);
	transition: background 0.2s ease, border-color 0.2s ease;
}

#setup-built-in-ai-provider:not(:disabled) {
	border-color: #69f0ae;
}

.setup-btn.setup-assistant-action:hover:not(:disabled) {
	background: rgba(0, 0, 0, 0.45);
}

.setup-assistant-action .setup-choice-image {
	width: 46px;
	height: 46px;
}

.setup-browser-provider-icon {
	width: 46px;
	font-size: 42px;
	line-height: 46px;
}

.setup-assistant-action .setup-choice-label {
	font-size: 18px;
}

.setup-placeholder-action {
	cursor: default;
}

#btn-open-browser-assistant {
	order: 3;
}

.setup-choice-btn {
	width: auto;
	flex: 1 1 0;
	min-width: 0;
	min-height: 150px;
	margin: 0;
	padding: 10px;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: none;
	text-align: center;
	white-space: normal;
}

.setup-choice-btn.selected {
	border-color: white;
	background: rgba(255, 255, 255, 0.18);
	box-shadow: none;
}

.setup-choice-image {
	width: 54px;
	height: 54px;
	object-fit: contain;
	flex: 0 0 auto;
}

.setup-choice-label {
	font-size: 20px;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.setup-choice-note {
	margin-left: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.72);
}

.setup-choice-disabled {
	color: rgba(255, 255, 255, 0.5);
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
	cursor: not-allowed;
	box-shadow: none;
}

.setup-choice-disabled .setup-choice-image {
	opacity: 0.45;
}

.setup-pin-toolbar-hint {
	position: fixed;
	top: 8px;
	right: 6px;
	z-index: 2000;
	max-width: 430px;
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-start;
	gap: 4px;
	padding: 10px 12px;
	color: white;
	text-align: left;
	pointer-events: none;
}

.setup-pin-toolbar-arrow {
	flex: 0 0 auto;
	font-size: 54px;
	color: #ffffff;
	transform: none;
	line-height: 1;
	margin-top: 12px;
	margin-right: 16px;
	animation: setupPinArrowBounce 1.2s ease-in-out infinite;
}

.setup-pin-toolbar-text {
	display: grid;
	gap: 3px;
	font-size: 16px;
	line-height: 1.3;
	margin-top: 12px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.setup-pin-toolbar-text strong {
	font-size: 18px;
}

@keyframes setupPinArrowBounce {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(8px);
	}
}

.setup-info-links {
	width: min(760px, 92%);
	margin: 18px auto 0 auto;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;

}

.setup-info-links p {
	margin: 0 0 10px 0;
	line-height: 1.6 !important;
}

.setup-info-links div {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

.setup-info-links a {
	color: white;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* Live Test Area */
#live-assist-test-area {
	display: none;
}

.test-instruction {
	font-size: 0.9em;
	margin-bottom: 15px;
}

.status-message {
	text-align: center;
	font-size: 14px;
	color: #666;
}

.setup-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.setup-hidden {
	display: none !important;
}

#setup-language {
	appearance: none;
	-webkit-appearance: none;
	text-align-last: center;
}

.demo-container {
	max-width: 600px;
	margin: 0 auto 20px auto;
}

.setup-textarea {
	width: 100%;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid #ccc;
	font-family: inherit;
	font-size: 12pt;
	resize: vertical;
	background: white;
	color: #333;
}

.demo-text-container {
	max-width: 400px;
	margin: 0 auto 20px auto;
	text-align: left;
	background: rgba(255, 255, 255, 0.1);
	padding: 15px;
	border-radius: 8px;
	border: 1px dashed #ccc;
}

#demo-text-speech {
	margin: 0;
	font-size: 12pt;
	color: white;
}

.slash-autocomplete-item {
    font-weight: normal;
    
	font-size: 14pt;
	text-decoration: none;
}

.color-pink-1 {
	color: rgb(248, 175, 190);
}

.color-pink-2 {
	color: rgb(255, 137, 161);
}

.color-pink-3 {
	color: rgb(255, 83, 118);
}

.color-pink-4 {
	color: rgb(255, 174, 190);
}

.color-pink-5 {
	color: rgb(255, 133, 157);
}

.color-purple-light {
	color: #c9c1ff;
}

.color-yellow {
	color: rgb(255, 220, 24);
}

.color-orange-1 {
	color: #e65100;
}

.color-orange-2 {
	color: #ef6c00;
}

.color-orange-3 {
	color: #f57c00;
}

.color-orange-4 {
	color: #fb8c00;
}

.color-orange-5 {
	color: #ff9800;
}

.color-orange-6 {
	color: #ffa726;
}

.color-orange-7 {
	color: #ffb74d;
}

.color-orange-8 {
	color: #ffcc80;
}

.color-orange-9 {
	color: #ffe0b2;
}

.color-orange-10 {
	color: #fff3e0;
}

.color-orange-11 {
	color: #fff8e1;
}

.correction-demo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	font-family: 'Inter', sans-serif;
	/* Assuming Inter is available or fallback */
	line-height: 1.5;
	font-size: 16px;
}

.wrong-text {
	color: #ee0000;
	/* Intense Red */
	text-decoration: line-through;
	text-decoration-color: rgba(238, 0, 0, 0.8);
	font-style: italic;
    font-weight: normal;
    
}

.correction-arrow {
	color: #ffffff;
	font-size: 1.2em;
	opacity: 0.7;
}

.correct-text {
	color: #69f0ae;
	/* Soft Green */
	font-weight: 600;
}

.command-text {
	color: #ffd740;
    font-weight: normal;
    
	font-family: monospace;
	background: rgba(255, 215, 64, 0.1);
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.9em;
}

.chat-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-bottom: 25px;
}

.chat-bubble {
	padding: 15px 20px;
	border-radius: 20px;
	width: 280px;
	height: 110px;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.4;
	background: rgba(255, 255, 255, 0.05);
	/* White transparent bg */
}

.chat-bubble.user-bubble {
	border-color: rgba(255, 215, 64, 0.5);
	/* Yellow border */
	border-bottom-right-radius: 4px;
}

.chat-bubble.ai-bubble {
	border-color: rgba(105, 240, 174, 0.5);
	/* Green border */
	/* Squared top, sharp bottom on the right side */
	border-top-left-radius: 4px;
}

/* Migration of inline styles */
.text-white {
	color: white !important;
}

.no-decoration {
	text-decoration: none !important;
}

.opacity-08 {
	opacity: 0.8;
}

.opacity-09 {
	opacity: 0.9;
}

.mt-10 {
	margin-top: 10px;
}

.mt-15 {
	margin-top: 15px;
}

.mb-10 {
	margin-top: 10px;
}

.font-09 {
	font-size: 0.9em;
}

.font-11 {
	font-size: 1.1em;
}

.font-12 {
	font-size: 1.2em;
}

.font-15 {
	font-size: 1.5em;
}

.demo-instruction-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-bottom: 25px;
	font-size: 1em;
	color: rgba(255, 255, 255, 0.9);
}

.demo-icon-column {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.demo-icon-large {
	margin-bottom: 8px;
	color: #c9c1ff;
	font-size: 1.5em;
}

.image-preview-box {
	width: 120px;
	height: 120px;
	padding: 0;
	overflow: hidden;
	border-radius: 10px;
}

.fill-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.contain-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tool-tag {
	font-size: 1em;
	background: rgba(255, 255, 255, 0.05);
	padding: 6px 16px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-tag-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 500px;
	margin: 0 auto;
}

.final-choice-row {
	display: flex;
	flex-direction: row-reverse;
	justify-content: center;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
}

.min-200 {
	min-width: 200px;
}

.local-ai-status-msg {
	color: #ff6b6b;
	display: none;
	font-size: 1.1em;
	font-weight: 600;
	margin-top: 8px;
}

.recommended-label {
	color: #69f0ae;
	font-size: 1.1em;
	font-weight: 600;
	margin-top: 8px;
}

.limited-label {
	color: #ffd740;
	font-size: 1.1em;
	font-weight: 600;
	margin-top: 8px;
	display: none;
}

.draft-label {
	font-style: italic;
	opacity: 0.8;
}

.command-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.output-container {
	width: 100%;
	margin-top: 10px;
	text-align: center;
}

.output-comparison {
	margin-bottom: 5px;
}

.result-text {
	color: #69f0ae;
	font-size: 1.0em;
	line-height: 1.4;
}

/* Base Utilities */
.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.pl-20 {
	padding-left: 20px;
}

.p-10 {
	padding: 10px;
}

.p-15 {
	padding: 15px;
}

.min-w-150 {
	min-width: 180px;
}

.text-green {
	color: #69f0ae;
}

.auto-size {
	width: auto !important;
	height: auto !important;
	min-width: auto !important;
	min-height: auto !important;
}

.gap-8 {
	gap: 8px;
}

.gap-12 {
	gap: 12px;
}

.bg-white {
	background: white !important;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.border-dim {
	border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-green-faint {
	border-color: rgba(105, 240, 174, 0.4) !important;
}

.font-bold {
    font-weight: normal;
    
}

.font-18 {
	font-size: 1.8em;
}

.opacity-05 {
	opacity: 0.5;
}

.opacity-1 {
	opacity: 1 !important;
}
