/* Made by scripts/build-look.mjs (tokens.css + assets.css + textbox.css + look.css). Don't edit: change the files in look/ and run it again. */
/* The look kit's colours: Atlas's own, and no others.
   MADE BY scripts/sync-look.mjs FROM ATLAS (src/lib/styles/palette.css). NEVER EDIT: change Atlas, then run "npm run sync-look". */
:root {
	--lapis: #233a8c;
	--ink: #1b1e2b;
	--paper: #f6f7fa;
	/* The module's own visual identity (the logo's colour). It is NOT The Custodian's: use --discipline-pink for them. */
	--tyrian: #6b2d5c;
	--orpiment: #8f6200;
	--malachite: #2a7560;

	/* THE COLOUR CODE (UF1; CLAUDE.md, "The Analysis Station"): one cyan and one pink, and no near-values.
	   Cyan is Those Who Might Have Been: their hints, their glitches, their signal, and The Slate, which is their device.
	   Pink is The Discipline and The Custodian. Transparent tints (glows, washes, scanlines) are made from these with
	   color-mix(in srgb, var(--those-cyan) 40%, transparent), never with a new hex or rgba value. The same two values are in
	   src/lib/palette.ts for the code-drawn pictures that cannot read a variable; a test keeps the two in step. */
	--those-cyan: #5ff2e6;
	--discipline-pink: #ff7ab8;

	/* THE CAST'S COLOURS (DL1; docs/STORY.md, "The cast"): one token for each character, beside the cyan and the pink. No
	   townsperson uses the cyan or the pink, and the Stranger has no colour. Colour is never the only way to tell who is
	   speaking: the name is always there in words. The same values are in src/lib/palette.ts (CAST), and
	   scripts/palette.test.mjs keeps the two in step and keeps every pair apart. */
	--architect-yellow: #f2c230;
	--listener-orange: #d97757;
	--archivist-parchment: #e9dcc0;
	--archivist-sepia: #7a5a3a;
	--trader-green: var(--malachite);
	--envoy-blue: #5c82c9;
	--guard-oxblood: #7a2e2e;
	--builder-stone: #8c8a84;
	--scribe-violet: #5e3a87;
	/* The Gatekeeper's (ER1b, 18 November 2026): weathered bronze, the guardian of the way between worlds. */
	--gatekeeper-bronze: #a6803f;
	/* The Librarian's (LB1, 23 November 2026): moss green, the cloth of a library's book bindings. */
	--librarian-moss: #739a3c;

	/* TEXT TINTS. No base colour passes as text on both the navy text box (#161d28) and The Atlas's paper (#f3e7c9), so each
	   has a tint for each ground: the smallest mix towards white (on navy) or black (on paper) that reaches 4.5:1, made
	   with color-mix from the one token and never as a new hex. The test works each mix out and measures it. */
	--those-on-navy: var(--those-cyan);
	--those-on-paper: color-mix(in srgb, var(--those-cyan) 47%, black);
	--discipline-on-navy: var(--discipline-pink);
	--discipline-on-paper: color-mix(in srgb, var(--discipline-pink) 62%, black);
	--architect-on-navy: var(--architect-yellow);
	--architect-on-paper: color-mix(in srgb, var(--architect-yellow) 52%, black);
	--listener-on-navy: var(--listener-orange);
	--listener-on-paper: color-mix(in srgb, var(--listener-orange) 71%, black);
	--archivist-on-navy: var(--archivist-parchment);
	--archivist-on-paper: color-mix(in srgb, var(--archivist-parchment) 47%, black);
	--archivist-sepia-on-navy: color-mix(in srgb, var(--archivist-sepia) 77%, white);
	--archivist-sepia-on-paper: var(--archivist-sepia);
	--trader-on-navy: color-mix(in srgb, var(--trader-green) 81%, white);
	--trader-on-paper: color-mix(in srgb, var(--trader-green) 99%, black);
	--envoy-on-navy: color-mix(in srgb, var(--envoy-blue) 98%, white);
	--envoy-on-paper: color-mix(in srgb, var(--envoy-blue) 80%, black);
	--guard-on-navy: color-mix(in srgb, var(--guard-oxblood) 65%, white);
	--guard-on-paper: var(--guard-oxblood);
	--builder-on-navy: var(--builder-stone);
	--builder-on-paper: color-mix(in srgb, var(--builder-stone) 75%, black);
	--scribe-on-navy: color-mix(in srgb, var(--scribe-violet) 67%, white);
	--scribe-on-paper: var(--scribe-violet);
	--gatekeeper-on-navy: var(--gatekeeper-bronze);
	--gatekeeper-on-paper: color-mix(in srgb, var(--gatekeeper-bronze) 77%, black);
	--librarian-on-navy: var(--librarian-moss);
	--librarian-on-paper: color-mix(in srgb, var(--librarian-moss) 73%, black);
}

/* Atlas values with no token: the few values Atlas keeps in a component rather than in its palette.
   Each was found in the file named above it (the table in scripts/sync-look.mjs). */
:root {
	/* src/lib/styles/ui.css */
	--font: Verdana, Geneva, 'DejaVu Sans', sans-serif;
	/* src/lib/components/slate/SlateWindow.svelte */
	--slate-stone: #565c6c;
	--slate-stone-light: #7c8396;
	--slate-stone-dark: #3b404e;
	--slate-gold: #e2b350;
	--slate-gold-dark: #8f6200;
	--slate-screen: #0f1530;
	--slate-rule: #1e2a52;
	--slate-light: #d7fbf6;
	--slate-text: #e4e7f0;
	--slate-quiet: #9fb0d4;
	--slate-panel: #141c3d;
	--slate-lock-top: #3a3f4b;
	--slate-lock-foot: #2e323c;
	--slate-lock-shade: #23262e;
	--slate-lock-edge: #5a6172;
	--slate-lock-ink: #c3c9d8;
	/* src/lib/components/TextBox.svelte */
	--box-fill: #0e131c;
	--box-cream: #f6efdc;
	--box-tone: #c9bfa6;
	--box-inner-line: rgba(243, 231, 201, 0.16);
	--box-shadow: rgba(0, 0, 0, 0.35);
	--box-bracket: #f3e7c9;
	/* src/lib/styles/ui.css */
	--atlas-paper: #f3e7c9;
	--atlas-paper-edge: #d8c193;
	/* src/lib/styles/access.css */
	--focus-ring: #ffd54a;
	--hc-black: #000;
	--hc-white: #fff;
	--hc-yellow: #ffe600;
}

