:root {
	--rpot-background: #f7fafd;
	--rpot-surface: #ffffff;
	--rpot-surface-low: #f1f4f7;
	--rpot-surface-container: #ebeef2;
	--rpot-surface-high: #e0e3e6;
	--rpot-text: #181c1f;
	--rpot-muted: #5c5f60;
	--rpot-border: #cfc4c5;
	--rpot-primary: #000000;
	--rpot-on-primary: #ffffff;
	--rpot-shadow: 0 8px 24px rgba(24, 28, 31, 0.05);
}

.rpot-app-body {
	margin: 0;
	background: var(--rpot-background);
	color: var(--rpot-text);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	overflow: hidden;
}

.rpot-app-body .church-header,
.rpot-app-body .church-footer,
.rpot-app-body .mobile-bottom-nav {
	display: none !important;
}

.rpot-shell {
	display: flex;
	width: 100vw;
	height: 100vh;
	background: var(--rpot-background);
	overflow: hidden;
}

body.admin-bar.rpot-app-body .rpot-shell {
	height: calc(100vh - 32px);
}

.rpot-mobile-header,
.rpot-desktop-header {
	background: var(--rpot-surface);
	border-bottom: 1px solid var(--rpot-border);
}

.rpot-mobile-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 8px 20px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 60;
}

.rpot-header-brand,
.rpot-header-left,
.rpot-header-actions,
.rpot-panel-title {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rpot-title {
	font-family: "Plus Jakarta Sans", Inter, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rpot-text);
}

.rpot-sidebar {
	width: 280px;
	flex: 0 0 280px;
	height: 100%;
	background: var(--rpot-surface-low);
	border-right: 1px solid var(--rpot-border);
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
	transition: width 0.25s ease, padding 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
	z-index: 50;
}

.rpot-sidebar.is-collapsed {
	width: 0;
	flex-basis: 0;
	padding-left: 0;
	padding-right: 0;
	opacity: 0;
	overflow: hidden;
}

.rpot-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rpot-panel-title {
	font-family: "Plus Jakarta Sans", Inter, sans-serif;
	font-size: 20px;
	font-weight: 600;
}

.rpot-panel-title .material-symbols-outlined {
	color: var(--rpot-primary);
}

.rpot-panel-kicker {
	margin: -12px 0 8px;
	color: var(--rpot-muted);
	font-size: 12px;
	font-weight: 500;
}

button {
	font: inherit;
}

.rpot-icon-btn,
.rpot-round-btn,
.rpot-send-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--rpot-muted);
	cursor: pointer;
}

.rpot-icon-btn {
	width: 40px;
	height: 40px;
	border-radius: 999px;
}

.rpot-icon-btn:hover,
.rpot-round-btn:hover {
	background: var(--rpot-surface-container);
	color: var(--rpot-primary);
}

.rpot-primary-btn,
.rpot-secondary-btn,
.rpot-source-nav button,
.rpot-suggestions button {
	border: 0;
	cursor: pointer;
}

.rpot-primary-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 999px;
	background: var(--rpot-primary);
	color: var(--rpot-on-primary);
	font-size: 14px;
	font-weight: 600;
}

.rpot-source-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
}

.rpot-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	background: transparent;
	color: var(--rpot-muted);
	text-align: left;
	font-size: 12px;
	font-weight: 600;
}

.rpot-nav-item:hover {
	background: var(--rpot-surface-container);
}

.rpot-nav-item.is-active {
	background: #dee0e1;
	color: #606364;
}

.rpot-empty-sources {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--rpot-muted);
	opacity: 0.55;
	padding: 24px;
}

.rpot-sidebar.has-sources .rpot-empty-sources {
	display: none;
}

.rpot-empty-sources .material-symbols-outlined {
	font-size: 42px;
}

.rpot-selected-sources {
	display: grid;
	gap: 8px;
	min-height: 0;
	overflow: auto;
}

.rpot-source-card {
	width: 100%;
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 10px;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface);
	text-align: left;
	color: var(--rpot-text);
	cursor: pointer;
}

