/* EFS web viewer (projects.easyformstudio.com/_/efs/viewer.css), shared by every published project.
   viewer.js builds the page; the project's index.html / configurator.html is only a shell. */

:root,
:root[data-theme="light"] {
	--efs-ink: #1C1D1F;
	--efs-muted: #5B5F66;
	--efs-line: #E2E1DC;
	--efs-panel: rgba(255, 255, 255, 0.94);
	--efs-panel-solid: #FFFFFF;
	--efs-chip: #F1F0EC;
	--efs-active-bg: #1C1D1F;
	--efs-active-fg: #FFFFFF;
	--efs-accent: #2459D6;
	--efs-accent-soft: #E8EEFC;
	--efs-shadow: 0 12px 32px rgba(28, 29, 31, 0.10);
	--efs-scene: radial-gradient(circle at 50% 42%, #FAFAF8, #DCDAD5);
	color-scheme: light;
}

:root[data-theme="dark"] {
	--efs-ink: #F2F1EE;
	--efs-muted: #B4B6BB;
	--efs-line: #3A3B40;
	--efs-panel: rgba(38, 39, 43, 0.94);
	--efs-panel-solid: #26272B;
	--efs-chip: #303136;
	--efs-active-bg: #F2F1EE;
	--efs-active-fg: #1C1D1F;
	--efs-accent: #9DB8FF;
	--efs-accent-soft: rgba(36, 89, 214, 0.28);
	--efs-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
	--efs-scene: radial-gradient(circle at 50% 42%, #2D2E32, #161719);
	color-scheme: dark;
}

html, body { margin: 0; height: 100%; overflow: hidden; background: var(--efs-panel-solid); }
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
	color: var(--efs-ink);
	-webkit-font-smoothing: antialiased;
}
#c { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; background: var(--efs-scene); touch-action: none; outline: none; }
.efs-num { font-variant-numeric: tabular-nums; }
.efs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* buttons take the page's font and colour at a type selector's weight (:where), so a class's own wins (.efs-tool's size,
   .efs-iconbtn's grey) */
:where(.efs-ui) button { font: inherit; color: inherit; }
.efs-ui button:focus-visible, .efs-ui input:focus-visible, .efs-ui a:focus-visible { outline: 2px solid var(--efs-accent); outline-offset: 2px; }
.efs-glass { background: var(--efs-panel); border: 1px solid var(--efs-line); box-shadow: var(--efs-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.efs-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* top left: the project */
.efs-project { position: fixed; left: 20px; top: 20px; z-index: 4; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 180px); padding: 10px 14px; border-radius: 16px; box-sizing: border-box; }
/* the workshop's logo: on a white plate in both themes (drawn for the white quote), as wide as it is up to 3:1 */
.efs-logo { height: 40px; width: auto; min-width: 40px; max-width: 120px; box-sizing: border-box; padding: 4px; border-radius: 10px; object-fit: contain; flex: none; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(28, 29, 31, 0.10); }
.efs-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.efs-title { font-size: 16px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.efs-sub { font-size: 12px; color: var(--efs-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.efs-variants { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--efs-chip); overflow-x: auto; }
.efs-variants a { flex: none; padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--efs-muted); text-decoration: none; white-space: nowrap; }
.efs-variants a[aria-current="page"] { background: var(--efs-panel-solid); color: var(--efs-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* top right */
.efs-actions { position: fixed; right: 20px; top: 20px; z-index: 4; display: flex; gap: 8px; }
.efs-btn { height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 14px; font-size: 13px; font-weight: 600; cursor: pointer; box-sizing: border-box; }
.efs-btn.efs-square { padding: 0; width: 44px; }
.efs-btn[aria-pressed="true"] { background: var(--efs-active-bg); color: var(--efs-active-fg); }
.efs-phone-only { display: none !important; }
/* Share: the link, the QR code (dark on white in both themes, so every phone reads it), Download */
.efs-share { position: fixed; top: 76px; right: 20px; width: 316px; z-index: 8; border-radius: 18px; box-sizing: border-box; background: var(--efs-panel-solid); }
.efs-share[hidden] { display: none; }
.efs-sharebody { padding: 2px 16px 16px; }
.efs-qr { position: relative; width: 244px; aspect-ratio: 1; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #FFFFFF; box-shadow: 0 0 0 1px var(--efs-line); }
.efs-qr[hidden] { display: none; }
.efs-qr svg { display: block; width: 100%; height: 100%; }
.efs-qrlogo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 8px; background: #FFFFFF; }
.efs-qrlogo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.efs-scan { margin: 10px 6px 12px; text-align: center; font-size: 12px; line-height: 1.4; color: var(--efs-muted); }
.efs-linkrow { display: flex; gap: 6px; }
.efs-share .efs-link { flex: 1; min-width: 0; height: 36px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--efs-line); border-radius: 10px; background: var(--efs-chip); color: var(--efs-ink); font: inherit; font-size: 12px; text-overflow: ellipsis; }
.efs-share .efs-primary { height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--efs-active-bg); color: var(--efs-active-fg); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; flex: none; }
.efs-sharemore { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.efs-sharemore .efs-ghost { flex: 1 1 auto; align-self: auto; height: 36px; font-size: 13px; }
.efs-sharemore .efs-ghost[hidden] { display: none; }
.efs-iconbtn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--efs-muted); cursor: pointer; flex: none; }
.efs-iconbtn:hover { background: var(--efs-chip); color: var(--efs-ink); }

/* bottom: the toolbar */
.efs-toolbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 20px; max-width: calc(100vw - 24px); box-sizing: border-box; }
.efs-tool { min-width: 64px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; border: 0; border-radius: 14px; background: transparent; color: var(--efs-ink); font-size: 11px; font-weight: 500; line-height: 1; cursor: pointer; flex: none; }
.efs-tool:hover { background: var(--efs-chip); }
.efs-tool[aria-pressed="true"] { background: var(--efs-active-bg); color: var(--efs-active-fg); }
.efs-tool[hidden] { display: none; }
.efs-sep { width: 1px; height: 32px; margin: 0 6px; background: var(--efs-line); flex: none; }
.efs-sep[hidden] { display: none; }

.efs-hint { position: fixed; left: 50%; bottom: 98px; transform: translateX(-50%); z-index: 3; white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: 12px; color: var(--efs-muted); transition: opacity 0.4s; }
.efs-hint.efs-gone { opacity: 0; pointer-events: none; }
.efs-credit { position: fixed; right: 22px; bottom: 36px; z-index: 3; font-size: 11px; color: var(--efs-muted); text-decoration: none; }
.efs-credit:hover { color: var(--efs-ink); text-decoration: underline; }
@media (max-width: 1100px) { .efs-credit { display: none; } }

/* side panels */
.efs-panel { position: fixed; top: 92px; bottom: 100px; width: 340px; z-index: 5; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; box-sizing: border-box; }
.efs-panel[hidden] { display: none; }
.efs-panel.efs-left { left: 20px; }
.efs-panel.efs-right { right: 20px; top: 76px; }
.efs-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 8px 18px; }
.efs-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.efs-head .efs-count { font-size: 12px; color: var(--efs-muted); }
.efs-head .efs-iconbtn { margin-left: auto; }
.efs-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 14px; scrollbar-width: thin; }

