/* homework ai, a claude style layout in oxygen colors */

#y0a.z9a {
	display: block;
}

.y0i {
	display: inline-flex;
	width: 18px;
	height: 18px;
	flex: none;
}

.y0i svg,
.y1s svg,
.y5v svg {
	width: 100%;
	height: 100%;
}

.y1s {
	display: inline-flex;
	width: 38px;
	height: 38px;
	color: var(--c7);
	filter: drop-shadow(0 0 12px rgba(var(--a6), 0.6));
}

/* layout */
#y2a {
	position: absolute;
	inset: 0;
	display: none;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 10px;
	padding: 10px;
}

#y2a.z9a {
	display: grid;
}

#y3s,
#y4m {
	min-height: 0;
	border-radius: 18px;
	border: 1px solid var(--bd);
	background: var(--g1);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* chat list */
#y3s {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.y3h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 10px;
}

.y3h b {
	display: flex;
	align-items: center;
	gap: 8px;
	font: 500 19px Georgia, "Iowan Old Style", "Times New Roman", serif;
}

.y3h b svg {
	width: 18px;
	height: 18px;
	color: var(--c7);
}

#y2k {
	display: none;
}

#y3n {
	margin: 4px 12px 10px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid var(--bd);
	background: rgba(var(--a6), 0.14);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	font-weight: 600;
	transition: background 0.2s;
}

#y3n svg {
	width: 18px;
	height: 18px;
	color: var(--c7);
}

#y3n:hover {
	background: rgba(var(--a6), 0.26);
}

#y3l {
	flex: 1;
	overflow-y: auto;
	padding: 0 8px 10px;
}

#y3l h6 {
	font-size: 11px;
	font-weight: 600;
	color: var(--c5);
	padding: 14px 10px 6px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.y3e {
	display: block;
	color: var(--c5);
	padding: 18px 10px;
	text-align: center;
}

.y3c {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 36px;
	padding: 0 6px 0 10px;
	border-radius: 10px;
	cursor: pointer;
	color: rgba(238, 240, 255, 0.82);
	font-size: 14px;
}

.y3c span {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.y3c:hover {
	background: rgba(255, 255, 255, 0.06);
}

.y3c.z9a {
	background: rgba(var(--a6), 0.22);
	color: #fff;
}

.y3b {
	display: none;
	border: 0;
	background: transparent;
	width: 26px;
	height: 26px;
	border-radius: 7px;
	place-items: center;
	color: var(--c5);
}

.y3b .y0i {
	width: 15px;
	height: 15px;
}

.y3c:hover .y3b,
.y3c.z9a .y3b {
	display: grid;
}

.y3b:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.y3r {
	flex: 1;
	min-width: 0;
	height: 28px;
	border-radius: 7px;
	border: 1px solid var(--c6);
	background: rgba(0, 0, 0, 0.4);
	padding: 0 8px;
	outline: none;
	font-size: 14px;
}

#y3u {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border-top: 1px solid var(--bd);
	background: rgba(0, 0, 0, 0.18);
}

#y3a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	flex: none;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--c6), var(--c8));
	font-weight: 700;
}

#y3u div {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

#y3u b {
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#y3u small {
	font-size: 12px;
	color: var(--c5);
}

#y3p,
#y4p {
	height: 30px;
	padding: 0 12px;
	border-radius: 15px;
	border: 1px solid rgba(var(--a7), 0.4);
	background: rgba(var(--a6), 0.18);
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s;
}

#y3p:hover,
#y4p:hover {
	background: rgba(var(--a6), 0.35);
}

#y4p.y4q {
	border-color: rgba(240, 178, 50, 0.5);
	background: rgba(240, 178, 50, 0.14);
	color: #f6c768;
}

/* main */
#y4m {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

#y4h {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	min-height: 56px;
}

#y4b {
	display: none;
}

#y4t {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: rgba(238, 240, 255, 0.9);
}

#y4n svg {
	width: 18px;
	height: 18px;
}

#y4n {
	display: grid;
	place-items: center;
}

#y4n:hover,
#y4b:hover,
#y2k:hover {
	background: rgba(255, 255, 255, 0.08);
}

#y5w {
	flex: 1;
	overflow-y: auto;
	min-height: 0;
}

#y5l {
	width: min(760px, 100%);
	margin: 0 auto;
	padding: 8px 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

/* the empty screen, greeting with the box in the middle like claude */
#y5e {
	display: none;
}

#y4m.y4e #y5w {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	margin-top: auto;
}

#y4m.y4e #y5e {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 0 20px 26px;
	text-align: center;
}

#y4m.y4e #y5l {
	display: none;
}

#y4m.y4e #y6c {
	margin-bottom: auto;
}