.rpot-source-card:hover,
.rpot-source-card.is-active {
	border-color: var(--rpot-primary);
}

.rpot-source-card strong,
.rpot-result-body strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	line-height: 18px;
}

.rpot-source-card span,
.rpot-result-body span {
	color: var(--rpot-muted);
	font-size: 12px;
	line-height: 16px;
}

.rpot-main {
	position: relative;
	flex: 1;
	min-width: 0;
	height: 100%;
	background: var(--rpot-surface);
	display: flex;
	flex-direction: column;
}

.rpot-desktop-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 57px;
	padding: 8px 24px;
	z-index: 20;
}

.rpot-top-nav {
	display: flex;
	gap: 16px;
	margin-left: 24px;
}

.rpot-top-nav button,
.rpot-secondary-btn {
	background: transparent;
	color: var(--rpot-muted);
	border-radius: 8px;
	padding: 8px 12px;
}

.rpot-top-nav button:hover,
.rpot-top-nav button.is-active,
.rpot-secondary-btn:hover {
	background: var(--rpot-surface-low);
	color: var(--rpot-text);
}

.rpot-canvas {
	flex: 1;
	min-height: 0;
	display: block;
	padding: 16px 16px 128px;
	overflow: hidden;
}

.rpot-workspace {
	display: grid;
	grid-template-columns: minmax(360px, 1fr) minmax(280px, 34%);
	grid-template-rows: 1fr;
	gap: 12px;
	height: 100%;
	min-height: 0;
}

.rpot-work-pane {
	display: none;
	min-width: 0;
	min-height: 0;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface);
	overflow: hidden;
}

.rpot-work-pane.is-active {
	display: flex;
	flex-direction: column;
}

.rpot-context-rail {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	min-height: 0;
	overflow: auto;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface-low);
	padding: 12px;
}

.rpot-context-rail section {
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface);
	padding: 12px;
}

.rpot-context-rail h2,
.rpot-pane-head h2,
.rpot-pane-head h1 {
	margin: 0;
	letter-spacing: 0;
}

.rpot-context-rail h2 {
	font-size: 13px;
	line-height: 18px;
}

.rpot-pane-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--rpot-border);
	background: var(--rpot-surface);
}

.rpot-pane-head p {
	margin: 0 0 2px;
	color: var(--rpot-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.rpot-pane-head h1,
.rpot-pane-head h2 {
	font-family: "Plus Jakarta Sans", Inter, sans-serif;
	font-size: 18px;
	line-height: 24px;
	font-weight: 700;
	color: var(--rpot-text);
}

.rpot-status-chip {
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 6px 10px;
	border: 1px solid var(--rpot-border);
	border-radius: 999px;
	color: var(--rpot-muted);
	font-size: 12px;
	font-weight: 700;
}

.rpot-chat-stream {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: 16px;
}

.rpot-empty-state {
	min-height: 260px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--rpot-muted);
	padding: 24px;
}

.rpot-empty-state .material-symbols-outlined {
	font-size: 42px;
	margin-bottom: 10px;
}

.rpot-empty-state h2 {
	margin: 0 0 8px;
	color: var(--rpot-text);
	font-size: 22px;
	line-height: 30px;
	letter-spacing: 0;
}

.rpot-empty-state p {
	max-width: 520px;
	margin: 0 0 18px;
	line-height: 1.5;
}

.rpot-message {
	display: grid;
	gap: 6px;
	max-width: 760px;
	margin: 0 0 12px;
	padding: 12px;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface-low);
}

.rpot-message.is-user {
	margin-left: auto;
	background: #f8fafc;
}

.rpot-message.is-system {
	border-style: dashed;
	background: var(--rpot-surface);
}

.rpot-message-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	color: var(--rpot-muted);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.rpot-message p {
	margin: 0;
	color: var(--rpot-text);
	font-size: 14px;
	line-height: 20px;
	white-space: pre-wrap;
}

.rpot-citation-chip {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--rpot-surface-container);
	color: var(--rpot-muted);
	font-size: 11px;
	font-weight: 700;
}

