#aim-preview-wrap {
	display: none;
}
#page {
	position: relative;
	isolation: isolate;
}
#page::before {
	content: '';
	position: absolute;
	left: 50%;
	top: -60px;
	transform: translateX(-50%);
	width: min(1100px, 100%);
	height: 500px;
	background:
		radial-gradient(ellipse 55% 60% at 65% 55%, rgba(226, 75, 74, 0.32), transparent 65%),
		radial-gradient(ellipse 55% 60% at 35% 40%, rgba(51, 51, 51, 0.28), transparent 65%);
	filter: blur(40px);
	pointer-events: none;
	z-index: -1;
}
.darkmode #page::before {
	background:
		radial-gradient(ellipse 55% 60% at 65% 55%, rgba(226, 75, 74, 0.35), transparent 65%),
		radial-gradient(ellipse 55% 60% at 35% 40%, rgba(255, 255, 255, 0.18), transparent 65%);
}
.ai-textarea-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
}
.ai-beta-banner {
	position: absolute;
	bottom: -14px;
	right: -10px;
	background: linear-gradient(135deg, #333 0%, #e24b4a 100%);
	color: #fff;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	border-radius: 999px;
	transform: rotate(-8deg);
	transform-origin: center;
	box-shadow: 0 6px 16px rgba(226, 75, 74, 0.30);
	z-index: 2;
}
.darkmode .ai-beta-banner {
	background: linear-gradient(135deg, #fff 0%, #e24b4a 100%);
	color: #333;
	box-shadow: 0 6px 16px rgba(226, 75, 74, 0.45);
}
.ai-img-label {
	text-align: center;
	margin-top: 15px;
	margin-bottom: 20px;
	padding: 0;
}
.ai-imgs {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.ai-imgs-col {
	flex: 1;
	min-width: 0; /* allow the column (and its images) to shrink */
}
.ai-img-wrap {
	position: relative;
	display: block;
	width: 100%;
	margin-bottom: 12px;
	cursor: pointer;
	height: auto;
	border-radius: 7px;
	overflow: hidden; /* clip the image to the rounded corners */
}
@media (hover: hover) {
	.ai-img-wrap:hover {
		box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 2px 0.5px;
	}
	.darkmode .ai-img-wrap:hover {
		box-shadow: rgba(255, 255, 255, 0.5) 0px 0px 2px 0.5px;
	}
}
.ai-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
}
.ai-img-wrap img {
	width: 100%;
	height: auto;
	user-select: none;
	display: block;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	-webkit-user-drag: none;
}
#ai-choices {
	position: relative;
	width: 750px;
	max-width: 100%;
	padding: 3%;
	padding-top: 10px;
	text-align: center;
	border-radius: 3px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 20px;
	margin: auto;
}
.ai-input-row {
	max-width: calc(100% - 36px);
	text-align: center;
	position: relative;
	margin: auto;
}
#ai-controls {
	flex-direction: column;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	align-content: center;
	height: 100%;
	margin-top: 50px;
	gap: 5px;
}
#ai-text,
.ai-prompt-readonly {
	box-sizing: border-box;
	vertical-align: bottom;
	resize: none;
	position: relative;
	z-index: 1;
	border-radius: 18px;
	padding: 16px 18px;
	min-height: 70px;
	width: 500px;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
#ai-text:focus,
.ai-prompt-readonly:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06), 0 10px 32px rgba(0, 0, 0, 0.06);
}
.darkmode #ai-text:focus,
.darkmode .ai-prompt-readonly:focus {
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.30), 0 10px 32px rgba(255, 255, 255, 0.18);
}
.ai-prompt-readonly {
  min-height: unset !important;
  text-align: left;
  overflow-wrap: break-word;
  padding-right: 55px;
	max-width: 100%;
}
div.ai-prompt-readonly {
	cursor: pointer;
}
/* read-only state (div): clamp to 1 line with an ellipsis. the editable textarea is unaffected.
   the clamp lives on a zero-padding inner element so the cut-off line can't bleed into the
   outer div's bottom padding (overflow:hidden clips at the padding box, not the content box). */
