:root {
	--ddas-accent: #7c5cff;
	--ddas-accent-2: #00b8a9;
	--ddas-ink: #171525;
	--ddas-muted: #6d6a7d;
	--ddas-panel: #ffffff;
	--ddas-soft: #f5f3ff;
	--ddas-border: rgba(23, 21, 37, .12);
	--ddas-shadow: 0 22px 70px rgba(22, 18, 51, .22);
}

.ddas-root {
	--ddas-local-accent: var(--ddas-accent);
	position: fixed;
	inset: auto 18px 18px auto;
	z-index: 2147483000;
	color: var(--ddas-ink);
	font-family: Assistant, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
}

.ddas-root.ddas-pos-left {
	inset: auto auto 18px 18px;
}

.ddas-root.ddas-moved-left {
	inset: auto auto 18px 18px;
}

.ddas-root.ddas-moved-right {
	inset: auto 18px 18px auto;
}

.ddas-root,
.ddas-root * {
	box-sizing: border-box;
}

.ddas-root button,
.ddas-root a {
	font: inherit;
}

.ddas-trigger {
	width: 58px;
	height: 58px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ddas-local-accent), var(--ddas-accent-2));
	color: #fff;
	box-shadow: 0 12px 35px rgba(124, 92, 255, .35);
	display: grid;
	place-items: center;
	cursor: pointer;
	position: relative;
	line-height: 1;
	transition: transform .2s ease, box-shadow .2s ease;
}

.ddas-trigger:hover,
.ddas-trigger:focus-visible {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 16px 45px rgba(124, 92, 255, .42);
	outline: 3px solid rgba(124, 92, 255, .22);
	outline-offset: 4px;
}

.ddas-trigger-icon {
	font-weight: 900;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	position: absolute;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.ddas-trigger-icon svg {
	width: 34px;
	height: 34px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ddas-trigger-icon svg circle {
	fill: currentColor;
	stroke: none;
}

.ddas-trigger-dot {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid rgba(255, 255, 255, .6);
}

.ddas-panel {
	position: absolute;
	bottom: 74px;
	right: 0;
	width: min(420px, calc(100vw - 28px));
	max-height: min(720px, calc(100vh - 100px));
	background: var(--ddas-panel);
	border: 1px solid var(--ddas-border);
	border-radius: 20px;
	box-shadow: var(--ddas-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px) scale(.98);
	transition: opacity .2s ease, transform .2s ease;
}

.ddas-pos-left .ddas-panel,
.ddas-moved-left .ddas-panel {
	right: auto;
	left: 0;
}

.ddas-root.is-open .ddas-panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.ddas-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 18px 16px;
	color: #fff;
	background: linear-gradient(135deg, var(--ddas-local-accent), #2d245f);
}

.ddas-panel-header h2,
.ddas-panel-header p {
	margin: 0;
}

.ddas-panel-header h2 {
	font-size: 23px;
	font-weight: 800;
}

.ddas-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ddas-help-btn {
	min-height: 38px;
	padding: 0 13px;
	border: 1px solid rgba(255, 255, 255, .58);
	background: rgba(255, 255, 255, .14);
	color: #fff !important;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
}

.ddas-help-btn:hover,
.ddas-help-btn:focus-visible,
.ddas-icon-btn:hover,
.ddas-icon-btn:focus-visible {
	background: rgba(255, 255, 255, .22);
	color: #fff !important;
	outline: 3px solid rgba(255, 255, 255, .48);
	outline-offset: 2px;
}

.ddas-icon-btn {
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, .58);
	background: rgba(255, 255, 255, .14);
	color: #fff !important;
	border-radius: 12px;
	font-size: 26px;
	line-height: 0;
	cursor: pointer;
	font-weight: 900;
	display: grid;
	place-items: center;
	padding: 0;
	text-align: center;
}

.ddas-icon-btn span {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	line-height: 1;
	transform: translateY(-1px);
}

.ddas-panel-scroll {
	max-height: calc(min(720px, 100vh - 100px) - 93px);
	min-height: 0;
	flex: 1 1 auto;
	overflow: auto;
	padding: 16px;
	scrollbar-width: thin;
}

.ddas-section + .ddas-section {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--ddas-border);
}

