@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("/admin/db.assets/inter-variable.woff2") format("woff2");
}

:root {
	--void: #0e0e10;
	--carbon: #18181c;
	--carbon-2: #1f2937;
	--glass: #18181c;
	--glass-strong: #18181c;
	--rule: rgba(55, 65, 81, 0.6);
	--rule-strong: #374151;
	--paper: #ffffff;
	--muted: #9ca3af;
	--iris: #818cf8;
	--iris-soft: rgba(129, 140, 248, 0.14);
	--signal: #34d399;
	--green: #34d399;
	--amber: #ffd166;
	--red: #ff6b8a;
	--cyan: #54d4f0;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scrollbar-gutter: stable;
}

body {
	min-width: 320px;
	min-height: 100vh;
	background:
		linear-gradient(
			to top right,
			rgba(129, 140, 248, 0.05),
			rgba(52, 211, 153, 0.05)
		),
		var(--void);
	color: var(--paper);
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

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

button,
summary,
select {
	-webkit-tap-highlight-color: transparent;
}

button,
summary {
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

.login-body {
	background:
		radial-gradient(
			circle at 18% 18%,
			rgba(129, 140, 248, 0.12),
			transparent 32%
		),
		var(--void);
}

.login-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
	align-items: center;
	gap: clamp(48px, 8vw, 120px);
	width: min(1120px, 100%);
	min-height: 100vh;
	margin: 0 auto;
	padding: 48px;
}

.login-intro {
	display: grid;
	align-content: center;
}

.login-brand img {
	display: block;
	width: 176px;
	height: auto;
}

.login-eyebrow,
.login-index,
.login-card label > span,
.login-note {
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.login-eyebrow {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: clamp(52px, 10vh, 108px);
	color: var(--muted);
}

.login-eyebrow i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--iris);
	box-shadow: 0 0 18px rgba(129, 140, 248, 0.7);
}

.login-intro h1 {
	margin-top: 18px;
	font-size: clamp(52px, 7vw, 88px);
	font-weight: 540;
	letter-spacing: -0.065em;
	line-height: 0.9;
}

.login-intro > p:not(.login-eyebrow) {
	max-width: 540px;
	margin-top: 28px;
	color: var(--muted);
	font-size: 17px;
}

.login-spine {
	display: grid;
	grid-template-columns: 1.2fr 2fr 0.7fr 2.8fr;
	gap: 3px;
	max-width: 540px;
	margin-top: 38px;
}

.login-spine span {
	height: 4px;
	background: #374151;
}

.login-spine span:nth-child(2) {
	background: var(--cyan);
}
.login-spine span:nth-child(3) {
	background: var(--amber);
}
.login-spine span:nth-child(4) {
	background: var(--signal);
}

.login-card {
	padding: clamp(28px, 4vw, 44px);
	border: 1px solid var(--rule-strong);
	border-radius: 14px;
	background: rgba(24, 24, 28, 0.92);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.login-index {
	color: var(--iris);
}

.login-card h2 {
	margin-top: 28px;
	font-size: 32px;
	font-weight: 580;
	letter-spacing: -0.035em;
}

.login-copy {
	margin-top: 8px;
	color: var(--muted);
}

.login-card form {
	display: grid;
	gap: 18px;
	margin-top: 32px;
}

.login-card label {
	display: grid;
	gap: 8px;
}

.login-card label > span,
.login-note {
	color: var(--muted);
}

.login-card input {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--rule);
	border-radius: 8px;
	background: #121214;
	color: var(--paper);
	padding: 11px 13px;
	outline: none;
}

.login-card input:hover {
	border-color: var(--rule-strong);
}
.login-card input:focus {
	border-color: var(--iris);
	box-shadow: 0 0 0 3px var(--iris-soft);
}

.login-card form button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 50px;
	margin-top: 4px;
	padding: 11px 14px;
	border: 1px solid var(--iris);
	border-radius: 8px;
	background: var(--iris);
	color: #0e0e10;
	font-weight: 700;
}

.login-card form button:hover {
	background: #a5b4fc;
}
.login-note {
	margin-top: 20px;
	line-height: 1.6;
}
.login-error {
	margin-top: 20px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 107, 138, 0.45);
	border-radius: 8px;
	background: rgba(255, 107, 138, 0.08);
	color: #fecdd3;
	font-size: 14px;
}

#load-error {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	background: var(--void);
	text-align: center;
}

.le-icon {
	color: var(--iris);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 46px;
}

.le-brand-loader {
	position: relative;
	display: grid;
	width: 94px;
	height: 94px;
	place-items: center;
}

.le-brand-loader::after {
	content: "";
	position: absolute;
	inset: 4px;
	border: 1px solid transparent;
	border-top-color: var(--iris);
	border-right-color: rgba(129, 140, 248, 0.28);
	border-radius: 50%;
	animation: brand-orbit 1.4s linear infinite;
}

.le-brand-loader img {
	display: block;
	width: 62px;
	height: 62px;
	object-fit: contain;
	animation: brand-breathe 1.4s ease-in-out infinite;
}

@keyframes brand-orbit {
	to {
		transform: rotate(360deg);
	}
}

@keyframes brand-breathe {
	50% {
		opacity: 0.72;
		transform: scale(0.94);
	}
}

.le-title {
	font-size: 22px;
	font-weight: 600;
}

.le-msg {
	max-width: 460px;
	color: var(--muted);
}

#load-error .rail-button {
	width: auto;
	min-width: 120px;
}