.efs-search { display: flex; align-items: center; gap: 8px; height: 40px; margin: 0 14px 10px; padding: 0 12px; border-radius: 12px; background: var(--efs-chip); color: var(--efs-muted); }
.efs-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--efs-ink); font: inherit; font-size: 14px; }
.efs-selbar { display: flex; align-items: center; gap: 8px; margin: 0 14px 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--efs-accent-soft); color: var(--efs-accent); font-size: 12px; font-weight: 600; }
.efs-selbar[hidden] { display: none; }
.efs-selbar button { margin-left: auto; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--efs-accent); font-weight: 600; cursor: pointer; }
.efs-cab { border-top: 1px solid var(--efs-line); }
.efs-cabrow { display: flex; align-items: center; gap: 2px; padding: 3px 0; }
.efs-chev { width: 32px; height: 36px; border: 0; background: transparent; color: var(--efs-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.efs-chev svg { width: 14px; height: 14px; transition: transform 0.15s; }
.efs-cab.efs-open .efs-chev svg { transform: rotate(90deg); }
.efs-cab label, .efs-part { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.efs-cab > .efs-cabrow label { flex: 1; font-size: 13px; font-weight: 600; }
.efs-cab > .efs-cabrow label .efs-n { margin-left: auto; padding-right: 6px; font-size: 12px; font-weight: 500; color: var(--efs-muted); }
.efs-parts { display: none; padding-bottom: 6px; }
.efs-cab.efs-open .efs-parts { display: block; }
.efs-part { padding: 2px 8px 2px 34px; border-radius: 10px; }
.efs-part:hover { background: var(--efs-chip); }
.efs-part.efs-on { background: var(--efs-accent-soft); }
.efs-ui input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex: none; accent-color: #2459D6; }
.efs-badge { min-width: 26px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 6px; background: var(--efs-chip); color: var(--efs-ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.efs-on .efs-badge, .efs-badge.efs-blue { background: #2459D6; color: #FFFFFF; }
.efs-pname { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.efs-pname span:first-child { font-size: 13px; }
.efs-pname span + span { font-size: 11px; color: var(--efs-muted); }

/* decors */
.efs-surfaces { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.efs-surface { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--efs-line); border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.efs-surface[aria-pressed="true"] { border-color: var(--efs-ink); background: var(--efs-chip); }
.efs-surface img, .efs-swatch { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; background: var(--efs-chip); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.efs-surface .efs-pname span:first-child { font-size: 12px; color: var(--efs-muted); }
.efs-surface .efs-pname span + span { font-size: 13px; font-weight: 600; color: var(--efs-ink); }
.efs-label { font-size: 12px; color: var(--efs-muted); margin-bottom: 10px; }
.efs-label b { color: var(--efs-ink); }
.efs-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.efs-filters button { height: 32px; padding: 0 12px; border: 1px solid var(--efs-line); border-radius: 999px; background: transparent; font-size: 12px; font-weight: 500; cursor: pointer; }
.efs-filters button[aria-pressed="true"] { border-color: var(--efs-active-bg); background: var(--efs-active-bg); color: var(--efs-active-fg); }
.efs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; }
.efs-decor { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; min-width: 0; }
.efs-thumb { position: relative; display: block; border-radius: 10px; }
.efs-decor img { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; background: var(--efs-chip); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.efs-decor[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--efs-panel-solid), 0 0 0 4px var(--efs-ink); }
.efs-decor > span:not(.efs-thumb) { font-size: 11px; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.efs-decor small { font-size: 10px; color: var(--efs-muted); }
.efs-thumb .efs-spinner { display: none; position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -12px; width: 24px; height: 24px; border-color: rgba(255, 255, 255, 0.45); border-top-color: #FFFFFF; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.efs-decor.efs-loading img { filter: brightness(0.7); }
.efs-decor.efs-loading .efs-spinner { display: block; }

/* spinner, and the "Loading the decor…" pill over the 3D */
.efs-spinner { display: inline-block; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid var(--efs-line); border-top-color: var(--efs-ink); border-radius: 50%; animation: efs-spin 0.8s linear infinite; flex: none; }
@keyframes efs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .efs-spinner { animation-duration: 2.4s; } }
.efs-busy { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; box-sizing: border-box; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.efs-busy[hidden] { display: none; }
.efs-note { margin-top: 14px; font-size: 11px; line-height: 1.4; color: var(--efs-muted); }

/* the selected part */
.efs-card { position: fixed; top: 76px; right: 20px; width: 300px; z-index: 5; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; border-radius: 18px; box-sizing: border-box; background: var(--efs-panel-solid); }
.efs-card[hidden] { display: none; }
.efs-card.efs-beside { right: 376px; }
.efs-cardhead { display: flex; align-items: flex-start; gap: 10px; }
.efs-cardhead .efs-badge { min-width: 30px; height: 26px; font-size: 13px; border-radius: 8px; }
.efs-cardhead .efs-titles { flex: 1; }
.efs-cardhead .efs-title { white-space: normal; }
.efs-cardhead .efs-iconbtn { margin: -4px -6px 0 0; }
.efs-dims { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.efs-facts { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 10px; padding-top: 10px; border-top: 1px solid var(--efs-line); font-size: 12px; line-height: 1.4; }
.efs-facts dt { color: var(--efs-muted); }
.efs-facts dd { margin: 0; }
.efs-ghost { align-self: flex-start; height: 34px; padding: 0 12px; border: 1px solid var(--efs-line); border-radius: 10px; background: transparent; font-size: 12px; font-weight: 500; cursor: pointer; }
.efs-ghost:hover { background: var(--efs-chip); }

/* loading and messages */
.efs-loader { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--efs-scene); transition: opacity 0.4s; }
.efs-loader.efs-gone { opacity: 0; pointer-events: none; }
.efs-loader .efs-title { font-size: 20px; }
.efs-loader .efs-sub { margin-top: -10px; font-size: 13px; }
.efs-loaderlogo { height: 64px; width: auto; min-width: 64px; max-width: 220px; box-sizing: border-box; padding: 8px 10px; border-radius: 14px; object-fit: contain; background: #FFFFFF; box-shadow: var(--efs-shadow); }
.efs-bar { width: 280px; max-width: 70vw; height: 6px; border-radius: 3px; background: var(--efs-line); overflow: hidden; }
.efs-bar i { display: block; height: 100%; width: 8%; border-radius: 3px; background: var(--efs-ink); transition: width 0.2s; }
.efs-loader p { margin: 0; font-size: 13px; color: var(--efs-muted); }
.efs-toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 9; padding: 10px 16px; border-radius: 12px; background: var(--efs-active-bg); color: var(--efs-active-fg); font-size: 13px; font-weight: 500; box-shadow: var(--efs-shadow); }
.efs-toast[hidden] { display: none; }

/* a phone: toolbar along the bottom, panels and the card as sheets above it */
@media (max-width: 700px) {
	.efs-phone-only { display: inline-flex !important; }
	.efs-desk-only { display: none !important; }
	.efs-actions { gap: 6px; }
	.efs-project { left: 10px; top: 10px; max-width: calc(100vw - 172px); padding: 8px 12px 8px 8px; }
	.efs-logo { height: 34px; min-width: 34px; max-width: 76px; padding: 3px; }
	.efs-title { font-size: 15px; }
	.efs-actions { right: 10px; top: 10px; }
	.efs-btn .efs-btntext { display: none; }
	.efs-btn { width: 44px; padding: 0; }
	.efs-toolbar { left: 0; right: 0; bottom: 0; transform: none; max-width: none; justify-content: space-around; border-radius: 0; border-width: 1px 0 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); overflow-x: auto; }
	.efs-tool { min-width: 56px; padding: 0 4px; }
	.efs-sep, .efs-hint, .efs-credit { display: none; }
	.efs-panel, .efs-panel.efs-left, .efs-panel.efs-right, .efs-card { left: 0; right: 0; width: auto; top: auto; bottom: calc(69px + env(safe-area-inset-bottom)); max-height: 58vh; max-height: 58dvh; border-radius: 22px 22px 0 0; border-width: 1px 1px 0; }
	.efs-card.efs-beside { right: 0; }
	.efs-share { left: 0; right: 0; width: auto; top: auto; bottom: calc(69px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 150px); overflow-y: auto; border-radius: 22px 22px 0 0; border-width: 1px 1px 0; }
	.efs-panel { height: 58vh; height: 58dvh; }
	.efs-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
	.efs-busy { top: 64px; }
}

/* the workshop mode (efs/shop.js, only with the workshop's link #shop=…): the steps on the part card, the list */
.efs-shoppill { align-self: flex-start; margin-top: 3px; padding: 2px 8px; border-radius: 999px; background: var(--efs-accent-soft); color: var(--efs-accent); font-size: 11px; font-weight: 600; white-space: nowrap; }
.efs-shoppill.efs-dead { background: rgba(214, 48, 36, 0.14); color: #C2271B; }
:root[data-theme="dark"] .efs-shoppill.efs-dead { color: #FF8A80; }
.efs-steps { display: flex; flex-direction: column; gap: 8px; }
.efs-stepgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.efs-step { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 10px; border: 1px solid var(--efs-line); border-radius: 12px; background: var(--efs-chip); font-size: 14px; font-weight: 600; cursor: pointer; }
.efs-step .efs-icon { opacity: 0.25; }
.efs-step[aria-pressed="true"] { border-color: #1E7D45; background: #1E7D45; color: #FFFFFF; }
.efs-step[aria-pressed="true"] .efs-icon { opacity: 1; }
.efs-step:disabled { opacity: 0.45; cursor: default; }
.efs-step.efs-scrap { min-height: 42px; background: transparent; color: #C2271B; border-color: rgba(194, 39, 27, 0.4); }
.efs-step.efs-scrap .efs-icon { opacity: 1; }
.efs-step.efs-scrap.efs-armed, .efs-step.efs-scrap[aria-pressed="true"] { background: #C2271B; border-color: #C2271B; color: #FFFFFF; }
:root[data-theme="dark"] .efs-step.efs-scrap { color: #FF8A80; border-color: rgba(255, 138, 128, 0.45); }
:root[data-theme="dark"] .efs-step.efs-scrap.efs-armed, :root[data-theme="dark"] .efs-step.efs-scrap[aria-pressed="true"] { background: #B3261E; border-color: #B3261E; color: #FFFFFF; }
:root[data-theme="dark"] .efs-step[aria-pressed="true"]:not(.efs-scrap) { background: #2E9E5B; border-color: #2E9E5B; }
.efs-scrapnote { padding: 8px 10px; border-radius: 10px; background: rgba(214, 48, 36, 0.12); color: #C2271B; font-size: 12px; font-weight: 600; }
:root[data-theme="dark"] .efs-scrapnote { color: #FF8A80; }
.efs-last { font-size: 11px; color: var(--efs-muted); }
.efs-ui .efs-tolist { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.efs-shop .efs-head .efs-count { margin-left: 2px; }
.efs-shoptop { padding: 0 14px; }
.efs-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.efs-stat { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 6px; padding: 8px 10px 9px; border: 1px solid var(--efs-line); border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.efs-stat[aria-pressed="true"] { border-color: var(--efs-ink); background: var(--efs-chip); }
.efs-statname { font-size: 12px; color: var(--efs-muted); }
.efs-stat b { font-size: 13px; }
.efs-statbar { grid-column: 1 / -1; display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: var(--efs-line); overflow: hidden; }
.efs-statbar i { display: block; height: 100%; border-radius: 2px; background: #1E7D45; }
:root[data-theme="dark"] .efs-statbar i { background: #2E9E5B; }
.efs-shopfilters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 10px; padding: 0 14px 2px; scrollbar-width: none; }
.efs-shopfilters button { flex: none; }
.efs-shoprowsel { display: flex; gap: 6px; margin-bottom: 8px; }
.efs-shoprowsel .efs-search { flex: 1; min-width: 0; margin: 0; }
.efs-select { max-width: 42%; height: 40px; padding: 0 8px; border: 0; border-radius: 12px; background: var(--efs-chip); color: var(--efs-ink); font: inherit; font-size: 13px; }
.efs-shopcab { display: flex; justify-content: space-between; padding: 10px 4px 4px; border-top: 1px solid var(--efs-line); font-size: 12px; font-weight: 600; color: var(--efs-muted); }
.efs-shopcab:first-child { border-top: 0; }
.efs-shoprow { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.efs-shoprow.efs-faded { opacity: 0.5; }
.efs-rowmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 2px 6px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.efs-rowmain:hover { background: var(--efs-chip); }
.efs-rowmain .efs-pname { flex: 1; }
.efs-dots { display: flex; gap: 3px; flex: none; }
.efs-dots i { width: 8px; height: 8px; border-radius: 2px; background: var(--efs-line); }
.efs-dots i.efs-done { background: #1E7D45; }
:root[data-theme="dark"] .efs-dots i.efs-done { background: #2E9E5B; }
.efs-tag { flex: none; padding: 2px 6px; border-radius: 6px; background: rgba(214, 48, 36, 0.12); color: #C2271B; font-size: 11px; font-weight: 700; }
:root[data-theme="dark"] .efs-tag { color: #FF8A80; }
.efs-quick { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--efs-line); border-radius: 12px; background: transparent; cursor: pointer; }
.efs-quick .efs-icon { opacity: 0.35; }
.efs-quick[aria-pressed="true"] { border-color: #1E7D45; background: #1E7D45; color: #FFFFFF; }
.efs-quick[aria-pressed="true"] .efs-icon { opacity: 1; }
.efs-shopfoot { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--efs-line); }
.efs-shopfoot .efs-note { margin: 0; }
.efs-ui .efs-recut { display: inline-flex; align-items: center; gap: 6px; color: #C2271B; border-color: rgba(194, 39, 27, 0.4); }
.efs-recut[hidden] { display: none; }
:root[data-theme="dark"] .efs-ui .efs-recut { color: #FF8A80; }
/* Scan: the camera over the whole screen, a frame to aim with */
.efs-scanner { position: fixed; inset: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #000000; color: #FFFFFF; }
.efs-scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.efs-scanframe { position: relative; width: min(64vw, 280px); aspect-ratio: 1; border-radius: 18px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.45), inset 0 0 0 3px #FFFFFF; }
.efs-scanner p { position: relative; margin: 18px 24px 0; text-align: center; font-size: 15px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.efs-scanner .efs-iconbtn { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; background: rgba(0, 0, 0, 0.5); color: #FFFFFF; }
@media (max-width: 700px) {
	.efs-panel.efs-shop { left: 0; height: 74vh; height: 74dvh; max-height: 74vh; max-height: 74dvh; }
	.efs-card .efs-steps .efs-step { min-height: 52px; }
}
.efs-card:has(.efs-steps) { max-height: calc(100vh - 190px); overflow-y: auto; }
@media (max-width: 700px) { .efs-card:has(.efs-steps) { max-height: 66vh; max-height: 66dvh; } }
