/* Storybook Maker: look C "Crayon Box" (Nick's pick, 2026-10-16). White paper with a dotted grid,
   crayon-stroke borders, primary colours. Fonts: Chewy for the one big question, Bubblegum Sans
   for buttons and labels, Nunito 600-700 for anything she reads. Nothing kid-facing under 15px,
   nothing tappable under 44px. The four screen corners belong to the shared buttons.

   Since the linear rebuild (same day): ONE screen at a time, each the same shape. A big question
   at the top, big tiles in the middle, Back / Next in the same place at the bottom. */
:root {
	--ink: #222222;
	--red: #e63946;
	--yellow: #ffd60a;
	--blue: #1d8fe1;
	--green: #2dc653;
	--orange: #ff7f1e;
	--purple: #c77dff;
	--pink: #ffb6d9;
	--paper: #ffffff;
	--cream: #ffe3a8;
	--cr: 255px 18px 225px 18px / 18px 225px 18px 255px;
	--cr2: 18px 255px 18px 225px / 225px 18px 255px 18px;
	--sat: env(safe-area-inset-top, 0px);
	--sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
	font-family: 'Nunito', sans-serif; font-weight: 700; color: var(--ink);
	background-color: var(--paper);
	background-image: radial-gradient(rgba(34, 34, 34, 0.13) 1.5px, transparent 1.5px); background-size: 22px 22px;
	touch-action: none; -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: 0.45; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 4px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- stickers (buttons) ---------- */
.stk {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; min-width: 48px; padding: 0 18px;
	background: var(--paper); border: 4px solid var(--ink); border-radius: var(--cr);
	font-family: 'Bubblegum Sans', 'Fredoka', sans-serif; font-size: 20px; line-height: 1;
	box-shadow: 3px 3px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s; white-space: nowrap;
}
.stk:nth-child(even) { border-radius: var(--cr2); }
.stk:active:not(:disabled), .stk.down { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.stk.red { background: var(--red); color: #fff; }
.stk.yellow { background: var(--yellow); }
.stk.blue { background: var(--blue); color: #fff; }
.stk.green { background: var(--green); }
.stk.orange { background: var(--orange); }
.stk.purple { background: var(--purple); }
.stk.pink { background: var(--pink); }
.stk.ghost { background: transparent; box-shadow: none; border-style: dashed; }
.stk.on { outline: 5px solid var(--blue); outline-offset: 2px; }
.stk.big { min-height: 60px; font-size: 24px; padding: 0 26px; }
.stk.icon { padding: 0; width: 52px; height: 52px; }

/* ---------- screens ---------- */
.screen {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
	padding: calc(var(--sat) + 10px) 14px 10px 14px; gap: 10px; min-height: 0;
}
/* The corners belong to the lab's 🏠 ⛶ 🔊 📮. The question and the bottom row dodge them; the
   middle of the screen uses the full width (the page was 624px wide on an iPad held upright). */
.q { margin: 0 58px; min-height: 52px; display: flex; align-items: center; justify-content: center; font-family: 'Chewy', cursive; font-weight: 400; font-size: clamp(28px, 4.2vw, 46px); color: var(--red); text-align: center; line-height: 1.1; flex: none; }
.q.small { font-size: clamp(24px, 3vw, 34px); }
.hint { font-size: 17px; font-weight: 700; color: #5a4a2a; margin: 0; line-height: 1.4; text-align: center; }
.hint.big { font-size: 22px; font-family: 'Bubblegum Sans', sans-serif; font-weight: 400; color: var(--ink); }
.hint .dim { color: #7a6a4a; font-size: 16px; }
.nav {
	flex: none; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
	padding: 4px 0 calc(var(--sab) + 4px) 64px;
}
.nav > span { flex: 1; }
.grow { flex: 1; }

/* tiles: the answers to a question */
.tiles {
	flex: 1; min-height: 0; width: min(100%, 1100px); overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; align-content: start; padding: 6px;
}
.tiles.scenes { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tiles.actions { flex: none; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); width: min(100%, 900px); overflow: visible; }
.tiles.actions .stk { width: 100%; }
.tile {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	min-height: 150px; padding: 10px 6px; background: #fff; border: 4px solid var(--ink); border-radius: var(--cr);
	font-family: 'Bubblegum Sans', sans-serif; font-size: 19px; line-height: 1.1; text-align: center; box-shadow: 4px 4px 0 var(--ink);
	transition: transform 0.08s;
}
.tile:nth-child(even) { border-radius: var(--cr2); }
.tile:active { transform: translate(3px, 3px); box-shadow: none; }
.tile svg, .tile img { width: 96px; height: 96px; display: block; }
.tiles.scenes .tile svg { width: 100%; height: 130px; }
.tile .em { font-size: 64px; line-height: 1; }
.tile.on { outline: 6px solid var(--blue); outline-offset: 3px; background: #e8f4ff; }
.tile.dash { border-style: dashed; background: var(--yellow); box-shadow: none; }
.tile .n { position: absolute; top: -10px; right: -10px; width: 36px; height: 36px; border-radius: 50%; background: var(--green); border: 3px solid var(--ink); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.tile img { object-fit: cover; border-radius: 10px; width: 100%; height: 96px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid .tile { min-height: 104px; font-size: 15px; }
.grid .tile svg { width: 60px; height: 60px; }
.grid .tile .em { font-size: 44px; }

/* the row of who she picked */
.lineup { flex: none; display: flex; gap: 10px; align-items: flex-end; min-height: 96px; width: 100%; justify-content: center; flex-wrap: wrap; }
.lineup svg { width: 76px; height: 82px; filter: drop-shadow(3px 4px 0 rgba(34, 34, 34, 0.2)); animation: popin 0.35s; }
.lineup img { width: 76px; height: 82px; object-fit: contain; }
.lineup .empty { font-family: 'Bubblegum Sans', sans-serif; font-size: 20px; color: #7a6a4a; }

/* ---------- the page screen ---------- */
#pageHead { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
#pageHead .q { min-height: 40px; }
/* Where she is in the book: one dot a page, the lit one is this page, + is one more. Nick,
   2026-10-17: "it's not clear how many pages are remaining". Tap a dot to jump. */
#dots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: 100%; }
#dots button { width: 44px; height: 44px; padding: 0; background: transparent; border: 0; display: flex; align-items: center; justify-content: center; }
#dots button i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transition: transform 0.12s; }
#dots button.on i { width: 26px; height: 26px; background: var(--yellow); }
#dots button.has i { background: var(--blue); }
#dots button.on.has i { background: var(--yellow); }
#dots button.plus i { border-style: dashed; background: transparent; width: 24px; height: 24px; }
#dots button.plus { font-family: 'Bubblegum Sans', sans-serif; font-size: 18px; position: relative; }
#dots button.plus span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; line-height: 1; }
#bench { flex: 1; min-height: 0; width: 100%; display: flex; gap: 14px; align-items: stretch; justify-content: center; }
#stageWrap { flex: 1; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#frame { position: relative; flex: none; width: 100px; height: 75px; filter: drop-shadow(5px 6px 0 rgba(34, 34, 34, 0.18)); } /* sized by fitFrame() to the biggest 4:3 that fits */
#stage { display: block; width: 100%; height: 100%; touch-action: none; border-radius: 18px; }
#stage .bk-item { cursor: grab; }
#stage .bk-sel [data-h] { cursor: pointer; }
#stage .bk-sel [data-h="scale"] { cursor: nwse-resize; }
#stage .bk-item.hop { animation: hop 0.5s; transform-box: fill-box; transform-origin: center bottom; }
@keyframes hop { 30% { translate: 0 -40px; } 60% { translate: 0 0; } 80% { translate: 0 -14px; } }
#stage .bk-item.pop { animation: popin 0.35s; transform-box: fill-box; transform-origin: center; }
@keyframes popin { 0% { scale: 0.2; } 70% { scale: 1.15; } 100% { scale: 1; } }
#stage .bk-item.wiggle, .tile.wiggle { animation: wiggle 0.6s 2; transform-box: fill-box; transform-origin: center bottom; }
@keyframes wiggle { 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
/* the words, typed on the page: the box sits exactly on the ruled lines of the picture */
#pageText { position: absolute; left: 5%; right: 11%; top: 77.5%; bottom: 2.5%; margin: 0; padding: 0; border: 0; background: transparent; resize: none; outline: none; font-family: 'Nunito', sans-serif; font-weight: 700; color: var(--ink); overflow: hidden; border-radius: 6px; }
#pageText::placeholder { color: #9a8f7a; font-family: 'Bubblegum Sans', sans-serif; font-weight: 400; }
#pageText:focus { background: rgba(255, 214, 10, 0.18); }
#pageText[readonly] { cursor: pointer; }
#pageMic { position: absolute; right: 2%; bottom: 3%; width: 52px; height: 52px; min-width: 52px; min-height: 52px; font-size: 24px; padding: 0; }
#pageMic.down { background: var(--red); }
/* the tray: who she picked, her drawings, things she has used, + Add. A tap puts it on the page. */
#tray { flex: none; width: 236px; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--cream); border: 4px solid var(--ink); border-radius: 18px 10px 18px 10px / 10px 18px 10px 18px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
#picked { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: #fff; border: 4px solid var(--ink); border-radius: 14px; position: sticky; top: 0; z-index: 2; box-shadow: 0 -10px 0 var(--cream); } /* stays in view when the tray is scrolled: she picks a thing, its buttons are right there */
#picked .who { font-family: 'Bubblegum Sans', sans-serif; font-size: 19px; color: var(--red); line-height: 1; }
#picked .row { display: flex; flex-wrap: wrap; gap: 6px; }
#picked .stk { min-height: 44px; font-size: 16px; padding: 0 11px; flex: none; }
#trayTiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
#trayTiles .tile { min-height: 92px; padding: 6px 4px; font-size: 15px; gap: 3px; box-shadow: 3px 3px 0 var(--ink); }
#trayTiles .tile svg, #trayTiles .tile img { width: 54px; height: 58px; }
#trayTiles .tile img { object-fit: contain; border-radius: 0; }
#trayTiles .tile .em { font-size: 40px; }
#trayTiles .tile.here { opacity: 0.5; }
#trayTiles .tile.dash .em { font-size: 32px; }
#trayTiles .tile.dash.wide { grid-column: 1 / -1; min-height: 60px; flex-direction: row; font-size: 18px; }
#trayTiles .tile.dash.wide .em { font-size: 28px; }
#trayTiles .tile .em.fx { font-family: 'Chewy', cursive; font-size: 22px; color: var(--red); -webkit-text-stroke: 1px var(--ink); }
#trayTiles .tsec { grid-column: 1 / -1; font-family: 'Chewy', cursive; font-size: 19px; color: var(--red); line-height: 1; padding: 6px 2px 0; }
/* upright screens (iPad held tall, phones): the tray goes under the page as a strip */
@media (max-aspect-ratio: 1/1) {
	#bench { flex-direction: column; }
	/* the tray starts 56px in, so the lab's 📮 keeps its spot above the 🔊 instead of landing on the page */
	#tray { width: calc(100% - 56px); margin-left: 56px; flex-direction: column; overflow: hidden; padding: 8px; }
	#picked { flex-direction: row; align-items: center; padding: 6px 8px; }
	#picked[hidden] { display: flex !important; visibility: hidden; min-height: 60px; } /* keeps its room: a panel that appears on select would shrink the page under her finger */
	#trayTiles { display: flex; overflow-x: auto; overflow-y: hidden; touch-action: pan-x; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
	#trayTiles .tile { flex: none; width: 104px; min-height: 104px; font-size: 16px; }
	#trayTiles .tile svg, #trayTiles .tile img { width: 60px; height: 64px; }
	#trayTiles .tile.dash.wide { width: auto; min-width: 92px; flex-direction: column; font-size: 15px; padding: 6px 10px; }
	#trayTiles .tile.dash.wide .em { font-size: 34px; }
	#trayTiles .tsec { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 16px; padding: 0; display: flex; align-items: center; }
}
/* the "something went wrong" sticker (index.html shows it when no screen ever appeared) */
.bootfail { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 80px 20px; }
#say {
	position: absolute; z-index: 5; max-width: 60%; pointer-events: none;
	background: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 8px 14px;
	font-family: 'Bubblegum Sans', sans-serif; font-size: clamp(16px, 1.8vw, 22px); line-height: 1.2;
	box-shadow: 3px 3px 0 var(--ink); animation: coachin 0.25s; transform: translate(-50%, -100%);
}
#say::after { content: ""; position: absolute; left: 50%; bottom: -14px; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--ink); }
@keyframes coachin { from { opacity: 0; } }

/* ---------- title + done screens ---------- */
.input {
	width: 100%; min-height: 50px; padding: 8px 14px; border: 4px solid var(--ink); border-radius: 14px;
	font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); background: #fff;
	-webkit-user-select: text; user-select: text;
}
.input.huge { width: min(100%, 720px); min-height: 72px; font-size: 32px; font-family: 'Bubblegum Sans', sans-serif; font-weight: 400; text-align: center; border-radius: var(--cr); flex: none; }
#doneCover { flex: 1; min-height: 0; width: min(100%, calc((100vh - 330px) * 4 / 3)); display: flex; align-items: center; justify-content: center; }
#doneCover svg { max-width: 100%; max-height: 100%; filter: drop-shadow(5px 6px 0 rgba(34, 34, 34, 0.18)); }
.shelf { flex: 1; min-height: 0; overflow-y: auto; touch-action: pan-y; width: min(100%, 1100px); display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; align-content: start; padding: 6px; }
.shelf .bk { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 4px solid var(--ink); border-radius: 12px; padding: 10px; box-shadow: 4px 4px 0 var(--ink); }
.shelf .bk svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.shelf .bk .t { font-family: 'Bubblegum Sans', sans-serif; font-size: 18px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf .bk .row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.shelf .bk .stk { min-height: 44px; font-size: 16px; padding: 0 12px; }
.shelf .bk.just { outline: 6px solid var(--yellow); outline-offset: 3px; }
/* 📚 My books: one button, first in the bottom row of every screen, beside the 🔊 */
#booksBtn .wide { white-space: pre; }
#booksBtn[hidden] { display: none; }
/* Background for this page: preview left, choices right; stacked (preview stays on top) when upright */
.sheet .card.bgcard { width: min(96vw, 1120px); }
.bgwrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bgprev { position: sticky; top: 0; z-index: 1; border: 4px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.bgprev svg { display: block; width: 100%; height: auto; }
.bgpick { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bgcard .row.end .hint { text-align: left; }
@media (max-aspect-ratio: 1/1) { .bgwrap { grid-template-columns: minmax(0, 1fr); } .bgprev { top: -18px; } }
.shelf .bk .cov { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.shelf .shelfHead { grid-column: 1 / -1; margin: 6px 0 0; font-family: 'Chewy', cursive; font-weight: 400; font-size: 26px; color: var(--ink); }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; background: rgba(34, 34, 34, 0.45); padding: 16px; }
.sheet .card {
	position: relative; background: #fff; border: 5px solid var(--ink); border-radius: 26px 12px 22px 14px / 14px 22px 12px 26px;
	box-shadow: 6px 6px 0 var(--ink); width: min(96vw, 820px); max-height: 92vh; display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow: auto;
	background-image: radial-gradient(rgba(34, 34, 34, 0.1) 1.5px, transparent 1.5px); background-size: 22px 22px; touch-action: pan-y;
}
.sheet h2 { margin: 0; font-family: 'Chewy', cursive; font-weight: 400; font-size: 32px; color: var(--red); padding-right: 56px; }
.sheet .x { position: absolute; right: 10px; top: 10px; }
.sheet .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sheet .row.end { justify-content: flex-end; }
.sheet .sec { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.sheet .sec h3 { margin: 0; font-family: 'Chewy', cursive; font-weight: 400; font-size: 22px; color: var(--red); }
.sheet .sec .rule { flex: 1; height: 4px; background: var(--ink); border-radius: 4px; opacity: 0.35; }
.chiprow { display: flex; gap: 6px; flex-wrap: wrap; }
.chiprow .stk { min-height: 44px; font-size: 16px; padding: 0 12px; }
.swatch { width: 46px; height: 46px; border: 4px solid var(--ink); border-radius: 50%; padding: 0; box-shadow: 2px 2px 0 var(--ink); }
.swatch.on { outline: 5px solid var(--blue); outline-offset: 2px; }
#charPreview { width: 200px; height: 214px; margin: 0 auto; }
#charPreview svg { width: 100%; height: 100%; }
.whoTalks { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.whoTalks .tile { min-width: 130px; }

/* ---------- read mode ---------- */
#reader { position: fixed; inset: 0; z-index: 800; background: #142238; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 70px 80px 70px; }
#readPage { width: min(100%, calc((100vh - 160px) * 4 / 3)); aspect-ratio: 4 / 3; filter: drop-shadow(0 0 60px rgba(255, 214, 10, 0.35)); }
#readPage svg { width: 100%; height: 100%; display: block; }
#readBar { position: absolute; bottom: 12px; left: 72px; right: 72px; display: flex; justify-content: center; gap: 10px; }
#readX { position: absolute; top: 12px; right: 72px; }

/* ---------- toast, confetti ---------- */
#toast {
	/* top-right, under the ⛶ corner: never over the page, the dots or the buttons (Nick, 2026-10-17:
	   "the pop up after you delete something... they get in the way") */
	position: fixed; right: 76px; top: calc(var(--sat) + 10px); transform: translateY(-20px); z-index: 950;
	background: var(--yellow); border: 4px solid var(--ink); border-radius: 16px; padding: 10px 18px;
	font-family: 'Bubblegum Sans', sans-serif; font-size: 18px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; max-width: min(60vw, 420px); text-align: center;
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast button { pointer-events: auto; margin-left: 10px; min-height: 44px; }
.confetti { position: fixed; z-index: 980; width: 12px; height: 12px; border: 2px solid var(--ink); pointer-events: none; animation: conf 1.2s ease-out forwards; }
@keyframes conf { to { transform: translateY(70vh) rotate(540deg); opacity: 0; } }

/* ---------- draw your own ---------- */
.sheet.draw .dcard { width: min(96vw, 900px); max-height: 96vh; gap: 8px; padding: 14px; }
.dwrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.dpaper {
	max-width: 100%; max-height: min(58vh, 560px); width: auto; height: auto; display: block; touch-action: none;
	background: #fff; background-image: radial-gradient(rgba(34, 34, 34, 0.12) 1.5px, transparent 1.5px); background-size: 22px 22px;
	border: 4px solid var(--ink); border-radius: 14px 26px 12px 22px / 22px 12px 26px 14px; cursor: crosshair;
}
.drow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dcols { gap: 6px; }
.dsizes { display: flex; gap: 6px; }
.dsz { width: 46px; height: 46px; padding: 0; display: flex; align-items: center; justify-content: center; background: #fff; border: 4px solid var(--ink); border-radius: 50%; }
.dsz i { display: block; border-radius: 50%; background: var(--ink); }
.dsz.on { outline: 5px solid var(--blue); outline-offset: 2px; }
.dtools .stk { min-height: 44px; font-size: 17px; padding: 0 12px; }
.dtools .stk.on { outline: 5px solid var(--blue); outline-offset: 2px; }

/* ---------- phones ---------- */
@media (max-width: 600px) {
	.screen { padding: calc(var(--sat) + 8px) 8px 8px 8px; }
	.nav { padding-right: 4px; }
	.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.tiles.scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile { min-height: 110px; font-size: 16px; }
	.tile svg, .tile img { width: 64px; height: 64px; }
	.tiles.scenes .tile svg { height: 90px; }
	.stk.big { min-height: 52px; font-size: 20px; padding: 0 16px; }
	/* four buttons under the page (Back · Save · The End · Next page): Back keeps only its arrow, Next drops "page" */
	#s-page .nav { gap: 6px; }
	#s-page .nav .stk { font-size: 16px; padding: 0 9px; flex: none; }
	#s-page .nav .wide { display: none; }
	.nav { flex-wrap: wrap; row-gap: 6px; }
	#booksBtn { padding: 0 10px; font-size: 24px; }
	#booksBtn .wide { display: none; }
	#pageHead .q { min-height: 44px; }
	#dots button { width: 32px; height: 32px; }
	#tray { padding: 6px; gap: 6px; }
	#tray { width: calc(100% - 52px); margin-left: 52px; }
	#trayTiles .tile { width: 78px; min-height: 78px; font-size: 13px; }
	#trayTiles .tile svg, #trayTiles .tile img { width: 42px; height: 44px; }
	#trayTiles .tile .em { font-size: 30px; }
	#picked .stk { min-height: 40px; font-size: 15px; padding: 0 9px; }
	#pageMic { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 20px; }
	.dpaper { max-height: 46vh; }
	#toast { right: 64px; left: 64px; max-width: none; font-size: 16px; padding: 8px 12px; }
}
