:root {
	--ta-blue: #005b89;
	--ta-blue-dark: #0b3d56;
	--ta-gray: #b2b0a1;
	--ta-surface: #ffffff;
	--ta-surface-soft: #f5f7f8;
	--ta-border: rgba(0, 91, 137, 0.14);
	--ta-text: #173042;
	--ta-text-soft: #5c6b74;
	--ta-danger: #b64242;
	--ta-success: #2f7a4f;
	--ta-shadow: 0 18px 42px rgba(16, 45, 64, 0.12);
	--ta-radius-lg: 22px;
	--ta-radius-md: 16px;
	--ta-radius-sm: 10px;
	--ta-font: "Overpass", "Segoe UI", Arial, sans-serif;
}

.ta-app,
.ta-app * {
	box-sizing: border-box;
}

.ta-app {
	font-family: var(--ta-font);
	color: var(--ta-text);
	max-width: 1080px;
	margin: 0 auto;
}

.ta-content,
.ta-feedback {
	width: 100%;
}

.ta-feedback:empty {
	display: none;
}

.ta-card,
.ta-panel {
	background:
		radial-gradient(circle at top right, rgba(178, 176, 161, 0.22), transparent 35%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 248, 0.98));
	border: 1px solid var(--ta-border);
	border-radius: var(--ta-radius-lg);
	box-shadow: var(--ta-shadow);
	padding: 1.5rem;
}

.ta-card__header,
.ta-panel__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.ta-card__title,
.ta-panel__title {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.15;
	color: var(--ta-blue-dark);
}

.ta-card__subtitle,
.ta-panel__subtitle,
.ta-detail-field__label,
.ta-eyebrow {
	color: var(--ta-text-soft);
}

.ta-card__subtitle,
.ta-panel__subtitle {
	margin: 0.4rem 0 0;
	font-size: 0.98rem;
}

.ta-eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ta-login-card {
	max-width: 560px;
	margin: 0 auto;
}

.ta-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.ta-panel__actions {
	justify-content: flex-end;
	margin-top: 0;
}

.ta-form {
	display: grid;
	gap: 1rem;
}

.ta-form-row {
	display: grid;
	gap: 0.45rem;
}

.ta-label {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ta-blue-dark);
}

.ta-input {
	width: 100%;
	border: 1px solid rgba(0, 91, 137, 0.18);
	border-radius: var(--ta-radius-sm);
	padding: 0.85rem 0.95rem;
	font: inherit;
	color: var(--ta-text);
	background-color: rgba(255, 255, 255, 0.96);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ta-input:focus {
	outline: none;
	border-color: var(--ta-blue);
	box-shadow: 0 0 0 4px rgba(0, 91, 137, 0.12);
}

.ta-textarea {
	min-height: 10rem;
	resize: vertical;
}

.ta-form-actions {
	padding-top: 0.25rem;
}

.ta-login-card__toggle {
	margin-top: 0.5rem;
}

.ta-login-card__form {
	margin-top: 1rem;
}

.ta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 0;
	border-radius: 999px;
	padding: 0.88rem 1.35rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	color: #ffffff;
	background: linear-gradient(135deg, var(--ta-blue), #1a7fb2);
	box-shadow: 0 10px 20px rgba(0, 91, 137, 0.2);
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ta-button--compact {
	padding: 0.62rem 1rem;
	font-size: 0.92rem;
	font-weight: 600;
}

.ta-button:hover,
.ta-button:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 24px rgba(0, 91, 137, 0.22);
}

.ta-button:focus-visible {
	outline: 3px solid rgba(0, 91, 137, 0.18);
	outline-offset: 2px;
}

.ta-button--secondary {
	color: var(--ta-blue-dark);
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(0, 91, 137, 0.16);
	box-shadow: none;
}

.ta-button--secondary:hover,
.ta-button--secondary:focus-visible {
	box-shadow: 0 10px 20px rgba(17, 34, 44, 0.08);
}

.ta-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	border-radius: 999px;
	padding: 0.3rem 0.7rem;
	font-size: 0.82rem;
	font-weight: 700;
	background: rgba(0, 91, 137, 0.1);
	color: var(--ta-blue-dark);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ta-modal[hidden] {
	display: none;
}

.ta-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 1.25rem;
}

.ta-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 32, 45, 0.58);
	backdrop-filter: blur(2px);
}

.ta-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 700px);
	max-width: 100%;
	max-height: min(88vh, 920px);
	overflow: auto;
	padding: 1.35rem;
	border: 1px solid rgba(0, 91, 137, 0.14);
	border-radius: var(--ta-radius-lg);
	background:
		radial-gradient(circle at top right, rgba(178, 176, 161, 0.18), transparent 30%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 247, 248, 0.99));
	box-shadow: 0 22px 48px rgba(12, 33, 48, 0.24);
}

.ta-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.ta-modal__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.2;
	color: var(--ta-blue-dark);
}

.ta-modal__subtitle {
	margin: 0.35rem 0 0;
	color: var(--ta-text-soft);
}

.ta-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(0, 91, 137, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--ta-blue-dark);
	cursor: pointer;
	font-size: 1.35rem;
	line-height: 1;
}

.ta-modal__close:hover,
.ta-modal__close:focus-visible {
	border-color: rgba(0, 91, 137, 0.35);
	box-shadow: 0 10px 20px rgba(16, 45, 64, 0.08);
}

.ta-modal__feedback:empty {
	display: none;
}

.ta-modal__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: 1rem;
}

body.ta-modal-open {
	overflow: hidden;
}

.ta-empty-state {
	padding: 1.4rem;
	border-radius: var(--ta-radius-md);
	background: rgba(255, 255, 255, 0.8);
	border: 1px dashed rgba(0, 91, 137, 0.18);
}

.ta-empty-state h3 {
	margin-top: 0;
	margin-bottom: 0.5rem;
	color: var(--ta-blue-dark);
}

.ta-alert {
	margin-bottom: 1rem;
	padding: 0.95rem 1rem;
	border-radius: var(--ta-radius-sm);
	border: 1px solid transparent;
	font-family: var(--ta-font);
	font-weight: 600;
}

.ta-alert--error {
	color: #812f2f;
	background: rgba(182, 66, 66, 0.1);
	border-color: rgba(182, 66, 66, 0.18);
}

.ta-alert--info {
	color: var(--ta-blue-dark);
	background: rgba(0, 91, 137, 0.08);
	border-color: rgba(0, 91, 137, 0.16);
}

.ta-alert--success {
	color: #24583c;
	background: rgba(47, 122, 79, 0.1);
	border-color: rgba(47, 122, 79, 0.16);
}

.ta-loading-card {
	padding: 1rem;
	border-radius: var(--ta-radius-md);
	border: 1px dashed rgba(0, 91, 137, 0.22);
	background: rgba(255, 255, 255, 0.82);
	color: var(--ta-text-soft);
}

.ta-app.is-loading {
	opacity: 0.82;
}

.ta-form.is-loading {
	opacity: 0.85;
}

@media (max-width: 680px) {
	.ta-card,
	.ta-panel {
		padding: 1.1rem;
		border-radius: 18px;
	}

	.ta-panel__header,
	.ta-card__header {
		flex-direction: column;
		align-items: stretch;
	}

	.ta-button,
	.ta-button--secondary {
		width: 100%;
	}

	.ta-modal__dialog {
		padding: 1.05rem;
	}

	.ta-modal__actions {
		flex-direction: column-reverse;
	}
}