#y5h {
	font: 400 clamp(28px, 4vw, 40px) / 1.15 Georgia, "Iowan Old Style", "Times New Roman", serif;
	color: #f1f2ff;
}

#y5q {
	display: none;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

#y4m.y4e #y5q {
	display: flex;
}

#y5q button {
	height: 34px;
	padding: 0 14px;
	border-radius: 17px;
	border: 1px solid var(--bd);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(238, 240, 255, 0.85);
	font-size: 13px;
	transition: background 0.2s, border-color 0.2s;
}

#y5q button:hover {
	background: rgba(var(--a6), 0.18);
	border-color: rgba(var(--a7), 0.4);
}

.y5s {
	height: 60px;
	margin: 30px auto;
	width: 34px;
	border-radius: 50%;
	border: 3px solid rgba(var(--a7), 0.2);
	border-top-color: var(--c7);
	animation: y5r 0.8s linear infinite;
	max-height: 34px;
}

@keyframes y5r {
	to {
		transform: rotate(360deg);
	}
}

/* messages */
.y5m {
	display: flex;
	gap: 14px;
	min-width: 0;
}

.y5u {
	justify-content: flex-end;
}

.y5u .y5b {
	max-width: min(560px, 85%);
	padding: 10px 16px;
	border-radius: 18px;
	background: rgba(var(--a6), 0.2);
	border: 1px solid rgba(var(--a7), 0.18);
}

.y5u p {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	line-height: 1.55;
}

.y5g {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 2px 0 6px;
	justify-content: flex-end;
}

.y5g img {
	max-width: 220px;
	max-height: 180px;
	border-radius: 10px;
	cursor: zoom-in;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.05);
	min-width: 60px;
	min-height: 60px;
}

.y5x {
	font-size: 12px;
	color: var(--c5);
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
}

.y5v {
	display: inline-flex;
	flex: none;
	width: 26px;
	height: 26px;
	margin-top: 1px;
	color: var(--c7);
	filter: drop-shadow(0 0 8px rgba(var(--a6), 0.5));
}

.y5a .y5b {
	flex: 1;
	min-width: 0;
}

/* thinking, the spark pulses until the first words show up */
.y5p .y5v {
	animation: y5o 1.2s ease-in-out infinite;
}

.y5p .y7m::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-top: 8px;
	border-radius: 50%;
	background: var(--c7);
	box-shadow: 14px 0 0 var(--c7), 28px 0 0 var(--c7);
	animation: y5d 1s ease-in-out infinite;
}

@keyframes y5o {
	50% {
		transform: scale(0.82) rotate(20deg);
		opacity: 0.6;
	}
}

@keyframes y5d {
	50% {
		opacity: 0.3;
	}
}

.y5p .y5t {
	visibility: hidden;
}

.y5t {
	display: flex;
	gap: 4px;
	margin-top: 8px;
	opacity: 0;
	transition: opacity 0.2s;
}

.y5m:hover .y5t,
.y5m:last-child .y5t {
	opacity: 1;
}

.y5c,
.y7y {
	border: 0;
	background: transparent;
	color: var(--c5);
	border-radius: 7px;
	transition: background 0.2s, color 0.2s;
}

.y5c {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
}

.y5c .y0i {
	width: 16px;
	height: 16px;
}

.y5c:hover,
.y7y:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.y5c.y5k,
.y7y.y5k {
	color: #57f287;
}

/* the answer itself */
.y7m {
	line-height: 1.7;
	font-size: 15.5px;
	color: #e9ebfb;
	overflow-wrap: anywhere;
}

.y7m > :first-child {
	margin-top: 0;
}

.y7m p,
.y7m ul,
.y7m ol,
.y7m blockquote,
.y7m .y7c,
.y7m .y7t {
	margin: 0 0 14px;
}

.y7m > :last-child {
	margin-bottom: 0;
}

.y7m h3,
.y7m h4 {
	margin: 20px 0 8px;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
}

.y7m h3 {
	font-size: 18px;
}

.y7m h4 {
	font-size: 16px;
}

.y7m ul,
.y7m ol {
	padding-left: 24px;
}

.y7m li {
	margin: 4px 0;
}

.y7m li > ul,
.y7m li > ol {
	margin: 4px 0;
}

.y7m li::marker {
	color: var(--c7);
}

.y7m strong {
	color: #fff;
}

.y7m a {
	color: var(--c7);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.y7m code {
	font: 13.5px ui-monospace, "Cascadia Code", Consolas, monospace;
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
}

.y7m hr {
	border: 0;
	border-top: 1px solid var(--bd);
	margin: 18px 0;
}

.y7m blockquote {
	border-left: 3px solid var(--c6);
	padding: 2px 0 2px 14px;
	color: rgba(233, 235, 251, 0.85);
}

.y7c {
	border-radius: 12px;
	border: 1px solid var(--bd);
	background: rgba(0, 0, 0, 0.45);
	overflow: hidden;
}

.y7h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 6px 4px 14px;
	font-size: 12px;
	color: var(--c5);
	background: rgba(255, 255, 255, 0.04);
}