.app-shell {
	position: relative;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	min-height: 100vh;
	transition: grid-template-columns 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-shell[data-rail-collapsed="true"] {
	grid-template-columns: 72px minmax(0, 1fr);
}

.command-rail {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100vh;
	padding: 24px 20px;
	border-right: 1px solid var(--rule);
	background: #121214;
	overflow: hidden;
	transition: padding 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
	z-index: 30;
}

.app-shell[data-rail-collapsed="true"] .command-rail {
	padding: 18px 12px;
}

.app-shell[data-rail-collapsed="true"] .rail-drawer {
	display: none;
}

.rail-drawer {
	display: flex;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 18px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-color: var(--rule-strong) transparent;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
}

.rail-drawer::-webkit-scrollbar,
.picker-panel::-webkit-scrollbar,
.sprint-panel::-webkit-scrollbar {
	width: 6px;
}

.rail-drawer::-webkit-scrollbar-thumb,
.picker-panel::-webkit-scrollbar-thumb,
.sprint-panel::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: var(--rule-strong);
}

.brand-lockup {
	display: flex;
	align-items: center;
	gap: 12px;
}

.brand-logo {
	display: block;
	width: 160px;
	height: auto;
}

.brand-icon {
	display: none;
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.rail-collapse {
	display: grid;
	width: 34px;
	height: 34px;
	margin-left: auto;
	place-items: center;
	border: 1px solid var(--rule-strong);
	border-radius: 9px;
	background: var(--carbon);
	color: var(--muted);
	font-size: 24px;
	line-height: 1;
}

.rail-collapse:hover {
	border-color: var(--iris);
	color: var(--paper);
}

.app-shell[data-rail-collapsed="true"] .brand-lockup {
	flex-direction: column;
}

.app-shell[data-rail-collapsed="true"] .brand-logo {
	display: none;
}

.app-shell[data-rail-collapsed="true"] .brand-icon {
	display: block;
}

.app-shell[data-rail-collapsed="true"] .rail-collapse {
	margin-left: 0;
}

.rail-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	place-content: center;
	gap: 6px;
	border: 1px solid var(--rule-strong);
	border-radius: 12px;
	background: var(--carbon);
}

.rail-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: var(--paper);
	transition: transform 220ms ease;
}

.command-rail[data-open="true"] .rail-toggle span:first-child {
	transform: translateY(4px) rotate(45deg);
}

.command-rail[data-open="true"] .rail-toggle span:last-child {
	transform: translateY(-4px) rotate(-45deg);
}

.rail-section,
.scope-controls,
.scope-field {
	display: grid;
	gap: 9px;
}

.scope-controls {
	gap: 16px;
}

.rail-label,
.eyebrow,
.pm-head-meta span,
.ct,
.task-table-head,
.task-modal b,
.task-date-filter > span,
.comment-breadcrumb,
.comment-scope-chip {
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rail-label,
.pm-head-meta span,
.task-table-head,
.task-modal b,
.task-date-filter > span {
	color: var(--muted);
}

.hdr-select,
.task-search,
.comment-scope-select select {
	width: 100%;
	min-height: 42px;
	border: 1px solid var(--rule);
	border-radius: 8px;
	background: var(--glass);
	color: var(--paper);
	padding: 9px 10px;
	outline: none;
}

.hdr-select:hover,
.task-search:hover,
.comment-scope-select select:hover {
	border-color: var(--rule-strong);
}

.project-picker,
.sprint-picker,
.status-picker {
	position: relative;
	width: 100%;
	min-width: 0;
}

.project-picker[open],
.sprint-picker[open],
.status-picker[open] {
	z-index: 50;
}

.picker-summary,
.sprint-badge,
.status-summary {
	position: relative;
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 38px 10px 12px;
	border: 1px solid var(--rule);
	border-radius: 8px;
	background: var(--glass);
	color: var(--paper);
	font-weight: 500;
	line-height: 1.4;
	list-style: none;
	overflow-wrap: anywhere;
}

.picker-summary:hover,
.sprint-badge:hover,
.status-summary:hover {
	border-color: var(--rule-strong);
}

.project-picker[open] .picker-summary,
.sprint-picker[open] .sprint-badge,
.status-picker[open] .status-summary {
	border-color: var(--iris);
	box-shadow: 0 0 0 3px var(--iris-soft);
}

.picker-summary::-webkit-details-marker,
.sprint-badge::-webkit-details-marker,
.status-summary::-webkit-details-marker {
	display: none;
}

.picker-summary::after,
.sprint-badge::after,
.status-summary::after {
	content: "⌄";
	position: absolute;
	top: 8px;
	right: 12px;
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 16px;
}

.project-picker[open] .picker-summary::after,
.sprint-picker[open] .sprint-badge::after,
.status-picker[open] .status-summary::after {
	content: "⌃";
	color: var(--iris);
}

.picker-panel,
.sprint-panel,
.status-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 40;
	display: grid;
	width: 100%;
	max-height: min(360px, calc(100vh - 150px));
	overflow: auto;
	padding: 8px;
	border: 1px solid var(--rule-strong);
	border-radius: 12px;
	background: var(--glass-strong);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.44);
	animation: picker-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.picker-panel,
.status-panel {
	gap: 4px;
}

@keyframes picker-in {
	from {
		opacity: 0;
		transform: translateY(-6px) scale(0.98);
	}
}

.picker-option {
	width: 100%;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--paper);
	font-weight: 500;
	text-align: left;
}

.picker-option:hover {
	background: var(--carbon-2);
}

.picker-option[aria-pressed="true"] {
	border-color: var(--iris);
	background: var(--iris);
	color: #0e0e10;
}

.sprint-panel fieldset {
	display: grid;
	gap: 4px;
	border: 0;
}

.sprint-panel legend {
	padding-bottom: 9px;
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sprint-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 5px;
	margin-bottom: 6px;
}

.scope-action,
.sprint-check {
	min-height: 42px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: var(--paper);
}

.scope-action {
	background: var(--carbon-2);
	padding: 8px;
	font-size: 14px;
	font-weight: 500;
}

.scope-action[aria-pressed="true"] {
	background: var(--iris);
	color: #0e0e10;
}

.sprint-check {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 9px;
	font-size: 14px;
}

.sprint-check:hover {
	background: var(--carbon-2);
}

.sprint-check input {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	appearance: none;
	border: 1px solid var(--rule-strong);
	border-radius: 4px;
	background: var(--carbon-2);
}