.rpot-document-grid {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
}

.rpot-page-list {
	min-height: 0;
	overflow: auto;
	border-right: 1px solid var(--rpot-border);
	background: var(--rpot-surface-low);
	padding: 10px;
}

.rpot-page-button {
	display: grid;
	gap: 4px;
	width: 100%;
	padding: 10px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--rpot-text);
	text-align: left;
	cursor: pointer;
}

.rpot-page-button:hover,
.rpot-page-button.is-active {
	border-color: var(--rpot-border);
	background: var(--rpot-surface);
}

.rpot-page-button strong {
	font-size: 13px;
	line-height: 18px;
}

.rpot-page-button span {
	color: var(--rpot-muted);
	font-size: 11px;
	line-height: 16px;
}

.rpot-page-viewer {
	min-width: 0;
	min-height: 0;
	overflow: auto;
	padding: 18px;
}

.rpot-page-viewer h2 {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 28px;
	letter-spacing: 0;
}

.rpot-page-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.rpot-page-meta span,
.rpot-tool-row span:last-child {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--rpot-surface-low);
	color: var(--rpot-muted);
	font-size: 11px;
	font-weight: 700;
}

.rpot-page-text {
	white-space: pre-wrap;
	font-size: 14px;
	line-height: 22px;
	color: var(--rpot-text);
}

.rpot-artifact-grid,
.rpot-settings-list {
	display: grid;
	gap: 10px;
	padding: 16px;
	overflow: auto;
}

.rpot-tool-row {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface-low);
}

.rpot-tool-row strong {
	font-size: 14px;
}

.rpot-ritual-card {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface-low);
}

.rpot-artifact-card {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface);
}

.rpot-ritual-card div,
.rpot-artifact-card div:first-child {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

.rpot-ritual-card strong,
.rpot-artifact-card strong {
	font-size: 14px;
	line-height: 20px;
}

.rpot-ritual-card span,
.rpot-ritual-card p,
.rpot-ritual-card li,
.rpot-artifact-card span,
.rpot-artifact-card p,
.rpot-artifact-preview {
	color: var(--rpot-muted);
	font-size: 12px;
	line-height: 18px;
}

.rpot-ritual-card p,
.rpot-artifact-card p {
	margin: 0;
}

.rpot-ritual-card ol {
	display: grid;
	gap: 4px;
	margin: 0;
	padding-left: 18px;
}

.rpot-artifact-preview {
	min-height: 42px;
	padding: 10px;
	border: 1px dashed var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface-low);
}

.rpot-artifact-preview svg {
	display: block;
	width: min(120px, 100%);
	height: auto;
	margin: 0 auto;
	color: var(--rpot-accent);
}

.rpot-metric-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 16px;
}

.rpot-metric-grid div {
	padding: 14px;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface-low);
}

.rpot-metric-grid strong {
	display: block;
	font-size: 28px;
	line-height: 34px;
}

.rpot-metric-grid span,
.rpot-muted-copy {
	color: var(--rpot-muted);
	font-size: 13px;
	line-height: 19px;
}

.rpot-settings-list label {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--rpot-text);
	font-size: 14px;
}

.rpot-device-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.rpot-device-actions .rpot-ghost-btn {
	justify-content: center;
	min-width: 0;
}

.rpot-device-snapshots {
	display: grid;
	gap: 8px;
}

.rpot-device-snapshots p,
.rpot-device-snapshot p,
.rpot-device-snapshot span {
	margin: 0;
	color: var(--rpot-muted);
	font-size: 12px;
	line-height: 18px;
	overflow-wrap: anywhere;
}

.rpot-device-snapshot {
	display: grid;
	gap: 4px;
	padding: 10px;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface-low);
}

.rpot-device-snapshot strong {
	font-size: 13px;
	line-height: 18px;
	text-transform: capitalize;
}

