:root {
	color-scheme: light;
	--bg: #eef3f6;
	--panel: #ffffff;
	--panel-alt: #f5f8fa;
	--text: #1f2933;
	--muted: #52606d;
	--accent: #0f766e;
	--accent-dark: #115e59;
	--border: #d9e2ec;
	--danger: #b42318;
	--job-wait: #4ae363;
	--job-running: #e8821d;
	--job-succeeded: #41a5e8;
	--job-canceled: #a0a0a0;
	--job-failed: #f23333;
	--sidebar-width: min(420px, 32vw);
	--preset-sidebar-width: min(340px, 28vw);
}

* {
	box-sizing: border-box;
}
body {
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(180deg, #f8fbfc 0%, var(--bg) 100%);
	color: var(--text);
	font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}
main {
	display: grid;
	min-height: 100vh;
	margin-left: var(--sidebar-width);
	padding: 48px 32px 104px;
	place-items: start center;
}
body:has(.preset-sidebar:not(.hidden)) main {
	margin-right: var(--preset-sidebar-width);
}
.card {
	width: min(1180px, 100%);
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}
h2 {
	margin: 0 0 12px;
	font-size: 18px;
}
.brand {
	margin: 0;
	color: var(--accent);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.hint,
.field-hint {
	color: var(--muted);
	line-height: 1.6;
}
.hint,
.field-hint {
	margin: 6px 0 12px;
	font-size: 13px;
}
.actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin: 20px 0;
}
.compact-actions {
	margin: 16px 0 0;
}
button {
	border: 0;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		opacity 0.2s ease;
}
button.primary {
	background: var(--accent);
	color: #fff;
}
button.primary:hover {
	background: var(--accent-dark);
}
button.secondary {
	background: #dfe7ec;
	color: var(--text);
}
button:disabled {
	opacity: 0.6;
	cursor: default;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid #5eead4;
	outline-offset: 2px;
}
.workspace-layout {
	margin-top: 28px;
}
.workspace {
	min-width: 0;
}
.workflow-toolbar {
	display: grid;
	grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.5fr) 44px;
	gap: 12px;
	align-items: end;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--panel-alt);
}
.workflow-toolbar-anchor {
	position: relative;
}
.toolbar-control {
	display: grid;
	gap: 7px;
	min-width: 0;
}
.menu-button {
	display: grid;
	width: 44px;
	height: 42px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
	color: var(--text);
	font-size: 20px;
}
.menu-button:hover {
	background: #edf4f5;
}
.app-menu {
	position: absolute;
	z-index: 40;
	top: calc(100% + 10px);
	right: 0;
	width: min(330px, calc(100vw - 40px));
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.app-menu button {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border-radius: 7px;
	background: transparent;
	color: var(--text);
	font-weight: 500;
	text-align: left;
}
.app-menu button:not(:disabled):hover {
	background: #edf4f5;
}
.menu-separator {
	margin: 7px 4px;
	border-top: 1px solid var(--border);
}
.menu-label {
	margin: 8px 12px 4px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}
.workspace-status {
	margin-left: 2px;
}
.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.row {
	display: grid;
	gap: 8px;
}
label {
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
}
input,
textarea,
select,
pre {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
	color: var(--text);
	font: inherit;
}
input,
textarea,
select {
	padding: 10px 12px;
}
input[type="checkbox"] {
	width: auto;
	accent-color: var(--accent);
}
textarea,
pre {
	min-height: 112px;
	padding: 14px;
	overflow: auto;
	white-space: pre-wrap;
	word-break: break-word;
}
code {
	padding: 1px 4px;
	border-radius: 4px;
	background: #e7eef1;
}
.status {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--muted);
}
.status.error {
	color: var(--danger);
}
.meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 16px;
}
.meta strong {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
}
.checkbox-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	color: var(--text);
	cursor: pointer;
}
.dev-notice {
	margin: 14px 0 0;
	padding: 10px 12px;
	border: 1px solid #99f6e4;
	border-radius: 10px;
	background: #f0fdfa;
	color: #115e59;
	font-size: 14px;
	line-height: 1.5;
}
.hidden {
	display: none;
}
.parameter-list {
	display: grid;
	gap: 18px;
	margin-top: 24px;
}
.parameter-group {
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
}
.parameter-group > h2 {
	margin: 0;
	padding: 16px 18px;
	border-bottom: 1px solid var(--border);
	font-size: 16px;
}
.field-list {
	display: grid;
	gap: 0;
}
.workflow-field {
	padding: 16px 18px;
	background: #fff;
}
.workflow-field + .workflow-field {
	border-top: 1px solid var(--border);
}
.field-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	white-space: nowrap;
}
.field-name {
	flex: 0 0 auto;
	color: var(--text);
	font-size: 14px;
}
.field-description {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--muted);
	font-size: 13px;
	font-weight: 400;
	text-overflow: ellipsis;
}
.workflow-field input:not([type="checkbox"]),
.workflow-field textarea,
.workflow-field select {
	margin-top: 10px;
}
.workflow-file-row {
	margin-top: 10px;
}
.workflow-file-row.drop-active {
	border-radius: 10px;
	outline: 2px dashed var(--accent);
	outline-offset: 2px;
	background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.workflow-file-row:has(.workflow-file-preview) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 300px);
	gap: 14px;
	align-items: start;
}
.workflow-field .workflow-file-row input[type="file"] {
	min-width: 0;
	margin-top: 0;
}
.workflow-file-preview {
	min-width: 0;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--panel-alt);
}
.workflow-file-preview img {
	display: block;
	width: 100%;
	max-height: 280px;
	border-radius: 6px;
	object-fit: contain;
}
.required-badge {
	flex: 0 0 auto;
	padding: 2px 7px;
	border-radius: 999px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 11px;
	font-weight: 700;
}
.optional-parameters {
	overflow: hidden;
}
.optional-parameters summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 18px;
	cursor: pointer;
	color: var(--text);
	font-size: 16px;
	font-weight: 700;
	list-style: none;
}
.optional-parameters summary::-webkit-details-marker {
	display: none;
}
.optional-parameters summary::after {
	content: "＋";
	margin-left: auto;
	color: var(--accent);
	font-size: 18px;
}
.optional-parameters[open] summary {
	border-bottom: 1px solid var(--border);
}
.optional-parameters[open] summary::after {
	content: "−";
}
.parameter-count {
	margin-left: 10px;
	margin-right: auto;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
}
.field-random {
	margin-top: 10px;
	font-size: 13px;
}
.submit-bar {
	position: fixed;
	z-index: 30;
	left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width)) / 2);
	bottom: max(16px, env(safe-area-inset-bottom));
	display: flex;
	width: min(420px, calc(100vw - 32px));
	padding: 10px;
	transform: translateX(-50%);
	border: 1px solid rgba(15, 118, 110, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
	backdrop-filter: blur(10px);
}
.submit-bar.hidden {
	display: none;
}
.submit-bar button {
	width: 100%;
}
.submit-bar.has-missing button {
	pointer-events: none;
	background: #9aa5b1;
}
.submit-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	max-width: min(480px, calc(100vw - 32px));
	padding: 8px 12px;
	transform: translate(-50%, 4px);
	border-radius: 8px;
	background: #1f2933;
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.15s ease,
		transform 0.15s ease;
}
.submit-bar.has-missing:hover .submit-tooltip,
.submit-bar.has-missing:focus-within .submit-tooltip {
	transform: translate(-50%, 0);
	opacity: 1;
}
.jobs-sidebar {
	position: fixed;
	z-index: 20;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	width: var(--sidebar-width);
	max-width: 420px;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	overflow: hidden;
	border-right: 1px solid var(--border);
	background: var(--panel-alt);
	box-shadow: 8px 0 24px rgba(15, 23, 42, 0.05);
}
.jobs-sidebar-heading {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}
.jobs-sidebar-heading h2 {
	margin: 0;
}
.jobs-filter {
	margin: 0;
	padding: 7px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
	font-size: 12px;
}
.jobs-sidebar .hint {
	margin: -4px 0 0;
}
.jobs-list {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 0;
	flex: 1 1 auto;
	gap: 10px;
	overflow-y: auto;
	scrollbar-gutter: stable;
	padding-right: 4px;
	overscroll-behavior: contain;
}
.preset-sidebar {
	position: fixed;
	z-index: 20;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	width: var(--preset-sidebar-width);
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	overflow-y: auto;
	border-left: 1px solid var(--border);
	background: var(--panel-alt);
	box-shadow: -8px 0 24px rgba(15, 23, 42, 0.05);
}
.preset-sidebar.hidden,
.preset-sidebar-tab.hidden {
	display: none;
}
.preset-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.preset-sidebar-header h2 {
	margin: 0;
}
.preset-sidebar-close {
	display: grid;
	width: 34px;
	height: 34px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: #fff;
	color: var(--text);
	font-size: 22px;
	line-height: 1;
}
.preset-sidebar-close:hover {
	background: #edf4f5;
}
.preset-list {
	display: grid;
	gap: 14px;
}
.preset-item {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
}
.preset-item h3 {
	margin: 0;
	font-size: 15px;
}
.preset-control {
	display: grid;
	gap: 6px;
}
.preset-control label {
	font-size: 13px;
	font-weight: 600;
}
.preset-control select {
	width: 100%;
	min-width: 0;
	padding: 9px 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	color: var(--text);
}
.preset-sidebar-tab {
	position: fixed;
	z-index: 20;
	top: 50%;
	right: 0;
	padding: 13px 9px;
	transform: translateY(-50%);
	border: 1px solid var(--border);
	border-right: 0;
	border-radius: 10px 0 0 10px;
	background: var(--panel-alt);
	color: var(--text);
	writing-mode: vertical-rl;
	letter-spacing: 0.15em;
}
.preset-sidebar-tab:hover {
	background: #edf4f5;
}
.job-item {
	display: grid;
	flex: 0 0 auto;
	gap: 8px;
	max-height: 230px;
	padding: 14px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
}
.job-item[hidden] {
	display: none;
}
.job-item--outputs-open {
	max-height: none;
}
.job-card-header {
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.job-title {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.4;
}
.job-creator {
	display: flex;
	min-width: 0;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.4;
}
.job-creator__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.job-creator__duration {
	flex: 0 0 auto;
	color: var(--muted);
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}
.job-creator--owned .job-creator__name {
	color: #075f9c;
	font-weight: 700;
}
.job-status {
	display: inline-flex;
	flex: 0 0 auto;
	width: fit-content;
	align-items: center;
	gap: 5px;
	padding: 0 7px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}
.job-status::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}
.job-status--waiting {
	border-color: var(--job-wait);
	background: #ecfbed;
	color: #176b2b;
}
.job-status--running {
	border-color: var(--job-running);
	background: #fff3e6;
	color: #894300;
}
.job-status--succeeded {
	border-color: var(--job-succeeded);
	background: #ebf7ff;
	color: #075f9c;
}
.job-status--canceled {
	border-color: var(--job-canceled);
	background: #f2f2f2;
	color: #5f5f5f;
}
.job-status--failed {
	border-color: var(--job-failed);
	background: #ffeded;
	color: #b51f1f;
}
.job-status--unknown {
	background: #f2f4f6;
	color: #52606d;
}
.job-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}
.job-actions-spacer {
	min-width: 0;
	flex: 1 1 auto;
}
.job-actions button {
	padding: 0;
}
.job-icon-button {
	display: inline-grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	color: var(--text);
}
.job-icon-button:hover {
	background: #edf4f5;
}
.job-icon-button--active {
	border-color: #075f9c;
	background: #ebf7ff;
	color: #075f9c;
}
.job-icon-button svg {
	width: 17px;
	height: 17px;
}
.job-download-button svg {
	width: 20px;
	height: 20px;
}
.job-actions .danger {
	border-color: #fecaca;
	background: #fee2e2;
	color: #991b1b;
}
.job-actions .danger:hover {
	background: #fecaca;
}
.job-prompt-restore-button {
	flex: 0 0 auto;
}
.job-output-panel {
	display: grid;
	gap: 10px;
	padding-top: 2px;
}
.job-output-panel__status {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}
.job-output-panel__status--error {
	color: #b51f1f;
}
.job-output-preview {
	display: grid;
	gap: 6px;
	min-width: 0;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #f8fbfc;
}
.job-output-preview__heading {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 8px;
}
.job-output-preview__heading span {
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
}
.job-output-preview__download {
	flex: 0 0 auto;
	padding: 0;
}
.job-output-preview img,
.job-output-preview video {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: 5px;
}
.job-output-panel__new-window {
	padding: 6px 9px;
	font-size: 12px;
}
.job-output-gallery-modal {
	position: fixed;
	z-index: 100;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}