.sprint-check input:checked {
	border-color: var(--iris);
	background: var(--iris);
	box-shadow: inset 0 0 0 3px var(--carbon);
}

.rail-comment-card {
	display: grid;
	gap: 10px;
	padding: 13px;
	border: 1px solid var(--rule);
	border-radius: 12px;
	background:
		linear-gradient(135deg, var(--iris-soft), transparent 62%), var(--glass);
}

.rail-comment-card > div {
	display: grid;
	gap: 4px;
}

.rail-comment-card p,
.comment-project-hint {
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
}

.rail-nav {
	display: grid;
	gap: 6px;
}

.rail-nav button {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: transparent;
	color: var(--muted);
	text-align: left;
}

.rail-nav button span {
	display: grid;
	gap: 1px;
}

.rail-nav b {
	color: var(--paper);
	font-size: 13px;
	font-weight: 500;
}

.rail-nav small {
	font-size: 11px;
}

.rail-nav em {
	font-style: normal;
	transition: transform 180ms ease;
}

.rail-nav button:hover {
	border-color: var(--rule);
	background: var(--carbon);
}

.rail-nav button:hover em {
	transform: translate(2px, 2px);
}

.rail-spacer {
	flex: 1 1 auto;
}

.rail-actions,
.rail-actions form {
	display: grid;
	gap: 7px;
}

.rail-button,
.task-pager button,
.comment-composer button,
.comment-edit button,
.comment-state button,
.comment-load-more,
.comment-edit-button,
.comment-export {
	min-height: 40px;
	border: 1px solid var(--rule-strong);
	border-radius: 8px;
	background: var(--carbon-2);
	color: var(--paper);
	padding: 8px 11px;
	font-weight: 500;
	transition:
		border-color 160ms ease,
		background-color 160ms ease,
		color 160ms ease,
		transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-button {
	width: 100%;
}

.rail-button.primary {
	border-color: var(--iris);
	background: var(--iris);
	color: #0e0e10;
}

.rail-button.subtle {
	background: transparent;
	color: var(--muted);
}

.rail-scrim {
	display: none;
}

.back-to-top-sentinel {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.back-to-top {
	position: fixed;
	right: 18px;
	bottom: max(18px, env(safe-area-inset-bottom));
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--rule-strong);
	border-radius: 999px;
	background: rgba(24, 24, 28, 0.92);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
	color: var(--paper);
	font-size: 13px;
	font-weight: 500;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	visibility: hidden;
	transition:
		opacity 180ms ease,
		transform 220ms ease;
}

.back-to-top span {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 50%;
	background: var(--iris);
	color: var(--void);
}

.back-to-top[data-visible="true"] {
	opacity: 1;
	pointer-events: auto;
	transform: none;
	visibility: visible;
}

.rail-button:hover,
.task-pager button:hover,
.comment-composer button:hover,
.comment-edit button:hover,
.comment-state button:hover,
.comment-load-more:hover,
.comment-edit-button:hover,
.comment-export:hover {
	border-color: var(--iris);
	color: var(--paper);
}

.rail-button:disabled,
.task-pager button:disabled,
.comment-composer button:disabled,
.comment-edit button:disabled,
.comment-load-more:disabled,
.comment-edit-button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.ledger-main {
	width: 100%;
	padding: 32px 24px 24px;
}

.ledger-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--rule);
}

.eyebrow {
	margin-bottom: 10px;
	color: var(--iris);
}

.ledger-head h1 {
	max-width: 820px;
	font-size: 36px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 40px;
}

.ledger-head p:last-child {
	max-width: 680px;
	margin-top: 16px;
	color: var(--muted);
	font-size: 17px;
}

.pm-head-meta {
	display: grid;
	justify-items: end;
	gap: 7px;
	min-width: 180px;
	padding-left: 16px;
	border-left: 1px solid var(--rule);
	text-align: right;
}

.pm-head-meta strong {
	font-size: 15px;
	font-weight: 600;
}

.pm-update {
	color: var(--green);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.02em;
	text-transform: none;
}

.report-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding: 10px 12px;
	border: 1px solid var(--rule);
	border-radius: 8px;
	background: var(--glass);
	color: var(--muted);
	font-size: 13px;
}

.report-status button {
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid var(--rule-strong);
	border-radius: 8px;
	background: transparent;
	color: var(--paper);
}

.report-status-error {
	border-color: rgba(255, 107, 138, 0.4);
	color: var(--red);
}

.source-warning {
	display: flex;
	gap: 10px;
	margin-top: 18px;
	padding: 11px 13px;
	border: 1px solid rgba(255, 107, 138, 0.28);
	border-radius: 8px;
	background: rgba(255, 107, 138, 0.06);
	font-size: 14px;
}

.source-warning strong {
	color: var(--red);
	white-space: nowrap;
}

.source-warning span {
	color: var(--muted);
}

.source-warning[data-status="unknown"] {
	border-color: rgba(255, 183, 77, 0.32);
	background: rgba(255, 183, 77, 0.06);
}

.source-warning[data-status="unknown"] strong {
	color: var(--amber);
}

.overview-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: stretch;
	gap: 12px;
	margin-top: 16px;
}

.ledger-panel,
.card {
	min-width: 0;
	border: 1px solid var(--rule);
	border-radius: 12px;
	background: var(--glass);
	padding: 24px;
}

.delivery-panel {
	display: flex;
	grid-column: span 7;
	flex-direction: column;
}

.attention-panel {
	grid-column: span 5;
}

.delivery-panel .spine-bg {
	margin-top: 24px;
}

.ct {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	color: var(--muted);
}

.ct h2 {
	color: inherit;
	font: inherit;
}

.cdot {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: var(--iris);
}

.count-note {
	margin-left: auto;
	padding: 3px 7px;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background: var(--carbon-2);
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0;
	text-transform: none;
}

