/* —— Ассистент в стиле AmoLab tasks-shell —— */

.as-page .tasks-shell {
	width: 100%;
}

/* —— Часовой пояс —— */
.as-tz-card.tasks-card {
	background: var(--amc-surface, #fff);
	border: 1px solid var(--amc-border, #efe8f8);
	border-radius: var(--amc-radius, .5rem);
	box-shadow: none;
	padding: 1rem 1.1rem 1.05rem;
	margin-top: 0;
}

.as-tz-card.tasks-card:hover {
	border-color: var(--amc-border-strong, #e8ddf7);
	box-shadow: none;
	transform: none;
}

.as-tz-card__title.as-section-title {
	margin-bottom: .35rem;
	color: var(--amc-text, #2b2340);
	font-weight: 700;
	font-size: .98rem;
}

.as-tz-card__title .bi-globe2 {
	color: var(--amc-link, #7b3fe0);
}

.as-tz-card__lead {
	margin: 0 0 .75rem;
	font-size: .88rem;
	line-height: 1.45;
	color: var(--amc-muted, #6b6280);
}

.as-tz-card .tasks-form-label {
	margin-bottom: .35rem;
}

.as-tz-select {
	max-width: 28rem;
}

.as-tz-card__hint {
	line-height: 1.4;
}

.as-tz-card .as-qh {
	max-width: 28rem;
}

html.dark-theme .as-tz-card.tasks-card,
html[data-bs-theme="dark"] .as-tz-card.tasks-card {
	background: var(--amc-surface, #1a1625);
	border-color: rgba(255, 255, 255, .08);
}

/* —— Привязка Telegram: лёгкий UI AmoLab —— */
.as-tg-bind-card.tasks-card {
	background: var(--amc-surface, #fff);
	border: 1px solid var(--amc-border, #efe8f8);
	border-radius: var(--amc-radius, .5rem);
	box-shadow: none;
	padding: 1rem 1.1rem 1.05rem;
}

.as-tg-bind-card.tasks-card:hover {
	border-color: var(--amc-border-strong, #e8ddf7);
	box-shadow: none;
	transform: none;
}

.as-tg-bind-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .4rem .85rem;
	margin-bottom: .45rem;
}

.as-tg-bind-card .as-tg-bind-card__title.as-section-title {
	margin-bottom: 0;
	color: var(--amc-text, #2b2340);
	font-weight: 700;
	font-size: .98rem;
}

.as-tg-bind-card__title .bi-telegram {
	color: var(--amc-link, #7b3fe0);
}

.as-tg-code-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem;
	margin-top: .55rem;
	width: auto;
	max-width: 100%;
}

.as-tg-code-input {
	display: inline-block;
	width: 8.75rem;
	max-width: 100%;
	height: 2.4rem;
	margin: 0;
	padding: 0 .7rem;
	box-sizing: border-box;
	border: 1px solid var(--amc-border-strong, #e8ddf7);
	border-radius: var(--amc-radius, .5rem);
	background: var(--amc-surface-input, #fbf9ff);
	color: var(--amc-text, #2b2340);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
	line-height: 2.3rem;
	cursor: default;
}

.as-tg-code-input:focus {
	outline: none;
	border-color: var(--amc-link, #7b3fe0);
	box-shadow: 0 0 0 3px rgba(123, 63, 224, .12);
}

.as-tg-code-row .as-tg-btn-copy {
	height: 2.4rem;
	padding: 0 .9rem;
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	white-space: nowrap;
	min-width: 9.5rem;
	justify-content: center;
	transition: background .15s ease, border-color .15s ease;
}

.as-tg-code-row .as-tg-btn-copy.is-copied {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}

.as-tg-code-row .as-tg-icon-btn {
	width: 2.4rem;
	height: 2.4rem;
	min-width: 2.4rem;
}

.as-tg-status__ok,
.as-tg-status__off {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-weight: 600;
	font-size: .82rem;
	line-height: 1.2;
}

.as-tg-status__ok {
	color: #168a45;
}

.as-tg-status__off {
	color: #a16207;
}

.as-tg-status--chip,
.as-tg-status--banner {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .32rem .7rem;
	border-radius: 999px;
	background: var(--amc-surface-muted, #f7f4fc);
	border: 1px solid var(--amc-border, #efe8f8);
	max-width: 100%;
}

.as-tg-status--chip.is-bound,
.as-tg-status--banner.is-bound {
	background: rgba(34, 197, 94, .08);
	border-color: rgba(34, 197, 94, .2);
}

.as-tg-status--chip:not(.is-bound),
.as-tg-status--banner:not(.is-bound) {
	background: rgba(245, 158, 11, .08);
	border-color: rgba(245, 158, 11, .2);
}

.as-tg-steps__lead {
	margin: 0 0 .9rem;
	font-size: .9rem;
	line-height: 1.45;
	color: var(--amc-text-muted, #8a7aa8);
}

.as-tg-steps__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .95rem;
}

.as-tg-step {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
}

.as-tg-step__num {
	flex-shrink: 0;
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1;
	margin-top: .12rem;
	color: var(--amc-link, #7b3fe0);
	background: var(--amc-block, #f3ecff);
	border: 1px solid var(--amc-border-strong, #e8ddf7);
}

.as-tg-step__body {
	min-width: 0;
	flex: 1;
}

.as-tg-step__title {
	display: block;
	font-size: .92rem;
	line-height: 1.35;
	margin-bottom: .18rem;
	font-weight: 650;
	color: var(--amc-text, #2b2340);
}

.as-tg-step__text {
	margin: 0;
	font-size: .84rem;
	line-height: 1.45;
	color: var(--amc-text-muted, #8a7aa8);
}

.as-tg-bound-panel__text {
	margin: 0;
	font-size: .88rem;
	line-height: 1.45;
	color: var(--amc-text-muted, #8a7aa8);
}

.as-tg-switch-hint {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	padding: .65rem .8rem;
	margin-bottom: .75rem;
	border-radius: var(--amc-radius, .5rem);
	border: 1px solid var(--amc-border-strong, #e8ddf7);
	background: var(--amc-block, #f3ecff);
	font-size: .86rem;
	line-height: 1.45;
	color: var(--amc-text, #2b2340);
}

.as-tg-switch-hint > i {
	flex: 0 0 auto;
	margin-top: .12rem;
	color: var(--amc-link, #7b3fe0);
}

.as-tg-switch-hint.is-pulse {
	animation: as-tg-hint-pulse 1.2s ease-out 1;
}

@keyframes as-tg-hint-pulse {
	0% { box-shadow: 0 0 0 0 rgba(123, 63, 224, .22); }
	70% { box-shadow: 0 0 0 8px rgba(123, 63, 224, 0); }
	100% { box-shadow: 0 0 0 0 rgba(123, 63, 224, 0); }
}

.as-tg-actions,
.as-tg-step__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem .65rem;
	margin-top: .55rem;
}

.as-tg-bound-panel .as-tg-actions {
	margin-top: 0;
}

.as-tg-btn-primary.btn-3 {
	border-radius: var(--amc-radius, .5rem);
	font-weight: 600;
	padding: .45rem .9rem;
}

.as-tg-btn-outline {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	height: 2.4rem;
	padding: 0 .85rem;
	border: 1px solid var(--amc-border-strong, #e8ddf7);
	border-radius: var(--amc-radius, .5rem);
	background: var(--amc-surface, #fff);
	color: var(--amc-text, #2b2340);
	font-size: .86rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.as-tg-btn-outline:hover,
.as-tg-btn-outline:focus-visible {
	border-color: var(--amc-link, #7b3fe0);
	color: var(--amc-link, #7b3fe0);
	background: var(--amc-block, #f3ecff);
	outline: none;
}

.as-tg-text-btn {
	appearance: none;
	border: 0;
	background: transparent;
	padding: .35rem .15rem;
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .86rem;
	font-weight: 550;
	line-height: 1.2;
	color: var(--amc-text-muted, #8a7aa8);
	cursor: pointer;
	border-radius: var(--amc-radius, .5rem);
}

.as-tg-text-btn:hover,
.as-tg-text-btn:focus-visible {
	color: var(--amc-link, #7b3fe0);
	outline: none;
}

.as-tg-icon-btn {
	appearance: none;
	width: 2.35rem;
	min-width: 2.35rem;
	height: auto;
	border: 1px solid var(--amc-border-strong, #e8ddf7);
	background: var(--amc-surface, #fff);
	color: var(--amc-text-muted, #8a7aa8);
	border-radius: var(--amc-radius, .5rem);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.as-tg-icon-btn:hover,
.as-tg-icon-btn:focus-visible {
	color: var(--amc-link, #7b3fe0);
	border-color: var(--amc-link, #7b3fe0);
	outline: none;
}

.as-tg-flash {
	margin-top: .75rem;
	padding: .55rem .75rem;
	border-radius: var(--amc-radius, .5rem);
	font-size: .86rem;
	line-height: 1.4;
	border: 1px solid var(--amc-border, #efe8f8);
}

.as-tg-flash--ok {
	background: rgba(34, 197, 94, .08);
	border-color: rgba(34, 197, 94, .2);
	color: #166534;
}

.as-tg-flash--err {
	background: rgba(239, 68, 68, .07);
	border-color: rgba(239, 68, 68, .2);
	color: #b91c1c;
}

html.dark-theme .as-tg-bind-card.tasks-card,
html[data-bs-theme="dark"] .as-tg-bind-card.tasks-card {
	background: var(--amc-surface, #1c1826);
	border-color: var(--amc-border, #2f2840);
}

html.dark-theme .as-tg-status--chip,
html.dark-theme .as-tg-status--banner,
html[data-bs-theme="dark"] .as-tg-status--chip,
html[data-bs-theme="dark"] .as-tg-status--banner {
	background: var(--amc-surface-muted, #14101c);
	border-color: var(--amc-border, #2f2840);
}

html.dark-theme .as-tg-status--chip.is-bound,
html.dark-theme .as-tg-status--banner.is-bound,
html[data-bs-theme="dark"] .as-tg-status--chip.is-bound,
html[data-bs-theme="dark"] .as-tg-status--banner.is-bound {
	background: rgba(34, 197, 94, .12);
	border-color: rgba(34, 197, 94, .28);
}

html.dark-theme .as-tg-status--chip:not(.is-bound),
html.dark-theme .as-tg-status--banner:not(.is-bound),
html[data-bs-theme="dark"] .as-tg-status--chip:not(.is-bound),
html[data-bs-theme="dark"] .as-tg-status--banner:not(.is-bound) {
	background: rgba(245, 158, 11, .12);
	border-color: rgba(245, 158, 11, .28);
}

html.dark-theme .as-tg-step__num,
html[data-bs-theme="dark"] .as-tg-step__num {
	background: var(--amc-block, #252033);
	border-color: var(--amc-border-strong, #3a324f);
	color: var(--amc-link, #c4a8ff);
}

html.dark-theme .as-tg-switch-hint,
html[data-bs-theme="dark"] .as-tg-switch-hint {
	background: var(--amc-block, #252033);
	border-color: var(--amc-border-strong, #3a324f);
	color: var(--amc-text, #ece6f8);
}

html.dark-theme .as-tg-switch-hint > i,
html[data-bs-theme="dark"] .as-tg-switch-hint > i {
	color: var(--amc-link, #c4a8ff);
}

html.dark-theme .as-tg-icon-btn,
html[data-bs-theme="dark"] .as-tg-icon-btn {
	background: var(--amc-surface-input, #221c30);
	border-color: var(--amc-border-strong, #3a324f);
	color: var(--amc-text-muted, #a89bc0);
}

html.dark-theme .as-tg-code-input,
html[data-bs-theme="dark"] .as-tg-code-input {
	background: var(--amc-surface-input, #221c30);
	border-color: var(--amc-border-strong, #3a324f);
	color: var(--amc-text, #ece6f8);
}

html.dark-theme .as-tg-btn-outline,
html[data-bs-theme="dark"] .as-tg-btn-outline {
	background: var(--amc-surface, #1c1826);
	border-color: var(--amc-border-strong, #3a324f);
	color: var(--amc-text, #ece6f8);
}

html.dark-theme .as-tg-btn-outline:hover,
html.dark-theme .as-tg-btn-outline:focus-visible,
html[data-bs-theme="dark"] .as-tg-btn-outline:hover,
html[data-bs-theme="dark"] .as-tg-btn-outline:focus-visible {
	background: var(--amc-block, #252033);
	border-color: var(--amc-link, #c4a8ff);
	color: var(--amc-link, #c4a8ff);
}

html.dark-theme .as-tg-flash--ok,
html[data-bs-theme="dark"] .as-tg-flash--ok {
	color: #86efac;
}

html.dark-theme .as-tg-flash--err,
html[data-bs-theme="dark"] .as-tg-flash--err {
	color: #fca5a5;
}

.as-page .tasks-shell-title {
	font-size: clamp(1.2rem, 2.2vw, 1.55rem);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -.015em;
	margin: 0 0 .55rem;
	color: var(--amc-text, #2b2340);
}

.as-page .tasks-shell-lead {
	font-size: .92rem;
	line-height: 1.55;
	color: var(--amc-text-muted, #8a7aa8);
	max-width: none;
}

.as-modal {
	--bs-modal-width: 720px;
}

.as-modal .tasks-custom-select__menu--fixed,
.tasks-custom-select__menu--fixed {
	z-index: 2000;
	overflow: hidden !important;
	padding: .55rem;
	border-radius: .85rem;
}

.as-modal .tasks-custom-select__menu-scroll {
	max-height: calc(280px - 1.1rem);
	overflow-x: hidden;
	overflow-y: auto;
	border-radius: .4rem;
}

.tasks-custom-select.is-disabled .tasks-custom-select__trigger,
.tasks-custom-select__trigger:disabled {
	opacity: .6;
	cursor: not-allowed;
	pointer-events: none;
}

.as-ch-form .tasks-custom-select {
	width: 100%;
}

.as-ch-sep {
	margin: .15rem 0 0;
	padding-top: .35rem;
	border-top: 1px solid rgba(15, 23, 42, .08);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8a7aa8;
}

.as-ch-tg-token-row {
	--as-ch-control-h: calc(.62rem * 2 + 1.5 * .9375rem + 3px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: .75rem;
	align-items: end;
}

.as-ch-tg-token-row__action {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.as-ch-tg-bind-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	box-sizing: border-box;
	height: var(--as-ch-control-h);
	min-height: var(--as-ch-control-h);
	padding: 0 1rem;
	line-height: 1.2;
	white-space: nowrap;
}

.as-ch-tg-bound {
	margin-top: .85rem;
	padding: .85rem 1rem;
	border-radius: .75rem;
	background: rgba(15, 23, 42, .03);
	border: 1px solid rgba(15, 23, 42, .08);
}

.as-ch-tg-bound__status {
	margin-bottom: .65rem;
	font-size: .9rem;
}

.as-ch-tg-bound__row {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
}

@media (max-width: 575.98px) {
	.as-ch-tg-token-row {
		grid-template-columns: 1fr;
	}
}

.as-ch-switch {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	margin: 0;
	padding: 0;
	cursor: pointer;
	user-select: none;
}

.as-ch-switch > input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.as-ch-switch__ui {
	position: relative;
	flex: 0 0 auto;
	width: 2.5rem;
	height: 1.4rem;
	margin-top: .12rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, .18);
	transition: background .15s ease;
}

.as-ch-switch__ui::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: calc(1.4rem - 4px);
	height: calc(1.4rem - 4px);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .2);
	transition: transform .15s ease;
}

.as-ch-switch > input:checked + .as-ch-switch__ui {
	background: #7c3aed;
}

.as-ch-switch > input:checked + .as-ch-switch__ui::after {
	transform: translateX(1.1rem);
}

.as-ch-switch > input:focus-visible + .as-ch-switch__ui {
	box-shadow: 0 0 0 3px rgba(158, 97, 255, .22);
}

.as-ch-switch__copy {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	min-width: 0;
}

.as-ch-switch__title {
	font-weight: 600;
	color: #334155;
	line-height: 1.3;
}

.as-ch-switch__hint {
	font-size: .8125rem;
	color: #64748b;
	line-height: 1.35;
}

.as-ch-voice-row {
	--as-ch-control-h: calc(.62rem * 2 + 1.5 * .9375rem + 3px);
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr) minmax(0, 1fr);
	gap: .75rem;
	align-items: end;
	width: 100%;
}

.as-ch-voice-row__test {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
}

.as-ch-test-col__label {
	display: none;
}

@media (max-width: 767.98px) {
	.as-ch-voice-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.as-ch-voice-row__voice,
	.as-ch-voice-row__role {
		grid-column: 1 / -1;
	}
}

.as-ch-test-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--as-ch-control-h);
	min-width: var(--as-ch-control-h);
	height: var(--as-ch-control-h);
	min-height: var(--as-ch-control-h);
	padding: 0;
	border-radius: .75rem;
	border: 1.5px solid rgba(15, 23, 42, .14);
	background: #fff;
	color: #6d28d9;
	cursor: pointer;
	line-height: 1;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, opacity .15s ease;
}

.as-ch-test-btn:disabled,
.as-ch-test-btn.is-loading {
	cursor: wait;
	opacity: .72;
	pointer-events: none;
}

.as-ch-test-btn .as-ch-test-btn__spin {
	display: inline-block;
	width: 1.05rem;
	height: 1.05rem;
	border: 2px solid rgba(109, 40, 217, .22);
	border-top-color: #6d28d9;
	border-radius: 50%;
	animation: as-ch-spin .7s linear infinite;
}

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

.as-ch-voice-row .tasks-custom-select__trigger.tasks-form-control {
	box-sizing: border-box;
	height: var(--as-ch-control-h);
	min-height: var(--as-ch-control-h);
	line-height: 1.5;
}

.as-ch-test-btn:hover {
	border-color: rgba(158, 97, 255, .45);
	background: rgba(158, 97, 255, .08);
	color: #6d28d9;
}

.as-ch-test-btn:focus {
	outline: none;
	border-color: rgba(158, 97, 255, .55);
	box-shadow: 0 0 0 3px rgba(158, 97, 255, .12);
	color: #6d28d9;
}

.as-ch-test-btn i {
	font-size: 1.15rem;
	line-height: 1;
}

html.dark-theme .as-ch-test-btn,
html[data-bs-theme="dark"] .as-ch-test-btn {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(255, 255, 255, .14);
	color: inherit;
}

html.dark-theme .as-ch-test-btn .as-ch-test-btn__spin,
html[data-bs-theme="dark"] .as-ch-test-btn .as-ch-test-btn__spin {
	border-color: rgba(255, 255, 255, .18);
	border-top-color: #c4b5fd;
}

.as-ch-range-label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem;
}

.as-ch-range-val {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: #64748b;
	min-width: 2ch;
	text-align: right;
}

.as-ch-range {
	display: flex;
	align-items: center;
	min-height: calc(.62rem * 2 + 1.25 * .9375rem + 3px);
	padding: 0 .15rem;
}

.as-ch-range .form-range {
	width: 100%;
	margin: 0;
}

.as-ch-audio {
	margin-top: .15rem;
}

.as-ch-footer {
	justify-content: space-between !important;
}

.as-ch-footer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-left: auto;
}

html.dark-theme .as-ch-sep,
html[data-bs-theme="dark"] .as-ch-sep {
	border-top-color: rgba(255, 255, 255, .1);
}

html.dark-theme .as-ch-switch__title,
html[data-bs-theme="dark"] .as-ch-switch__title {
	color: #e2e8f0;
}

html.dark-theme .as-ch-switch__hint,
html[data-bs-theme="dark"] .as-ch-switch__hint {
	color: #94a3b8;
}

html.dark-theme .as-ch-switch__ui,
html[data-bs-theme="dark"] .as-ch-switch__ui {
	background: rgba(255, 255, 255, .2);
}

html.dark-theme .as-ch-range-val,
html[data-bs-theme="dark"] .as-ch-range-val {
	color: #94a3b8;
}

html.dark-theme .as-ch-tg-bound,
html[data-bs-theme="dark"] .as-ch-tg-bound {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(255, 255, 255, .1);
}

.tasks-custom-select--fit {
	width: max-content;
	max-width: 100%;
}

.tasks-custom-select--fit .tasks-custom-select__trigger {
	width: auto;
	min-width: 7.5rem;
}

.tasks-custom-select--fit .tasks-custom-select__label {
	flex: 0 1 auto;
	overflow: visible;
	text-overflow: clip;
	white-space: nowrap;
}

.tasks-custom-select--fit .tasks-custom-select__menu--fixed {
	width: max-content !important;
	min-width: var(--as-fit-min, 7.5rem);
	right: auto;
}

.tasks-custom-select--fit .tasks-custom-select__option {
	white-space: nowrap;
}

.as-modal .modal-dialog {
	max-width: min(720px, calc(100vw - 1.5rem));
}

.as-modal__content {
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 1rem;
	box-shadow: 0 16px 48px rgba(15, 23, 42, .14);
	overflow: hidden;
}

.as-modal__header {
	align-items: center;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgba(15, 23, 42, .07);
	background: linear-gradient(180deg, rgba(158, 97, 255, .06), rgba(158, 97, 255, 0));
}

.as-modal__title {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0;
	color: #1e293b;
}

.as-modal__body {
	padding: 1.15rem 1.25rem;
}

.as-modal__footer {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	justify-content: flex-end;
	padding: .9rem 1.25rem 1.1rem;
	border-top: 1px solid rgba(15, 23, 42, .07);
	background: rgba(15, 23, 42, .015);
}

.as-modal__footer .btn {
	margin: 0;
}

.as-subtasks {
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.as-subtasks__list {
	display: flex;
	flex-direction: column;
	gap: .4rem;
}

.as-subtasks__row {
	display: flex;
	align-items: center;
	gap: .4rem;
}

.as-subtasks__row .form-control {
	flex: 1 1 auto;
	min-width: 0;
}

.as-subtasks__remove {
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(15, 23, 42, .1);
	border-radius: .5rem;
	background: #fff;
	color: #64748b;
	cursor: pointer;
}

.as-subtasks__remove:hover {
	color: #dc2626;
	border-color: rgba(220, 38, 38, .35);
	background: rgba(220, 38, 38, .06);
}

.as-subtasks__add {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: .35rem;
}

html.dark-theme .as-subtasks__remove,
html[data-bs-theme="dark"] .as-subtasks__remove {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(255, 255, 255, .12);
	color: inherit;
}

html.dark-theme .as-modal__content,
html[data-bs-theme="dark"] .as-modal__content {
	background: var(--bs-body-bg, #1e1e2e);
	border-color: rgba(255, 255, 255, .1);
}

html.dark-theme .as-modal__title,
html[data-bs-theme="dark"] .as-modal__title {
	color: inherit;
}

html.dark-theme .as-modal__footer,
html[data-bs-theme="dark"] .as-modal__footer {
	background: rgba(255, 255, 255, .03);
}

.as-shell {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.as-page .as-nav .tasks-my-nav__link {
	cursor: pointer;
}

.as-page .as-workspace {
	width: 100%;
	padding-top: .75rem;
}

.as-gate {
	text-align: center;
	padding: 2.5rem 1.5rem;
	max-width: 28rem;
	margin: 1rem auto;
}

.as-gate__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.2rem;
	height: 3.2rem;
	border-radius: 1rem;
	background: rgba(158, 97, 255, .12);
	color: #6d28d9;
	font-size: 1.45rem;
	margin-bottom: .85rem;
}

.as-gate__title {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: .4rem;
	color: #1e293b;
}

.as-gate__text {
	color: #64748b;
	margin-bottom: 1.1rem;
}

.as-view[hidden] {
	display: none !important;
}

.as-alert {
	margin: 0 0 1rem;
}

.as-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: 1.75rem 1rem;
	font-size: .92rem;
}

.as-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: .85rem;
}

.as-card-head strong {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

.as-section-title {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-weight: 700;
	margin-bottom: .65rem;
	color: #1e293b;
}

.as-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: .35rem;
}

.as-toolbar {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	margin-bottom: .85rem;
	flex-wrap: wrap;
	width: 100%;
}

.as-toolbar .as-task-filters {
	margin-bottom: 0;
}

.as-toolbar--start {
	justify-content: flex-start;
}

.as-toolbar:has(.as-toolbar__search) {
	align-items: stretch;
}

.as-toolbar__search {
	position: relative;
	flex: 1 1 220px;
	min-width: 0;
}

.as-toolbar__search > i {
	position: absolute;
	left: .75rem;
	top: 50%;
	transform: translateY(-50%);
	color: #8a7aa8;
	pointer-events: none;
	z-index: 1;
}

.as-toolbar__search input {
	padding-left: 2.2rem;
	height: 100%;
}

.as-toolbar:has(.as-toolbar__search) > .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	white-space: nowrap;
	min-height: calc(.62rem * 2 + 1.25 * .9375rem + 3px);
	padding-top: 0;
	padding-bottom: 0;
}

.as-prio-pick {
	display: inline-flex;
	gap: .3rem;
}

.as-prio-btn {
	appearance: none;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 8px;
	border: 1.5px solid rgba(15, 23, 42, .1);
	background: #fff;
	color: #475569;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.as-prio-btn:hover {
	border-color: rgba(158, 97, 255, .35);
	color: #7c3aed;
}

.as-prio-btn.is-on {
	border-color: rgba(15, 23, 42, .22);
	background: rgba(15, 23, 42, .06);
	font-weight: 700;
}

.as-prio-btn--1.is-on {
	background: rgba(239, 68, 68, .14);
	border-color: rgba(239, 68, 68, .35);
	color: #b91c1c;
}

.as-prio-btn--2.is-on {
	background: rgba(245, 158, 11, .14);
	border-color: rgba(245, 158, 11, .35);
	color: #b45309;
}

.as-prio-btn--3.is-on {
	background: rgba(59, 130, 246, .12);
	border-color: rgba(59, 130, 246, .32);
	color: #1d4ed8;
}

.as-task-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-bottom: .95rem;
}

.as-chip {
	appearance: none;
	border: 1.5px solid rgba(15, 23, 42, .1);
	background: #fff;
	color: #475569;
	border-radius: 999px;
	padding: .38rem .8rem;
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.as-chip:hover {
	border-color: rgba(158, 97, 255, .35);
	color: #7c3aed;
}

.as-chip.is-on {
	border-color: rgba(158, 97, 255, .45);
	background: rgba(158, 97, 255, .1);
	color: #6d28d9;
}

.as-count {
	opacity: .75;
	font-weight: 700;
}

.as-group-title {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #8a7aa8;
	margin: .95rem 0 .45rem;
	display: flex;
	align-items: center;
	gap: .35rem;
}

.as-task-list,
.as-note-list,
[data-as-note-list],
[data-as-rt-list],
[data-as-ch-list] {
	width: 100%;
}

.as-task {
	margin-bottom: .55rem;
	cursor: pointer;
}

.as-task--prio-1 {
	background: rgba(239, 68, 68, .1);
	border-color: rgba(239, 68, 68, .22);
}

.as-task--prio-2 {
	background: rgba(245, 158, 11, .1);
	border-color: rgba(245, 158, 11, .22);
}

.as-task--prio-3 {
	background: rgba(59, 130, 246, .08);
	border-color: rgba(59, 130, 246, .2);
}

.as-task__row {
	display: flex;
	gap: .55rem;
	align-items: flex-start;
}

.as-drag {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	margin-top: .2rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #94a3b8;
	cursor: grab;
	touch-action: none;
	user-select: none;
	line-height: 1;
}

.as-drag:hover {
	color: #64748b;
}

.as-drag:active {
	cursor: grabbing;
}

.as-task.is-dragging,
.as-note.is-dragging {
	opacity: .55;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.as-task__check {
	margin-top: .3rem;
	flex-shrink: 0;
}

.as-task__title {
	font-weight: 600;
	line-height: 1.35;
	color: #1e293b;
}

.as-task__meta {
	margin-top: .15rem;
	font-size: .8125rem;
	color: #64748b;
}

.as-task__subs {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	margin-top: .45rem;
}

.as-sub {
	font-size: .85rem;
	display: flex;
	align-items: center;
	gap: .4rem;
	cursor: pointer;
	color: #334155;
}

.as-sub--done {
	color: #94a3b8;
}

.as-sub--done .as-sub__text {
	text-decoration: line-through;
	opacity: .9;
}

html.dark-theme .as-sub--done,
html[data-bs-theme="dark"] .as-sub--done {
	color: #64748b;
}

.as-badge {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
	font-size: .7rem;
	font-weight: 700;
	padding: .12rem .45rem;
	border-radius: 999px;
	background: rgba(158, 97, 255, .12);
	color: #6d28d9;
	vertical-align: middle;
}

.as-cal-nav {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: .85rem;
	flex-wrap: wrap;
	width: 100%;
}

.as-cal-nav__sum {
	margin-left: auto;
}

.as-cal-week {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: .4rem;
	width: 100%;
}

.as-week-day {
	appearance: none;
	border: 1.5px solid rgba(15, 23, 42, .08);
	background: #fff;
	border-radius: .75rem;
	padding: .55rem .25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .15rem;
	cursor: pointer;
	font-size: .78rem;
	color: #475569;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.as-week-day em {
	font-style: normal;
	font-weight: 700;
	font-size: .9rem;
	color: #1e293b;
}

.as-week-day:hover {
	border-color: rgba(158, 97, 255, .35);
	color: #7c3aed;
}

.as-week-day.is-on {
	border-color: rgba(158, 97, 255, .45);
	background: rgba(158, 97, 255, .1);
	color: #6d28d9;
}

.as-week-day.is-on em {
	color: #6d28d9;
}

.as-note {
	cursor: pointer;
	padding: 1.05rem 1.15rem;
}

.as-note__head {
	display: flex;
	align-items: flex-start;
	gap: .45rem;
	justify-content: flex-start;
	margin-bottom: .55rem;
}

.as-note__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	color: #1e293b;
}

.as-note__date {
	flex-shrink: 0;
	white-space: nowrap;
}

.as-note__body {
	font-size: .9375rem;
	line-height: 1.55;
	color: #334155;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.as-note__link {
	color: #6d28d9;
	text-decoration: underline;
	text-underline-offset: .12em;
	word-break: break-all;
}

.as-note__link:hover {
	color: #7c3aed;
}

.as-note__atts {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin-top: .7rem;
}

.as-note__attach {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-size: .8125rem;
	font-weight: 600;
	color: #6d28d9;
	text-decoration: none;
	padding: .25rem .55rem;
	border-radius: 999px;
	background: rgba(158, 97, 255, .1);
}

.as-note__attach:hover {
	background: rgba(158, 97, 255, .16);
	color: #7c3aed;
}

.as-pin {
	color: #6d28d9;
}

html.dark-theme .as-note__title,
html[data-bs-theme="dark"] .as-note__title {
	color: inherit;
}

html.dark-theme .as-note__body,
html[data-bs-theme="dark"] .as-note__body {
	color: inherit;
	opacity: .92;
}

.as-rt {
	margin-bottom: .55rem;
}

.as-ch-card {
	position: relative;
	display: block;
	padding-right: 6.5rem;
	border: 1.5px solid rgba(15, 23, 42, .08);
	background: #fff;
	color: inherit;
	cursor: default;
}

.as-ch-card.is-active {
	border-color: rgba(158, 97, 255, .45);
	background: rgba(158, 97, 255, .08);
}

.as-ch-card__main {
	display: flex;
	align-items: center;
	gap: .7rem;
	min-width: 0;
}

.as-ch-card__body {
	min-width: 0;
	flex: 1;
}

.as-ch-card__title {
	padding-right: .25rem;
	line-height: 1.3;
}

.as-ch-card__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: rgba(15, 23, 42, .06);
}

.as-ch-card__avatar--fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(15, 23, 42, .45);
	font-size: 1.1rem;
}

html.dark-theme .as-ch-card__avatar,
html[data-bs-theme="dark"] .as-ch-card__avatar {
	background: rgba(255, 255, 255, .08);
}

html.dark-theme .as-ch-card__avatar--fallback,
html[data-bs-theme="dark"] .as-ch-card__avatar--fallback {
	color: rgba(255, 255, 255, .55);
}

.as-ch-card__meta {
	margin-top: .12rem;
	padding-right: .25rem;
	line-height: 1.3;
}

.as-ch-card__badge {
	display: inline-block;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #0f766e;
}

.as-ch-card__actions {
	position: absolute;
	top: .7rem;
	right: .7rem;
	display: flex;
	flex-shrink: 0;
	gap: .3rem;
	z-index: 1;
}

.as-ch-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	padding: 0;
	border-radius: .65rem;
	border: 1.5px solid rgba(15, 23, 42, .18);
	background: transparent;
	color: #475569;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.as-ch-card__btn i {
	font-size: 1.05rem;
	line-height: 1;
}

.as-ch-card__btn:hover {
	border-color: rgba(15, 23, 42, .35);
	background: rgba(15, 23, 42, .04);
	color: #0f172a;
}

.as-ch-card__btn--on {
	border-color: rgba(225, 29, 72, .35);
	background: rgba(255, 228, 230, .95);
	color: #e11d48;
	cursor: default;
}

.as-ch-card__btn.is-loading,
.as-ch-card__btn:disabled {
	opacity: .75;
	cursor: wait;
	pointer-events: none;
}

.as-ch-card__spin {
	display: inline-block;
	width: .95rem;
	height: .95rem;
	border: 2px solid rgba(99, 102, 241, .25);
	border-top-color: #6366f1;
	border-radius: 50%;
	animation: as-ch-spin .7s linear infinite;
	vertical-align: middle;
}

.as-ch-card__btn--on i {
	font-size: 1.2rem;
}

.as-ch-card__btn--on:hover {
	border-color: rgba(225, 29, 72, .45);
	background: rgba(255, 228, 230, .95);
	color: #e11d48;
}

.as-ch-card__btn--danger:hover {
	border-color: rgba(220, 38, 38, .4);
	background: rgba(220, 38, 38, .06);
	color: #dc2626;
}

.as-badge--muted {
	background: rgba(100, 116, 139, .12);
	color: #64748b;
}

html.dark-theme .as-ch-card__btn,
html[data-bs-theme="dark"] .as-ch-card__btn {
	background: transparent;
	border-color: rgba(255, 255, 255, .22);
	color: inherit;
}

html.dark-theme .as-ch-card__btn:hover,
html[data-bs-theme="dark"] .as-ch-card__btn:hover {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .35);
	color: inherit;
}

html.dark-theme .as-ch-card__btn--on,
html[data-bs-theme="dark"] .as-ch-card__btn--on,
html.dark-theme .as-ch-card__btn--on:hover,
html[data-bs-theme="dark"] .as-ch-card__btn--on:hover {
	border-color: rgba(251, 113, 133, .45);
	background: rgba(225, 29, 72, .22);
	color: #fb7185;
}

.as-settings-card,
.as-task-editor,
.as-note-editor,
.as-ch-editor,
.as-dossier {
	margin-top: .85rem;
}

.as-tg-bind-card.as-settings-card {
	margin-top: 0;
}

.as-settings-card.tasks-card,
.as-task-editor.tasks-card,
.as-note-editor.tasks-card,
.as-ch-editor.tasks-card,
.as-dossier.tasks-card {
	/* карточки-формы не «прыгают» при наведении */
	transform: none;
}

.as-settings-card.tasks-card:hover,
.as-task-editor.tasks-card:hover,
.as-note-editor.tasks-card:hover,
.as-ch-editor.tasks-card:hover,
.as-dossier.tasks-card:hover {
	transform: none;
	box-shadow: none;
	border-color: rgba(15, 23, 42, .08);
}

@media (max-width: 767.98px) {
	.as-cal-week {
		gap: .25rem;
	}
}

/* Dark theme */
html.dark-theme .as-gate__title,
html[data-bs-theme="dark"] .as-gate__title,
html.dark-theme .as-section-title,
html[data-bs-theme="dark"] .as-section-title,
html.dark-theme .as-task__title,
html[data-bs-theme="dark"] .as-task__title,
html.dark-theme .as-week-day em,
html[data-bs-theme="dark"] .as-week-day em {
	color: inherit;
}

html.dark-theme .as-chip,
html[data-bs-theme="dark"] .as-chip,
html.dark-theme .as-prio-btn,
html[data-bs-theme="dark"] .as-prio-btn,
html.dark-theme .as-week-day,
html[data-bs-theme="dark"] .as-week-day,
html.dark-theme .as-ch-card,
html[data-bs-theme="dark"] .as-ch-card {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(255, 255, 255, .1);
	color: inherit;
}

html.dark-theme .as-chip.is-on,
html[data-bs-theme="dark"] .as-chip.is-on,
html.dark-theme .as-week-day.is-on,
html[data-bs-theme="dark"] .as-week-day.is-on,
html.dark-theme .as-ch-card.is-active,
html[data-bs-theme="dark"] .as-ch-card.is-active {
	background: rgba(158, 97, 255, .18);
	border-color: rgba(158, 97, 255, .45);
	color: #c4b5fd;
}

/* —— DateTime picker (AmoLab) —— */
.as-dtp {
	position: relative;
	width: 100%;
}

.as-dtp__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	width: 100%;
	text-align: left;
	cursor: pointer;
}

.as-dtp__label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
}

.as-dtp__label.is-empty {
	color: #94a3b8;
}

.as-dtp__ico {
	flex-shrink: 0;
	font-size: 1.05rem;
	color: #9e61ff;
	opacity: .9;
}

.as-dtp.is-open .as-dtp__trigger {
	border-color: rgba(158, 97, 255, .55);
	box-shadow: 0 0 0 3px rgba(158, 97, 255, .12);
}

.as-dtp-panel {
	display: none;
	box-sizing: border-box;
	max-width: calc(100vw - 1rem);
	padding: .65rem;
	border: 1px solid rgba(15, 23, 42, .1);
	border-radius: .85rem;
	background: #fff;
	box-shadow: 0 .65rem 1.75rem rgba(20, 16, 40, .14);
	font-family: inherit;
}

.as-dtp-panel.is-open {
	display: block;
	width: min(19.5rem, calc(100vw - 1rem));
}

.as-dtp-panel__cal {
	min-width: 0;
}

.as-dtp-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-bottom: .45rem;
	padding: 0 .15rem;
}

.as-dtp-panel__month {
	border: 0;
	background: transparent;
	padding: .2rem .15rem;
	font-weight: 600;
	font-size: .9375rem;
	color: #1e293b;
	cursor: default;
}

.as-dtp-panel__nav {
	display: inline-flex;
	flex-direction: column;
	gap: .1rem;
}

.as-dtp-panel__nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.55rem;
	height: 1.15rem;
	padding: 0;
	border: 0;
	border-radius: .35rem;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	line-height: 1;
}

.as-dtp-panel__nav-btn:hover {
	background: rgba(158, 97, 255, .1);
	color: #6d28d9;
}

.as-dtp-panel__weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: .1rem;
	margin-bottom: .2rem;
	text-align: center;
	font-size: .72rem;
	font-weight: 600;
	color: #94a3b8;
}

.as-dtp-panel__days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: .15rem;
}

.as-dtp-panel__day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	width: 100%;
	min-height: 2rem;
	padding: 0;
	border: 1.5px solid transparent;
	border-radius: .45rem;
	background: transparent;
	color: #1e293b;
	font-size: .875rem;
	font-weight: 500;
	cursor: pointer;
	line-height: 1;
}

.as-dtp-panel__day:hover:not(:disabled) {
	border-color: rgba(15, 23, 42, .35);
}

.as-dtp-panel__day.is-out {
	color: #cbd5e1;
	cursor: default;
}

.as-dtp-panel__day.is-today:not(.is-selected) {
	background: rgba(158, 97, 255, .08);
	color: #6d28d9;
}

.as-dtp-panel__day.is-selected {
	background: #9e61ff;
	border-color: #7c3aed;
	color: #fff;
	font-weight: 600;
}

.as-dtp-panel__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: .55rem;
	padding: .15rem .1rem 0;
}

.as-dtp-panel__link {
	border: 0;
	background: transparent;
	padding: .25rem .2rem;
	color: #9e61ff;
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
}

.as-dtp-panel__link:hover {
	color: #6d28d9;
	text-decoration: underline;
}

.as-dtp-panel__time {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .65rem;
	margin-top: .65rem;
	padding: .55rem .45rem;
	border: 1.5px solid rgba(15, 23, 42, .08);
	border-radius: .65rem;
	background: rgba(158, 97, 255, .04);
}

.as-dtp-panel__time-label {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .8125rem;
	font-weight: 600;
	color: #64748b;
	white-space: nowrap;
}

.as-dtp-panel__time-label .bi {
	color: #9e61ff;
}

.as-dtp-panel__time-fields {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
}

.as-dtp-panel__time-sep {
	font-weight: 700;
	color: #94a3b8;
	line-height: 1;
}

.as-dtp-dd {
	position: relative;
}

.as-dtp-dd__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: .35rem;
	min-width: 3.6rem;
	height: 2.15rem;
	padding: 0 .55rem;
	border: 1.5px solid rgba(15, 23, 42, .14);
	border-radius: .55rem;
	background: #fff;
	color: #1e293b;
	font-size: .9rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	line-height: 1;
}

.as-dtp-dd__trigger .bi {
	font-size: .7rem;
	color: #9e61ff;
}

.as-dtp-dd__trigger:hover,
.as-dtp-dd.is-open .as-dtp-dd__trigger {
	border-color: rgba(158, 97, 255, .5);
	box-shadow: 0 0 0 3px rgba(158, 97, 255, .12);
}

.as-dtp-dd__menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + .35rem);
	z-index: 5;
	min-width: 3.6rem;
	max-height: 11.5rem;
	padding: .35rem;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, .1);
	border-radius: .65rem;
	background: #fff;
	box-shadow: 0 .45rem 1.15rem rgba(20, 16, 40, .14);
}

.as-dtp-dd__menu-scroll {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	max-height: calc(11.5rem - .7rem);
	overflow-x: hidden;
	overflow-y: auto;
	border-radius: .4rem;
	scrollbar-width: thin;
}

.as-dtp-dd__opt {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 1.85rem;
	padding: 0 .4rem;
	border: 0;
	border-radius: .4rem;
	background: transparent;
	color: #334155;
	font-size: .875rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.as-dtp-dd__opt:hover {
	background: rgba(158, 97, 255, .1);
	color: #6d28d9;
}

.as-dtp-dd__opt.is-selected {
	background: #9e61ff;
	color: #fff;
}

html.dark-theme .as-dtp__label.is-empty,
html[data-bs-theme="dark"] .as-dtp__label.is-empty {
	color: rgba(255, 255, 255, .45);
}

html.dark-theme .as-dtp-panel,
html[data-bs-theme="dark"] .as-dtp-panel {
	background: #211c2d;
	border-color: #3a324f;
	box-shadow: 0 .65rem 1.75rem rgba(0, 0, 0, .35);
}

html.dark-theme .as-dtp-panel__month,
html[data-bs-theme="dark"] .as-dtp-panel__month,
html.dark-theme .as-dtp-panel__day,
html[data-bs-theme="dark"] .as-dtp-panel__day {
	color: inherit;
}

html.dark-theme .as-dtp-panel__day.is-out,
html[data-bs-theme="dark"] .as-dtp-panel__day.is-out {
	color: rgba(255, 255, 255, .28);
}

html.dark-theme .as-dtp-panel__day.is-selected,
html[data-bs-theme="dark"] .as-dtp-panel__day.is-selected {
	background: #9e61ff;
	border-color: #a78bfa;
	color: #fff;
}

html.dark-theme .as-dtp-panel__time,
html[data-bs-theme="dark"] .as-dtp-panel__time {
	background: rgba(158, 97, 255, .1);
	border-color: rgba(255, 255, 255, .1);
}

html.dark-theme .as-dtp-dd__trigger,
html[data-bs-theme="dark"] .as-dtp-dd__trigger {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(255, 255, 255, .16);
	color: inherit;
}

html.dark-theme .as-dtp-dd__menu,
html[data-bs-theme="dark"] .as-dtp-dd__menu {
	background: #211c2d;
	border-color: #3a324f;
}

html.dark-theme .as-dtp-dd__opt,
html[data-bs-theme="dark"] .as-dtp-dd__opt {
	color: inherit;
}

html.dark-theme .as-dtp-dd__opt.is-selected,
html[data-bs-theme="dark"] .as-dtp-dd__opt.is-selected {
	background: #9e61ff;
	color: #fff;
}

/* —— Не беспокоить (quiet hours) —— */
.as-qh {
	position: relative;
	width: 100%;
}

.as-qh__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	width: 100%;
	text-align: left;
	cursor: pointer;
}

.as-qh__label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.as-qh__ico {
	flex-shrink: 0;
	font-size: 1.05rem;
	color: #9e61ff;
}

.as-qh.is-open .as-qh__trigger {
	border-color: rgba(158, 97, 255, .55);
	box-shadow: 0 0 0 3px rgba(158, 97, 255, .12);
}

.as-qh-panel {
	display: none;
	box-sizing: border-box;
	padding: .75rem;
	border: 1px solid rgba(15, 23, 42, .1);
	border-radius: .85rem;
	background: #fff;
	box-shadow: 0 .65rem 1.75rem rgba(20, 16, 40, .14);
	font-family: inherit;
}

.as-qh-panel.is-open {
	display: flex;
	flex-direction: column;
	gap: .55rem;
	min-width: 15.5rem;
}

.as-qh-panel__row {
	display: flex;
	align-items: center;
	gap: .35rem;
	padding: .45rem .5rem;
	border: 1.5px solid rgba(15, 23, 42, .08);
	border-radius: .65rem;
	background: rgba(158, 97, 255, .04);
}

.as-qh-panel__tag {
	min-width: 1.75rem;
	font-size: .8125rem;
	font-weight: 700;
	color: #9e61ff;
	text-transform: lowercase;
}

.as-qh-panel .as-dtp-dd__trigger {
	min-width: 3.4rem;
}

html.dark-theme .as-qh-panel,
html[data-bs-theme="dark"] .as-qh-panel {
	background: #211c2d;
	border-color: #3a324f;
	box-shadow: 0 .65rem 1.75rem rgba(0, 0, 0, .35);
}

html.dark-theme .as-qh-panel__row,
html[data-bs-theme="dark"] .as-qh-panel__row {
	background: rgba(158, 97, 255, .1);
	border-color: rgba(255, 255, 255, .1);
}

/* —— Guest mode —— */
.as-guest-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1rem;
	margin-bottom: .85rem;
	padding: .85rem 1rem;
	border-color: rgba(158, 97, 255, .28);
	background: rgba(158, 97, 255, .07);
}

.as-guest-banner__text {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	min-width: 0;
	flex: 1 1 14rem;
}

.as-guest-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	flex-shrink: 0;
}

html.dark-theme .as-guest-banner,
html[data-bs-theme="dark"] .as-guest-banner {
	background: rgba(158, 97, 255, .14);
	border-color: rgba(196, 181, 253, .35);
}