.job-output-gallery-modal.hidden {
	display: none;
}
.job-output-gallery-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.84);
}
.job-output-gallery-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	width: min(90vw, 100%);
	max-height: calc(100vh - 40px);
	flex-direction: column;
	overflow: auto;
	border: 1px solid #334155;
	border-radius: 14px;
	background: #111827;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
	color: #e5e7eb;
}
.job-output-gallery-header {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #334155;
}
.job-output-gallery-header h2 {
	margin: 0;
	font-size: 17px;
}
.job-output-gallery-close-button {
	flex: 0 0 auto;
	border: 1px solid #64748b;
	border-radius: 8px;
	background: #1e293b;
	color: #f8fafc;
}
.job-output-gallery-close-button:hover {
	background: #334155;
}
.job-output-gallery-state {
	margin: 0;
	padding: 20px;
	color: #cbd5e1;
	line-height: 1.6;
}
.job-output-gallery-state.error {
	color: #fca5a5;
}
.job-output-gallery-items {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 20px;
}
.job-output-gallery-item {
	display: flex;
	min-width: min(100%, 260px);
	max-width: calc((100% - 32px) / 3);
	flex: 1 1 260px;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #334155;
	border-radius: 9px;
	background: #0f172a;
}
.job-output-gallery-item__heading {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 8px;
	padding: 10px;
}
.job-output-gallery-item__heading span {
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
}
.job-output-gallery-item__download {
	flex: 0 0 auto;
	padding: 0;
}
.job-output-gallery-item img,
.job-output-gallery-item video {
	display: block;
	width: 100%;
	height: auto;
	background: #020617;
}
.workflow-file-drop-overlay {
	position: fixed;
	z-index: 200;
	inset: 16px;
	display: grid;
	place-items: center;
	border: 3px dashed #60a5fa;
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.9);
	color: #eff6ff;
	pointer-events: none;
}
.workflow-file-drop-overlay p {
	margin: 24px;
	padding: 24px 32px;
	border-radius: 10px;
	background: #1e3a8a;
	font-weight: 700;
	text-align: center;
}
.workflow-file-drop-overlay.hidden {
	display: none;
}
@media (max-width: 760px) {
	.job-output-gallery-item {
		max-width: calc((100% - 16px) / 2);
	}
}
@media (max-width: 520px) {
	.job-output-gallery-modal {
		padding: 12px;
	}
	.job-output-gallery-dialog {
		width: 100%;
		max-height: calc(100vh - 24px);
	}
	.job-output-gallery-item {
		max-width: 100%;
	}
}
.job-output-panel__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	color: var(--muted);
	font-size: 12px;
}
.job-progress {
	position: relative;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: #e7eef1;
}
.job-progress__value {
	display: block;
	width: var(--job-progress-value, 0%);
	height: 100%;
	border-radius: inherit;
	background: var(--job-running);
	transition: width 0.2s ease;
}
.job-progress--indeterminate .job-progress__value {
	width: 42%;
	animation: job-progress-indeterminate 1.1s ease-in-out infinite;
}
@keyframes job-progress-indeterminate {
	from {
		transform: translateX(-110%);
	}
	to {
		transform: translateX(265%);
	}
}
@media (prefers-reduced-motion: reduce) {
	.job-progress--indeterminate .job-progress__value {
		animation: none;
	}
}
.job-log-modal {
	position: fixed;
	z-index: 100;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}