.rpot-memory-actions {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

.rpot-memory-actions .rpot-ghost-btn {
	justify-content: center;
	width: 100%;
}

.rpot-memory-actions p {
	margin: 0;
	color: var(--rpot-muted);
	font-size: 12px;
	line-height: 18px;
}

.rpot-source-facts {
	display: grid;
	gap: 8px;
	margin: 10px 0 0;
}

.rpot-source-facts div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--rpot-border);
	padding-bottom: 6px;
}

.rpot-source-facts dt {
	color: var(--rpot-muted);
	font-size: 12px;
}

.rpot-source-facts dd {
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	text-align: right;
}

.rpot-citation-list p {
	margin: 8px 0 0;
	color: var(--rpot-muted);
	font-size: 13px;
	line-height: 18px;
}

.rpot-citation-item {
	display: grid;
	gap: 6px;
	margin-bottom: 10px;
	padding: 10px;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface-low);
}

.rpot-citation-item strong {
	font-size: 12px;
	line-height: 16px;
}

.rpot-context-rail textarea {
	width: 100%;
	resize: vertical;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	padding: 10px;
	background: var(--rpot-surface);
	color: var(--rpot-text);
	font: inherit;
}

.rpot-wave {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: var(--rpot-surface-low);
	color: var(--rpot-muted);
	font-weight: 700;
	animation: rpot-bounce 1.8s infinite;
}

.rpot-wave .material-symbols-outlined {
	font-size: 34px;
}

.rpot-hero h1 {
	margin: 0 0 16px;
	font-family: "Plus Jakarta Sans", Inter, sans-serif;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--rpot-text);
	letter-spacing: 0;
}

.rpot-hero p {
	max-width: 560px;
	margin: 0 0 40px;
	color: var(--rpot-muted);
	font-size: 16px;
	line-height: 1.5;
}

.rpot-suggestions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.rpot-status {
	min-height: 24px;
	margin: -20px 0 24px;
	color: var(--rpot-muted);
	font-size: 13px;
	line-height: 20px;
}

.rpot-status.is-error {
	color: #93000a;
}

.rpot-suggestions button {
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid var(--rpot-border);
	background: var(--rpot-surface-low);
	color: var(--rpot-text);
	font-size: 12px;
	font-weight: 600;
	box-shadow: var(--rpot-shadow);
}

.rpot-suggestions button:hover {
	background: var(--rpot-surface-container);
}

.rpot-prompt-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 48px 24px 32px;
	background: linear-gradient(to top, var(--rpot-surface) 74%, rgba(255, 255, 255, 0));
	margin: 0;
}

.rpot-prompt-box {
	max-width: 780px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px 8px 24px;
	border: 1px solid var(--rpot-border);
	border-radius: 24px;
	background: var(--rpot-surface);
	box-shadow: var(--rpot-shadow);
}

.rpot-prompt-box:focus-within {
	border-color: var(--rpot-primary);
	box-shadow: 0 10px 28px rgba(24, 28, 31, 0.1);
}

.rpot-prompt-box input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--rpot-text);
	font-size: 14px;
	line-height: 20px;
	padding: 12px 0;
}

.rpot-prompt-tools {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-left: 16px;
	border-left: 1px solid var(--rpot-border);
}

.rpot-source-count {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--rpot-muted);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.rpot-source-count .material-symbols-outlined {
	font-size: 18px;
}

.rpot-round-btn,
.rpot-send-btn {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	overflow: hidden;
}

.rpot-round-btn {
	background: var(--rpot-surface-low);
}

.rpot-send-btn {
	background: var(--rpot-primary);
	color: var(--rpot-on-primary);
}

.rpot-voice-visualizer {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	gap: 2px;
	background: #1b1b1b;
}

.rpot-round-btn.is-listening .rpot-mic-icon {
	display: none;
}

.rpot-round-btn.is-listening .rpot-voice-visualizer {
	display: flex;
}

.rpot-voice-visualizer i {
	width: 4px;
	height: 14px;
	border-radius: 999px;
	background: var(--rpot-on-primary);
	animation: rpot-wave 1.5s ease-in-out infinite;
	transform-origin: bottom;
}