.ddas-section-title {
	margin-bottom: 10px;
}

.ddas-section-title h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: var(--ddas-ink);
}

.ddas-section-title p {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--ddas-muted);
}

.ddas-profile-grid,
.ddas-control-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ddas-profile-grid button,
.ddas-control-grid button,
.ddas-footer-actions button,
.ddas-footer-actions a {
	border: 1px solid var(--ddas-border);
	background: #fff;
	color: var(--ddas-ink);
	border-radius: 14px;
	cursor: pointer;
	text-decoration: none;
	transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ddas-profile-grid button {
	min-height: 46px;
	padding: 10px;
	font-weight: 800;
}

.ddas-control-grid button {
	min-height: 92px;
	padding: 12px;
	text-align: start;
	display: grid;
	grid-template-columns: 38px 1fr;
	grid-template-rows: auto auto;
	column-gap: 9px;
	align-content: center;
}

.ddas-control-grid button > span {
	grid-row: 1 / 3;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--ddas-soft);
	color: var(--ddas-local-accent);
	font-weight: 900;
}

.ddas-control-grid strong {
	font-size: 14px;
	font-weight: 850;
}

.ddas-control-grid em {
	font-style: normal;
	font-size: 12px;
	color: var(--ddas-muted);
	margin-top: 2px;
}

.ddas-profile-grid button:hover,
.ddas-control-grid button:hover,
.ddas-footer-actions button:hover,
.ddas-footer-actions a:hover,
.ddas-profile-grid button:focus-visible,
.ddas-control-grid button:focus-visible,
.ddas-footer-actions button:focus-visible,
.ddas-footer-actions a:focus-visible {
	border-color: color-mix(in srgb, var(--ddas-local-accent), #fff 30%);
	box-shadow: 0 8px 24px rgba(124, 92, 255, .14);
	transform: translateY(-1px);
	outline: none;
}

.ddas-control-grid button.is-active,
.ddas-profile-grid button.is-active {
	background: linear-gradient(135deg, #2d245f, var(--ddas-local-accent));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 10px 26px rgba(45, 36, 95, .22);
}

.ddas-control-grid button.is-active > span {
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

.ddas-control-grid button.is-active strong,
.ddas-control-grid button.is-active em,
.ddas-profile-grid button.is-active {
	color: #fff;
}

.ddas-footer-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.ddas-footer-actions button,
.ddas-footer-actions a {
	min-height: 42px;
	padding: 10px 8px;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 13px;
	text-align: center;
}

.ddas-footer-actions [data-ddas-action="reset"] {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(135deg, var(--ddas-local-accent), #2d245f);
}

.ddas-brand {
	display: flex;
	align-items: center;
	gap: 9px;
	direction: ltr;
	justify-content: center;
	margin-top: 16px;
	padding: 12px 13px;
	border: 1px solid rgba(124, 92, 255, .16);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(124, 92, 255, .08), rgba(0, 184, 169, .07));
	color: var(--ddas-ink);
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ddas-brand:hover,
.ddas-brand:focus-visible {
	border-color: rgba(124, 92, 255, .38);
	box-shadow: 0 10px 26px rgba(124, 92, 255, .14);
	transform: translateY(-1px);
	outline: none;
}

.ddas-brand img {
	width: 34px;
	height: 34px;
	object-fit: contain;
	flex: 0 0 auto;
}

.ddas-brand span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	line-height: 1.15;
	text-align: center;
}

.ddas-brand strong {
	font-size: 18px;
	font-weight: 900;
	background: linear-gradient(90deg, #7c5cff 0%, #b75cff 34%, #00b8a9 68%, #26d6a3 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ddas-brand small {
	color: var(--ddas-muted);
	font-size: 12px;
	font-weight: 850;
	white-space: nowrap;
}

.ddas-brand small::before {
	content: "-";
	margin-inline-end: 8px;
	color: rgba(109, 106, 125, .72);
	font-weight: 900;
}

.ddas-help-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: none;
	place-items: center;
	padding: 16px;
	background: rgba(14, 12, 28, .58);
}

.ddas-help-modal.is-open {
	display: grid;
}

.ddas-help-card {
	width: min(680px, calc(100vw - 28px));
	max-height: min(760px, calc(100vh - 42px));
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--ddas-shadow);
}

.ddas-help-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 18px;
	color: #fff;
	background: linear-gradient(135deg, var(--ddas-local-accent), #2d245f);
}

.ddas-help-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 900;
}

.ddas-help-head button {
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, .58);
	border-radius: 12px;
	background: rgba(255, 255, 255, .14);
	color: #fff !important;
	font-size: 26px;
	line-height: 0;
	cursor: pointer;
	font-weight: 900;
	display: grid;
	place-items: center;
	padding: 0;
	text-align: center;
}