.ledger-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
	margin-bottom: 30px;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.ledger-metrics > div {
	display: grid;
	gap: 4px;
	padding: 16px 14px;
	border-right: 1px solid var(--rule);
}

.ledger-metrics > div:first-child {
	padding-left: 0;
}

.ledger-metrics > div:last-child {
	border-right: 0;
}

.ledger-metrics strong {
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 27px;
	font-weight: 500;
	letter-spacing: -0.06em;
}

.ledger-metrics span {
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ledger-metrics .metric-alert strong {
	color: var(--red);
}

.ledger-metrics .metric-warning strong {
	color: var(--amber);
}

.attention-list {
	display: grid;
}

.attention-row {
	display: grid;
	grid-template-columns: 90px minmax(0, 1fr);
	gap: 4px 12px;
	width: 100%;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid var(--rule);
	background: transparent;
	color: var(--paper);
	text-align: left;
}

.attention-row:first-child {
	padding-top: 0;
}

.attention-row:hover strong {
	color: var(--iris);
}

.attention-kind {
	grid-row: 1 / span 3;
	align-self: start;
	width: 90px;
	padding: 3px 6px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
}

.attention-kind.danger {
	color: var(--red);
}

.attention-kind.warning {
	color: var(--amber);
}

.attention-kind.signal {
	color: var(--signal);
}

.attention-row strong {
	min-width: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.attention-row small {
	color: var(--muted);
	font-size: 12px;
}

.attention-reason {
	grid-column: 2;
	color: var(--amber);
	font-size: 12px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.attention-more {
	width: 100%;
	min-height: 40px;
	margin-top: 10px;
	border: 1px solid var(--rule-strong);
	border-radius: 8px;
	background: transparent;
	color: var(--iris);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.attention-more:hover {
	border-color: var(--iris);
	color: var(--paper);
}

.quiet-state,
.empty {
	display: grid;
	gap: 5px;
	padding: 16px;
	border: 1px dashed var(--rule-strong);
	border-radius: 12px;
	color: var(--muted);
	font-size: 14px;
}

.quiet-state strong {
	color: var(--green);
}

.empty-action button {
	justify-self: start;
	min-height: 38px;
	margin-top: 6px;
	padding: 7px 11px;
	border: 1px solid var(--rule-strong);
	border-radius: 8px;
	background: transparent;
	color: var(--iris);
}

.empty-action button:hover {
	border-color: var(--iris);
	color: var(--paper);
}

.evidence-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.evidence-grid > :first-child {
	grid-column: span 6;
}

.evidence-grid > :not(:first-child) {
	grid-column: span 3;
}

.evidence-grid > :nth-child(2):last-child {
	grid-column: span 6;
}

.cwl,
.cwl-vel {
	position: relative;
	height: 250px;
}

.cwl-vel {
	height: 280px;
}

.velocity-card .ct {
	align-items: baseline;
	flex-wrap: wrap;
}

.velocity-summary {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 7px;
	margin-left: auto;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	letter-spacing: 0;
	text-align: right;
	text-transform: none;
}

.velocity-summary strong {
	color: var(--paper);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
}

.velocity-summary span,
.velocity-summary em {
	color: var(--muted);
	font-size: 11px;
	font-style: normal;
	font-weight: 400;
}

.velocity-summary em[data-tone="up"] {
	color: var(--green);
}

.velocity-summary em[data-tone="down"] {
	color: var(--red);
}

.velocity-context {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: -6px 0 6px 15px;
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 10px;
	line-height: 1.5;
}

.data-details {
	margin-top: 12px;
	border: 1px solid var(--rule);
	border-radius: 10px;
	background: var(--glass);
	color: var(--muted);
}

.data-details summary {
	min-height: 42px;
	padding: 12px 14px;
	cursor: pointer;
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.data-details-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	padding: 0 14px 14px;
}

.data-details-grid > div {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.data-details-grid span {
	font-size: 11px;
}

.data-details-grid strong {
	color: var(--paper);
	font-size: 12px;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.data-details > p {
	margin: 0 14px 14px;
	font-size: 12px;
}

.sprint-name {
	margin-bottom: 8px;
	color: var(--iris);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 12px;
}

.sb-row {
	display: grid;
	grid-template-columns: minmax(72px, 0.8fr) minmax(70px, 1fr) 24px;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.sb-lbl,
.sb-n,
.legend,
.tag-n {
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
}

.sb-lbl {
	overflow-wrap: anywhere;
}

.sb-n {
	text-align: right;
}

.sb-bg {
	display: flex;
	height: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--rule);
}

.sb-not {
	background: var(--rule-strong);
}

.l-not {
	background: var(--rule-strong);
}

.sb-done,
.l-done {
	background: var(--green);
}

.sb-prog,
.l-prog {
	background: var(--iris);
}

.sb-rev,
.l-rev {
	background: var(--cyan);
}

.spine-bg {
	height: 10px;
	border-radius: 999px;
	margin-top: 4px;
}

.spine-bg span {
	display: block;
	height: 100%;
}

.spine-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 14px;
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
}

.spine-legend span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.spine-legend i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.spine-legend b {
	color: var(--paper);
	font-weight: 600;
}

.legend {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 10px;
	margin-top: 14px;
}

.legend span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.legend i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
}

.tag-row {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr) 40px;
	align-items: center;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px solid var(--rule);
}

.tag-pill {
	width: 100%;
	min-width: 0;
	padding: 3px 8px;
	background: var(--iris-soft);
	color: #c7d2fe;
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tag-bar {
	height: 5px;
	overflow: hidden;
	background: var(--rule);
}

.tag-bar-f {
	display: block;
	height: 100%;
	background: var(--iris);
}

#overview,
#evidence,
#tasks {
	scroll-margin-top: 84px;
}

.task-card {
	margin-top: 12px;
}

.task-filters {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) 170px 150px 150px auto;
	align-items: end;
	gap: 8px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rule);
}

.task-search {
	min-width: 0;
}

.task-filter-field,
.task-date-filter {
	display: grid;
	min-width: 0;
	gap: 6px;
}

.task-filter-field > span,
.task-date-filter > span {
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.date-picker {
	position: relative;
	width: 100%;
	min-width: 0;
}

.date-picker[open] {
	z-index: 60;
}

.date-picker-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-width: 0;
	min-height: 42px;
	padding: 9px 10px;
	border: 1px solid var(--rule);
	border-radius: 8px;
	background: var(--carbon);
	color: var(--paper);
	list-style: none;
}

.date-picker-summary::-webkit-details-marker {
	display: none;
}
.date-picker-summary:hover {
	border-color: var(--rule-strong);
}
.date-picker[open] .date-picker-summary {
	border-color: var(--iris);
	box-shadow: 0 0 0 3px var(--iris-soft);
}

.date-picker-summary > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.date-picker-summary svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
	color: var(--muted);
}

