Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/strata/assets/style.css

Raw
:root {
	color-scheme: light dark;
	--bg: #f4f3ef;
	--panel: #ffffff;
	--panel-alt: #e8e7e2;
	--text: #161616;
	--muted: #64645f;
	--line: #161616;
	--soft-line: #c9c8c1;
	--accent: #3459d4;
	--accent-text: #ffffff;
	--add: #dcefdc;
	--delete: #f4d9d7;
	--meta: #e6e3f2;
	--focus: #e05f20;
	--danger: #aa2b25;
	font:
		13px / 1.45 "JetBrains Mono",
		"Cascadia Code",
		ui-monospace,
		SFMono-Regular,
		Menlo,
		Consolas,
		monospace;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0a0a0a;
		--panel: #111111;
		--panel-alt: #1b1b1b;
		--text: #ededed;
		--muted: #9a9a94;
		--line: #ededed;
		--soft-line: #373737;
		--accent: #8ea6ff;
		--accent-text: #080808;
		--add: #12291a;
		--delete: #321817;
		--meta: #211e31;
		--focus: #ff985f;
		--danger: #ff857d;
	}
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: var(--bg);
	color: var(--text);
}

body {
	min-width: 320px;
	padding-bottom: 62px;
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
input,
select,
textarea {
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--panel);
	color: var(--text);
}

button {
	padding: 0.45rem 0.65rem;
	cursor: pointer;
	font-weight: 700;
}

button:hover:not(:disabled) {
	background: var(--line);
	color: var(--bg);
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.48;
}

button.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-text);
}