.y7y {
	padding: 4px 10px;
	font-size: 12px;
}

.y7c pre {
	padding: 12px 14px;
	overflow-x: auto;
}

.y7c code {
	padding: 0;
	background: none;
	line-height: 1.55;
	white-space: pre;
}

.y7t {
	overflow-x: auto;
	border-radius: 12px;
	border: 1px solid var(--bd);
}

.y7t table {
	border-collapse: collapse;
	width: 100%;
	font-size: 14px;
}

.y7t th,
.y7t td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid var(--bd);
}

.y7t th {
	background: rgba(var(--a6), 0.14);
	font-weight: 700;
}

.y7t tr:last-child td {
	border-bottom: 0;
}

/* composer */
#y6c {
	width: min(760px, 100%);
	margin: 0 auto;
	padding: 0 20px 10px;
}

#y6q {
	display: none;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	padding: 10px 14px;
	margin-bottom: -12px;
	padding-bottom: 22px;
	border-radius: 16px 16px 0 0;
	background: rgba(240, 178, 50, 0.12);
	border: 1px solid rgba(240, 178, 50, 0.3);
	color: #f6c768;
	font-size: 13.5px;
	text-align: center;
}

#y6q.z9a {
	display: flex;
}

.y6v {
	border: 0;
	background: none;
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#y6f {
	position: relative;
	border-radius: 20px;
	border: 1px solid rgba(var(--a7), 0.28);
	background: rgba(10, 11, 28, 0.88);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(var(--a6), 0);
	padding: 12px 12px 10px 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

#y6f:focus-within {
	border-color: rgba(var(--a7), 0.55);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(var(--a6), 0.18);
}

#y6f.y6g {
	border-color: var(--c7);
	border-style: dashed;
}

#y6i {
	display: none;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

#y6i.z9a {
	display: flex;
}

.y6p {
	position: relative;
	width: 64px;
	height: 64px;
}

.y6p img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--bd);
}

.y6o {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #0a0b1c;
	background: #2b2d45;
	display: grid;
	place-items: center;
	padding: 0;
}

.y6o .y0i {
	width: 11px;
	height: 11px;
}

.y6o:hover {
	background: #ed4245;
}

#y6t {
	display: block;
	width: 100%;
	resize: none;
	border: 0;
	outline: none;
	background: transparent;
	font: inherit;
	font-size: 15.5px;
	line-height: 1.5;
	color: inherit;
	max-height: 240px;
	min-height: 26px;
	padding: 2px 0;
}

#y6t::placeholder {
	color: rgba(154, 162, 200, 0.75);
}

.y6r {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

#y6a {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	border: 1px solid var(--bd);
	background: transparent;
	display: grid;
	place-items: center;
	color: var(--c5);
	transition: background 0.2s, color 0.2s;
}

#y6a[hidden] {
	display: none;
}

#y6a svg {
	width: 18px;
	height: 18px;
}

#y6a:hover {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

#y6u {
	flex: 1;
	min-width: 0;
	text-align: right;
	font-size: 12px;
	color: var(--c5);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#y6u.y6w {
	color: #f6c768;
}

#y6s {
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 10px;
	border: 0;
	background: var(--c6);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 0 14px rgba(var(--a6), 0.45);
	transition: background 0.2s, opacity 0.2s, transform 0.15s;
}

#y6s .y0i {
	width: 17px;
	height: 17px;
}

#y6s:hover:not(:disabled) {
	background: var(--c7);
	transform: translateY(-1px);
}

#y6s:disabled {
	opacity: 0.35;
	cursor: default;
	box-shadow: none;
}

#y6s.y6z {
	background: rgba(255, 255, 255, 0.14);
	box-shadow: none;
}

.y6d {
	display: block;
	text-align: center;
	color: rgba(154, 162, 200, 0.65);
	font-size: 11.5px;
	margin-top: 8px;
}

/* plans and pop ups */
#y8o {
	position: absolute;
	inset: 0;
	z-index: 60;
	display: none;
	place-items: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

#y8o.z9a {
	display: grid;
}

#y8c {
	position: relative;
	width: min(760px, 100%);
	max-height: calc(100% - 20px);
	overflow-y: auto;
	padding: 28px;
	border-radius: 22px;
	border: 1px solid var(--bd);
	background: rgba(12, 13, 30, 0.97);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: u5p 0.25s ease;
}

