.dillenium-riley-launcher {
	position: fixed;
	bottom: 24px;
	right: 24px;
	height: 52px;
	padding: 0 20px 0 16px;
	border-radius: 999px;
	background: var(--dillenium-accent);
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,0.2);
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: inherit;
}

.dillenium-riley-launcher-icon { font-size: 20px; line-height: 1; }
.dillenium-riley-launcher-text { font-size: 0.9rem; font-weight: 600; white-space: nowrap; }

/* On very narrow screens, collapse to icon-only so the pill doesn't
   crowd the corner of a small phone viewport. */
@media (max-width: 380px) {
	.dillenium-riley-launcher { padding: 0; width: 52px; justify-content: center; }
	.dillenium-riley-launcher-text { display: none; }
}

.dillenium-riley-panel {
	position: fixed;
	bottom: 92px;
	right: 24px;
	width: 340px;
	max-width: calc(100vw - 32px);
	height: 460px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border-radius: var(--dillenium-radius);
	box-shadow: 0 8px 30px rgba(0,0,0,0.25);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 9999;
}

.dillenium-riley-panel.dillenium-riley-open { display: flex; }

.dillenium-riley-header {
	background: var(--dillenium-accent);
	color: #fff;
	padding: 14px 16px;
	font-weight: 600;
}

.dillenium-riley-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dillenium-riley-msg {
	max-width: 80%;
	padding: 8px 12px;
	border-radius: 14px;
	font-size: 0.9rem;
	line-height: 1.4;
}

.dillenium-riley-msg--user {
	align-self: flex-end;
	background: var(--dillenium-accent);
	color: #fff;
}

.dillenium-riley-msg--assistant {
	align-self: flex-start;
	background: #f1f1f1;
	color: #222;
}

.dillenium-riley-msg--typing {
	align-self: flex-start;
	background: #f1f1f1;
	color: #999;
	font-style: italic;
}

.dillenium-riley-msg a {
	color: var(--dillenium-accent);
	text-decoration: underline;
	font-weight: 600;
	word-break: break-all;
}

.dillenium-riley-msg--user a {
	color: #fff;
	text-decoration-color: rgba(255,255,255,0.6);
}

.dillenium-riley-input-row {
	display: flex;
	border-top: 1px solid #eee;
	padding: 8px;
	gap: 8px;
}

.dillenium-riley-input-row input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: var(--dillenium-radius);
	padding: 8px 10px;
	/* 16px minimum is deliberate, not a design choice — iOS Safari
	   auto-zooms the whole page on focus if an input's font-size is
	   under 16px. This is what caused the "zooming on mobile" bug. */
	font-size: 16px;
}

.dillenium-riley-footer {
	text-align: center;
	font-size: 0.7rem;
	color: #aaa;
	padding: 6px 0 10px;
}

.dillenium-riley-input-row button {
	background: var(--dillenium-accent);
	color: #fff;
	border: none;
	border-radius: var(--dillenium-radius);
	padding: 8px 14px;
	cursor: pointer;
}

.dillenium-riley-input-row button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.dillenium-riley-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}
