﻿/* AUTO-GENERATED -- DO NOT EDIT
 * This file is rebuilt on every build. Edit the co-located .razor.css source files instead.
 */
.tileSignIn {
	box-sizing: border-box;
	width: 100%;
	padding: 2rem;
	border: 0.0625rem solid var(--colorTileBdr);
	border-radius: 0.75rem;
	background-color: var(--colorTileBg);
}

/* -------------------------------------------------------------------------- *
 * Layout - Public (signed-out) shell
 * Ported/simplified from Mohunky.Cornerstone-v8 / bidPiston's PublicLayout.
 * Top bar styling now lives solely in O_PortalTopBar.razor.css (shared organism).
 * -------------------------------------------------------------------------- */
.publicMain {
	display: flex;
	align-items: center;
	min-height: calc(100vh - var(--appTopBarHeight, 4.5rem));
	margin-top: var(--appTopBarHeight, 4.5rem);
	padding: 2rem 1.5rem;
}

	.publicMain .row {
		width: 100%;
	}

@media only screen and (max-width: 900px) {
	.publicMain .span7 {
		width: 100%;
	}
}

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}


#components-reconnect-modal {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active {
        background-color: #6b9ed2;
    }

.components-rejoining-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2) {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* -------------------------------------------------------------------------- *
 * View - Chat
 * -------------------------------------------------------------------------- */


/* ----- Chat Layout ----- */
#appBody > header:has(+ .v_chat) {
	flex-shrink: 0;
}

#appBody > main.v_chat {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	height: 0;
	min-height: 0;
	overflow: hidden;
}

	#appBody > main.v_chat > .container {
		display: flex;
		flex-direction: column;
		flex-basis: 0;
		flex-grow: 1;
		min-height: 0;
		overflow: hidden;
	}

		#appBody > main.v_chat > .container > .row {
			align-items: stretch;
			flex-basis: 0;
			flex-grow: 1;
			flex-wrap: nowrap;
			height: 100%;
			max-height: 100%;
			min-height: 0;
			overflow: hidden;
		}

			#appBody > main.v_chat > .container > .row > .col {
				display: flex;
				flex-direction: column;
				flex: 1 1 0;
				height: 100%;
				max-height: 100%;
				min-height: 0;
				overflow: hidden;
			}



._chatLayout {
	display: grid;
	grid-template-columns: 1fr 4fr;
	grid-template-rows: minmax(0, 1fr) auto;
	grid-template-areas:
		"history messages"
		"history composer";
	height: 100%;
	max-height: 100%;
	min-height: 0;
	width: 100%;
	overflow: hidden;
}

/* ----- Chat History List ----- */
._chatHistory {
	grid-area: history;
	align-self: stretch;
	overflow: hidden;
	min-height: 0;
	min-width: 0;
}

	._chatHistory .o_portalTile {
		min-height: 0;
	}

	._chatHistory .o_portalTile ._tile {
		min-height: 0;
	}

	._chatHistory .o_portalTile ._tileContent {
		overflow-y: auto;
		min-height: 0;
	}

._chatHistoryList {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border-top: 0.0625rem solid var(--colorTileBdr);
	list-style: none;
}

	._chatHistoryItem {
		border-bottom: 0.0625rem solid var(--colorTileBdr);
	}

		._chatHistoryLink,
		._chatHistoryLink:visited {
			display: flex;
			flex-direction: column;
			margin: 0.250rem 0;
			padding: 0.6rem 0.75rem;
			border-radius: 0.5rem;
			border-bottom:none;
			text-decoration: none;
			color: var(--colorText)
		}


			._chatHistoryLink:hover {
				background-color: var(--colorTileHdr);
				border-bottom:none;
			}

			._chatHistoryLink.-active {
				background-color: var(--colorPrimary);
				border-bottom:none;
			}

			._chatHistoryLink ._title {
				font-weight: 700;
				color: var(--colorText);
			}

			._chatHistoryLink ._meta {
				font-size: 0.875rem;
				color: var(--colorText);
			}

				._chatHistoryLink.-active ._title,
				._chatHistoryLink.-active ._meta {
					color: var(--colorWhite-perpetual);
				}