.job-log-modal.hidden {
	display: none;
}
.job-log-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.84);
}
.job-log-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	width: min(960px, 100%);
	max-height: min(760px, calc(100vh - 40px));
	flex-direction: column;
	border: 1px solid #334155;
	border-radius: 14px;
	background: #111827;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
	color: #e5e7eb;
}
.job-log-header {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #334155;
}
.job-log-header h2 {
	margin: 0;
	font-size: 17px;
}
.job-log-close-button {
	flex: 0 0 auto;
	border: 1px solid #64748b;
	border-radius: 8px;
	background: #1e293b;
	color: #f8fafc;
}
.job-log-close-button:hover {
	background: #334155;
}
.job-log-state {
	margin: 0;
	padding: 20px;
	color: #cbd5e1;
	line-height: 1.6;
}
.job-log-state.error {
	color: #fca5a5;
}
.job-log-dialog pre {
	min-height: 0;
	margin: 0;
	padding: 20px;
	overflow: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #e5e7eb;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.55;
}
.login-overlay,
.project-access-modal,
.lora-default-prompt-modal {
	position: fixed;
	z-index: 110;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}
.login-overlay.hidden,
.project-access-modal.hidden,
.lora-default-prompt-modal.hidden,
.about-modal.hidden {
	display: none;
}
.about-modal {
	position: fixed;
	z-index: 80;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
}
.about-backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(
			circle at 50% 20%,
			rgba(45, 212, 191, 0.16),
			transparent 42%
		),
		rgba(8, 20, 30, 0.78);
	backdrop-filter: blur(4px);
}
.about-dialog {
	position: relative;
	width: min(460px, 100%);
	padding: 44px;
	overflow: hidden;
	border: 1px solid rgba(153, 246, 228, 0.45);
	border-radius: 24px;
	background:
		linear-gradient(135deg, rgba(20, 184, 166, 0.16), transparent 55%),
		#102832;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
	color: #f0fdfa;
	text-align: center;
}
.about-dialog::before {
	position: absolute;
	top: -80px;
	right: -70px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(94, 234, 212, 0.13);
	content: "";
}
.about-dialog h2 {
	position: relative;
	margin: 0;
	color: #fff;
	font-size: clamp(28px, 7vw, 40px);
	letter-spacing: -0.03em;
}
.about-dialog__version {
	position: relative;
	margin: 12px 0 0;
	color: #99f6e4;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.about-dialog__close {
	position: relative;
	min-width: 140px;
	background: #ccfbf1;
	color: #115e59;
}
.about-dialog__close:hover {
	background: #fff;
}
.login-backdrop,
.project-access-backdrop,
.lora-default-prompt-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.58);
}
.login-dialog,
.project-access-dialog,
.lora-default-prompt-dialog {
	position: relative;
	z-index: 1;
	width: min(1080px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--panel);
	box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}