/* The four threads (src/lib/pages/threads.css), for the plain pages. */
:root {
	--thread-recognition: #6b2d5c;
	--thread-exchange: #8f6200;
	--thread-order: #233a8c;
	--thread-edges: #2a7560;
	--thread-method: #4a5068;
	--thread-recognition-text: #6b2d5c;
	--thread-exchange-text: #6b4a00;
	--thread-order-text: #233a8c;
	--thread-edges-text: #236350;
	--thread-method-text: #4a5068;
	/* On a dark ground (Module Pages' Dark theme, and a note's tip, MP1) each is mixed with white, never given a new colour. */
	--thread-recognition-on-dark: color-mix(in srgb, var(--thread-recognition) 30%, white);
	--thread-exchange-on-dark: color-mix(in srgb, var(--thread-exchange) 35%, white);
	--thread-order-on-dark: color-mix(in srgb, var(--thread-order) 30%, white);
	--thread-edges-on-dark: color-mix(in srgb, var(--thread-edges) 35%, white);
	--thread-method-on-dark: color-mix(in srgb, var(--thread-method) 25%, white);
}

/* Module Pages' own variables (src/lib/pages/site.css), for the plain pages (.plain), and in High Contrast. */
.plain {
	--mp-paper: #f6f7fa;
	--mp-panel: #ffffff;
	--mp-ink: #1b1e2b;
	--mp-muted: #4a5068;
	--mp-rule: #dce0ea;
	--mp-edge: #b9c0d0;
	--mp-lapis: #233a8c;
	--mp-soft: #dde3f4;
	--mp-softer: #eef1fa;
	--mp-accent: #233a8c;
	--mp-on-accent: #ffffff;
	--mp-good: #236350;
	--mp-good-soft: #e3f1eb;
	--mp-warm: #8f6200;
	--mp-warm-text: #6b4a00;
	--mp-warm-soft: #fbf5e6;
	--mp-tip-bg: #1b1e2b;
	--mp-tip-ink: #ffffff;
	--mp-tip-link: #c9d4ff;
}
html.hc .plain {
	--mp-paper: #000000;
	--mp-panel: #000000;
	--mp-ink: #ffffff;
	--mp-muted: #ffffff;
	--mp-rule: #ffffff;
	--mp-edge: #ffffff;
	--mp-lapis: #ffffff;
	--mp-soft: #000000;
	--mp-softer: #000000;
	--mp-accent: #ffe600;
	--mp-on-accent: #000000;
	--mp-good: #ffffff;
	--mp-tick: #ffffff;
	--mp-cross: #ffffff;
	--mp-good-soft: #000000;
	--mp-warm: #ffffff;
	--mp-warm-text: #ffffff;
	--mp-warm-soft: #000000;
	--mp-tip-bg: #000000;
	--mp-tip-ink: #ffffff;
	--mp-tip-link: #ffe600;
}
@media (prefers-contrast: more) {
	.plain {
		--mp-paper: #000000;
		--mp-panel: #000000;
		--mp-ink: #ffffff;
		--mp-muted: #ffffff;
		--mp-rule: #ffffff;
		--mp-edge: #ffffff;
		--mp-lapis: #ffffff;
		--mp-soft: #000000;
		--mp-softer: #000000;
		--mp-accent: #ffe600;
		--mp-on-accent: #000000;
		--mp-good: #ffffff;
		--mp-tick: #ffffff;
		--mp-cross: #ffffff;
		--mp-good-soft: #000000;
		--mp-warm: #ffffff;
		--mp-warm-text: #ffffff;
		--mp-warm-soft: #000000;
		--mp-tip-bg: #000000;
		--mp-tip-ink: #ffffff;
		--mp-tip-link: #ffe600;
	}
}

/* The one picture in the look kit: the pack's Letter.png (Ninja Adventure, CC0), for a message arriving.
   MADE BY scripts/sync-look.mjs FROM ATLAS (static/art/ninja-adventure/Items/Other/Letter.png). NEVER EDIT: change Atlas, then run "npm run sync-look". */
:root {
	--letter-png: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAJCAYAAAAGuM1UAAAAAXNSR0IArs4c6QAAAJJJREFUGJVjZGBgYBCRlv7PQAR48/QpI6OItPT/e+evEaOeQclQi4GJgYGBgXFRNIrEkkx/hiWZ/ihiMDUsDAwMDL+d/RlYoQKLj39h8HrGA9cYawlh/3b2Z2DoPw/RABdgYGBgOL4UxWS4OBQwobszoiaaYZvUF4ZtUl8YImqi0aURNqBrwgUwbCAEGBkYSIsHABTuJ8AIwOOkAAAAAElFTkSuQmCC");
}

/* The text box: Atlas's own rules, with the kit's names. Words are sized by each screen, and padded by the padding rule, in look.css.
   MADE BY scripts/sync-look.mjs FROM ATLAS (src/lib/components/TextBox.svelte). NEVER EDIT: change Atlas, then run "npm run sync-look". */
