:root {
	--black: #050708;
	--ink: #111517;
	--panel: #f8fbfc;
	--paper: #ffffff;
	--muted: #667179;
	--line: #cbd5dc;
	--heavy-line: #111517;
	--cyan: #00d9ff;
	--cyan-dark: #007d95;
	--cyan-soft: #dff9ff;
	--amber: #ffd84d;
	--red: #df2b2b;
	--green: #1f9d5a;
	--shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-width: 320px;
	background: var(--black);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
}

button,
input,
select {
	font: inherit;
}

button {
	border: 1px solid var(--heavy-line);
	border-radius: 6px;
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}

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

.app-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.topbar {
	min-height: 58px;
	display: grid;
	grid-template-columns: minmax(210px, 280px) minmax(260px, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 10px 16px;
	background: #151b1e;
	color: #f4fbff;
	border-bottom: 1px solid #2b383e;
}

.brand-lockup {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.brand-lockup strong,
.brand-lockup span {
	display: block;
	white-space: nowrap;
}

.brand-lockup span {
	color: #a8b5bd;
	font-size: 12px;
}

.brand-mark {
	width: 34px;
	height: 34px;
	border: 2px solid var(--cyan);
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 800;
	color: var(--cyan);
}

.browser-strip {
	display: grid;
	grid-template-columns: 34px auto 1fr;
	align-items: center;
	gap: 8px;
}

.path-label {
	font-size: 12px;
	color: #a8b5bd;
}

.browser-strip input {
	width: 100%;
	border: 1px solid #3a474e;
	border-radius: 6px;
	background: #050708;
	color: #f4fbff;
	padding: 8px 12px;
}

.top-actions,
.preview-actions,
.button-row,
.inline-actions,
.blueprint-actions,
.file-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.icon-button,
.primary-mini,
.ghost-mini {
	min-height: 34px;
	padding: 0 11px;
	border-color: #415059;
	background: #20282d;
	color: #f4fbff;
}

.primary-mini {
	background: var(--cyan);
	color: #001013;
	border-color: var(--cyan);
	font-weight: 800;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.status-pill.unsaved {
	background: #332c00;
	color: var(--amber);
	border: 1px solid #8c7600;
}

.workspace {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(360px, 42vw) minmax(0, 1fr);
	min-height: 0;
}

.task-board {
	background: var(--paper);
	border-right: 4px solid var(--black);
	overflow: auto;
	padding: 22px;
}

.task-board-header {
	border-bottom: 3px solid var(--black);
	padding-bottom: 16px;
	margin-bottom: 18px;
}

.eyebrow {
	margin: 0 0 5px;
	text-transform: uppercase;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	color: var(--cyan-dark);
}

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

h1 {
	margin-bottom: 8px;
	font-size: clamp(25px, 3vw, 44px);
	line-height: 1.02;
}

h2 {
	margin-bottom: 0;
	font-size: 18px;
}

h3 {
	margin-bottom: 10px;
	font-size: 20px;
}

.board-note,
.muted,
.safe-copy {
	color: var(--muted);
	line-height: 1.45;
}

.action-group {
	margin: 0 0 22px;
}

.group-heading {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 9px;
}

.group-heading span {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

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

.card-grid.two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-card,
.wide-card {
	text-align: left;
	min-height: 118px;
	padding: 13px;
	display: grid;
	align-content: start;
	gap: 7px;
	background: #f4f8fa;
	border: 2px solid #20272b;
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.action-card:hover,
.wide-card:hover,
.action-card.active {
	background: var(--cyan-soft);
	border-color: var(--cyan-dark);
}

.action-card strong,
.action-card small,
.wide-card strong,
.wide-card small {
	display: block;
}

.action-card small,
.wide-card small {
	color: #4d5b63;
	line-height: 1.3;
}

.card-icon {
	width: 34px;
	height: 30px;
	border: 2px solid var(--black);
	border-radius: 4px;
	display: inline-grid;
	place-items: center;
	background: var(--black);
	color: var(--cyan);
	font-size: 11px;
	font-weight: 900;
}

.wide-card {
	width: 100%;
	min-height: 84px;
	grid-template-columns: 42px 1fr;
	align-items: center;
}

.grid-icon {
	font-size: 18px;
}

.split-stage {
	min-width: 0;
	min-height: 0;
	display: grid;
	grid-template-rows: minmax(320px, 52vh) minmax(330px, 1fr);
	background: var(--black);
	gap: 4px;
}

.preview-pane,
.editor-pane {
	min-width: 0;
	background: var(--panel);
	overflow: auto;
}

.preview-pane {
	display: flex;
	flex-direction: column;
}

.preview-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	background: #f7fbfd;
	border-bottom: 2px solid var(--black);
}

.preview-toolbar strong,
.preview-toolbar span {
	display: block;
}

.preview-toolbar span {
	font-size: 12px;
	color: var(--green);
	font-weight: 700;
}

.preview-actions button {
	min-height: 32px;
	padding: 0 10px;
}

.danger-link {
	color: var(--red);
	border-color: var(--red);
}

.wp-frame {
	flex: 1;
	background: white;
	display: flex;
	flex-direction: column;
	min-height: 280px;
}

.wp-adminbar {
	min-height: 28px;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 12px;
	background: #1d2529;
	color: #f4fbff;
	font-size: 12px;
	overflow: hidden;
}

.push {
	margin-left: auto;
}

.wp-page {
	flex: 1;
	padding: 22px clamp(20px, 5vw, 56px);
}

.wp-site-nav {
	display: flex;
	align-items: center;
	gap: clamp(14px, 3vw, 34px);
	margin-bottom: 34px;
	font-size: 14px;
}

.wp-site-nav strong {
	margin-right: auto;
	font-size: 18px;
}

.wp-hero {
	display: grid;
	grid-template-columns: minmax(240px, 0.9fr) minmax(220px, 1.1fr);
	align-items: center;
	gap: 28px;
}

.runtime-tag {
	display: inline-block;
	margin-bottom: 8px;
	padding: 5px 8px;
	background: var(--cyan-soft);
	border: 1px solid var(--cyan);
	font-size: 12px;
	font-weight: 800;
}

.wp-hero h2 {
	font-family: Georgia, serif;
	font-size: clamp(32px, 5vw, 58px);
	line-height: 1.08;
	margin-bottom: 16px;
}

.wp-hero h2 span {
	color: #3159f4;
}

.wp-hero p {
	font-size: 18px;
	line-height: 1.45;
	max-width: 560px;
}

.wp-callout {
	display: inline;
	background: #fff0a3;
	box-decoration-break: clone;
	line-height: 1.5;
}

.wp-button {
	display: block;
	margin-top: 18px;
	min-height: 48px;
	padding: 0 18px;
	background: #3159f4;
	color: white;
	border-color: #3159f4;
	font-weight: 800;
}

.wp-logo-mock {
	width: min(34vw, 360px);
	aspect-ratio: 1;
	justify-self: center;
	border: 20px solid #191919;
	outline: 36px solid #33ed82;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: Georgia, serif;
	font-size: clamp(130px, 18vw, 250px);
	font-weight: 900;
	color: #191919;
}

.editor-pane {
	padding: 16px;
}

.editor-titlebar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-bottom: 12px;
	margin-bottom: 14px;
	border-bottom: 3px solid var(--black);
}

.manager-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.manager-tabs button,
.chip {
	min-height: 30px;
	padding: 0 10px;
	border-color: var(--line);
	background: white;
	color: #334047;
}

.chip.active,
.manager-tabs button:hover {
	background: var(--black);
	color: var(--cyan);
	border-color: var(--black);
}

.panel {
	display: none;
}

.panel.active {
	display: block;
}

.panel-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
	gap: 16px;
	align-items: stretch;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.form-row.compact {
	grid-template-columns: minmax(240px, 520px);
}

label {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 800;
	color: #2d383e;
}

input,
select {
	width: 100%;
	min-height: 42px;
	border: 1px solid #9caab2;
	border-radius: 4px;
	background: white;
	color: var(--ink);
	padding: 0 10px;
}

.safety-note,
.db-notice,
.log-empty,
.reset-strip,
.progress-block,
.drop-line {
	border: 2px solid var(--black);
	background: #fff8ce;
	padding: 14px;
	border-radius: 6px;
}

.safety-note.cyan,
.db-notice {
	background: var(--cyan-soft);
	border-color: var(--cyan-dark);
}

.safety-note strong,
.safety-note span,
.progress-block strong,
.progress-block span,
.db-notice strong,
.db-notice span,
.log-empty strong,
.log-empty span {
	display: block;
}

.button-row {
	margin-top: 16px;
}

.button-row button,
.primary-action,
.danger-button,
.blueprint-actions button,
.file-toolbar button,
.saved-row button,
.export-grid button,
.drop-line button {
	min-height: 40px;
	padding: 0 14px;
}

.primary-action {
	background: var(--cyan);
	border-color: var(--cyan-dark);
	color: #001013;
	font-weight: 900;
}

.danger-button {
	background: var(--red);
	color: white;
	border-color: #8f1111;
	font-weight: 900;
}

.safe-copy {
	margin-top: 12px;
	margin-bottom: 0;
}

.safe-copy.danger {
	color: #8f1111;
	font-weight: 800;
}

.drop-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: white;
}

.catalog-controls {
	display: grid;
	gap: 10px;
	margin-bottom: 12px;
}

.chip-row,
.log-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

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

.blueprint-grid button {
	overflow: hidden;
	padding: 0;
	text-align: left;
	background: white;
	border-color: #1d2529;
}

.blueprint-grid strong,
.blueprint-grid small {
	display: block;
	padding: 0 10px;
}

.blueprint-grid strong {
	padding-top: 9px;
}

.blueprint-grid small {
	padding-bottom: 10px;
	color: var(--muted);
}

.thumb {
	display: block;
	height: 78px;
	border-bottom: 2px solid var(--black);
	background: linear-gradient(135deg, #223, #777);
}

.thumb.art { background: linear-gradient(135deg, #234737, #d0a965 48%, #203f68); }
.thumb.coffee { background: linear-gradient(135deg, #522b70, #ef994b); }
.thumb.feed { background: linear-gradient(135deg, #eef6ff, #6f88ff); }
.thumb.game { background: linear-gradient(135deg, #060606, #a41f1f 55%, #ffcf5f); }
.thumb.nonprofit { background: linear-gradient(135deg, #30180b, #9d623b, #f2b275); }
.thumb.blog { background: linear-gradient(135deg, #69113b, #e9d7e2); }

.progress-block {
	margin-top: 12px;
	background: white;
}

.progress-block div {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

meter {
	width: 100%;
	height: 14px;
	accent-color: var(--cyan);
}

.saved-list {
	border: 2px solid var(--black);
	border-radius: 6px;
	overflow: hidden;
	background: white;
}

.saved-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 13px;
	border-bottom: 1px solid var(--line);
}

.saved-row:last-child {
	border-bottom: 0;
}

.saved-row.selected {
	background: var(--cyan-soft);
	border-left: 5px solid var(--cyan-dark);
}

.saved-row strong,
.saved-row span {
	display: block;
}

.saved-row span {
	color: var(--muted);
	font-size: 13px;
}

.toggle-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 14px 0;
}

.toggle-grid label {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--line);
	padding: 10px;
	background: white;
}

.toggle-grid input {
	width: 18px;
	min-height: 18px;
	accent-color: var(--cyan-dark);
}

.reset-strip {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 10px;
	background: #fff3f3;
	border-color: #b32222;
}

.reset-strip span {
	display: block;
	color: #8f1111;
	font-size: 13px;
}

.file-workbench {
	display: grid;
	grid-template-columns: minmax(210px, 0.7fr) minmax(280px, 1.3fr);
	border: 2px solid var(--black);
	border-radius: 6px;
	overflow: hidden;
	background: white;
}

.file-tree {
	border-right: 2px solid var(--black);
	background: #f4f8fa;
	min-width: 0;
}

.file-toolbar {
	padding: 8px;
	border-bottom: 1px solid var(--line);
}

.file-toolbar button {
	min-height: 32px;
	padding: 0 9px;
	font-size: 12px;
}

.file-tree ul {
	list-style: none;
	margin: 0;
	padding: 8px;
	max-height: 245px;
	overflow: auto;
}

.file-tree li {
	padding: 8px 9px;
	border-radius: 4px;
	font-size: 13px;
}

.file-tree .open {
	font-weight: 900;
}

.selected-file {
	background: var(--cyan-soft);
	outline: 1px solid var(--cyan-dark);
}

.code-view {
	margin: 0;
	padding: 14px;
	min-height: 260px;
	overflow: auto;
	background: #071012;
	color: #e7feff;
	font: 13px/1.55 "SFMono-Regular", Consolas, monospace;
}

.code-view.tall {
	min-height: 310px;
	border: 2px solid var(--black);
	border-radius: 6px;
}

.blueprint-actions {
	margin-bottom: 10px;
}

.facts {
	display: grid;
	gap: 8px;
	margin: 14px 0 0;
}

.facts div {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 12px;
	padding: 10px;
	background: white;
	border: 1px solid var(--line);
}

.facts dt {
	font-weight: 900;
}

.facts dd {
	margin: 0;
	color: #334047;
}

.log-empty {
	margin-top: 12px;
	background: white;
	min-height: 110px;
	display: grid;
	align-content: center;
}

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

.export-grid > div {
	border: 2px solid var(--black);
	border-radius: 6px;
	background: white;
	padding: 14px;
}

@media (max-width: 1120px) {
	.workspace {
		grid-template-columns: 1fr;
	}

	.task-board {
		max-height: none;
		border-right: 0;
		border-bottom: 4px solid var(--black);
	}

	.card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.split-stage {
		grid-template-rows: auto auto;
	}
}

@media (max-width: 820px) {
	.topbar {
		grid-template-columns: 1fr;
	}

	.browser-strip {
		grid-template-columns: 34px 1fr;
	}

	.path-label {
		display: none;
	}

	.card-grid,
	.card-grid.two,
	.blueprint-grid,
	.form-row,
	.toggle-grid,
	.export-grid,
	.panel-layout,
	.file-workbench,
	.reset-strip {
		grid-template-columns: 1fr;
	}

	.wp-site-nav {
		flex-wrap: wrap;
	}

	.wp-hero {
		grid-template-columns: 1fr;
	}

	.wp-logo-mock {
		width: min(58vw, 230px);
		outline-width: 20px;
		border-width: 13px;
	}

	.editor-titlebar,
	.preview-toolbar,
	.saved-row,
	.drop-line {
		align-items: flex-start;
		flex-direction: column;
	}

	.manager-tabs {
		justify-content: flex-start;
	}
}

@media (max-width: 520px) {
	.task-board,
	.editor-pane {
		padding: 12px;
	}

	.wp-page {
		padding: 16px;
	}

	.wp-adminbar {
		gap: 8px;
		font-size: 11px;
	}

	.wp-hero h2 {
		font-size: 32px;
	}
}