.login-dialog {
	width: min(420px, 100%);
	padding: 26px;
}
.login-dialog p {
	line-height: 1.6;
}
.login-dialog .primary {
	margin-top: 20px;
}
.project-access-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--border);
}
.project-access-header h2 {
	margin: 0;
	white-space: nowrap;
}
.project-access-header-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
.project-access-dialog > .hint,
.project-access-dialog > .status,
.lora-default-prompt-dialog > .hint,
.lora-default-prompt-dialog > .status {
	margin-right: 20px;
	margin-left: 20px;
}
.project-access-table-wrap {
	max-height: min(60vh, 760px);
	overflow: auto;
	overflow-x: auto;
	margin-top: 18px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.project-access-table {
	width: 100%;
	min-width: 940px;
	border-collapse: collapse;
	table-layout: fixed;
	text-align: left;
}
.project-access-table th:nth-child(1),
.project-access-table td:nth-child(1) {
	width: 34%;
}
.project-access-table th:nth-child(2),
.project-access-table td:nth-child(2) {
	width: 20%;
}
.project-access-table th:nth-child(3),
.project-access-table td:nth-child(3) {
	width: 46%;
}
.project-access-table th,
.project-access-table td {
	padding: 12px 20px;
	border-bottom: 1px solid var(--border);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.project-access-table tbody tr:last-child td {
	border-bottom: 0;
}
.lora-default-prompt-table-wrap {
	max-height: min(60vh, 760px);
	overflow: auto;
	margin-top: 18px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.lora-default-prompt-table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	table-layout: fixed;
	text-align: left;
}
.lora-default-prompt-table th:first-child,
.lora-default-prompt-table td:first-child {
	width: 32%;
}
.lora-default-prompt-table th,
.lora-default-prompt-table td {
	padding: 12px 20px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}
.lora-default-prompt-table th {
	color: var(--muted);
	font-size: 13px;
}
.lora-default-prompt-table td:first-child {
	overflow-wrap: anywhere;
	font-weight: 600;
}
.lora-default-prompt-table textarea {
	display: block;
	width: 100%;
	min-height: 96px;
	resize: vertical;
}
.lora-default-prompt-table tbody tr:last-child td {
	border-bottom: 0;
}
.project-access-table th {
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
}
.access-toggle {
	color: var(--text);
	font-weight: 500;
}
.project-access-project-list {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.project-access-project-item {
	display: flex;
	min-width: 0;
	max-width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 8px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: color-mix(in srgb, var(--panel) 88%, var(--text));
	white-space: nowrap;
}
.project-access-project-item span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.project-access-project-remove {
	flex: 0 0 auto;
	padding: 0 2px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: var(--muted);
	font-size: 14px;
	line-height: 1;
	opacity: 0.55;
	cursor: pointer;
}
.project-access-project-remove:hover,
.project-access-project-remove:focus-visible {
	color: var(--text);
	opacity: 1;
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.empty-state {
	margin: 0;
	padding: 12px;
	color: var(--muted);
	text-align: center;
}
@media (max-width: 900px) {
	:root {
		--sidebar-width: 100%;
	}
	main {
		display: block;
		margin-left: 0;
		margin-right: 0;
		padding: 24px 20px 104px;
	}
	.jobs-sidebar {
		position: static;
		width: 100%;
		max-width: none;
		height: min(620px, 72vh);
		border-right: 0;
		border-bottom: 1px solid var(--border);
		box-shadow: none;
	}
	.preset-sidebar {
		position: static;
		width: 100%;
		max-width: none;
		max-height: none;
		border-top: 1px solid var(--border);
		border-left: 0;
		box-shadow: none;
	}
	.preset-sidebar-tab {
		position: fixed;
	}
	.job-log-modal {
		padding: 12px;
	}
	.job-log-dialog {
		max-height: calc(100vh - 24px);
	}
	.submit-bar {
		left: 50%;
	}
}

@media (max-width: 680px) {
	main {
		padding: 20px 0 104px;
	}
	.card {
		padding: 20px;
		border-radius: 0;
	}
	.workflow-toolbar {
		grid-template-columns: 1fr 44px;
	}
	.workflow-toolbar .toolbar-control:first-child {
		grid-column: 1 / -1;
	}
	.form-grid,
	.meta {
		grid-template-columns: 1fr;
	}
	.workflow-file-row:has(.workflow-file-preview) {
		grid-template-columns: 1fr;
	}
}
