/* V75 (Claude, 4 Nov 2026): the live editor in the laptop in Craftor 1.0.0's own look, on Hamza's "Yes, fix them"
   to the Craftor final check (point 5). From the release's own editor (plugins/craftor assets/editor.css and
   editor.js): the paper top bar with the WordPress mark, "Home" and "Front page", the screens, Search, Preview and
   Publish; the rail of the editor (Add, Designs, Saved designs, Layers, Pages, Style, History, More tools, New shop)
   with its own icons; "Add to the page" and "Site style" over the panel, the search "Search: heading, photo,
   prices", the group headings. The film, the six steps and dragging blocks onto the page are unchanged: the rail's
   Add and Style are the panel's own two buttons. The page's own rules stay: no outlined boxes or lines (things are
   told apart by their backgrounds), greyed-out words that still read, and on a computer page nothing cut at the
   laptop's foot. */
.crlp .hb {
	--v75-paper: #f5f3ee;
	--v75-ink: #17181c;
	--v75-ink-2: #4a4d56;
	--v75-ink-3: #6b6e76;
	--v75-acc-ink: #1f3fd0;
	--v75-acc-soft: #e9eeff;
}

/* The top bar */
.crlp .hb .hb-top {
	gap: 10px;
	padding: 0 12px 0 0;
	background: var(--v75-paper);
}
.crlp .hb .v75-wp {
	display: grid;
	place-items: center;
	flex: none;
	align-self: stretch;
	width: 46px;
	background: var(--v75-ink);
	color: #fff;
}
.crlp .hb .v75-wp svg {
	width: 24px;
	height: 24px;
}
.crlp .hb .hb-page em {
	background: #ebe8e1;
	color: var(--v75-ink-2);
}
.crlp .hb .hb-devs {
	background: #ebe8e1;
}
/* The screens not picked still read on the paper (on a phone they carry words: Tablet, Phone) */
.crlp .hb .hb-devs button:not(.on) {
	color: var(--v75-ink-2);
}
.crlp .hb .hb-search {
	background: #fff;
	color: var(--v75-ink-2);
}
.crlp .hb .v75-preview {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: none;
	font-size: 12px;
	font-weight: 650;
	color: var(--v75-ink-2);
	white-space: nowrap;
}
.crlp .hb .v75-preview svg {
	width: 15px;
	height: 15px;
}

/* The row under the top bar: the hint and Undo, Redo, Reset, without lines; greyed-out words still read */
.crlp .hb .demo-toolbar {
	border-block: 0;
	background: #fbfaf7;
	color: var(--v75-ink-2);
}
.crlp .hb .demo-toolbar button {
	border: 0;
	border-radius: 99px;
	background: #fff;
	color: var(--v75-ink);
	box-shadow: 0 1px 2px rgba(23, 24, 28, .08);
}
.crlp .hb .demo-toolbar button:disabled {
	opacity: 1;
	background: #efede8;
	color: #5c5f68;
	box-shadow: none;
}

/* The rail */
.crlp .hb .v75-rail {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	min-height: 0;
	padding: 8px 0;
	overflow: hidden;
	background: var(--v75-paper);
}
.crlp .hb .v75-rail .hb-ptabs {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: none;
}
.crlp .hb .v75-rail .hb-ptabs button,
.crlp .hb .v75-ri {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 3px;
	width: 48px;
	height: 46px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
	color: var(--v75-ink-2);
	font: 750 9.5px/1.15 Inter, system-ui, sans-serif;
	text-align: center;
}
.crlp .hb .v75-rail .hb-ptabs button.on {
	background: var(--v75-acc-soft);
	color: var(--v75-acc-ink);
	box-shadow: none;
}
.crlp .hb .v75-rail svg {
	width: 18px;
	height: 18px;
}
.crlp .hb .v75-rail .v75-sp {
	flex: 1;
}
.crlp .hb .v75-rail .v75-build {
	background: var(--v75-ink);
	color: #fff;
}

/* The body: rail, panel, page */
.crlp .hb .hb-body {
	grid-template-columns: 56px 214px minmax(0, 1fr);
}
@media (min-width: 641px) and (max-width: 980px) {
	.crlp .hb .hb-body {
		grid-template-columns: 56px 214px minmax(0, 1fr);
	}
}
.crlp .hb .hb-panel {
	background: #fff;
}
.crlp .hb .v75-ptitle {
	flex: none;
	margin: 2px 0 10px;
	font-size: 13px;
	line-height: 18px;
	font-weight: 750;
	color: var(--v75-ink);
}
.crlp .hb .v75-t-style,
.crlp .hb .hb-panel.style .v75-t-add,
.crlp .hb .hb-panel:is(.sec, .demo-props) .v75-ptitle {
	display: none;
}
.crlp .hb .hb-panel.style:not(.sec, .demo-props) .v75-t-style {
	display: block;
}
/* The search as in the editor: a paper box without an outline, its words whole beside the panel (on a phone the
   drawer's own 16 px stays, so a phone does not zoom in when it is tapped) */