.look-textbox {
	--tone: var(--box-tone);
	--box-radius: 16px;
	position: relative;
	box-sizing: border-box;
	color: var(--box-cream);
	text-align: left;
}
.look-textbox .art {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	border-radius: var(--box-radius);
	background: color-mix(in srgb, var(--box-fill) 80%, transparent);
	box-shadow: 0 6px 24px var(--box-shadow);
	color: var(--tone);
}
.look-textbox .art::before,
.look-textbox .art::after {
	content: '';
	position: absolute;
	pointer-events: none;
}
.look-textbox .art::before {
	inset: 5px;
	border: 1px solid var(--box-inner-line);
	border-radius: calc(var(--box-radius) - 4px);
}
.look-textbox .art::after {
	inset: 0;
	border: 1px solid var(--tone);
	border-radius: var(--box-radius);
	opacity: 0.45;
}
.look-textbox .inside {
	position: relative;
	z-index: 1;
}
.look-textbox .corner,
.look-textbox .end {
	position: absolute;
	overflow: visible;
}
.look-textbox .corner {
	width: 54px;
	height: 54px;
}
.look-textbox .corner.c-tl {
	left: 2px;
	top: 2px;
}
.look-textbox .corner.c-tr {
	right: 2px;
	top: 2px;
	transform: scale(-1, 1);
}
.look-textbox .corner.c-bl {
	left: 2px;
	bottom: 2px;
	transform: scale(1, -1);
}
.look-textbox .corner.c-br {
	right: 2px;
	bottom: 2px;
	transform: scale(-1, -1);
}
.look-textbox .end {
	top: 50%;
	width: 26px;
	height: 96px;
	margin-top: -48px;
}
.look-textbox .end.left {
	left: -13px;
}
.look-textbox .end.right {
	right: -13px;
	transform: scaleX(-1);
}
.look-textbox .bracket {
	stroke: var(--box-bracket);
	opacity: 0.7;
}
.look-textbox .pill {
	position: absolute;
	z-index: 2;
	left: 40px;
	top: -17px;
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 32px;
	max-width: calc(100% - 80px);
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--tone);
	border-radius: 16px;
	background: color-mix(in srgb, var(--box-fill) 94%, transparent);
	color: var(--box-cream);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.3px;
	line-height: 1.2;
	white-space: nowrap;
}
.look-textbox .diamond {
	flex: none;
	width: 8px;
	height: 8px;
	fill: var(--tone);
}
.look-textbox .tab-words {
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 639px) {
	.look-textbox .corner {
		width: 34px;
		height: 34px;
	}
	.look-textbox .pill {
		left: 50%;
		transform: translateX(-50%);
		max-width: calc(100% - 40px);
	}
}
html.hc .look-textbox .art,
.look-hc .look-textbox .art {
	border: 3px solid var(--hc-white);
	background: var(--hc-black);
	box-shadow: none;
}
html.hc .look-textbox .art::before,
.look-hc .look-textbox .art::before,
html.hc .look-textbox .art::after,
.look-hc .look-textbox .art::after,
html.hc .look-textbox .corner,
.look-hc .look-textbox .corner,
html.hc .look-textbox .end,
.look-hc .look-textbox .end {
	display: none;
}
html.hc .look-textbox .pill,
.look-hc .look-textbox .pill {
	border: 2px solid var(--hc-white);
	background: var(--hc-black);
	color: var(--hc-white);
}
html.hc .look-textbox .diamond,
.look-hc .look-textbox .diamond {
	fill: var(--hc-white);
}

/* The look kit: the Slate, cards, buttons, fields, lists, sheets, paper windows, the text box, the map and the
   projector's room. Every colour is one of Atlas's (look/tokens.css, made by scripts/sync-look.mjs) or a
   color-mix of them: there is no colour of the kit's own here, and a test holds it to that.
   The parts read the names below, so High Contrast changes them in one place. */

:root {
	/* The padding rule: a window's inside padding is at least its ornament's size, plus the ornament's inset,
	   plus some air. Every window sets --orn (ornament.js: ornStyle) and its own least padding, --pad. */
	--orn-inset: 3px;
	--orn-air: 6px;

	--look-frame: var(--slate-stone);
	--look-frame-light: var(--slate-stone-light);
	--look-frame-dark: var(--slate-stone-dark);
	--look-engrave: var(--slate-stone-dark);
	--look-rivet: var(--slate-gold);
	--look-rivet-dark: var(--slate-gold-dark);
	--look-edge: var(--ink);
	--look-screen: var(--slate-screen);
	--look-screen-glow: color-mix(in srgb, var(--those-cyan) 55%, black);
	--look-panel: var(--slate-panel);
	--look-row: color-mix(in srgb, var(--slate-panel) 60%, var(--slate-screen));
	--look-chosen: color-mix(in srgb, var(--slate-rule) 70%, var(--slate-panel));
	--look-field: color-mix(in srgb, var(--slate-screen) 70%, black);
	--look-line: var(--slate-rule);
	--look-text: var(--slate-text);
	--look-quiet: var(--slate-quiet);
	--look-bright: var(--slate-light);
	--look-head: var(--paper);
	--look-tab-on: var(--those-cyan);
	--look-accent: var(--architect-yellow);
	--look-accent-text: var(--architect-on-navy);
	--look-on-accent: var(--ink);
	--look-card-line: color-mix(in srgb, var(--architect-yellow) 55%, transparent);
	--look-refuse: var(--guard-on-navy);
	--look-refuse-ground: color-mix(in srgb, var(--guard-oxblood) 25%, var(--slate-screen));
	--look-refuse-head: var(--box-cream);
	--look-later: var(--discipline-on-navy);
	--look-later-line: color-mix(in srgb, var(--discipline-pink) 60%, transparent);
	--look-paper: var(--atlas-paper);
	--look-paper-ink: var(--ink);
	--look-paper-quiet: color-mix(in srgb, var(--ink) 72%, var(--atlas-paper));
	--look-paper-accent: var(--architect-on-paper);
	--look-paper-rule: color-mix(in srgb, var(--ink) 30%, var(--atlas-paper));
	--look-shadow: color-mix(in srgb, black 40%, transparent);
	--look-ground: color-mix(in srgb, var(--ink) 80%, black);
	--look-focus: var(--focus-ring);
	--look-focus-edge: var(--ink);
	/* the map */
	--map-ink: var(--ink);
	--map-paper: var(--atlas-paper);
	--map-quiet: color-mix(in srgb, var(--ink) 70%, var(--atlas-paper));
	--map-band: color-mix(in srgb, var(--architect-yellow) 45%, var(--atlas-paper));
	--map-unsafe: color-mix(in srgb, var(--guard-oxblood) 55%, var(--atlas-paper));
}