/* ----- Conversation ----- */
._chatMessages {
	grid-area: messages;
	align-self: stretch;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 0;
	min-width: 0;
	overflow-y: auto;
	padding: 1rem;
}

	._chatMessages > :first-child {
		margin-top: auto;
	}

	._chatMessage {
		box-sizing: border-box;
		max-width: 42rem;
		padding: 0.9rem 1.1rem;
		border-radius: 0.75rem;
		background-color: var(--colorTileBg);
		border: 0.0625rem solid var(--colorTileBdr);
	}

		._chatMessage.-user {
			align-self: flex-end;
			background-color: var(--colorPrimary);
			border-color: var(--colorPrimary-lighter);
		}

		._chatMessage ._timestamp {
			display: block;
			font-size: 0.75rem;
		}

		._chatMessage.-assistant ._usage {
			display: block;
			margin-top: 0.15rem;
			font-size: 0.7rem;
			color: var(--colorText);
			background-color: var(--colorViewBg);
			border: solid 1px var(--colorTileBdr);
			opacity: 0.65;
			white-space: normal;
			word-break: break-word;
		}

		._chatMessage.-user ._timestamp {
			font-size: 0.75rem;
			color: var(--colorWhite-perpetual);
		}

		/* --- Pending message --- */
		._chatMessage.-pending {
			opacity: 0.6;
		}




/* ----- Chat Input ----- */
._chatComposer {
	grid-area: composer;
	display: flex;
	flex-wrap: wrap;
	flex-shrink: 0;
	gap: 0.5rem 0.75rem;
	align-items: flex-end;
	min-width: 0;
	padding: 1rem 0 0 1rem;
}

	._chatInput {
		flex-grow: 1;
		flex-shrink: 1;
		min-width: 0;
		box-sizing: border-box;
		padding: 0.65rem 0.9rem;
		border: 0.0625rem solid var(--colorTileBdr);
		border-radius: 0.5rem;
		background-color: var(--colorTileBg);
		color: var(--colorText);
		font-family: 'Nunito', Helvetica, Arial, sans-serif;
		font-size: 1rem;
		resize: none;
		overflow-y: auto;
		line-height: 1.4;
		max-height: 220px;
	}

		._chatInput:focus {
			outline: none;
			border-color: var(--colorPrimary);
		}

	._chatSend {
		flex-shrink: 0;
	}

	._chatComposer .a_button {
		align-self: flex-start;
	}

	._chatContextMeter {
		flex: 0 0 100%;
		min-width: 0;
	}

		._chatContextBar {
			box-sizing: border-box;
			width: 100%;
			height: 0.45rem;
			overflow: hidden;
			border: 0.0625rem solid var(--colorTileBdr);
			border-radius: 999rem;
			background-color: var(--colorTileBg);
		}

			._chatContextFill {
				height: 100%;
				border-radius: inherit;
				background-color: var(--colorPrimary);
				transition: width 0.2s ease;
			}

		._chatContextText {
			display: block;
			margin-top: 0.15rem;
			color: var(--colorText);
			opacity: 0.7;
		}

.chatComposer .chatSendSpinner {
	width: 1.2em;
}

	.chatComposer .chatSendSpinner circle {
		stroke: var(--colorWhite-perpetual);
	}

.homeHero {
	margin-bottom: 2rem;
}

.homeTiles {
	margin: 0 -0.75rem;
}

.homeTile {
	display: block;
	box-sizing: border-box;
	height: 100%;
	padding: 1.5rem;
	border: 0.0625rem solid var(--colorTileBdr);
	border-radius: 0.75rem;
	background-color: var(--colorTileBg);
	text-decoration: none;
	transition: border-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

	.homeTile:hover {
		border-color: var(--colorPrimary);
		transform: translateY(-0.125rem);
	}

	.homeTile h3 {
		margin-bottom: 0.5rem;
		color: var(--colorPrimary);
	}

/* -------------------------------------------------------------------------- *
 * View - Learning Layer
 * -------------------------------------------------------------------------- */
.llStatusMessage {
	padding: 0.6rem 0.9rem;
	border-radius: 0.5rem;
	background-color: var(--colorSuccess);
	color: var(--colorWhite-perpetual);
	display: inline-block;
}
/* -------------------------------------------------------------------------- *
 * View - User Memory
 * -------------------------------------------------------------------------- */

._memoryList {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 0.0625rem solid var(--colorTileBdr);
}

	._memoryList ._memoryItem {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.65rem 0;
		border-bottom: 0.0625rem solid var(--colorTileBdr);
	}

		._memoryList ._memoryItem:hover {
			background-color: var(--colorTileHdr);
		}

			._memoryItem ._memoryContent {
				display: flex;
				flex-direction: column;
				flex-grow: 1;
				gap: 0.15rem;
			}

				._memoryItem ._memoryExpiry {
					color: var(--colorText);
					opacity: 0.7;
				}