.ai-prompt-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  overflow-wrap: break-word;
}
.ai-prompt-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
}
.ai-prompt-edit.b {
	position: absolute;
	inset: 0;
  margin: auto;
  margin-right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0.55) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.darkmode .ai-prompt-edit.b {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.12) 100%);
}
.ai-prompt-edit.b:hover {
	transform: translateY(-1px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.15);
}
.ai-prompt-edit.b:focus-visible {
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
}
.ai-prompt-edit.b:active {
	transform: translateY(0);
}
.ai-prompt-edit-icon {
	color: #333;
	width: 22px;
	height: 22px;
	opacity: 0.9;
}
.darkmode .ai-prompt-edit-icon {
	color: #fff;
}
.ai-text-overlay {
	position: absolute;
	top: 15px;
	left: 14px;
	bottom: 14px;
	z-index: 2;
	color: #999;
	pointer-events: none;
	max-width: calc(100% - 80px);
	text-align: left;
}
.ai-text-overlay button {
	pointer-events: auto;
}
.ai-generate-btn.b {
	display: block;
	width: 120px;
	height: 48px;
	margin: 17px auto 0;
	font-size: 18px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0.55) 100%);
	border: none;
	color: #333;
	border-radius: 14px;
	letter-spacing: 0.01em;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.darkmode .ai-generate-btn.b {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.12) 100%);
	color: #fff;
}
.ai-generate-btn.b:hover {
	transform: translateY(-1px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.15);
	filter: brightness(1.05);
}
.ai-generate-btn.b:focus-visible {
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
}
.ai-generate-btn:active {
	transform: translateY(0);
}
.ai-mic.b {
	display: block;
	width: 60px;
	height: 60px;
	border: none;
	border-radius: 50%;
	position: relative;
	margin: 17px auto 0;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0.55) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.darkmode .ai-mic.b {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.12) 100%);
}
.ai-mic.b:hover {
	transform: translateY(-1px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.15);
}
.ai-mic.b:focus-visible {
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
}
.ai-mic.b.recording {
	background: #e24b4a;
	border: none;
	animation: ai-mic-pulse 1.6s ease-in-out infinite;
}
@keyframes ai-mic-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(226, 75, 74, 0.45); }
	50% { box-shadow: 0 0 0 10px rgba(226, 75, 74, 0); }
}
.ai-mic-icon {
	color: #333;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60%;
	height: 60%;
	opacity: 0.9;
}
.darkmode .ai-mic-icon {
	color: white;
}
.volume-bar {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	opacity: 0.4;
}
.ai-reset {
	position: sticky;
	display: block;
	margin-bottom: 15px;
	color: unset !important;
	font-weight: bold;
}
.headline {
	color: rgba(60, 42, 42, 0.78);
	text-shadow: rgba(255, 255, 255, 0.55) 0px 1px 0px, rgba(0, 0, 0, 0.18) 0px -1px 0px, rgba(255, 120, 220, 0.55) 1.5px 0px 0px, rgba(120, 220, 255, 0.55) -1.5px 0px 0px, rgba(255, 255, 255, 0.25) 0px 0px 20px;
	width: 670px;
	max-width: 100%;
	margin: 10px auto auto;
	padding: 0px 30px;
	box-sizing: border-box;
	text-align: center;
	position: relative;
	z-index: 1;
	font-weight: 600;
	letter-spacing: -0.015em;
	-webkit-background-clip: text;
}
.darkmode .headline {
	color: rgba(230, 220, 220, 0.78);
	text-shadow: rgb(72 72 72) 0px 0px 2px, rgb(221 221 221) 0px 0px 5px;
	width: 670px;
	max-width: 100%;
	margin: 10px auto auto;
	padding: 0px 30px;
	box-sizing: border-box;
	text-align: center;
	position: relative;
	z-index: 1;
	font-weight: 600;
	letter-spacing: -0.015em;
	-webkit-background-clip: text;
}

#u-menu-wrap {
	color: #ccc;
	float: unset !important;
	position: unset !important;
	width: max-content;
	margin-left: auto;
}
#u-menu-btn {
	float: right !important;
	border: none !important;
	border-radius: 6px !important;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0.55) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
#u-menu {
	max-width: 128px;
	display: flow-root;
	clear: both;
	position: relative;
	z-index: 3;
	border: none !important;
	border-radius: 6px;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0.55) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	overflow: hidden;
}
.darkmode #u-menu-btn,
.darkmode #u-menu {
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.12) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
}
#u-menu a,
#u-menu .toggle-opt {
	color: #333;
	border: none !important;
	background: transparent;
}
#u-menu a:hover {
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
}
#u-menu .toggle {
	border: none !important;
	border-radius: 6px;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.12) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
	overflow: hidden;
}
#u-menu .toggle-opt:hover {
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
}
#u-menu .toggle-opt.selected {
	color: #333;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.2);
}
.darkmode #u-menu a,
.darkmode #u-menu .toggle-opt,
.darkmode #u-menu .toggle-opt.selected {
	color: #fff;
}
.darkmode #u-menu .toggle-opt.selected {
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.toggle {
	background: unset !important;
}
.menu-btn.down-arrow:after {
	border-top-color: #333;
}
.darkmode .menu-btn.down-arrow:after {
	border-top-color: #fff;
}
#u-menu-wrap {
	color: unset !important;
}
#u-menu a:hover {
	background: #66666655 !important;
}
.darkmode #u-menu a:hover {
	background: #666 !important;
}

.logo {
	border-radius: 3px;
	padding: 2px;
	opacity: 1;
	width: 30px;
	height: 30px;
	position: absolute;
	margin: min(2%, 11px);
}
.logo img {
	border: medium;
	width: 100%;
	height: 100%;
}
.logo .white-i {
	display: none;
}
.darkmode .logo .white-i {
	display: inline;
}
.darkmode .logo .black-i {
	display: none;
}

.ai-upgrade {
	margin: 0;
	font-size: 10px;
	margin-left: auto;
	margin-right: auto;
	color: #7d7d7d;
}
.ai-upgrade-btn,
.show-login {
	color: #000;
}
.darkmode .ai-upgrade-btn,
.darkmode .show-login {
	color: #fff;
}

#done {
	background: unset !important;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.12) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.18);
}
.darkmode #done {
	background: unset !important;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.12) 100%) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}
#done-btns button {
	display: none;
}
.shr-btn-device {
	max-width: 100%;
}

@media (max-width: 444px) {
	table.pro-table {
		font-size: 12px !important;
		margin-top: 25px;
	}
	.pro-table th {
		line-height: 0;
		border: none;
		padding: 0 !important;
	}
	.pro-basic-popup-pro-btn {
		font-size: 12px !important;
	}
}

textarea:focus {
	border-color: #444 !important;
}
.darkmode textarea:focus {
	border-color: #bbb !important;
}

/* force dark mode */
.menu-toggle-dark {
	display: none;
}