/* ---------- High Contrast: every ornament dropped; black, white and Atlas's yellow, and nothing else ---------- */
html.hc,
.look-hc,
.look-map.hc {
	--look-frame: var(--hc-black);
	--look-frame-light: var(--hc-black);
	--look-frame-dark: var(--hc-black);
	--look-engrave: var(--hc-white);
	--look-rivet: var(--hc-black);
	--look-rivet-dark: var(--hc-black);
	--look-edge: var(--hc-white);
	--look-screen: var(--hc-black);
	--look-screen-glow: var(--hc-white);
	--look-panel: var(--hc-black);
	--look-row: var(--hc-black);
	--look-chosen: var(--hc-black);
	--look-field: var(--hc-black);
	--look-line: var(--hc-white);
	--look-text: var(--hc-white);
	--look-quiet: var(--hc-white);
	--look-bright: var(--hc-white);
	--look-head: var(--hc-white);
	--look-tab-on: var(--hc-yellow);
	--look-accent: var(--hc-yellow);
	--look-accent-text: var(--hc-yellow);
	--look-on-accent: var(--hc-black);
	--look-card-line: var(--hc-white);
	--look-refuse: var(--hc-yellow);
	--look-refuse-ground: var(--hc-black);
	--look-refuse-head: var(--hc-white);
	--look-later: var(--hc-white);
	--look-later-line: var(--hc-white);
	--look-paper: var(--hc-black);
	--look-paper-ink: var(--hc-white);
	--look-paper-quiet: var(--hc-white);
	--look-paper-accent: var(--hc-yellow);
	--look-paper-rule: var(--hc-white);
	--look-shadow: transparent;
	--look-ground: var(--hc-black);
	--look-focus: var(--hc-yellow);
	--look-focus-edge: var(--hc-black);
	--map-ink: var(--hc-white);
	--map-paper: var(--hc-black);
	--map-quiet: var(--hc-white);
	--map-band: var(--hc-yellow);
	--map-unsafe: var(--hc-yellow);
}
html.hc .orn,
html.hc .look-slate .rivet,
html.hc .look-signal .letter,
.look-hc .orn,
.look-hc .rivet {
	display: none;
}
@media (forced-colors: active) {
	.orn,
	.look-slate .rivet {
		display: none;
	}
}