.date-picker-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	display: grid;
	gap: 12px;
	width: min(296px, calc(100vw - 32px));
	padding: 14px;
	border: 1px solid var(--rule-strong);
	border-radius: 12px;
	background: #151518;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52);
	animation: picker-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.date-picker-panel[data-align="end"] {
	right: 0;
	left: auto;
}

.date-picker-panel header,
.date-picker-panel footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.date-picker-panel header strong {
	font-size: 14px;
	font-weight: 650;
}

.date-picker-panel header div {
	display: flex;
	gap: 4px;
}
.date-picker-panel button {
	border: 0;
	background: transparent;
	color: var(--paper);
}

.date-picker-panel header button {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 1px solid transparent;
	border-radius: 7px;
	color: var(--muted);
}

.date-picker-panel header button:hover {
	border-color: var(--rule);
	background: var(--carbon-2);
	color: var(--paper);
}

.date-picker-weekdays,
.date-picker-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.date-picker-weekdays span {
	padding-block: 2px;
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 10px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

.date-picker-days button {
	aspect-ratio: 1;
	border: 1px solid transparent;
	border-radius: 7px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.date-picker-days button:hover {
	background: var(--carbon-2);
}
.date-picker-days button[aria-current="date"] {
	border-color: var(--rule-strong);
}
.date-picker-days button[aria-selected="true"] {
	border-color: var(--iris);
	background: var(--iris);
	color: #0e0e10;
	font-weight: 750;
}

.date-picker-panel footer {
	padding-top: 10px;
	border-top: 1px solid var(--rule);
}

.date-picker-panel footer button {
	padding: 6px 8px;
	border-radius: 6px;
	color: var(--iris);
	font-size: 12px;
	font-weight: 650;
}

.date-picker-panel footer button:hover {
	background: var(--iris-soft);
}
.date-picker-panel footer button:disabled {
	color: #4b5563;
	cursor: default;
}

.task-table {
	overflow: hidden;
	border: 1px solid var(--rule);
	border-radius: 12px;
}

.task-table-head,
.task-row {
	display: grid;
	grid-template-columns:
		minmax(180px, 2.3fr)
		minmax(0, 0.7fr)
		minmax(0, 0.9fr)
		minmax(0, 0.8fr)
		minmax(0, 0.8fr);
	gap: 14px;
	align-items: center;
}

.task-table-head {
	padding: 9px 12px;
	background: #131315;
}

.task-row {
	width: 100%;
	padding: 12px;
	border: 0;
	border-top: 1px solid var(--rule);
	background: var(--carbon);
	color: var(--paper);
	text-align: left;
	transition:
		background-color 160ms ease,
		transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.task-row:hover,
.task-row:focus-visible {
	background: #1d1d23;
}

@media (hover: hover) {
	.rail-button:hover,
	.task-pager button:hover,
	.comment-composer button:hover,
	.comment-edit button:hover,
	.comment-state button:hover,
	.comment-load-more:hover,
	.comment-edit-button:hover,
	.comment-export:hover {
		transform: translateY(-1px);
	}

	.task-row:hover {
		transform: translateX(2px);
	}
}

.task-row.risky {
	box-shadow: inset 3px 0 0 var(--red);
}

.task-main {
	min-width: 0;
}

.task-main b,
.task-modal-head h2 {
	display: block;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.task-main b {
	font-size: 15px;
}

.task-main > span {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.task-cell {
	min-width: 0;
	color: var(--muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

.status-cell {
	color: #c7d2fe;
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.task-focus-note {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding: 9px 11px;
	border: 1px solid rgba(255, 107, 138, 0.4);
	border-radius: 8px;
	background: rgba(255, 107, 138, 0.08);
	color: var(--paper);
	font-size: 13px;
}

.task-focus-note button {
	border: 0;
	background: transparent;
	color: var(--iris);
	font-weight: 600;
}

.task-focus-note button:hover {
	color: var(--paper);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 7px;
}

.chip {
	display: inline-flex;
	padding: 2px 6px;
	border: 1px solid var(--rule-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 10px;
	font-weight: 600;
}

.chip.risk {
	border-color: rgba(255, 107, 138, 0.45);
	color: var(--red);
}

.chip.source {
	min-height: 34px;
	color: var(--iris);
}

.task-pager {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 14px;
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 12px;
}

.task-pager button {
	min-height: 36px;
}

.task-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: grid;
	justify-items: end;
	background: rgba(5, 5, 7, 0.82);
	animation: veil-in 160ms ease-out;
}

.task-modal {
	width: min(640px, 100%);
	height: 100dvh;
	overflow-y: auto;
	padding: 24px;
	border: 0;
	border-left: 1px solid var(--rule-strong);
	background: var(--carbon);
	box-shadow: -24px 0 70px rgba(0, 0, 0, 0.48);
	animation: drawer-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes drawer-in {
	from {
		opacity: 0;
		transform: translateX(36px);
	}
}

@keyframes veil-in {
	from {
		opacity: 0;
	}
}

.task-modal-head,
.comment-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--rule);
}

.task-modal-head h2,
.comment-head h2 {
	margin-top: 8px;
	font-size: 27px;
	font-weight: 500;
	line-height: 1.15;
}

.task-modal-head button,
.comment-head button {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border: 1px solid var(--rule-strong);
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
}

.task-modal-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1px;
	margin-top: 18px;
	background: var(--rule);
	border: 1px solid var(--rule);
}

.task-modal-grid > div,
.task-modal article {
	background: var(--carbon);
	padding: 12px;
}

.task-modal-grid > div {
	display: grid;
	grid-column: span 2;
	gap: 4px;
	align-content: start;
}

.task-modal-grid > div:last-child:nth-child(3n + 1) {
	grid-column: span 6;
}

.task-modal-grid > div:nth-last-child(2):nth-child(3n + 1),
.task-modal-grid > div:last-child:nth-child(3n + 2) {
	grid-column: span 3;
}

.task-modal span,
.task-modal p {
	font-size: 14px;
	line-height: 1.6;
}

.task-modal article {
	margin-top: 12px;
	border: 1px solid var(--rule);
	border-radius: 12px;
}

.task-modal-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--rule);
}

.task-signals {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.task-signal {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 9px;
	border: 1px solid rgba(255, 107, 138, 0.45);
	border-radius: 999px;
	color: var(--red);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	font-weight: 600;
}

.task-source-action {
	min-height: 36px;
	flex: 0 0 auto;
	padding: 7px 10px;
	border: 1px solid var(--rule-strong);
	border-radius: 8px;
	background: transparent;
	color: var(--iris);
	font-size: 13px;
	font-weight: 500;
}

.task-source-action:hover {
	border-color: var(--iris);
	color: var(--paper);
}

.source-body-text,
.comment-body {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.source-comments {
	display: grid;
	gap: 10px;
}

.source-comments > div + div {
	padding-top: 10px;
	border-top: 1px solid var(--rule);
}

.source-comments time {
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
}

.dependency-list {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.dependency-list > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 8px;
	border-top: 1px solid var(--rule);
}

.dependency-list span {
	display: grid;
	min-width: 0;
}

.dependency-list strong,
.dependency-list small {
	overflow-wrap: anywhere;
}

.dependency-list small,
.source-properties dt small {
	color: var(--muted);
	font:
		11px "Cascadia Code",
		"SFMono-Regular",
		Consolas,
		monospace;
}

.dependency-list button {
	flex: 0 0 auto;
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--iris);
	font-size: 12px;
	cursor: pointer;
}

.source-properties {
	margin-top: 12px;
	border: 1px solid var(--rule);
	border-radius: 12px;
	background: var(--carbon);
}

.task-modal .source-properties summary {
	padding: 12px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}

.source-properties > p {
	padding: 0 12px 10px;
	color: var(--muted);
}

.source-properties dl {
	display: grid;
	margin: 0;
	border-top: 1px solid var(--rule);
}

.source-properties dl > div {
	display: grid;
	grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
	gap: 12px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--rule);
}

.source-properties dl > div:last-child {
	border-bottom: 0;
}

.source-properties dt,
.source-properties dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.source-properties dt small {
	display: block;
	margin-top: 2px;
}

.comment-dialog {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(500px, 100%);
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0 0 0 auto;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	border: 0;
	border-left: 1px solid var(--rule-strong);
	background: var(--carbon);
	color: var(--paper);
	box-shadow: -24px 0 70px rgba(0, 0, 0, 0.48);
	scrollbar-color: rgba(129, 140, 248, 0.58) transparent;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
}

.comment-dialog[open] {
	display: block;
	animation: drawer-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.comment-dialog::backdrop {
	background: rgba(5, 5, 7, 0.82);
}

.comment-head {
	padding: 20px;
	background: #141416;
}

.comment-toolbar {
	display: grid;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--rule);
}

.comment-breadcrumb {
	color: var(--iris);
	overflow-wrap: anywhere;
}

.comment-view-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
}

.comment-view-group button {
	min-height: 42px;
	border: 1px solid var(--rule);
	border-radius: 8px;
	background: var(--carbon-2);
	color: var(--muted);
	font-weight: 500;
}

.comment-view-group button[aria-pressed="true"] {
	border-color: var(--iris);
	background: var(--iris);
	color: #0e0e10;
}

.comment-view-group button:disabled,
.comment-scope-picker[data-disabled] {
	cursor: not-allowed;
	opacity: 0.5;
}

.comment-scope-select {
	display: grid;
	gap: 6px;
	color: var(--muted);
	font-size: 13px;
}

.comment-scope-picker {
	position: relative;
}

.comment-scope-picker .picker-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 50;
	max-height: 280px;
	margin-top: 0;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
}

.comment-target-row,
.comment-composer-foot,
.comment-edit-actions,
.comment-edit-error {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.comment-posting-target,
.comment-readonly {
	color: var(--muted);
	font-size: 13px;
}

.comment-readonly {
	padding: 8px 10px;
	border: 1px solid rgba(255, 209, 102, 0.28);
	border-radius: 8px;
	background: rgba(255, 209, 102, 0.05);
	color: var(--amber);
}

.comment-composer,
.comment-edit {
	display: grid;
	gap: 8px;
}

.comment-composer label {
	font-size: 14px;
	font-weight: 500;
}

.comment-composer textarea,
.comment-edit textarea {
	width: 100%;
	min-width: 0;
	resize: vertical;
	border: 1px solid var(--rule);
	border-radius: 8px;
	background: #131315;
	color: var(--paper);
	padding: 11px;
	font-size: 14px;
	line-height: 1.55;
}

.comment-composer-foot,
.comment-edit-actions {
	color: var(--muted);
	font-size: 12px;
}

.comment-composer-foot span {
	margin-right: auto;
}

.comment-composer-foot .over,
.comment-composer p,
.comment-edit-error {
	color: var(--red);
	font-size: 12px;
}

.comment-export {
	min-height: 34px;
	white-space: nowrap;
}

.comment-feed {
	padding: 16px 20px max(20px, env(safe-area-inset-bottom));
}

@supports selector(::-webkit-scrollbar) {
	.comment-dialog {
		scrollbar-color: auto;
		scrollbar-width: auto;
	}

	.comment-dialog::-webkit-scrollbar {
		width: 8px;
	}

	.comment-dialog::-webkit-scrollbar-track {
		background: transparent;
	}

	.comment-dialog::-webkit-scrollbar-thumb {
		border: 2px solid transparent;
		border-radius: 999px;
		background: rgba(129, 140, 248, 0.58);
		background-clip: padding-box;
	}

	.comment-dialog::-webkit-scrollbar-thumb:hover {
		background: rgba(129, 140, 248, 0.88);
		background-clip: padding-box;
	}

	.comment-dialog::-webkit-scrollbar-button {
		display: none;
		width: 0;
		height: 0;
	}
}

.comment-state {
	display: grid;
	gap: 9px;
	place-items: start;
	padding: 16px;
	border: 1px dashed var(--rule-strong);
	border-radius: 12px;
	color: var(--muted);
	font-size: 14px;
}

.comment-state-error {
	border-color: rgba(255, 107, 138, 0.4);
}

.comment-state-error strong {
	color: var(--red);
}

.comment-list {
	display: grid;
	gap: 9px;
	list-style: none;
}

.comment-item {
	padding: 13px;
	border: 1px solid var(--rule);
	border-radius: 12px;
	background: #151518;
}

.comment-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	color: var(--muted);
	font-size: 11px;
}

.comment-scope-chip {
	padding: 2px 6px;
	border: 1px solid rgba(129, 140, 248, 0.4);
	border-radius: 999px;
	color: #c7d2fe;
}

.comment-body {
	margin-top: 9px;
	font-size: 14px;
	line-height: 1.6;
}

.comment-edit-button {
	display: block;
	min-height: 32px;
	margin: 9px 0 0 auto;
	background: transparent;
	color: var(--muted);
}

.comment-edit {
	margin-top: 10px;
}

.comment-load-more {
	display: block;
	margin: 14px auto 0;
}

button:active:not(:disabled),
summary:active {
	transform: translateY(1px);
}

.footer {
	margin-top: 18px;
	padding: 18px 0;
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid rgba(129, 140, 248, 0.65);
	outline-offset: 2px;
}

@media (max-width: 1220px) {
	.overview-grid {
		grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
	}

	.delivery-panel,
	.attention-panel {
		grid-column: auto;
	}

	.evidence-grid {
		grid-template-columns: 1fr 1fr;
	}

	.evidence-grid > * {
		grid-column: auto;
	}

	.evidence-grid > :first-child,
	.evidence-grid > :nth-child(2):last-child {
		grid-column: 1 / -1;
	}

	.task-filters {
		grid-template-columns: minmax(220px, 1fr) 160px 145px 145px;
	}

	.task-filters > .rail-button {
		grid-column: 1 / -1;
		width: auto;
		justify-self: start;
	}
	.task-table-head {
		display: none;
	}

	.task-row {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 14px;
	}

	.task-main {
		grid-column: 1 / -1;
	}

	.task-cell {
		display: grid;
		gap: 2px;
	}

	.task-cell::before {
		content: attr(data-label);
		color: var(--muted);
		font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
		font-size: 10px;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}
}

@media (max-width: 960px) {
	.login-shell {
		grid-template-columns: 1fr;
		gap: 40px;
		max-width: 680px;
	}

	.login-eyebrow {
		margin-top: 48px;
	}
	.login-intro h1 {
		font-size: clamp(52px, 12vw, 76px);
	}

	.app-shell,
	.app-shell[data-rail-collapsed="true"] {
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		overflow-x: clip;
	}

	.command-rail,
	.ledger-main {
		min-width: 0;
		max-width: 100%;
	}

	.command-rail,
	.app-shell[data-rail-collapsed="true"] .command-rail {
		position: sticky;
		top: 0;
		display: block;
		height: auto;
		padding: 13px 14px;
		border-right: 0;
		border-bottom: 1px solid var(--rule);
		overflow: visible;
	}

	.app-shell[data-rail-collapsed="true"] .brand-lockup {
		flex-direction: row;
	}

	.app-shell[data-rail-collapsed="true"] .brand-logo {
		display: block;
	}

	.app-shell[data-rail-collapsed="true"] .brand-icon,
	.rail-collapse {
		display: none;
	}

	.app-shell[data-rail-collapsed="true"] .rail-drawer {
		display: flex;
	}

	.rail-toggle {
		display: grid;
	}

	.rail-drawer {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: flex;
		max-height: calc(100dvh - 69px);
		overflow-y: auto;
		scrollbar-width: none;
		padding: 14px;
		border-bottom: 1px solid var(--rule);
		background: #121214;
		opacity: 0;
		pointer-events: none;
		transform: translateY(-12px);
		visibility: hidden;
		transition:
			opacity 180ms ease,
			transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
			visibility 0s linear 260ms;
	}

	.command-rail[data-open="true"] .rail-drawer {
		opacity: 1;
		pointer-events: auto;
		transform: none;
		visibility: visible;
		transition-delay: 0s;
	}

	.command-rail[data-open="true"] .rail-drawer::-webkit-scrollbar {
		display: none;
	}

	.picker-panel,
	.sprint-panel {
		position: static;
		max-height: 300px;
		margin-top: 8px;
	}

	.rail-scrim {
		position: fixed;
		inset: 69px 0 0;
		z-index: 25;
		display: block;
		border: 0;
		background: rgba(5, 5, 7, 0.66);
		opacity: 0;
		pointer-events: none;
		visibility: hidden;
		transition:
			opacity 220ms ease,
			visibility 0s linear 220ms;
	}

	.rail-scrim[data-visible="true"] {
		opacity: 1;
		pointer-events: auto;
		visibility: visible;
		transition-delay: 0s;
	}

	.ledger-main {
		padding-top: 28px;
	}
}

@media (max-width: 760px) {
	html {
		scroll-behavior: auto;
	}

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

	.rail-actions form {
		display: block;
	}

	.picker-summary,
	.sprint-badge,
	.status-summary,
	.hdr-select,
	.task-search,
	.date-picker-summary,
	.scope-action,
	.sprint-check,
	.rail-button,
	.task-pager button,
	.chip.source,
	.comment-view-group button,
	.comment-scope-select select,
	.comment-composer button,
	.comment-edit button,
	.comment-state button,
	.comment-load-more,
	.comment-edit-button,
	.comment-export,
	.attention-more {
		min-height: 44px;
	}

	.ledger-main {
		padding: 24px 14px 18px;
	}

	.ledger-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.ledger-head h1 {
		font-size: clamp(32px, 9vw, 42px);
	}

	.pm-head-meta {
		justify-items: start;
		padding-left: 0;
		border-left: 0;
		text-align: left;
	}

	.report-status,
	.source-warning,
	.task-focus-note {
		align-items: flex-start;
		flex-direction: column;
	}

	.overview-grid,
	.evidence-grid {
		grid-template-columns: 1fr;
	}

	.evidence-grid > :first-child {
		grid-column: auto;
	}

	.ledger-metrics {
		grid-template-columns: 1fr 1fr;
	}

	.ledger-metrics > div:nth-child(2) {
		border-right: 0;
	}

	.ledger-metrics > div:nth-child(-n + 2) {
		border-bottom: 1px solid var(--rule);
	}

	.task-filters {
		grid-template-columns: 1fr;
	}

	.task-filters > .rail-button {
		grid-column: auto;
		width: 100%;
	}

	.task-table-head {
		display: none;
	}

	.task-row {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 14px;
	}

	.task-main {
		grid-column: 1 / -1;
	}

	.task-cell {
		display: grid;
		gap: 2px;
	}

	.task-cell::before {
		content: attr(data-label);
		color: var(--muted);
		font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
		font-size: 10px;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	.task-modal {
		padding: 18px 14px;
	}

	.task-modal-grid {
		grid-template-columns: 1fr 1fr;
	}

	.task-modal-grid > div {
		grid-column: auto !important;
	}

	.dependency-list > div {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.source-properties dl > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.comment-dialog {
		width: 100%;
	}

	.comment-head,
	.comment-toolbar,
	.comment-feed {
		padding-right: 14px;
		padding-left: 14px;
	}

	.comment-target-row,
	.comment-composer-foot,
	.comment-edit-actions,
	.comment-edit-error {
		align-items: stretch;
		flex-wrap: wrap;
	}
}

@media (max-width: 560px) {
	.login-shell {
		gap: 32px;
		padding: 28px 18px;
	}

	.login-brand img {
		width: 150px;
	}
	.login-eyebrow {
		margin-top: 40px;
	}
	.login-intro h1 {
		font-size: clamp(48px, 17vw, 64px);
	}
	.login-card {
		padding: 24px 18px;
	}

	.rail-actions {
		grid-template-columns: 1fr;
	}

	.ledger-panel,
	.card {
		padding: 16px;
		border-radius: 12px;
	}

	.ledger-metrics strong {
		font-size: 21px;
	}

	.velocity-summary {
		width: 100%;
		justify-content: flex-start;
		margin-left: 15px;
		text-align: left;
	}

	.velocity-context {
		display: grid;
		gap: 2px;
	}

	.data-details-grid {
		grid-template-columns: 1fr;
	}

	.cwl-vel {
		height: 300px;
	}

	.task-row {
		grid-template-columns: 1fr;
	}

	.task-main,
	.task-cell {
		grid-column: 1;
	}

	.task-modal-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

.view-navigation {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
	padding: 8px 0;
}

.view-navigation button,
.liveops-controls button,
.liveops-filters select,
.liveops-more {
	border: 1px solid var(--rule-strong);
	border-radius: 8px;
	background: var(--carbon-2);
	color: var(--paper);
	padding: 7px 10px;
}

.view-navigation button[aria-current="page"] {
	background: var(--iris);
	border-color: var(--iris);
}

.liveops {
	display: grid;
	gap: 18px;
}

.liveops-header,
.liveops-controls,
.liveops-filters {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: space-between;
}

.liveops-filters label {
	display: grid;
	gap: 4px;
	color: var(--muted);
	font-size: 13px;
}

.liveops-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border: 1px solid var(--rule);
	border-radius: 12px;
	overflow: hidden;
}

.liveops-weekday,
.liveops-day {
	min-width: 0;
	padding: 8px;
	border-right: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.liveops-weekday {
	background: var(--carbon);
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.liveops-day {
	display: grid;
	align-content: start;
	gap: 4px;
	min-height: 120px;
	background: rgba(24, 24, 28, 0.72);
}

.liveops-day time {
	color: var(--muted);
	font-size: 12px;
}

.liveops-event {
	overflow: hidden;
	border: 0;
	border-left: 3px solid var(--game-color);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--paper);
	padding: 3px 5px;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.liveops-event span {
	color: var(--game-color);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.liveops-agenda {
	display: none;
}

.liveops-notice,
.liveops-empty,
.liveops-error {
	border: 1px solid var(--rule-strong);
	border-radius: 8px;
	background: var(--carbon);
	padding: 10px;
}

.liveops-dialog {
	position: fixed;
	z-index: 20;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.7);
	padding: 16px;
}

.liveops-dialog > div {
	display: grid;
	gap: 10px;
	width: min(560px, 100%);
	max-height: 90vh;
	overflow: auto;
	border: 1px solid var(--rule-strong);
	border-radius: 12px;
	background: var(--carbon);
	padding: 20px;
}

@media (max-width: 960px) {
	.liveops-grid {
		display: none;
	}

	.liveops-agenda {
		display: grid;
		gap: 14px;
	}

	.liveops-agenda section {
		display: grid;
		gap: 5px;
	}
}