.rpot-voice-visualizer i:nth-child(2) { animation-delay: 0.2s; height: 22px; }
.rpot-voice-visualizer i:nth-child(3) { animation-delay: 0.4s; height: 18px; }
.rpot-voice-visualizer i:nth-child(4) { animation-delay: 0.1s; height: 26px; }
.rpot-voice-visualizer i:nth-child(5) { animation-delay: 0.3s; height: 14px; }
.rpot-voice-visualizer i:nth-child(6) { animation-delay: 0.5s; height: 18px; }

.rpot-bottom-nav,
.rpot-mobile-only {
	display: none;
}

.is-hidden {
	display: none !important;
}

.rpot-overlay {
	position: fixed;
	inset: 0;
	background: rgba(24, 28, 31, 0.35);
	backdrop-filter: blur(4px);
	z-index: 40;
}

.rpot-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(24, 28, 31, 0.4);
	backdrop-filter: blur(6px);
	z-index: 90;
}

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

.rpot-modal-card {
	position: relative;
	width: min(440px, 100%);
	padding: 28px;
	border-radius: 24px;
	background: var(--rpot-surface);
	box-shadow: 0 24px 80px rgba(24, 28, 31, 0.22);
	border: 1px solid var(--rpot-border);
	text-align: left;
}

.rpot-source-modal-card {
	width: min(680px, 100%);
	max-height: min(720px, calc(100vh - 48px));
	overflow: auto;
}

.rpot-modal-card h2 {
	margin: 0 0 10px;
	font-family: "Plus Jakarta Sans", Inter, sans-serif;
	font-size: 24px;
	line-height: 32px;
	letter-spacing: 0;
}

.rpot-modal-card p {
	margin: 0 0 20px;
	color: var(--rpot-muted);
	line-height: 1.5;
}

.rpot-primary-link,
.rpot-wallet-link,
.rpot-secondary-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
}

.rpot-primary-link {
	min-height: 44px;
	padding: 0 18px;
	background: var(--rpot-primary);
	color: var(--rpot-on-primary);
}

.rpot-pay-actions {
	display: grid;
	gap: 10px;
	margin-bottom: 16px;
}

.rpot-secondary-pill {
	min-height: 44px;
	border: 1px solid var(--rpot-border);
	background: var(--rpot-surface-low);
	color: var(--rpot-text);
	cursor: pointer;
}

.rpot-wallet-link {
	color: var(--rpot-muted);
}

.rpot-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--rpot-muted);
	cursor: pointer;
}

.rpot-source-tabs {
	display: inline-flex;
	gap: 4px;
	margin: 0 0 18px;
	padding: 4px;
	border-radius: 999px;
	background: var(--rpot-surface-low);
}

.rpot-source-tabs button {
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--rpot-muted);
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 14px;
}

.rpot-source-tabs button.is-active {
	background: var(--rpot-primary);
	color: var(--rpot-on-primary);
}

.rpot-source-tab {
	display: block;
}

.rpot-source-tab[hidden] {
	display: none;
}

.rpot-source-search-form,
.rpot-upload-form {
	display: grid;
	gap: 12px;
}

.rpot-source-search-form {
	grid-template-columns: minmax(0, 1fr) 140px;
	align-items: center;
}

.rpot-source-search-form .rpot-primary-btn,
.rpot-upload-form .rpot-primary-btn {
	width: auto;
}

.rpot-source-search-form input,
.rpot-upload-form input,
.rpot-upload-form textarea {
	width: 100%;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface);
	color: var(--rpot-text);
	font: inherit;
	padding: 11px 12px;
}

.rpot-upload-form label {
	color: var(--rpot-muted);
	font-size: 12px;
	font-weight: 700;
	margin-bottom: -6px;
}

.rpot-source-results {
	display: grid;
	gap: 8px;
	margin-top: 14px;
}

.rpot-source-result {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	width: 100%;
	padding: 12px;
	border: 1px solid var(--rpot-border);
	border-radius: 8px;
	background: var(--rpot-surface-low);
	color: var(--rpot-text);
	text-align: left;
	cursor: pointer;
}