/* ---------- Reduced motion: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
	.look-phone *,
	.look-phone *::before,
	.look-phone *::after,
	.look-projector *,
	.look-projector *::before,
	.look-projector *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
html.still .look-phone *,
html.still .look-phone *::before,
html.still .look-phone *::after,
html.still .look-projector *,
html.still .look-projector *::before,
html.still .look-projector *::after {
	transition: none !important;
	animation: none !important;
	scroll-behavior: auto !important;
}

/* ---------- The ground ---------- */
.look-phone,
.look-projector {
	box-sizing: border-box;
	font-family: var(--font);
	color: var(--look-text);
	background: var(--look-ground);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
.look-phone *,
.look-phone *::before,
.look-phone *::after,
.look-projector *,
.look-projector *::before,
.look-projector *::after {
	box-sizing: border-box;
}
.look-phone {
	position: fixed;
	inset: 0;
	display: flex;
	justify-content: center;
	font-size: 14px;
	line-height: 1.4;
}
.look-phone :focus-visible,
.look-projector :focus-visible {
	outline: 3px solid var(--look-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--look-focus-edge);
}
.look-phone .sr-only,
.look-projector .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.look-phone button,
.look-phone input,
.look-phone select,
.look-phone textarea {
	font-family: inherit;
}

/* ---------- The Slate ---------- */
.look-slate {
	position: relative;
	width: 100%;
	max-width: 480px;
	height: 100%;
	padding: 52px 10px 12px;
	background: var(--look-frame);
	border: 4px solid var(--look-edge);
	border-radius: 28px;
	box-shadow:
		inset 4px 4px 0 var(--look-frame-light),
		inset -4px -4px 0 var(--look-frame-dark);
	overflow: hidden;
	color: var(--look-text);
}
.look-slate .rivet {
	position: absolute;
	left: 14px;
	top: 14px;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: var(--look-rivet);
	box-shadow:
		inset -3px -3px 0 var(--look-rivet-dark),
		0 0 0 2px var(--look-edge);
}
.look-slate .engrave {
	position: absolute;
	left: 38px;
	right: 96px;
	top: 14px;
	height: 26px;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: var(--look-engrave);
	text-shadow: 1px 1px 0 var(--look-frame-light);
	letter-spacing: 0.22em;
	font-weight: bold;
	font-size: 14px;
	white-space: nowrap;
}
.look-slate .lock {
	position: absolute;
	top: 4px;
	right: 22px;
	width: 64px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}
.look-slate .lock span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 20px;
	border-radius: 10px;
	background: linear-gradient(180deg, var(--slate-lock-top), var(--slate-lock-foot));
	box-shadow:
		inset 0 2px 0 var(--slate-lock-shade),
		inset 0 -1px 0 var(--slate-lock-edge),
		0 1px 0 var(--look-frame-light),
		0 0 0 2px var(--look-edge);
	color: var(--slate-lock-ink);
}
.look-slate.held .lock span,
.look-slate .lock[aria-pressed='true'] span {
	box-shadow:
		inset 0 2px 0 var(--slate-lock-shade),
		0 0 0 2px var(--look-edge),
		0 0 0 5px var(--look-accent);
}
html.hc .look-slate .lock span,
.look-hc .look-slate .lock span {
	background: var(--hc-black);
	color: var(--hc-white);
	box-shadow: 0 0 0 2px var(--hc-white);
}
html.hc .look-slate .lock[aria-pressed='true'] span,
.look-hc .look-slate .lock[aria-pressed='true'] span {
	background: var(--hc-yellow);
	color: var(--hc-black);
}
.look-slate .screen {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--look-screen);
	border: 4px solid var(--look-edge);
	border-radius: 16px;
	box-shadow: inset 0 0 0 2px var(--look-screen-glow);
	overflow: hidden;
	container-type: inline-size;
	container-name: slate;
}
.look-slate .tabs {
	display: flex;
	border-bottom: 2px solid var(--look-line);
	padding: 0 4px;
	flex: none;
}
.look-slate .tab {
	position: relative;
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 6px 0 4px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: var(--look-quiet);
	font-size: 13px;
	font-weight: bold;
	white-space: nowrap;
	cursor: pointer;
}
.look-slate .tab.on {
	color: var(--look-bright);
	border-bottom-color: var(--look-tab-on);
}
.look-slate .tab:focus-visible {
	outline-offset: -3px;
	box-shadow: none;
}
.look-slate .tab .dot {
	position: absolute;
	top: 6px;
	left: calc(50% + 10px);
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--look-accent);
	box-shadow: 0 0 0 2px var(--look-screen);
}
.look-slate .status {
	flex: none;
	margin: 8px 10px 0;
	padding: 8px 10px;
	border-left: 3px solid var(--look-accent);
	background: var(--look-panel);
	color: var(--look-text);
	font-size: 14px;
	line-height: 1.35;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.look-slate .status-words {
	margin: 0;
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: 8px;
	white-space: nowrap;
}
/* the label never breaks, and neither part wraps: on a narrow phone the short form stands in */
.look-slate .status .label {
	flex: none;
	color: var(--look-accent-text);
	white-space: nowrap;
}
.look-slate .status .text {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.look-slate .status .short {
	display: none;
}
.look-slate.w360 .status.has-short .full {
	display: none;
}
.look-slate.w360 .status.has-short .short {
	display: inline;
}
@container slate (max-width: 345px) {
	/* a narrow phone (360 wide): a card's words, its rows and its buttons at 13px, the least the look allows, so that
	   a whole Ledger fits one screen as it does at 390 (RM1b) */
	.look-slate .look-card,
	.look-slate .look-card .kv,
	.look-phone .look-slate .btn {
		font-size: 13px;
	}
	.look-slate .look-card {
		gap: 4px;
	}
	.look-slate .look-card .kv {
		column-gap: 8px;
	}
	.look-phone .look-slate .body {
		padding: 6px 10px;
		gap: 6px;
	}
	.look-slate .tabs {
		padding: 0;
	}
	.look-slate .tab {
		letter-spacing: -0.3px;
	}
	.look-slate .status.has-short .full {
		display: none;
	}
	.look-slate .status.has-short .short {
		display: inline;
	}
}
.look-slate .status .timer {
	flex: none;
	font-weight: bold;
	color: var(--look-bright);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.look-slate .body,
.look-screen {
	flex: 1;
	min-height: 0;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	overscroll-behavior: contain;
}
.look-slate .body::-webkit-scrollbar,
.look-screen::-webkit-scrollbar {
	display: none;
}
.look-slate .body:focus {
	outline: none;
}
.look-slate .body {
	/* a little closer on a Slate, so that a whole Ledger fits one screen (RM1b) */
	padding: 8px 10px;
	gap: 8px;
}
.look-slate .body > *,
.look-screen > * {
	flex: none;
}
/* a view with no Slate (a lobby before the game sends one): the same screen, with no frame */
.look-screen {
	width: 100%;
	max-width: 480px;
	background: var(--look-screen);
}

/* ---------- Words on the screen ---------- */
.look-phone .h {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
	color: var(--look-head);
}
.look-phone .sub {
	margin: 0;
	font-size: 13px;
	font-weight: normal;
	color: var(--look-quiet);
	line-height: 1.4;
}
.look-phone .p {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}
.look-phone .timer-line {
	margin: 0;
	font-weight: bold;
	color: var(--look-bright);
}
.look-alert {
	margin: 0;
	padding: 10px 12px;
	border: 2px solid var(--look-refuse);
	border-radius: 8px;
	background: var(--look-refuse-ground);
	color: var(--look-refuse-head);
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
}
.look-alert:empty {
	display: none;
}

/* ---------- Ornaments: a corner in each corner, mirrored; the end motif on a large sheet ---------- */
.orn {
	position: absolute;
	pointer-events: none;
	overflow: visible;
}
.orn.tl {
	left: var(--orn-inset);
	top: var(--orn-inset);
}
.orn.tr {
	right: var(--orn-inset);
	top: var(--orn-inset);
	transform: scale(-1, 1);
}
.orn.bl {
	left: var(--orn-inset);
	bottom: var(--orn-inset);
	transform: scale(1, -1);
}
.orn.br {
	right: var(--orn-inset);
	bottom: var(--orn-inset);
	transform: scale(-1, -1);
}
.orn.endt {
	left: 50%;
	top: 0;
	transform: translate(-50%, -38%) rotate(90deg);
}
.orn.endb {
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 38%) rotate(-90deg);
}

/* ---------- A card: navy, a fine line in The Architect's yellow, and their corners (small, with room to breathe) ---------- */
.look-card {
	--pad: 14px;
	position: relative;
	padding: max(var(--pad), calc(var(--orn, 0px) + var(--orn-inset) + var(--orn-air)));
	background: var(--look-panel);
	border: 1px solid var(--look-card-line);
	border-radius: 10px;
	color: var(--look-text);
	font-size: 14px;
	line-height: 1.4;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.look-card .orn {
	color: var(--look-accent-text);
}
.look-card.mine {
	border: 2px solid var(--look-accent);
}
.look-card p {
	margin: 0;
	overflow-wrap: anywhere;
}
.look-card .card-head {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.look-card h3 {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 16px;
	line-height: 1.25;
	color: var(--look-head);
	overflow-wrap: anywhere;
}
.look-card .card-icon {
	display: flex;
	color: var(--look-bright);
}
.look-card .card-silver {
	font-size: 18px;
}
.look-card .note {
	font-size: 13px;
	color: var(--look-quiet);
}
.look-card .hold {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--look-accent-text);
	font-weight: bold;
}
.look-card.kind-paper {
	background: var(--look-paper);
	color: var(--look-paper-ink);
	border-color: var(--look-edge);
}
.look-card.kind-paper h3 {
	color: var(--look-paper-ink);
}
.look-card.kind-paper .orn,
.look-card.kind-paper .hold {
	color: var(--look-paper-accent);
}
.look-card.kind-paper .note,
.look-card.kind-paper .kv dt {
	color: var(--look-paper-quiet);
}
.look-card.kind-paper .tag {
	color: var(--look-paper-ink);
}
.look-card.kind-refusal {
	border: 2px solid var(--look-refuse);
	background: var(--look-refuse-ground);
}
.look-card.kind-refusal h3 {
	color: var(--look-refuse-head);
}
.look-card.kind-later {
	border-color: var(--look-later-line);
}
.look-card.kind-later .orn,
.look-card.kind-later .hold {
	color: var(--look-later);
}
.look-phone .tag,
.look-projector .tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: none;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: bold;
	box-shadow: inset 0 0 0 1.5px currentColor;
	white-space: nowrap;
	color: var(--look-bright);
}
.kv {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 12px;
	margin: 0;
	font-size: 14px;
	align-items: baseline;
}
.kv dt {
	color: var(--look-quiet);
	font-size: 13px;
}
.kv dd {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}
/* a real table (a ledger): it fits a 360-wide phone at 13 px, wrapping inside its cells, never scrolling sideways */
.look-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto;
	font-size: 13px;
	line-height: 1.35;
}
.look-table th,
.look-table td {
	padding: 5px 4px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--look-line);
	overflow-wrap: anywhere;
	word-break: normal;
}
.look-table thead th {
	font-size: 13px;
	color: var(--look-quiet);
	border-bottom-width: 2px;
	/* a heading breaks between its words, never inside one */
	overflow-wrap: break-word;
}
.look-card.kind-paper .look-table thead th {
	color: var(--look-paper-quiet);
	border-bottom-color: var(--look-paper-ink);
}
.look-card.kind-paper .look-table th,
.look-card.kind-paper .look-table td {
	border-bottom-color: var(--look-paper-rule);
}