#y8c:has(.y8r) {
	width: min(420px, 100%);
}

#y8c h3 {
	font: 500 26px/1.25 Georgia, "Iowan Old Style", "Times New Roman", serif;
	text-align: center;
	padding: 0 24px;
}

#y8c:has(.y8r) h3 {
	font-size: 22px;
	text-align: left;
	padding: 0;
}

.y8s {
	color: var(--c5);
	text-align: center;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

#y8c:has(.y8r) .y8s {
	text-align: left;
}

.y8x {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: transparent;
	color: var(--c5);
	display: grid;
	place-items: center;
}

.y8x:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.y8g {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 12px;
	margin: 22px 0 20px;
}

.y8p {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px;
	border-radius: 16px;
	border: 1px solid var(--bd);
	background: rgba(255, 255, 255, 0.03);
}

.y8p.y8b {
	border-color: rgba(var(--a7), 0.55);
	background: rgba(var(--a6), 0.1);
	box-shadow: 0 0 24px rgba(var(--a6), 0.18);
}

.y8p.y8n {
	border-color: rgba(87, 242, 135, 0.5);
}

.y8p > b {
	text-transform: capitalize;
	font-size: 17px;
}

.y8p strong {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}

.y8p small {
	color: var(--c5);
	font-size: 13px;
}

.y8p ul {
	list-style: none;
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13.5px;
}

.y8p li {
	padding-left: 20px;
	position: relative;
	line-height: 1.4;
}

.y8p li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 4px;
	width: 9px;
	height: 5px;
	border-left: 2px solid var(--c7);
	border-bottom: 2px solid var(--c7);
	transform: rotate(-45deg);
}

.y8p em {
	margin-top: 10px;
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	color: #57f287;
}

.y8d {
	display: block;
	margin: 0 auto;
	min-width: 220px;
	height: 44px;
	border-radius: 22px;
	background: #5865f2;
	box-shadow: 0 0 18px rgba(88, 101, 242, 0.5);
}

.y8d:hover {
	background: #6d79f6;
}

.y8d:disabled {
	opacity: 0.4;
	cursor: default;
	transform: none;
}

.y8u {
	margin-top: auto;
	height: 36px;
	font-size: 14px;
}

.y8p ul + .y8u,
.y8p em + .y8u {
	margin-top: 14px;
}

.y8f {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.y8h {
	display: block;
	margin: 12px auto 0;
	border: 0;
	background: transparent;
	color: var(--c5);
	font-size: 13px;
	text-decoration: underline;
}

.y8h:hover {
	color: #fff;
}

.y8r {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
}

.y8k:hover {
	background: rgba(255, 255, 255, 0.18);
}

.y8z {
	background: #da373c;
	box-shadow: none;
}

.y8z:hover {
	background: #ed4245;
}

#y8c.y8i {
	width: auto;
	max-width: 100%;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	overflow: visible;
}

#y8c.y8i img {
	display: block;
	max-width: min(1000px, calc(100vw - 140px));
	max-height: calc(100vh - 60px);
	border-radius: 12px;
}

/* toasts */
#y9t {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 80;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	pointer-events: none;
	width: min(520px, calc(100% - 32px));
}

.y9n {
	padding: 10px 16px;
	border-radius: 12px;
	background: rgba(20, 22, 44, 0.96);
	border: 1px solid var(--bd);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	font-size: 14px;
	text-align: center;
	transition: opacity 0.4s, transform 0.4s;
	animation: u5p 0.25s ease;
}

.y9n.y9b {
	border-color: rgba(237, 66, 69, 0.5);
	color: #ffb4b6;
}

.y9n.y9h {
	opacity: 0;
	transform: translateY(6px);
}

/* phones, the chat list slides over */
@media (max-width: 900px) {
	#y2a {
		grid-template-columns: minmax(0, 1fr);
		padding: 8px;
	}

	#y3s {
		position: absolute;
		top: 8px;
		bottom: 8px;
		left: 8px;
		width: min(290px, calc(100% - 48px));
		z-index: 30;
		background: rgba(8, 9, 22, 0.97);
		transform: translateX(calc(-100% - 20px));
		transition: transform 0.25s ease;
	}

	#y2a.y2o #y3s {
		transform: none;
		box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
	}

	#y2k,
	#y4b {
		display: grid;
		place-items: center;
	}

	#y5l {
		padding: 8px 16px 20px;
	}

	#y6c {
		padding: 0 12px 8px;
	}

	.y5u .y5b {
		max-width: 88%;
	}

	#y8c {
		padding: 22px 16px;
	}

	#y8c.y8i img {
		max-width: calc(100vw - 32px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.y5p .y5v,
	.y5p .y7m::after,
	.y5s {
		animation: none;
	}
}