.ddas-help-head button span {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	line-height: 1;
	transform: translateY(-1px);
}

.ddas-help-head button:hover,
.ddas-help-head button:focus-visible {
	background: rgba(255, 255, 255, .22);
	color: #fff !important;
	outline: 3px solid rgba(255, 255, 255, .48);
	outline-offset: 2px;
}

.ddas-help-body {
	max-height: calc(min(760px, 100vh - 42px) - 72px);
	overflow: auto;
	padding: 16px 18px 18px;
}

.ddas-help-body h3 {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 900;
	color: var(--ddas-ink);
}

.ddas-help-body h3 + dl {
	margin-top: 0;
}

.ddas-help-body dl {
	display: grid;
	gap: 8px 12px;
	grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr);
	margin: 0 0 18px;
}

.ddas-help-body dt,
.ddas-help-body dd {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--ddas-border);
	background: #fff;
}

.ddas-help-body dt {
	border-radius: 12px;
	color: var(--ddas-local-accent);
	font-weight: 900;
}

.ddas-help-body dd {
	border-radius: 12px;
	color: var(--ddas-muted);
	font-size: 13px;
}

.ddas-reading-guide {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	top: 50%;
	height: 5px;
	background: #ffcf33;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .85), 0 10px 24px rgba(0, 0, 0, .2);
	z-index: 2147482998;
	pointer-events: none;
}

.ddas-reading-mask {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147482997;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(15, 12, 35, .24) 0, rgba(15, 12, 35, .24) calc(var(--ddas-mask-y, 50vh) - 72px), transparent calc(var(--ddas-mask-y, 50vh) - 72px), transparent calc(var(--ddas-mask-y, 50vh) + 72px), rgba(15, 12, 35, .24) calc(var(--ddas-mask-y, 50vh) + 72px), rgba(15, 12, 35, .24) 100%);
}

html.ddas-contrast-invert {
	filter: invert(1) hue-rotate(180deg);
}

html.ddas-contrast-dark body {
	background: #07070a !important;
	color: #f8f8ff !important;
}

html.ddas-contrast-dark a {
	color: #80d8ff !important;
}

html.ddas-contrast-light body {
	background: #fff !important;
	color: #000 !important;
}

html.ddas-smart-contrast a,
html.ddas-smart-contrast button,
html.ddas-smart-contrast input,
html.ddas-smart-contrast textarea,
html.ddas-smart-contrast select {
	outline: 2px solid #ffd400 !important;
	outline-offset: 2px !important;
}

html.ddas-font-1 { --ddas-font-scale: 1.12; }
html.ddas-font-2 { --ddas-font-scale: 1.24; }
html.ddas-font-3 { --ddas-font-scale: 1.36; }
html.ddas-font-4 { --ddas-font-scale: 1.5; }

html[class*="ddas-font-"] body :where(h1,h2,h3,h4,h5,h6,p,li,blockquote,label,input,textarea,select,button,td,th,figcaption,summary):not(.ddas-root):not(.ddas-root *) {
	font-size: calc(var(--ddas-font-scale, 1) * 1em) !important;
}

html.ddas-spacing-1 body * { letter-spacing: .04em !important; word-spacing: .08em !important; }
html.ddas-spacing-2 body * { letter-spacing: .08em !important; word-spacing: .14em !important; }
html.ddas-spacing-3 body * { letter-spacing: .12em !important; word-spacing: .2em !important; }

html.ddas-line-1 { --ddas-line-height: 1.65; }
html.ddas-line-2 { --ddas-line-height: 1.9; }
html.ddas-line-3 { --ddas-line-height: 2.15; }