.crlp .hb .hb-library-search {
	border: 0;
	background: var(--v75-paper);
}
@media (min-width: 641px) {
	.crlp .hb .hb-library-search {
		gap: 5px;
		padding-inline: 7px 4px;
	}
	.crlp .hb .hb-library-search input {
		font-size: 11px;
		letter-spacing: -.005em;
		-webkit-appearance: none;
		appearance: none;
	}
	/* The search's clear button kept its place free at the end of the words, which cut them */
	.crlp .hb .hb-library-search input::-webkit-search-cancel-button {
		-webkit-appearance: none;
		display: none;
	}
	.crlp .hb .hb-page em {
		display: inline-block;
	}
	/* The price table fits the page beside the panel; it slides sideways on a phone only */
	.crlp .hb .hb-canvas .ns-tbl {
		min-width: 0;
	}
	.crlp .hb .v11-table-hint {
		display: none;
	}
}
/* The shop's words in the page never end with one word alone on a line */
.crlp .hb .hb-canvas {
	text-wrap: pretty;
}
.crlp .hb .hb-canvas :is(.ns-util > span, .ns-h5) {
	text-wrap: balance;
}
/* Drawn smaller on 1181-1400 px screens, the price table's dark head showed thin pale seams between its cells: the
   table paints the head's colour under its cells too (the head one exact height for that) */
.crlp .hb .hb-canvas .ns-tbl {
	background: linear-gradient(var(--ns-dark), var(--ns-dark)) top / 100% 30px no-repeat, #fff;
}
.crlp .hb .hb-canvas .ns-tbl th {
	height: 30px;
	padding-block: 0;
	line-height: 30px;
}
/* Tablet and phone (the film's step 5): in the laptop the page beside the rail and the panel is already narrow, so
   the two show as narrower pages instead of the same width */
@media (min-width: 641px) and (max-width: 800px) {
	.crlp .hb .hb-canvas.tab {
		width: 88%;
	}
	.crlp .hb .hb-canvas.phone {
		width: min(300px, 76%);
	}
}
/* Back to the blocks, without an arrow */
.crlp .hb .demo-back {
	border: 0;
	background: var(--v75-paper);
	color: var(--v75-ink);
}
.crlp .hb .hb-library-scroll .hb-tile {
	background: #f7f6f2;
	color: var(--v75-ink);
}
.crlp .hb .hb-h {
	font-size: 9.5px;
	letter-spacing: .07em;
}
.crlp .hb .hb-h.plain {
	color: var(--v75-ink-3);
}
.crlp .hb .hb-stage {
	background: #ebe8e1;
}

/* On a computer page the laptop is 470 px tall: the editor fills it, the page ends at the laptop's foot */
@media (min-width: 641px) and (max-height: 520px) {
	.crlp .hb {
		display: flex;
		flex-direction: column;
		height: 100vh;
	}
	.crlp .hb .hb-body {
		flex: 1;
		min-height: 0;
		height: auto;
	}
	/* The rail's seven panels fit the shorter editor; More tools and New shop show on taller screens */
	.crlp .hb .v75-rail :is(.v75-sp, .v75-build),
	.crlp .hb .v75-rail > .v75-ri {
		display: none;
	}
	.crlp .hb .v75-rail .hb-ptabs button,
	.crlp .hb .v75-rail .hb-ptabs .v75-ri {
		height: 42px;
	}
}

/* Phones: the drawer's own buttons only (the rail stays for wider screens), the page ending softly */
@media (max-width: 640px) {
	.crlp .hb .v75-rail {
		display: none;
	}
	.crlp .hb .v75-wp {
		display: none;
	}
	.crlp .hb .v75-preview {
		display: none;
	}
	.crlp .hb .hb-canvas {
		-webkit-mask-image: linear-gradient(#000 calc(100% - 56px), transparent);
		mask-image: linear-gradient(#000 calc(100% - 56px), transparent);
	}
	.crlp .v11-mobile-tools {
		border-bottom: 0;
		background: var(--v75-paper);
	}
	.crlp .v11-mobile-tools button {
		border: 0;
		background: #fff;
	}
}