.rpot-source-result:hover {
	border-color: var(--rpot-primary);
	background: var(--rpot-surface);
}

.rpot-source-result .material-symbols-outlined {
	color: var(--rpot-muted);
}

.rpot-result-body p {
	margin: 3px 0 0;
	color: var(--rpot-muted);
	font-size: 12px;
	line-height: 16px;
}

.rpot-upload-cost {
	margin: 0 0 4px;
	color: var(--rpot-muted);
	font-size: 12px;
	line-height: 18px;
}

@keyframes rpot-wave {
	0%, 100% { transform: scaleY(0.25); }
	50% { transform: scaleY(1); }
}

@keyframes rpot-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

@media (max-width: 767px) {
	.rpot-shell {
		display: block;
		padding-top: 57px;
		padding-bottom: 72px;
	}

	.rpot-mobile-header {
		display: flex;
	}

	.rpot-desktop-header,
	.rpot-desktop-only {
		display: none;
	}

	.rpot-mobile-only {
		display: inline-flex;
	}

	.rpot-sidebar {
		position: fixed;
		top: 57px;
		left: 0;
		bottom: 72px;
		height: auto;
		transform: translateX(-100%);
		box-shadow: 16px 0 40px rgba(24, 28, 31, 0.12);
	}

	.rpot-sidebar.is-open {
		transform: translateX(0);
	}

	.rpot-main {
		height: calc(100vh - 129px);
	}

	.rpot-canvas {
		padding: 12px 12px 118px;
	}

	.rpot-workspace {
		display: block;
		height: 100%;
	}

	.rpot-work-pane {
		height: 100%;
	}

	.rpot-work-pane.is-active {
		display: flex;
	}

	.rpot-context-rail {
		display: none;
	}

	.rpot-document-grid {
		grid-template-columns: 1fr;
	}

	.rpot-page-list {
		max-height: 128px;
		border-right: 0;
		border-bottom: 1px solid var(--rpot-border);
		display: flex;
		gap: 8px;
		overflow-x: auto;
	}

	.rpot-page-button {
		min-width: 160px;
	}

	.rpot-pane-head {
		padding: 12px;
	}

	.rpot-pane-head h1,
	.rpot-pane-head h2 {
		font-size: 16px;
		line-height: 22px;
	}

	.rpot-metric-grid {
		grid-template-columns: 1fr;
	}

	.rpot-prompt-bar {
		padding: 36px 12px 16px;
	}

	.rpot-prompt-box {
		padding: 8px 8px 8px 16px;
	}

	.rpot-prompt-tools {
		gap: 8px;
		padding-left: 8px;
	}

	.rpot-source-count {
		display: none;
	}

	.rpot-bottom-nav {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		display: flex;
		justify-content: space-around;
		align-items: center;
		padding: 8px 16px;
		border-top: 1px solid var(--rpot-border);
		background: var(--rpot-surface);
		z-index: 60;
	}

	.rpot-bottom-nav button {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		border: 0;
		background: transparent;
		color: var(--rpot-muted);
		cursor: pointer;
		padding: 6px 14px;
		border-radius: 999px;
		font-size: 12px;
	}

	.rpot-bottom-nav button.is-active {
		background: #1b1b1b;
		color: #e2e2e2;
	}

	.rpot-source-search-form {
		grid-template-columns: 1fr;
	}

	.rpot-source-result {
		grid-template-columns: 30px minmax(0, 1fr);
	}

	.rpot-source-result > span:last-child {
		display: none;
	}
}

@media (max-width: 782px) {
	body.admin-bar.rpot-app-body .rpot-shell {
		height: calc(100vh - 46px);
	}

	body.admin-bar.rpot-app-body .rpot-mobile-header {
		top: 46px;
	}

	body.admin-bar.rpot-app-body .rpot-sidebar {
		top: 103px;
	}

	body.admin-bar.rpot-app-body .rpot-main {
		height: calc(100vh - 175px);
	}
}