html[class*="ddas-line-"] body :where(h1,h2,h3,h4,h5,h6,p,li,blockquote,label,input,textarea,select,button,td,th,figcaption,summary):not(.ddas-root):not(.ddas-root *) {
	line-height: var(--ddas-line-height, inherit) !important;
}

html.ddas-align-left body * { text-align: left !important; }
html.ddas-align-center body * { text-align: center !important; }
html.ddas-align-right body * { text-align: right !important; }

html.ddas-saturation-low { filter: saturate(.35); }
html.ddas-saturation-high { filter: saturate(1.75); }
html.ddas-saturation-gray { filter: grayscale(1); }

html.ddas-dyslexia body :where(h1,h2,h3,h4,h5,h6,p,li,a,blockquote,label,input,textarea,select,button,td,th,figcaption):not(.ddas-root):not(.ddas-root *) {
	font-family: Verdana, Tahoma, Arial, sans-serif !important;
}

html.ddas-highlight-links a {
	background: #fff4a3 !important;
	color: #000 !important;
	text-decoration: underline !important;
	text-decoration-thickness: 3px !important;
	text-underline-offset: 4px !important;
	outline: 2px solid #111 !important;
	outline-offset: 2px !important;
}

html.ddas-hide-images img,
html.ddas-hide-images picture,
html.ddas-hide-images svg,
html.ddas-hide-images video,
html.ddas-hide-images canvas {
	visibility: hidden !important;
}

html.ddas-hide-images [data-ddas-hidden-bg="1"] {
	background-image: none !important;
}

html.ddas-hide-images .ddas-root,
html.ddas-hide-images .ddas-root * {
	visibility: visible !important;
}

html.ddas-pause-motion *,
html.ddas-pause-motion *::before,
html.ddas-pause-motion *::after {
	animation-duration: .001ms !important;
	animation-iteration-count: 1 !important;
	scroll-behavior: auto !important;
	transition-duration: .001ms !important;
}

html.ddas-big-cursor,
html.ddas-big-cursor * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 3 25 17 16 19 12 29 5 3Z' fill='white' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 5 3, auto !important;
}

.ddas-reading-guide.is-visible,
.ddas-reading-mask.is-visible {
	display: block;
}

html.ddas-keyboard-focus body :where(a,button,input,textarea,select,summary,[role="button"],[tabindex]):not(.ddas-root):not(.ddas-root *) {
	outline: 2px dashed rgba(124, 92, 255, .72) !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 5px rgba(255, 212, 0, .18) !important;
	border-radius: 7px !important;
}

html.ddas-keyboard-focus body :where(a,button,input,textarea,select,summary,[role="button"],[tabindex]):not(.ddas-root):not(.ddas-root *):focus,
html.ddas-keyboard-focus body :where(a,button,input,textarea,select,summary,[role="button"],[tabindex]):not(.ddas-root):not(.ddas-root *):focus-visible {
	outline: 5px solid #ffd400 !important;
	outline-offset: 5px !important;
	box-shadow: 0 0 0 2px #111, 0 0 0 10px rgba(124, 92, 255, .32) !important;
}

@media (max-width: 560px) {
	.ddas-root {
		inset: auto 12px 12px auto;
	}

	.ddas-root.ddas-pos-left,
	.ddas-root.ddas-moved-left {
		inset: auto auto 12px 12px;
	}

	.ddas-panel {
		position: fixed;
		top: max(12px, env(safe-area-inset-top));
		right: 12px;
		bottom: calc(82px + env(safe-area-inset-bottom));
		left: 12px;
		width: auto;
		max-height: none;
		border-radius: 18px;
	}

	.ddas-panel-scroll {
		max-height: none;
	}

	.ddas-control-grid {
		grid-template-columns: 1fr;
	}

	.ddas-footer-actions {
		grid-template-columns: 1fr;
	}

	.ddas-panel-header {
		padding: 15px;
	}

	.ddas-panel-header h2 {
		font-size: 20px;
	}

	.ddas-help-body dl {
		grid-template-columns: 1fr;
	}

	.ddas-help-body dd {
		margin-top: -8px;
	}
}