/* ---------- A message arriving ---------- */
.look-signal {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.look-signal .sender {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--look-quiet);
}
.look-signal .sender b {
	color: var(--look-text);
}
.look-signal .letter {
	flex: none;
	width: 32px;
	height: 32px;
	background: var(--letter-png) center / contain no-repeat;
	image-rendering: pixelated;
}

/* ---------- Buttons: one or two words, Title Case, 44 high at least ---------- */
.look-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.btns {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}
.btn {
	min-height: 44px;
	min-width: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	background: var(--look-panel);
	color: var(--look-bright);
	font: inherit;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-shadow: inset 0 0 0 2px var(--look-accent);
	cursor: pointer;
	text-decoration: none;
}
.btn.primary {
	background: var(--look-accent);
	color: var(--look-on-accent);
	box-shadow: 0 3px 0 var(--look-edge);
}
.btn.quiet {
	background: transparent;
	color: var(--look-bright);
	box-shadow: inset 0 0 0 2px var(--look-quiet);
}
.btns > .btn,
.btns > .copy {
	flex: 1 1 auto;
}
.look-phone .btn {
	/* a phone's buttons: a little less room at their sides, so that two short ones share a row (RM1b) */
	padding: 10px 12px;
	font-size: 14px;
}
.look-phone .look-card > .look-table {
	/* a table in a card runs out into the card's side padding, to 6px from its edge (clear of the corners, which are
	   above and below it), so that its rows wrap less on a narrow phone (RM1b) */
	width: calc(100% + 2 * (max(var(--pad), calc(var(--orn, 0px) + var(--orn-inset) + var(--orn-air))) - 6px));
	margin: 0 calc(-1 * (max(var(--pad), calc(var(--orn, 0px) + var(--orn-inset) + var(--orn-air))) - 6px));
}
.copy {
	display: inline-flex;
	align-items: center;
	gap: 0;
	flex-wrap: wrap;
}
.copy .done:not(:empty) {
	/* the room beside the button only once "Copied." is said, so an empty message takes none (RM1b) */
	margin-left: 10px;
}
.copy .done {
	font-size: 13px;
	color: var(--look-bright);
}
.look-card.kind-paper .btn:not(.primary) {
	background: transparent;
	color: var(--look-paper-ink);
	box-shadow: inset 0 0 0 2px var(--look-paper-ink);
}
.look-card.kind-paper .copy .done {
	color: var(--look-paper-ink);
}