button.quiet {
	border-color: var(--soft-line);
	font-weight: 500;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

textarea,
select {
	width: 100%;
	padding: 0.55rem;
}

textarea {
	resize: vertical;
}

label {
	display: block;
	margin: 0.65rem 0 0.25rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1,
h2,
h3 {
	font-size: inherit;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	min-height: 50px;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0.8rem;
	border-bottom: 2px solid var(--line);
	background: var(--panel);
}

.topbar-brand,
.topbar-actions,
.region-heading {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.topbar-brand {
	min-width: 0;
}

.topbar-actions {
	flex: none;
	justify-content: flex-end;
}

.wordmark {
	margin-left: 0.25rem;
	margin-right: 0.35rem;
	letter-spacing: 0.16em;
}

#source-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.panel-toggle {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	padding: 0;
	font-size: 1rem;
	line-height: 26px;
	text-align: center;
}

.workspace {
	display: grid;
	grid-template-columns: minmax(170px, 0.65fr) minmax(0, 2.25fr) minmax(
			290px,
			0.95fr
		);
	height: calc(100dvh - 112px);
	overflow: hidden;
}

.workspace.layers-collapsed:not(.drawer-collapsed) {
	grid-template-columns: minmax(0, 2.25fr) minmax(290px, 0.95fr);
}

.workspace.drawer-collapsed:not(.layers-collapsed) {
	grid-template-columns: minmax(170px, 0.65fr) minmax(0, 2.25fr);
}

.workspace.layers-collapsed.drawer-collapsed {
	grid-template-columns: minmax(0, 1fr);
}

.layer-nav,
.diff-region,
.detail-region {
	min-width: 0;
}

[data-keyboard-pane] {
	position: relative;
}

[data-keyboard-pane].keyboard-focused {
	outline: 2px solid var(--focus);
	outline-offset: -2px;
}

[data-keyboard-pane].keyboard-focused::after {
	position: sticky;
	top: 3px;
	left: 3px;
	z-index: 20;
	display: block;
	width: max-content;
	margin: 3px 0 -20px 3px;
	padding: 1px 4px;
	border: 1px solid var(--focus);
	background: var(--panel);
	color: var(--focus);
	content: attr(data-keyboard-pane);
	font-size: 0.65rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	pointer-events: none;
}

.diff-region.keyboard-focused::after {
	display: none;
}

.layer-nav,
.diff-region {
	overflow-y: auto;
	scrollbar-gutter: stable;
}

.layer-nav {
	border-right: 1px solid var(--line);
	background: var(--panel);
}

.layer-nav > .region-heading,
.omitted-region {
	padding: 0.8rem;
}

.region-heading {
	min-height: 30px;
	justify-content: space-between;
	font-size: 0.77rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

.region-heading h1,
.region-heading h2 {
	margin: 0;
}

kbd {
	padding: 0 0.25rem;
	border: 1px solid var(--soft-line);
	background: var(--bg);
	font: inherit;
}

.layer-button {
	display: flex;
	width: 100%;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.7rem 0.8rem;
	border-width: 1px 0 0;
	border-color: var(--soft-line);
	text-align: left;
}

.layer-button.selected {
	border-left: 5px solid var(--accent);
	background: var(--panel-alt);
	padding-left: calc(0.8rem - 4px);
}

.cohort-heading {
	margin: 1rem 0.8rem 0.35rem;
	color: var(--muted);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.count {
	flex: none;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}

.omitted-region {
	border-top: 1px solid var(--soft-line);
}

.omitted-region ul {
	margin: 0;
	padding-left: 1.2rem;
	font-size: 0.78rem;
	overflow-wrap: anywhere;
}

.diff-region {
	background: var(--bg);
}

.sticky-region-heading {
	position: sticky;
	top: 0;
	z-index: 9;
	justify-content: flex-start;
	padding: 0.6rem 0.8rem;
	border-bottom: 1px solid var(--line);
	background: var(--panel);
}

#visible-count {
	margin-left: auto;
}

.mark-layer-reviewed {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.action-hint {
	font-size: 0.72rem;
	font-weight: 500;
}

.hunk:not(.current) .mark-reviewed .action-hint {
	display: none;
}

.view-summary,
.hunk-summary {
	margin: 0;
	padding: 0.65rem 0.8rem;
	border-bottom: 1px solid var(--soft-line);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.hunk-summary {
	font-weight: 700;
}

#diff {
	padding-bottom: 3rem;
}

.hunk {
	min-width: 0;
	margin-bottom: 1.2rem;
	border-bottom: 1px solid var(--line);
	background: var(--panel);
}

.hunk.current {
	box-shadow: inset 5px 0 0 var(--accent);
}

.file-heading {
	position: sticky;
	top: 36px;
	z-index: 8;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-width: 0;
	padding: 0.55rem 0.8rem;
	border-bottom: 1px solid var(--line);
	background: var(--panel-alt);
}

.file-name {
	min-width: 0;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.hunk-header {
	margin: 0;
	padding: 0.45rem 0.8rem;
	border-bottom: 1px solid var(--soft-line);
	color: var(--muted);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.diff-scroll {
	overflow-x: auto;
}

.diff-table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.diff-row {
	background: var(--panel);
}

.diff-row.add {
	background: var(--add);
}

.diff-row.delete {
	background: var(--delete);
}

.diff-row.meta {
	background: var(--meta);
	color: var(--muted);
}

.diff-line.keyboard-current {
	position: relative;
	outline: 2px solid var(--focus);
	outline-offset: -2px;
}

.diff-line.keyboard-current .line-code {
	font-weight: 750;
}

.diff-line.keyboard-current .line-code::before {
	position: absolute;
	left: 0.1rem;
	color: var(--focus);
	content: "›";
	font-weight: 900;
}

.line-number {
	width: 1%;
	min-width: 3.5rem;
	padding: 0;
	border-right: 1px solid var(--soft-line);
	text-align: right;
	vertical-align: top;
}

.line-number button {
	width: 100%;
	min-height: 1.75rem;
	padding: 0.15rem 0.4rem;
	border: 0;
	background: transparent;
	color: var(--muted);
	font-weight: 400;
	text-align: right;
}

.line-number button:hover {
	background: var(--accent);
	color: var(--accent-text);
}

.line-code {
	position: relative;
	min-width: 100%;
	padding: 0.15rem 0.65rem 0.15rem 1rem;
	white-space: pre;
}

.line-prefix {
	display: inline-block;
	width: 1.2rem;
	color: var(--muted);
	user-select: none;
}

.mark-reviewed.done {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-text);
}

.detail-region {
	display: flex;
	min-height: 0;
	flex-direction: column;
	overflow: hidden;
	border-left: 1px solid var(--line);
	background: var(--panel);
}

.drawer-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	flex: none;
	border-bottom: 1px solid var(--line);
}

.drawer-tabs button {
	min-width: 0;
	border: 0;
	border-right: 1px solid var(--soft-line);
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.drawer-tabs button:last-child {
	border-right: 0;
}

.drawer-tabs button[aria-selected="true"] {
	box-shadow: inset 0 -4px 0 var(--accent);
	background: var(--panel-alt);
	color: var(--text);
}

.drawer-panel {
	min-height: 0;
	flex: 1;
	overflow-y: auto;
	padding: 0.8rem;
	scrollbar-gutter: stable;
}

.forge-region {
	margin: -0.8rem -0.8rem 1rem;
	padding: 0.8rem;
	border-bottom: 2px solid var(--line);
	background: var(--panel-alt);
}

.forge-source-row,
.forge-source,
.forge-comment-heading,
.forge-comment-footer {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.forge-source-row {
	justify-content: space-between;
	margin-bottom: 0.65rem;
}

.forge-source {
	font-weight: 900;
}

.forge-source-icon {
	width: 1.15rem;
	height: 1.15rem;
	flex: none;
	fill: currentColor;
}

.forge-link,
.forge-comment-link {
	color: var(--accent);
	font-weight: 800;
	text-underline-offset: 0.16em;
}

.forge-title {
	margin-bottom: 0.35rem;
	font-size: 1rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.forge-refs {
	display: grid;
	gap: 0.35rem;
	margin: 0.7rem 0;
}

.forge-ref {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 0.15rem 0.5rem;
	padding-top: 0.35rem;
	border-top: 1px solid var(--soft-line);
}

.forge-ref code {
	grid-column: 1 / -1;
	color: var(--muted);
	font-size: 0.72rem;
	overflow-wrap: anywhere;
}

.forge-checkout {
	padding: 0.55rem;
	border: 1px solid var(--accent);
	background: var(--panel);
	font-size: 0.76rem;
	font-weight: 800;
}

.forge-checkout.mismatch {
	border-color: var(--danger);
	color: var(--danger);
}

.forge-details {
	margin-top: 0.65rem;
	border-top: 1px solid var(--soft-line);
}

.forge-details > summary {
	padding: 0.55rem 0;
	cursor: pointer;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.forge-details > .prose {
	margin-bottom: 0.4rem;
}

.forge-comments {
	display: grid;
	gap: 0.55rem;
}

.forge-comment {
	padding: 0.55rem;
	border: 1px solid var(--soft-line);
	background: var(--panel);
	min-width: 0;
}

.forge-comment-heading {
	flex-wrap: wrap;
	font-size: 0.72rem;
}

.forge-comment-kind,
.forge-comment-state {
	padding: 0.05rem 0.3rem;
	border: 1px solid var(--soft-line);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.forge-comment-state {
	margin-left: auto;
	color: var(--danger);
}

.forge-comment-state.current {
	color: var(--accent);
}

.forge-comment-anchor {
	margin: 0.3rem 0 0;
	color: var(--muted);
	font-size: 0.7rem;
	overflow-wrap: anywhere;
}

.forge-comment-body {
	margin: 0.35rem 0 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.forge-comment-footer {
	justify-content: space-between;
	margin-top: 0.45rem;
	font-size: 0.72rem;
}

.current-hunk-heading {
	margin-top: 0.2rem;
}

.imported-comments-row {
	background: var(--panel);
}

.imported-comments-cell {
	padding: 0.35rem 0.65rem 0.55rem 4.25rem;
	border-bottom: 1px solid var(--soft-line);
}

.imported-comments {
	display: grid;
	gap: 0.35rem;
	max-width: 70rem;
}

.forge-comment.compact {
	padding: 0.35rem 0.5rem;
	border: 0;
	border-left: 3px solid var(--accent);
	background: transparent;
}

.forge-comment.compact .forge-comment-kind,
.forge-comment.compact .forge-comment-state {
	padding: 0;
	border: 0;
}

.eyebrow,
.chat-context {
	margin-bottom: 0.35rem;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.prose,
.chat-question,
.chat-answer,
.finding-text {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.flow-heading {
	margin: 1.1rem 0 0.2rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.flow-description {
	margin-bottom: 0.55rem;
	font-size: 0.76rem;
}

.flow {
	display: grid;
	gap: 0;
}

.flow-step {
	padding: 0.55rem;
	border: 1px solid var(--soft-line);
	background: var(--bg);
	overflow-wrap: anywhere;
}

.flow-arrow {
	padding: 0.15rem;
	color: var(--muted);
	text-align: center;
}

.ask-panel {
	display: flex;
	padding: 0;
	flex-direction: column;
	overflow: hidden;
}

.ask-context {
	display: grid;
	gap: 0.1rem;
	flex: none;
	padding: 0.65rem 0.8rem;
	border-bottom: 1px solid var(--soft-line);
	overflow-wrap: anywhere;
}

.chat {
	min-height: 0;
	flex: 1;
	overflow-y: auto;
	padding: 0.8rem;
	scrollbar-gutter: stable;
}

.chat-exchange {
	margin-bottom: 0.9rem;
	border-left: 3px solid var(--accent);
	background: var(--bg);
}

.chat-exchange.pending {
	border-left-style: dashed;
}

.chat-context,
.chat-question,
.chat-answer {
	margin: 0;
	padding: 0.45rem 0.65rem;
}

.chat-question {
	border-top: 1px solid var(--soft-line);
	font-weight: 800;
}

.chat-answer {
	border-top: 1px solid var(--soft-line);
}

.chat-error {
	padding: 0.65rem;
	border: 1px solid var(--danger);
	color: var(--danger);
	font-weight: 800;
	white-space: pre-wrap;
}

.ask-composer {
	flex: none;
	padding: 0.7rem 0.8rem 0.8rem;
	border-top: 1px solid var(--line);
	background: var(--panel);
}

.ask-composer textarea {
	max-height: 35dvh;
	resize: vertical;
}

.composer-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.7rem;
	margin-top: 0.5rem;
	font-size: 0.73rem;
}

.composer-footer button {
	min-width: 6rem;
}

.finding {
	margin-bottom: 0.55rem;
	padding: 0.55rem;
	border: 1px solid var(--soft-line);
	background: var(--bg);
}

.finding-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
}

.severity {
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
}

.severity.major {
	color: var(--danger);
}

.wide-action {
	width: 100%;
	margin-top: 0.55rem;
}

.keyboard-strip {
	position: fixed;
	right: 0;
	bottom: 26px;
	left: 0;
	z-index: 41;
	display: flex;
	min-height: 36px;
	align-items: center;
	gap: 0.75rem;
	padding: 0.3rem 0.8rem;
	border-top: 1px solid var(--line);
	background: var(--bg);
}

.keyboard-status,
.keyboard-strip-actions {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}

.keyboard-status strong {
	font-size: 0.72rem;
	letter-spacing: 0.07em;
}

#keyboard-cursor {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.keyboard-search {
	width: min(34rem, 100%);
	min-width: 0;
	padding: 0.25rem 0.4rem;
}

.keyboard-strip-actions {
	margin-left: auto;
	white-space: nowrap;
}

#keyboard-return-hint {
	color: var(--focus);
	font-weight: 700;
}

#keyboard-help-button {
	padding: 0.2rem 0.45rem;
}

.keyboard-guide {
	position: fixed;
	right: 0;
	bottom: 62px;
	left: 0;
	z-index: 42;
	display: flex;
	max-height: min(45dvh, 320px);
	align-items: flex-start;
	gap: 1.25rem;
	padding: 0.8rem;
	overflow: auto;
	border: 2px solid var(--line);
	background: var(--panel);
}

.keyboard-guide-heading {
	flex: none;
	color: var(--focus);
}

.keyboard-guide-group {
	display: grid;
	gap: 0.3rem;
}

.keyboard-guide-group-name {
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.keyboard-guide-command {
	white-space: nowrap;
}

#keyboard-help {
	width: min(760px, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	overflow: auto;
}

.help-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.help-heading h2 {
	margin: 0;
}

.keyboard-help-content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.2rem;
}

.keyboard-help-group h3 {
	margin-bottom: 0.35rem;
	color: var(--muted);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.keyboard-help-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--soft-line);
}

.keyboard-help-keys {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.25rem;
}

.keyboard-help-row kbd {
	flex: none;
	text-align: right;
}

.help-note {
	margin: 1rem 0 0;
	padding-top: 0.8rem;
	border-top: 1px solid var(--line);
}

.status {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 40;
	min-height: 26px;
	padding: 0.3rem 0.8rem;
	pointer-events: none;
	border-top: 1px solid var(--line);
	background: var(--panel);
	color: var(--muted);
}

.status.error {
	color: var(--danger);
	font-weight: 800;
}

.empty-state {
	padding: 2rem;
	color: var(--muted);
	text-align: center;
}

.muted {
	color: var(--muted);
}

dialog {
	width: min(470px, calc(100vw - 2rem));
	padding: 1rem;
	border: 2px solid var(--line);
	border-radius: 0;
	background: var(--panel);
	color: var(--text);
}

dialog::backdrop {
	background: rgb(0 0 0 / 70%);
}

@media (max-width: 900px) {
	.workspace,
	.workspace.layers-collapsed:not(.drawer-collapsed),
	.workspace.drawer-collapsed:not(.layers-collapsed),
	.workspace.layers-collapsed.drawer-collapsed {
		grid-template-columns: minmax(0, 1fr);
	}

	.layer-nav,
	.detail-region {
		position: fixed;
		top: 50px;
		bottom: 62px;
		z-index: 25;
		width: min(360px, calc(100vw - 1.5rem));
		box-shadow: 0 0 0 1px var(--line);
	}

	.layer-nav {
		left: 0;
		border-right: 2px solid var(--line);
	}

	.detail-region {
		right: 0;
		border-left: 2px solid var(--line);
	}

	.diff-region {
		grid-column: 1;
	}

	.keyboard-guide {
		flex-wrap: wrap;
	}
}

@media (max-width: 560px) {
	.topbar {
		gap: 0.4rem;
		padding-right: 0.45rem;
		padding-left: 0.45rem;
	}

	.topbar-brand,
	.topbar-actions {
		gap: 0.25rem;
	}

	.wordmark {
		margin: 0 0.15rem;
	}

	#source-label,
	#progress-label,
	#keyboard-context {
		display: none;
	}

	.keyboard-strip {
		gap: 0.35rem;
		padding-right: 0.45rem;
		padding-left: 0.45rem;
	}

	.keyboard-search {
		position: absolute;
		inset: 0;
		padding: 0.25rem 0.45rem;
		background: var(--bg);
	}

	.keyboard-help-content {
		grid-template-columns: 1fr;
	}

	.topbar-actions > button:not(.panel-toggle) {
		padding-right: 0.45rem;
		padding-left: 0.45rem;
	}

	.layer-nav,
	.detail-region {
		width: 100vw;
	}

	.sticky-region-heading,
	.file-heading {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	#visible-count {
		margin-left: 0;
	}

	.mark-layer-reviewed {
		margin-left: auto;
	}

	.line-number {
		min-width: 2.7rem;
	}

	.imported-comments-cell {
		padding-left: 0.65rem;
	}

	.forge-source-row {
		align-items: flex-start;
		flex-direction: column;
	}
}