/* Interactive demo, full screen: just the Mac. Screens use points (1/1512 of a screen's width) via --pt. */
@font-face { font-family: Geist; src: url("/assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
.dz { --lime: #daff59; --ink: #171a14; --font: Geist, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, monospace; position: fixed; inset: 0; overflow: hidden; margin: 0; color: #f3f5ee; background: radial-gradient(120% 90% at 50% 110%, #222a18 0%, transparent 60%), #0c0d0b; font-family: var(--font); overscroll-behavior: none; }

/* Top bar: logo, displays and desktops, Get the app */
.dz-bar { position: fixed; top: 0; right: 0; left: 0; z-index: 300; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 56px; padding: 0 16px; }
.dz-brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: #f6f8f1; font-size: 1rem; font-weight: 760; letter-spacing: -.05em; }
.dz-brand img { width: 30px; height: 30px; }
.dz-right { display: flex; align-items: center; justify-self: end; gap: 8px; }
.dz-right .button { min-height: 38px; }
.dz-icon { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #ffffff1f; border-radius: 10px; color: #dfe5d6; background: #ffffff0d; cursor: pointer; }
.dz-icon:hover { background: #ffffff1a; }
.dz-icon i { width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.dz-switch { display: flex; align-items: center; gap: 8px; }
.sw { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #ffffff17; border-radius: 99px; background: #ffffff08; transition: border-color .3s, background-color .3s; }
.sw.is-view { border-color: #d9ff5c55; background: #ffffff12; }
.sw-name { height: 28px; padding: 0 10px; border: 0; border-radius: 99px; color: #aeb5a6; background: none; font: 640 .8rem var(--font); cursor: pointer; white-space: nowrap; }
.sw.is-view .sw-name { color: #f6f8f1; }
.sw-dot { position: relative; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; color: #aeb5a6; background: #ffffff0f; font: 700 .76rem var(--font); cursor: pointer; }
.sw-dot:hover { background: #ffffff21; }
.sw-dot.is-on { color: #171a10; background: var(--lime); }
.sw-dot.has-shade::after { position: absolute; right: 2px; bottom: 2px; width: 6px; height: 6px; border: 1.5px solid #0c0d0b; border-radius: 50%; background: #9db45a; content: ""; }

/* Stage: monitors side by side, the one you're on in the middle */
.dz-stage { position: fixed; top: 56px; right: 0; bottom: 0; left: 0; overflow: hidden; }
.dz-track { position: absolute; top: 50%; left: 0; display: flex; align-items: center; }
.dz-track.is-ready { transition: transform .65s cubic-bezier(.65, 0, .35, 1); }
.mon { position: relative; flex: none; width: var(--mw); aspect-ratio: 16 / 10; border-radius: 12px; background: #000; box-shadow: 0 0 0 6px #070707, 0 0 0 7px #3a3b3d, 0 40px 90px #000c; transition: opacity .5s, filter .5s; }
.mon.is-away { opacity: .38; filter: saturate(.5); cursor: pointer; }
.mon.is-away:hover { opacity: .6; }
.mon.is-away .screen-host { pointer-events: none; }
.screen-host { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.mon-notch { position: absolute; top: 0; left: 50%; z-index: 95; width: 11%; height: 3.2%; border-radius: 0 0 10px 10px; background: #070707; transform: translateX(-50%); pointer-events: none; }
.mon-macbook { box-shadow: 0 0 0 6px #070707, 0 0 0 8px #c9cbce, 0 40px 90px #000c; }

/* A screen: points are 1/1512 of its width */
.mac-screen { --pt: .5px; position: absolute; inset: 0; overflow: hidden; border-radius: .4cqw; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mac-screen.is-editing { touch-action: none; }
.strip { position: absolute; inset: 0; display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.space { position: relative; flex: none; width: 100%; height: 100%; overflow: hidden; }
.wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wins { position: absolute; inset: 0; }
.win { position: absolute; }
.win > img { position: absolute; max-width: none; height: auto; pointer-events: none; }
.win-shades { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--pt) * 10); pointer-events: none; }
.shade { position: absolute; display: block; border-radius: calc(var(--pt) * 9); transition: background-color .3s, backdrop-filter .3s, box-shadow .2s; }
.shade.is-hover { box-shadow: inset 0 0 0 1.5px #d9ff5cb0; }
.desk-shades .shade.is-hover::after, .win-shades .shade.is-hover::after { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; background: #ececee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 4.6l6.8 6.8M11.4 4.6l-6.8 6.8' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 56% no-repeat; box-shadow: 0 2px 6px #0006; content: ""; }
.veil { position: absolute; inset: 0; z-index: 50; display: none; pointer-events: none; }
.veil .tile { border-radius: 0; }
.desk-shades { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.screen-shades { position: absolute; inset: 0; z-index: 70; pointer-events: none; }
.screen-shades .shade { border-radius: 0; }
.dock { position: absolute; top: 90.95%; left: 19.577%; z-index: 80; width: 60.85%; height: auto; pointer-events: none; }

/* Menu bar */
.menubar { position: absolute; top: 0; right: 0; left: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; height: 2.646%; padding: 0 calc(var(--pt) * 14); color: #fff; background: #0000002e; font: 500 calc(var(--pt) * 13.5) / 1 -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap; }
.mb-left, .mb-right { display: flex; align-items: center; gap: calc(var(--pt) * 18); height: 100%; }
.mb-left b { font-weight: 700; }
.mb-apple { width: calc(var(--pt) * 15); height: calc(var(--pt) * 17); margin-right: calc(var(--pt) * 6); background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701'/%3E%3C/svg%3E") center / contain no-repeat; }
.mb-htr { display: grid; place-items: center; height: 100%; padding: 0 calc(var(--pt) * 8); border: 0; border-radius: calc(var(--pt) * 5); background: none; cursor: pointer; }
.mb-htr img { width: auto; height: calc(var(--pt) * 17); min-height: 10px; filter: invert(1); }
.mb-htr:hover, .mb-htr:focus-visible { background: #ffffff38; outline: none; }
.is-shaded .mb-htr { box-shadow: inset 0 -2px 0 var(--lime); }
.mb-ico { width: calc(var(--pt) * 22); height: calc(var(--pt) * 12); border: max(1px, calc(var(--pt) * 1.4)) solid #fff; border-radius: calc(var(--pt) * 3.5); }
.mb-wifi { width: calc(var(--pt) * 16); height: calc(var(--pt) * 12); border: 0; border-radius: 0; background: #fff; clip-path: polygon(50% 100%, 0 30%, 15% 12%, 50% 0, 85% 12%, 100% 30%); }

.htr-menu { position: absolute; top: 3%; right: calc(var(--pt) * 150); z-index: 120; width: 236px; max-height: 94%; padding: 5px; overflow: auto; border: 1px solid #0000001f; border-radius: 10px; color: #1d1d1f; background: #ececece8; box-shadow: 0 12px 34px #0000004d; font: 400 12.5px / 1.2 -apple-system, BlinkMacSystemFont, var(--font); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.htr-menu hr { margin: 4px 8px; border: 0; border-top: 1px solid #0000001f; }
.mi { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 4px 9px; border: 0; border-radius: 5px; color: inherit; background: none; font: inherit; text-align: left; cursor: default; }
.mi:not(:disabled):hover { color: #fff; background: #2f6fe0; }
.mi:disabled { color: #00000045; }
.mi kbd { padding: 0; border: 0; color: inherit; background: none; font: inherit; opacity: .6; }
.mi-head { padding: 4px 9px; color: #00000070; font-size: 11.5px; }
.mi-in { padding-left: 22px; }

/* Editor overlay */
.edit-layer { position: absolute; inset: 0; z-index: 100; pointer-events: none; }
.is-editing .edit-layer { background: #d9ff5c06; box-shadow: inset 0 0 0 2px #d9ff5c66; }
.is-editing.is-active .edit-layer { box-shadow: inset 0 0 0 3px var(--lime); }
.is-editing { cursor: crosshair; }
.is-picking { cursor: pointer; }
.is-picking .edit-layer { background: #d9ff5c12; }
.box { position: absolute; outline: 1.5px dashed #d9ff5ccc; background: #d9ff5c12; }
.box.is-sel, .box.is-new { outline: 2px solid var(--lime); background: #d9ff5c1f; }
.h { position: absolute; width: 9px; height: 9px; border: 1px solid #7a9a1f; border-radius: 2px; background: #fff; transform: translate(-50%, -50%); }
.h-nw { left: 0; top: 0; } .h-n { left: 50%; top: 0; } .h-ne { left: 100%; top: 0; } .h-e { left: 100%; top: 50%; }
.h-se { left: 100%; top: 100%; } .h-s { left: 50%; top: 100%; } .h-sw { left: 0; top: 100%; } .h-w { left: 0; top: 50%; }
.box-size { position: absolute; top: calc(100% + 6px); right: 0; padding: 2px 6px; border-radius: 5px; color: #000; background: var(--lime); font: 600 10px var(--mono); white-space: nowrap; }
.box-anchor { position: absolute; top: calc(100% + 6px); left: 0; padding: 2px 7px; border-radius: 5px; color: #fff; background: #191c19e6; font: 600 10px var(--font); white-space: nowrap; }

/* Click tips, the guide cursor, toasts */
.tip { position: absolute; z-index: 110; padding: 4px 10px; border-radius: 99px; color: #fff; background: #b4532d; box-shadow: 0 6px 16px #0006; font: 700 12px var(--font); white-space: nowrap; opacity: 0; transform: translate(-50%, -150%) scale(.9); pointer-events: none; transition: opacity .2s, transform .2s; }
.tip[data-kind="through"] { color: #171a10; background: var(--lime); }
.tip.is-on { opacity: 1; transform: translate(-50%, -170%) scale(1); }
.ghost { position: absolute; top: 0; left: 0; z-index: 200; width: 20px; height: 30px; margin: -2px 0 0 -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 28'%3E%3Cpath d='M1 1v21l5.5-5 4 9 3.5-1.5-4-8.7h7z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 2px 3px #0007); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ghost.is-on { opacity: 1; }
.ghost::after { position: absolute; top: -10px; left: -10px; width: 22px; height: 22px; border: 2px solid var(--lime); border-radius: 50%; opacity: 0; content: ""; }
.ghost.is-press::after { animation: ghost-press .35s ease-out; }
@keyframes ghost-press { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }
.toast { position: absolute; left: 50%; bottom: 18px; z-index: 210; max-width: min(560px, 90%); padding: 10px 16px; border-radius: 14px; color: #f3f5ee; background: #171a14f0; box-shadow: 0 14px 34px #0005; font-size: .92rem; font-weight: 560; line-height: 1.4; text-align: center; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.ico { width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-sidebar { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M9 4v16'/%3E%3C/svg%3E"); }
.ico-undo { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h10a6 6 0 010 12h-3'/%3E%3C/svg%3E"); }
.ico-redo { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14l5-5-5-5'/%3E%3Cpath d='M20 9H10a6 6 0 000 12h3'/%3E%3C/svg%3E"); }
.ico-window { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M3 9h18'/%3E%3C/svg%3E"); }
.ico-display { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2.5' y='3.5' width='19' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.ico-x { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.ico-eye { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 12s3.5-6 9-6c1.6 0 3 .5 4.2 1.2M21 12s-3.5 6-9 6c-1.6 0-3-.5-4.2-1.2M4 20L20 4'/%3E%3C/svg%3E"); }
.ico { width: calc(var(--pt) * 16); height: calc(var(--pt) * 16); }

/* The HideTheRest editor, sized in points like the app's own chrome */
.ed { position: absolute; top: calc(var(--pt) * 33); left: 50%; z-index: 130; width: calc(var(--pt) * 1386); color: #eef2ea; font: 500 calc(var(--pt) * 13) / 1.2 var(--sys); transform: translateX(-50%); }
.ed[hidden] { display: none; }
.g { display: flex; align-items: center; gap: calc(var(--pt) * 6); border: 1px solid #ffffff38; border-radius: calc(var(--pt) * 17); background: linear-gradient(180deg, #ffffff1c, #ffffff05 46%, #00000014), #191c19db; box-shadow: inset 0 1px 0 #ffffff33, 0 calc(var(--pt) * 10) calc(var(--pt) * 26) #00000052; -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
.ed-bar { display: flex; justify-content: center; gap: calc(var(--pt) * 30); }
.ed-bar .g { height: calc(var(--pt) * 48); padding: 0 calc(var(--pt) * 14); }
.ed-left, .ed-right { width: calc(var(--pt) * 606); }
.ed-name { justify-content: center; width: calc(var(--pt) * 114); font-weight: 600; }
.ed-flex { flex: 1; }
.seg { display: inline-flex; padding: calc(var(--pt) * 2); border-radius: calc(var(--pt) * 9); background: #ffffff17; }
.seg button { min-width: calc(var(--pt) * 46); height: calc(var(--pt) * 25); padding: 0 calc(var(--pt) * 10); border: 0; border-radius: calc(var(--pt) * 7); color: #eef2ea; background: transparent; font: inherit; cursor: pointer; }
.seg button[aria-pressed="true"] { color: #111410; background: linear-gradient(#fff, #e8ebe6); box-shadow: 0 1px 2px #0005; }
.ed-range { width: calc(var(--pt) * 74); height: calc(var(--pt) * 4); margin: 0; border-radius: 4px; background: linear-gradient(90deg, var(--lime) var(--fill, 100%), #ffffff33 var(--fill, 100%)); -webkit-appearance: none; appearance: none; cursor: pointer; }
.ed-range::-webkit-slider-thumb { width: calc(var(--pt) * 14); height: calc(var(--pt) * 14); min-width: 11px; min-height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0006; -webkit-appearance: none; }
.ed-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.ed-pct { width: calc(var(--pt) * 36); font-variant-numeric: tabular-nums; text-align: right; }
.ed-check { display: inline-flex; align-items: center; gap: calc(var(--pt) * 6); margin-left: calc(var(--pt) * 6); cursor: pointer; white-space: nowrap; }
.ed-check input { position: absolute; opacity: 0; pointer-events: none; }
.ed-check span { width: calc(var(--pt) * 15); height: calc(var(--pt) * 15); border: 1.5px solid #ffffff73; border-radius: calc(var(--pt) * 4); }
.ed-check input:checked + span { border-color: var(--lime); background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.8 8.4l2.6 2.5 5.8-6' fill='none' stroke='%23111410' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 90% no-repeat; }
.tb, .tt { display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--pt) * 6); height: calc(var(--pt) * 29); border: 0; border-radius: calc(var(--pt) * 10); color: #f4f6f1; background: #ffffff1a; font: inherit; cursor: pointer; white-space: nowrap; }
.tb { width: calc(var(--pt) * 36); padding: 0; }
.tt { padding: 0 calc(var(--pt) * 10); }
.tb:hover, .tt:hover { background: #ffffff2e; }
.tb[aria-pressed="true"] { color: #171a10; background: var(--lime); }
.tb:disabled { opacity: .35; cursor: default; }
.tt-apply { color: var(--lime); font-weight: 650; }
.ed-sel { position: absolute; top: calc(var(--pt) * 60); left: 50%; height: calc(var(--pt) * 40); padding: 0 calc(var(--pt) * 6); transform: translateX(-50%); }
.ed-sel[hidden] { display: none; }
.chev { width: calc(var(--pt) * 8); height: calc(var(--pt) * 8); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-25%) rotate(45deg); }
.ed-scope-menu { position: absolute; top: calc(100% + var(--pt) * 6); left: 0; display: grid; min-width: calc(var(--pt) * 290); padding: calc(var(--pt) * 5); border: 1px solid #0000001f; border-radius: calc(var(--pt) * 10); color: #1d1d1f; background: #ececece8; box-shadow: 0 12px 30px #0000004d; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ed-scope-menu[hidden] { display: none; }
.ed-scope-menu button { padding: calc(var(--pt) * 5) calc(var(--pt) * 10); border: 0; border-radius: calc(var(--pt) * 5); color: inherit; background: none; font: inherit; text-align: left; cursor: default; }
.ed-scope-menu button:hover { color: #fff; background: #2f6fe0; }
.ed-layouts { position: absolute; top: calc(var(--pt) * 60); left: 0; display: block; width: calc(var(--pt) * 252); padding: calc(var(--pt) * 13); border-radius: calc(var(--pt) * 16); }
.ed-layouts[hidden], .ed-card[hidden] { display: none; }
.ed-title { margin: 0 0 calc(var(--pt) * 8); color: #f6f8f3; font-weight: 650; }
.ed-layouts ul { display: grid; gap: calc(var(--pt) * 4); margin: 0; padding: 0; list-style: none; }
.ed-layouts li { display: flex; align-items: center; gap: calc(var(--pt) * 6); }
.lrow { display: flex; flex: 1; align-items: center; gap: calc(var(--pt) * 9); height: calc(var(--pt) * 38); padding: 0 calc(var(--pt) * 5); border: 1px solid transparent; border-radius: calc(var(--pt) * 8); color: #f6f8f1; background: none; font: inherit; text-align: left; cursor: pointer; }
.lrow:hover { border-color: #d9ff5c80; background: #ffffff1c; }
.lthumb { flex: none; width: calc(var(--pt) * 40); height: calc(var(--pt) * 25); border-radius: calc(var(--pt) * 4); background: linear-gradient(135deg, #6f86b8, #b57aa8); box-shadow: inset calc(var(--pt) * -12) calc(var(--pt) * -6) 0 #000; }
.lthumb.is-focus { background: #050505; box-shadow: inset 0 0 0 calc(var(--pt) * 5) #050505, inset 0 0 0 calc(var(--pt) * 30) #d9ff5cbb; }
.lmenu input { position: absolute; opacity: 0; pointer-events: none; }
.lmenu span { display: block; width: calc(var(--pt) * 15); height: calc(var(--pt) * 15); border: 1.5px solid #ffffff73; border-radius: calc(var(--pt) * 4); cursor: pointer; }
.lmenu input:checked + span { border-color: var(--lime); background: var(--lime); }
.ed-note { margin: calc(var(--pt) * 8) 0 0; color: #c7ccc3; font-size: calc(var(--pt) * 11); }
.ed-card { position: absolute; top: calc(var(--pt) * 60); left: 50%; display: grid; gap: calc(var(--pt) * 8); width: calc(var(--pt) * 300); padding: calc(var(--pt) * 14); transform: translateX(-50%); }
.ed-card input { height: calc(var(--pt) * 30); padding: 0 calc(var(--pt) * 10); border: 1px solid #ffffff38; border-radius: calc(var(--pt) * 8); color: #fff; background: #ffffff14; font: inherit; }
.ed-card input:focus { border-color: var(--lime); outline: none; }
.ed-card-row { display: flex; justify-content: flex-end; gap: calc(var(--pt) * 6); }
.ed-back { position: absolute; top: calc(var(--pt) * 33); left: 50%; z-index: 130; height: calc(var(--pt) * 32); padding: 0 calc(var(--pt) * 14); border: 1px solid #ffffff38; border-radius: 99px; color: #f4f6f1; background: #191c19db; font: 600 calc(var(--pt) * 13) var(--sys); transform: translateX(-50%); cursor: pointer; }
.ed-back[hidden] { display: none; }
/* Phones: the editor docks at the bottom of the page */
.ed.is-docked { position: fixed; top: auto; right: 6px; bottom: 8px; left: 6px; z-index: 260; width: auto; transform: none; }
.ed.is-docked .ed-bar { flex-wrap: wrap; gap: 6px; }
.ed.is-docked .ed-bar .g { flex: 1 1 auto; width: auto; height: auto; min-height: 40px; padding: 4px 8px; flex-wrap: wrap; }
.ed.is-docked .ed-name { display: none; }
.ed.is-docked .ed-sel, .ed.is-docked .ed-layouts, .ed.is-docked .ed-card { top: auto; bottom: calc(100% + 6px); }
.ed-back.is-docked { position: fixed; top: auto; bottom: 10px; z-index: 260; }

/* Guide: a few words and a key */
.hint { position: fixed; z-index: 280; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 20px); padding: 8px 8px 8px 12px; border: 1px solid #d9ff5c66; border-radius: 14px; color: #f6f8f1; background: #141711f2; box-shadow: 0 14px 36px #000a, 0 0 0 4px #d9ff5c14; font-size: .9rem; font-weight: 620; transform: translateX(-50%); transition: left .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; }
.hint[hidden] { display: none; }
.hint::before { position: absolute; left: var(--ax, 50%); width: 12px; height: 12px; margin-left: -6px; border: 1px solid #d9ff5c66; background: #141711; content: ""; transform: rotate(45deg); }
.hint[data-side="below"]::before { top: -7px; border-right: 0; border-bottom: 0; }
.hint[data-side="above"]::before { bottom: -7px; border-top: 0; border-left: 0; }
.hint[data-side="none"]::before { display: none; }
.hint-n { color: #8d9486; font-size: .74rem; font-variant-numeric: tabular-nums; }
.hint-keys { display: inline-flex; gap: 3px; }
.hint kbd { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border: 1px solid #ffffff40; border-bottom-width: 2px; border-radius: 6px; color: #fff; background: #ffffff14; font: 650 .82rem var(--sys); }
.hint-link { padding: 4px 8px; border: 0; border-radius: 8px; color: var(--lime); background: #d9ff5c14; font: 650 .8rem var(--font); cursor: pointer; }
.hint-link:hover { background: #d9ff5c26; }
.hint-x { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; color: #8d9486; background: none; font-size: 1rem; cursor: pointer; }
.hint-x:hover { color: #fff; background: #ffffff14; }
.hint-end { gap: 12px; padding: 10px 12px 10px 16px; font-size: 1rem; }
.hint-end .button { min-height: 36px; }
.hint-price { padding-left: .55rem; margin-left: .1rem; border-left: 1px solid #171a1033; }

/* Guide cursor and toast */
.ghost { position: fixed; top: 0; left: 0; z-index: 290; width: 20px; height: 30px; margin: -2px 0 0 -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 28'%3E%3Cpath d='M1 1v21l5.5-5 4 9 3.5-1.5-4-8.7h7z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 2px 3px #0007); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ghost.is-on { opacity: 1; }
.ghost::after { position: absolute; top: -10px; left: -10px; width: 22px; height: 22px; border: 2px solid var(--lime); border-radius: 50%; opacity: 0; content: ""; }
.ghost.is-press::after { animation: ghost-press .35s ease-out; }
@keyframes ghost-press { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }
.toast { position: fixed; top: 66px; left: 50%; z-index: 285; max-width: min(520px, 90vw); padding: 9px 16px; border-radius: 12px; color: #f3f5ee; background: #171a14f0; box-shadow: 0 14px 34px #0007; font-size: .9rem; font-weight: 560; text-align: center; opacity: 0; transform: translate(-50%, -8px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .dz-brand span { display: none; }
  .sw-name { display: none; }
}
@media (max-width: 760px) {
  .dz-bar { grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 10px; }
  .dz-switch { justify-content: center; gap: 4px; }
  .sw { gap: 2px; padding: 2px; }
  .sw-dot { width: 24px; height: 24px; font-size: .7rem; }
  .dz-icon { display: none; }
  .dz-right .button { min-height: 34px; padding-inline: .7rem; font-size: .8rem; }
  .hint { font-size: .82rem; }
  .hint-n { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dz-track, .strip, .shade, .tip, .toast, .hint { transition: none; }
}