/* ---------- Fields ---------- */
.look-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}
.field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.field .lab {
	padding: 0;
	font-size: 13px;
	font-weight: bold;
	color: var(--look-quiet);
}
.field input[type='text'],
.field input[type='number'],
.field select,
.field textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	background: var(--look-field);
	box-shadow: inset 0 0 0 2px var(--look-quiet);
	color: var(--look-text);
	font-size: 16px;
	line-height: 1.4;
}
.field textarea {
	resize: vertical;
}
.seg2 {
	display: flex;
	border-radius: 8px;
	box-shadow: inset 0 0 0 2px var(--look-quiet);
	overflow: hidden;
}
.seg2 > button,
.seg2 > .opt {
	position: relative;
	flex: 1;
	min-width: 44px;
	min-height: 44px;
	padding: 0 8px;
	border: 0;
	background: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font: inherit;
	font-size: 14px;
	font-weight: bold;
	color: var(--look-bright);
	cursor: pointer;
}
.seg2 > .opt input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.seg2 > .opt span {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	flex: 1;
	margin: 0 -8px;
	padding: 0 8px;
}
.seg2 > button[aria-pressed='true'],
.seg2 > .opt input:checked + span {
	background: var(--look-accent);
	color: var(--look-on-accent);
	/* never colour alone: what is chosen is underlined too */
	text-decoration: underline;
	text-underline-offset: 3px;
}
.seg2 > button:focus-visible,
.seg2 > .opt:focus-within {
	outline: 3px solid var(--look-focus);
	outline-offset: -3px;
	box-shadow: none;
}
.stepper {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.stepper .step {
	flex: none;
	width: 44px;
	min-height: 44px;
	border: 0;
	border-radius: 8px;
	background: var(--look-panel);
	color: var(--look-bright);
	box-shadow: inset 0 0 0 2px var(--look-quiet);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.stepper input {
	flex: 1;
	min-width: 0;
	text-align: center;
	font-weight: bold;
}

/* ---------- One line of the list view ---------- */
.look-maplist {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.lines {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.line {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--look-line);
	border-radius: 8px;
	background: var(--look-row);
	font-size: 13px;
	line-height: 1.4;
}
.line p {
	margin: 0;
}
.line .grow {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.line.mark-legal {
	border: 2px solid var(--look-accent);
}
.line.mark-chosen,
.line.mark-here,
.line.mark-from,
.line.mark-to {
	border: 2px solid var(--look-bright);
	background: var(--look-chosen);
}
.line.mark-illegal,
.line.mark-out,
.line.mark-closed,
.line.mark-unsafe {
	border-style: dashed;
}
.reason {
	margin: 0;
	color: var(--look-refuse);
	font-size: 13px;
}
.numbox {
	flex: none;
	min-width: 30px;
	height: 26px;
	padding: 0 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	background: var(--look-paper);
	color: var(--look-paper-ink);
	font-weight: bold;
	font-size: 14px;
	box-shadow: 0 0 0 1px var(--look-edge);
}
.line.mark-illegal .numbox,
.line.mark-out .numbox,
.line.mark-closed .numbox {
	background: transparent;
	color: var(--look-quiet);
	box-shadow: inset 0 0 0 1px var(--look-quiet);
}

/* Small inline things: silver, the seat badge, goods. */
.ico {
	display: inline-block;
	vertical-align: middle;
	flex: none;
}
.silver {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-weight: bold;
	white-space: nowrap;
	vertical-align: middle;
}

/* ---------- The map ---------- */
.look-mapbar {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.look-mapwrap {
	position: relative;
}
.look-mapbox {
	line-height: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow:
		0 0 0 2px var(--look-edge),
		0 0 0 3px var(--look-line);
	margin: 3px;
	background: var(--map-paper);
}
.look-mapbox svg {
	display: block;
	margin: 0 auto;
}
.look-mapkey {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: 13px;
	color: var(--look-text);
}
.look-mapkey span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.look-map .m-bg {
	fill: var(--map-paper);
}
.look-map .m-line {
	stroke: var(--map-ink);
}
.look-map .m-line.quiet {
	stroke: var(--map-quiet);
}
.look-map .m-inlay {
	stroke: var(--map-paper);
}
.look-map .m-band {
	stroke: var(--map-band);
}
.look-map .m-band-fill {
	fill: var(--map-band);
}
.look-map .m-unsafe {
	stroke: var(--map-unsafe);
}
.look-map .m-box {
	fill: var(--map-paper);
	stroke: var(--map-ink);
}
.look-map .m-box.quiet {
	stroke: var(--map-quiet);
}
.look-map .m-ink {
	fill: var(--map-ink);
	color: var(--map-ink);
}
.look-map .m-ink.quiet,
.look-map .m-quiet-text {
	fill: var(--map-quiet);
}
.look-map .m-halo {
	paint-order: stroke;
	stroke: var(--map-paper);
	stroke-linejoin: round;
}
.look-map .m-dot {
	fill: var(--map-ink);
}
.look-map .m-dot-text {
	fill: var(--map-paper);
}
.look-map .b-fill {
	fill: var(--map-paper);
}
.look-map .m-hit {
	stroke: transparent;
	pointer-events: stroke;
}
.look-map .m-seg[role='button'] {
	cursor: pointer;
	outline: none;
}
.look-map .m-ring {
	stroke: none;
}
/* the selected segment is outlined; the focused one has a ring that shows on the paper (ink, then yellow) */
.look-map .m-seg.selected .m-ring {
	stroke: var(--map-ink);
	stroke-width: 3;
}
.look-map .m-seg:focus-visible .m-ring {
	stroke: var(--map-ink);
	stroke-width: 3;
	stroke-dasharray: 5 3;
	fill: var(--map-band);
}
.look-map .m-seg:focus-visible {
	box-shadow: none;
}

/* ---------- A sheet over the far end of the map: a tapped segment, a route being traced ---------- */
.look-sheet {
	--pad: 12px;
	--orn: 12px;
	position: absolute;
	left: 0;
	right: 0;
	z-index: 3;
	padding: max(var(--pad), calc(var(--orn, 0px) + var(--orn-inset) + var(--orn-air)));
	background: var(--look-screen);
	border: 1px solid var(--look-card-line);
	border-radius: 10px;
	box-shadow:
		0 0 0 2px var(--look-edge),
		0 6px 16px var(--look-shadow);
	color: var(--look-text);
	font-size: 14px;
	line-height: 1.4;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.look-sheet .orn {
	color: var(--look-accent-text);
}
.look-sheet.at-top,
.look-sheet.at-bottom {
	/* never the whole map: the segment it is about stays in view (the sheet scrolls by swipe if it must) */
	max-height: 66%;
	overflow-y: auto;
	scrollbar-width: none;
}
.look-sheet.at-top {
	top: 0;
}
.look-sheet.at-bottom {
	bottom: 0;
}
.look-sheet.at-left {
	top: 0;
	right: auto;
	width: 46%;
	max-height: 100%;
	overflow-y: auto;
}
.look-sheet.at-right {
	top: 0;
	left: auto;
	width: 46%;
	max-height: 100%;
	overflow-y: auto;
}
.look-sheet.in-list {
	position: static;
}
.look-sheet h3 {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
	color: var(--look-head);
}
.look-sheet h3:focus {
	outline: none;
}
.look-sheet p {
	margin: 0;
}
.look-sheet .sheet-foot {
	/* a sheet's buttons stay at its foot while its lines scroll by (RM1b): never cut, never under anything */
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: sticky;
	bottom: 0;
	z-index: 1;
	margin-top: 2px;
	padding-top: 6px;
	background: var(--look-screen);
	box-shadow: 0 -6px 6px -6px var(--look-shadow);
}
.look-sheet.in-list .sheet-foot {
	position: static;
	box-shadow: none;
}
/* A folded action, opened: its fields over the page (RM1b). Its top is set to the page's by the phone. */
.look-slate .over {
	display: contents;
}
.look-sheet.look-unfold {
	bottom: 0;
	left: 6px;
	right: 6px;
	z-index: 5;
	margin: 6px 0;
	max-height: none;
	overflow-y: auto;
	scrollbar-width: none;
	overscroll-behavior: contain;
}
.look-sheet.look-unfold::-webkit-scrollbar {
	display: none;
}
.look-sheet.look-unfold .btns {
	justify-content: flex-start;
}
.look-sheet .order {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* ---------- Paper windows (the projector): words always sit on Atlas paper ---------- */
.look-paper {
	--pad: 18px;
	position: relative;
	padding: max(var(--pad), calc(var(--orn, 0px) + var(--orn-inset) + var(--orn-air)));
	background: var(--look-paper);
	color: var(--look-paper-ink);
	border-radius: 6px;
	box-shadow:
		0 0 0 2px var(--look-edge),
		0 6px 0 var(--look-shadow);
	font-size: 18px;
	line-height: 1.35;
}
.look-paper .orn {
	color: var(--look-paper-accent);
}
.look-paper h2,
.look-paper h3 {
	margin: 0 0 6px;
	color: var(--look-paper-ink);
	line-height: 1.2;
}
.look-paper h2 {
	font-size: 26px;
	text-align: center;
}
.look-paper h3 {
	font-size: 20px;
}
.look-paper p {
	margin: 0 0 4px;
}
.look-paper .note,
.look-paper .kv dt,
.look-paper .look-table thead th {
	color: var(--look-paper-quiet);
}
.look-paper .kv,
.look-paper .kv dt {
	font-size: inherit;
}
.look-paper .tag {
	color: var(--look-paper-ink);
	font-size: 15px;
	vertical-align: middle;
}
.look-paper .look-table {
	font-size: 16px;
}
.look-paper .look-table th,
.look-paper .look-table td {
	padding: 8px 10px;
	border-bottom-color: var(--look-paper-rule);
}
.look-paper .look-table thead th {
	font-size: 14px;
	border-bottom-color: var(--look-paper-ink);
}
.look-sheet-paper {
	--pad: 28px;
}
.look-sheet-paper .sheet-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px 24px;
	margin-top: 10px;
}

/* ---------- The text box: Atlas's own (look/textbox.css, copied from Atlas's TextBox.svelte: RM1b) ----------
   Here only what is the kit's: the padding rule, the size of the words on each screen, the speaker's colour (The
   Architect's), and how the inside is laid out. The fill, the lines, the ornament and the pill are Atlas's. */
.look-textbox {
	--pad: 24px;
	--tone: var(--architect-on-navy);
	padding: max(var(--pad), calc(var(--orn, 0px) + var(--orn-inset) + var(--orn-air)));
	font-size: 20px;
	line-height: 1.45;
}
html.hc .look-textbox,
.look-hc .look-textbox {
	--tone: var(--hc-white);
}
.look-textbox .inside {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.look-textbox h2 {
	margin: 0;
	font-size: 1.2em;
	line-height: 1.25;
	color: var(--box-cream);
}
.look-textbox p {
	margin: 0;
}
.look-textbox .btns {
	justify-content: flex-end;
}
.look-textbox .btns .btn {
	flex: none;
	border-radius: 999px;
}
.look-phone .look-textbox {
	--pad: 16px;
	font-size: 15px;
	margin-top: 17px;
}

/* ---------- The projector: a room picture, with paper windows laid over it ---------- */
.look-projector {
	position: fixed;
	inset: 0;
	overflow: hidden;
}
.look-stage {
	position: absolute;
	left: 50%;
	top: 50%;
	overflow: hidden;
	transform-origin: 0 0;
}
.look-stage > img.room {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	image-rendering: pixelated;
}
.look-stage .at {
	position: absolute;
}
.look-stage .slot {
	position: absolute;
	max-width: 30%;
}
.look-stage .slot.top-left {
	left: 12px;
	top: 12px;
}
.look-stage .slot.top-right {
	right: 12px;
	top: 12px;
}
.look-stage .slot.bottom-left {
	left: 12px;
	bottom: 16px;
}
.look-stage .slot.bottom-right {
	right: 12px;
	bottom: 16px;
}
.look-stage .mapat {
	position: absolute;
	line-height: 0;
	border-radius: 4px;
	overflow: hidden;
}
.look-stage .sprite {
	position: absolute;
	width: 64px;
	height: 64px;
	background-repeat: no-repeat;
	background-size: 256px 448px;
	image-rendering: pixelated;
}
.look-stage .boxat {
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: 6%;
}
.look-stage .sheetat {
	position: absolute;
	left: 3%;
	right: 3%;
	top: 4%;
	max-height: 92%;
}
/* no room: paper windows on a plain dark ground */
.look-stage.bare {
	background: var(--look-ground);
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 24px;
}
.look-stage.bare .row {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	flex-wrap: wrap;
}
.look-stage.bare .row > .look-paper {
	flex: 1 1 300px;
	min-width: 0;
}
.look-stage.bare .slot,
.look-stage.bare .mapat,
.look-stage.bare .boxat,
.look-stage.bare .sheetat {
	position: relative;
	inset: auto;
	max-width: none;
}
.look-stage.bare .mapat {
	align-self: center;
	box-shadow: 0 0 0 2px var(--look-edge);
}
/* the Room in Words covers the room while it is shown */
.look-inwords {
	position: absolute;
	inset: 0;
	z-index: 9;
	padding: 3%;
	overflow: auto;
	background: var(--look-ground);
}
.look-inwords .look-paper {
	min-height: 100%;
}
.look-inwords h2 {
	text-align: left;
}

/* ---------- A phone turned on its side: the projector's own layout, with the tabs down one side ---------- */
.look-phone.side .look-slate {
	max-width: none;
	padding: 8px 10px 8px 10px;
	border-radius: 20px;
}
.look-phone.side .look-slate .engrave,
.look-phone.side .look-slate .rivet {
	display: none;
}
.look-phone.side .look-slate .lock {
	top: auto;
	bottom: 14px;
	right: auto;
	left: 14px;
	width: 60px;
	z-index: 4;
}
.look-phone.side .look-slate .screen {
	display: grid;
	grid-template-columns: 68px 1fr;
	grid-template-rows: auto 1fr;
}
.look-phone.side .look-slate [data-part='tabs'] {
	grid-row: 1 / 3;
	border-right: 2px solid var(--look-line);
	overflow-y: auto;
	scrollbar-width: none;
	padding-bottom: 48px;
}
.look-phone.side .look-slate .tabs {
	flex-direction: column;
	border-bottom: 0;
	padding: 2px 0;
}
.look-phone.side .look-slate .tab {
	flex: none;
	min-height: 44px;
	border-bottom: 0;
	border-left: 3px solid transparent;
}
.look-phone.side .look-slate .tab.on {
	border-left-color: var(--look-tab-on);
}
.look-phone.side .look-slate .status {
	margin: 6px 8px 0;
	padding: 5px 10px;
}
.look-phone.side .look-slate .body {
	padding: 8px;
	min-height: 0;
}

/* a sheet's heading takes the focus when the sheet opens (for a screen reader); it shows no ring of its own */
.look-sheet h3:focus {
	outline: none;
}

/* fields on a paper card: their labels and the unchosen options take the paper's own ink (4.5:1 on paper) */
.look-card.kind-paper .field .lab {
	color: var(--look-paper-quiet);
}
.look-card.kind-paper .seg2 > .opt span,
.look-card.kind-paper .seg2 > button {
	color: var(--look-paper-ink);
}
.look-card.kind-paper .seg2 > .opt input:checked + span,
.look-card.kind-paper .seg2 > button[aria-pressed='true'] {
	color: var(--look-on-accent);
}
