/* Chrome modelled on a modern design tool's light theme (UI3-style). */
:root {
  --f-bg: #FFFFFF;
  --f-canvas: #F5F5F5;
  --f-ink: rgba(0, 0, 0, .9);
  --f-ink-2: rgba(0, 0, 0, .5);
  --f-ink-3: rgba(0, 0, 0, .3);
  --f-line: #E6E6E6;
  --f-hover: #F5F5F5;
  --f-field: #F5F5F5;
  --f-blue: #0D99FF;
  --f-sel: #E5F4FF;
  --f-purple: #9747FF;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --ui: 'Inter', system-ui, -apple-system, sans-serif;
  --brand: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --z-board: 1; --z-tool: 10; --z-drag: 40; --z-confetti: 50;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--f-canvas);
  color: var(--f-ink);
  font: 400 11px/16px var(--ui);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--f-blue); outline-offset: 1px; }

.app { display: flex; height: 100dvh; }

/* ---------- side panels ---------- */
.panel { width: 240px; flex: none; display: flex; flex-direction: column; background: var(--f-bg); min-height: 0; }
.panel.left { box-shadow: inset -1px 0 0 var(--f-line); }
.panel.right { box-shadow: inset 1px 0 0 var(--f-line); }

.file { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; }
.app-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; }
.app-mark svg { width: 24px; height: 24px; display: block; }
.file-text { display: flex; flex-direction: column; min-width: 0; }
.file-name { display: flex; align-items: center; gap: 2px; font-weight: 600; font-size: 12px; min-width: 0; }
.file-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.file-name > span.bump { animation: bump .3s var(--ease-out); }
@keyframes bump { from { transform: translateY(4px); opacity: 0; filter: blur(2px); } }
.file-name svg { flex: none; width: 12px; height: 12px; color: var(--f-ink-2); }
.file-proj { color: var(--f-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fileMeta:not(:empty)::before { content: '· '; }

.ptabs { display: flex; gap: 14px; padding: 4px 14px 10px; box-shadow: inset 0 -1px 0 var(--f-line); color: var(--f-ink-2); }
.ptabs .on { color: var(--f-ink); font-weight: 600; }
.psec { padding: 8px 0; box-shadow: inset 0 -1px 0 var(--f-line); }
.psec.grow { flex: 1; overflow-y: auto; box-shadow: none; }
.psec-head { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 12px 0 14px; font-weight: 600; }
.psec-head svg { width: 12px; height: 12px; color: var(--f-ink-2); }
.pages { list-style: none; margin: 0; padding: 0 8px; }
.pages li { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 26px; border-radius: 5px; color: var(--f-ink); position: relative; }
.pages li.on { font-weight: 500; }
.pages li svg { position: absolute; left: 8px; width: 12px; height: 12px; }

.layer-list { list-style: none; margin: 0; padding: 0 8px; }
.layer {
  display: flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 8px 0 calc(8px + var(--d, 0) * 16px);
  border-radius: 5px; cursor: default;
  white-space: nowrap; overflow: hidden;
  transition: background-color .3s ease;
}
@media (hover: hover) and (pointer: fine) { .layer:hover { box-shadow: inset 0 0 0 1px var(--f-blue); } }
.layer svg { flex: none; width: 12px; height: 12px; color: var(--f-ink-2); }
.layer.component, .layer.component svg { color: var(--f-purple); }
.layer .ln { overflow: hidden; text-overflow: ellipsis; }
.layer.top { font-weight: 600; }
.layer.sel { background: var(--f-sel); }
.layer.sel.top, .layer.child-of-sel { background: rgba(13, 153, 255, .06); }
.layer.sel { background: var(--f-sel) !important; }
.layer.added { animation: added .4s var(--ease-out); }
@keyframes added { from { opacity: 0; transform: translateX(-6px); } }

.rtop { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; }
.people { display: flex; flex: 1; padding-left: 4px; }
.face {
  display: grid; place-items: center; width: 24px; height: 24px; margin-left: -4px;
  border-radius: 50%; background: var(--c); color: #fff;
  font: 600 10px/1 var(--ui);
  box-shadow: 0 0 0 2px var(--f-bg);
}
.play { display: grid; place-items: center; width: 24px; height: 24px; color: var(--f-ink); }
.play svg { width: 12px; height: 12px; }
.share { height: 24px; padding: 0 10px; border: 0; border-radius: 5px; background: var(--f-blue); color: #fff; font-weight: 600; cursor: pointer; transition: transform .14s var(--ease-out); }
.share:active { transform: scale(.97); }
.rtabs { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 12px 0 14px; box-shadow: inset 0 -1px 0 var(--f-line); color: var(--f-ink-2); }
.rtabs .on { color: var(--f-ink); font-weight: 600; }
.zoom { margin-left: auto; color: var(--f-ink); font-variant-numeric: tabular-nums; }

.props { flex: 1; overflow-y: auto; }
.pp-head { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; font-weight: 600; box-shadow: inset 0 -1px 0 var(--f-line); }
.pp-head svg { width: 12px; height: 12px; color: var(--f-ink-2); }
.pp-head.component, .pp-head.component svg { color: var(--f-purple); }
.pp-sec { padding: 10px 14px 12px; box-shadow: inset 0 -1px 0 var(--f-line); }
.pp-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font-weight: 600; }
.pp-title svg { width: 12px; height: 12px; color: var(--f-ink-2); }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fld { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px; border-radius: 5px; background: var(--f-field); font-variant-numeric: tabular-nums; min-width: 0; }
.fld i { font-style: normal; color: var(--f-ink-2); flex: none; }
.fld span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fld.changed span { animation: changed .9s var(--ease-out); }
@keyframes changed { 0% { color: var(--f-blue); } 100% { color: inherit; } }
.fill { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px; border-radius: 5px; background: var(--f-field); }
.fill b { flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: background-color .5s var(--ease-out); }
.fill span { flex: 1; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.fill em { font-style: normal; color: var(--f-ink-2); }

/* ---------- canvas + board ---------- */
.canvas { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--f-canvas); }
.board {
  --z: .6;
  position: absolute; left: 0; top: 0; width: 1280px; height: 1440px;
  transform-origin: 0 0;
  z-index: var(--z-board);
}
.frame-label { position: absolute; left: 0; top: 0; height: 40px; display: flex; align-items: flex-end; padding-bottom: calc(5px / var(--z)); font: 400 calc(11px / var(--z))/1 var(--ui); color: var(--f-ink-2); cursor: default; white-space: nowrap; }
.frame-label.sel { color: var(--f-blue); }
.frame { position: absolute; left: 0; top: 40px; width: 1280px; height: 800px; overflow: hidden; background: #fff; box-shadow: 0 0 0 calc(1px / var(--z)) rgba(0, 0, 0, .04); }
.frame.shake { animation: shake .42s var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-8px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
.frame.target { box-shadow: 0 0 0 calc(2px / var(--z)) var(--f-blue); }

.section {
  position: absolute; left: 0; top: 920px; width: 1280px; height: 520px;
  border-radius: calc(2px / var(--z));
  background: #FFFFFF;
  box-shadow: 0 0 0 calc(1px / var(--z)) rgba(0, 0, 0, .12);
}
.section-title {
  position: absolute; left: 0; top: calc(-8px / var(--z)); transform: translateY(-100%);
  margin: 0; padding: calc(3px / var(--z)) calc(7px / var(--z));
  border-radius: calc(5px / var(--z));
  background: #fff; box-shadow: 0 0 0 calc(1px / var(--z)) rgba(0, 0, 0, .12);
  font: 500 calc(11px / var(--z))/1.3 var(--ui); color: var(--f-ink);
  white-space: nowrap;
}
.notes { list-style: none; margin: 0; padding: 50px 90px; display: grid; grid-template-columns: repeat(5, 200px); gap: 20px 25px; }

.note {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  width: 200px; height: 200px; padding: 17px 17px 15px; border: 0; text-align: left;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 8px 16px -8px rgba(0, 0, 0, .2);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .18s var(--ease-out), box-shadow .2s var(--ease-out), opacity .2s ease;
}
.note-text { font: 500 20px/1.25 var(--ui); letter-spacing: -.012em; color: rgba(0, 0, 0, .86); text-wrap: pretty; }
.note-from { display: flex; align-items: center; gap: 8px; font: 500 14px/1 var(--ui); color: rgba(0, 0, 0, .5); }
.note-from b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; font: 600 12px/1 var(--ui); }
.note.revert { background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .1), 0 8px 16px -8px rgba(0, 0, 0, .15); }
@media (hover: hover) and (pointer: fine) { .note:not(.dragging):hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 16px 26px -12px rgba(0, 0, 0, .28); } }
.note:not(.dragging):active { transform: scale(.98); }
.note.locked { opacity: .45; pointer-events: none; }
.note.dragging { z-index: var(--z-drag); cursor: grabbing; transition: box-shadow .2s var(--ease-out); box-shadow: 0 4px 8px rgba(0, 0, 0, .08), 0 30px 50px -18px rgba(0, 0, 0, .4); }
.note.used { opacity: 0; transform: scale(.94); pointer-events: none; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
.note.back { animation: back .4s var(--spring); }
@keyframes back { from { opacity: 0; transform: scale(.9); } }

/* selection */
.selbox { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; box-shadow: 0 0 0 calc(1px / var(--z)) var(--f-blue); opacity: 0; }
.selbox.on { opacity: 1; }
.selbox .h { position: absolute; width: calc(7px / var(--z)); height: calc(7px / var(--z)); margin: calc(-3.5px / var(--z)); background: #fff; box-shadow: 0 0 0 calc(1px / var(--z)) var(--f-blue); }
.selbox .tl { left: 0; top: 0; } .selbox .tr { right: 0; top: 0; margin-right: calc(-3.5px / var(--z)); margin-left: 0; }
.selbox .bl { left: 0; bottom: 0; margin-bottom: calc(-3.5px / var(--z)); margin-top: 0; } .selbox .br { right: 0; bottom: 0; margin: 0 calc(-3.5px / var(--z)) calc(-3.5px / var(--z)) 0; }
.sel-size {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, calc(7px / var(--z)));
  padding: calc(2px / var(--z)) calc(5px / var(--z)); border-radius: calc(3px / var(--z));
  background: var(--f-blue); color: #fff; font: 500 calc(11px / var(--z))/1.3 var(--ui); white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* comment pins */
.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; width: 0; height: 0; pointer-events: auto; }
.pin-head {
  position: absolute; left: 0; bottom: 0;
  display: grid; place-items: center; width: calc(28px / var(--z)); height: calc(28px / var(--z));
  border-radius: 50% 50% 50% 0;
  background: var(--c); color: #fff;
  font: 600 calc(11px / var(--z))/1 var(--ui);
  box-shadow: 0 0 0 calc(2px / var(--z)) #fff, 0 calc(3px / var(--z)) calc(10px / var(--z)) rgba(0, 0, 0, .25);
  transform-origin: 0 100%;
  cursor: pointer; border: 0; padding: 0;
  animation: pinIn .36s var(--spring) both;
}
@keyframes pinIn { from { transform: scale(.6); opacity: 0; } }
.pin.out .pin-head { animation: pinOut .18s var(--ease-out) forwards; }
@keyframes pinOut { to { transform: scale(.85); opacity: 0; } }
.pin-bubble {
  position: absolute; left: calc(36px / var(--z)); bottom: 0; width: calc(236px / var(--z));
  padding: calc(10px / var(--z)) calc(12px / var(--z)); border-radius: calc(10px / var(--z));
  background: #fff; color: var(--f-ink);
  box-shadow: 0 0 0 calc(1px / var(--z)) rgba(0, 0, 0, .08), 0 calc(10px / var(--z)) calc(24px / var(--z)) rgba(0, 0, 0, .18);
  font: 400 calc(12px / var(--z))/1.4 var(--ui);
  opacity: 0; transform: translateX(calc(-4px / var(--z))) scale(.97); transform-origin: 0 100%;
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out);
  pointer-events: none;
}
.pin-bubble b { display: block; margin-bottom: calc(3px / var(--z)); font-weight: 600; }
.pin-bubble b span { color: var(--f-ink-2); font-weight: 400; }
.pin:hover .pin-bubble, .pin:focus-within .pin-bubble, .pin.peek .pin-bubble { opacity: 1; transform: none; }
.pin:hover, .pin:focus-within, .pin.peek { z-index: 2; }
.meant { display: block; margin-top: calc(8px / var(--z)); padding-top: calc(8px / var(--z)); box-shadow: inset 0 calc(1px / var(--z)) 0 rgba(0, 0, 0, .08); color: var(--f-ink); }
.meant i { display: block; margin-bottom: calc(2px / var(--z)); font-style: normal; font-weight: 500; color: #2F8F5B; }
.pin.flip .pin-bubble { left: auto; right: calc(8px / var(--z)); transform-origin: 100% 100%; }

/* a collaborator's cursor */
.cursor { position: absolute; left: 0; top: 0; pointer-events: none; animation: wander 16s var(--ease-in-out) infinite; }
.cursor svg { display: block; width: calc(17px / var(--z)); height: calc(17px / var(--z)); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.cursor span {
  position: absolute; left: calc(13px / var(--z)); top: calc(15px / var(--z));
  padding: calc(2px / var(--z)) calc(6px / var(--z)); border-radius: calc(4px / var(--z)) calc(10px / var(--z)) calc(10px / var(--z)) calc(10px / var(--z));
  background: #2A5B4D; color: #fff; font: 500 calc(11px / var(--z))/1.3 var(--ui); white-space: nowrap;
}
@keyframes wander {
  0%, 8% { transform: translate(980px, 1180px); }
  22%, 30% { transform: translate(560px, 1035px); }
  45%, 55% { transform: translate(1040px, 480px); }
  70%, 78% { transform: translate(300px, 1300px); }
  100% { transform: translate(980px, 1180px); }
}

/* floating toolbar */
.toolbar {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: var(--z-tool);
  display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 13px; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .08), 0 8px 24px -8px rgba(0, 0, 0, .12);
}
.tool { display: grid; place-items: center; width: 32px; height: 32px; border: 0; padding: 0; border-radius: 8px; background: transparent; color: var(--f-ink); }
.tool svg { width: 16px; height: 16px; }
.tool.on { background: var(--f-blue); color: #fff; }
button.tool { cursor: pointer; transition: background-color .15s ease, transform .14s var(--ease-out); }
button.tool:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { button.tool:hover { background: var(--f-hover); } }
.tsep { width: 1px; height: 20px; margin: 0 4px; background: var(--f-line); }
#sound .off, #sound[aria-pressed="false"] .on { display: none; }
#sound[aria-pressed="false"] .off { display: block; }

.tray { display: none; }

/* toast */
.toast {
  position: absolute; left: 50%; bottom: 64px; z-index: var(--z-tool);
  padding: 9px 14px; border-radius: 8px;
  background: #2C2C2C; color: #fff; font: 500 11.5px/1.3 var(--ui); white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  opacity: 0; transform: translate(-50%, 6px); pointer-events: none;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); transition-duration: .24s; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: var(--z-confetti); }

/* ---------- the product page (1280 × 800 inside the frame) ---------- */
.site {
  --page: #F8F4ED; --ink: #1C1915; --ink-2: rgba(28, 25, 21, .66); --ink-3: rgba(28, 25, 21, .44);
  --line: rgba(28, 25, 21, .13); --accent: #B23A2E; --soft: #EFE8DC; --tint: 0;
  --serif: 'Young Serif', Georgia, serif; --kn: 'Noto Serif Kannada', serif;
  position: absolute; left: 0; top: 0; width: 1280px; height: 800px;
  transform-origin: 0 0;
  background: var(--page); color: var(--ink);
  font: 400 15px/1.5 var(--brand);
  font-variation-settings: 'wdth' 96;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--ease-out), color .6s var(--ease-out);
}
.site.blue { --page: #EEF2FF; --ink: #10226B; --ink-2: rgba(16, 34, 107, .66); --ink-3: rgba(16, 34, 107, .44); --line: rgba(16, 34, 107, .16); --accent: #2F5BFF; --soft: #DCE4FF; --tint: 1; }
.el {
  --tx: 0px; --ty: 0px; --s: 1; --r: 0deg; --o: 1;
  transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(var(--s));
  opacity: var(--o);
  transition: transform .8s var(--spring), opacity .4s var(--ease-out);
}
.site * { transition-property: background-color, color, border-color, fill, transform, opacity; transition-duration: .6s; transition-timing-function: var(--ease-out); }
.site .el { transition: transform .8s var(--spring), opacity .4s var(--ease-out), background-color .6s var(--ease-out), color .6s var(--ease-out); }

.p-bar { position: absolute; left: 0; right: 0; top: 0; height: 32px; display: grid; place-items: center; background: var(--ink); color: var(--page); font-size: 12px; letter-spacing: .01em; }

.p-nav { position: absolute; left: 48px; right: 48px; top: 32px; height: 76px; display: flex; align-items: center; justify-content: space-between; box-shadow: inset 0 -1px 0 var(--line); }
.p-logo { display: flex; align-items: center; gap: 12px; transform-origin: 0 50%; position: relative; z-index: 3; }
.lg-word { font: 400 31px/1 var(--serif); letter-spacing: -.035em; padding-bottom: 3px; }
.lg-kn { padding-left: 12px; box-shadow: inset 1px 0 0 currentColor; font: 600 14px/1.6 var(--kn); }
.p-links { position: absolute; left: 50%; transform-origin: 50% 50%; margin-left: -218px; display: flex; gap: 32px; font-size: 14px; color: var(--ink-2); }
.p-links .on { color: var(--ink); }
.p-tools { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.p-tools svg { width: 19px; height: 19px; }
.cart { display: flex; align-items: center; gap: 7px; }
.cart b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; }

.p-crumbs { position: absolute; left: 48px; top: 122px; margin: 0; font-size: 12.5px; color: var(--ink-3); }
.p-crumbs i { font-style: normal; margin: 0 7px; }
.p-crumbs b { font-weight: 400; color: var(--ink-2); }

.p-main { position: absolute; left: 48px; right: 48px; top: 154px; bottom: 30px; }
.p-thumbs { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 10px; width: 64px; }
.p-thumbs span { display: block; height: 80px; border-radius: 3px; overflow: hidden; background: var(--soft); opacity: .78; }
.p-thumbs span.on { opacity: 1; box-shadow: 0 0 0 1.5px var(--page), 0 0 0 2.5px var(--ink); }
.p-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-photo { position: absolute; left: 82px; top: 0; width: 566px; height: 616px; border-radius: 4px; overflow: hidden; background: #E9DCC8; }
.p-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }
.p-photo::after { content: ''; position: absolute; inset: 0; background: #3157FF; mix-blend-mode: color; opacity: var(--tint); transition: opacity .6s var(--ease-out); pointer-events: none; }
.p-flag { position: absolute; left: 16px; top: 16px; padding: 6px 10px; border-radius: 3px; background: var(--page); font-size: 12px; font-weight: 500; }

/* buy box */
.p-buy { position: absolute; left: 700px; right: 0; top: 0; display: flex; flex-direction: column; align-items: stretch; }
.p-meta { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.p-title { margin: 0 0 12px; font: 400 54px/.98 var(--serif); letter-spacing: -.03em; }
.p-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13.5px; }
.sub-title { color: var(--ink-2); font-size: 15px; }
.p-rating .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); margin: 0 2px; }
.p-rating .stars svg { width: 72px; height: 14.4px; display: block; fill: var(--accent); }
.dim { color: var(--ink-3); }
.p-desc { margin: 0 0 20px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 50ch; text-wrap: pretty; }
.p-specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 20px; box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.p-specs div { padding: 10px 0 11px; }
.p-specs div:nth-child(n+4) { box-shadow: inset 0 1px 0 var(--line); }
.p-specs dt { margin: 0 0 3px; font-size: 12px; color: var(--ink-3); }
.p-specs dd { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; }
.roast { display: flex; gap: 3px; }
.roast i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-3); }
.roast i.on { background: var(--accent); box-shadow: none; }
.p-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.opt-row { display: flex; align-items: center; gap: 14px; }
.opt-label { width: 40px; font-size: 13px; color: var(--ink-2); }
.seg { display: flex; gap: 6px; }
.seg b { padding: 8px 13px; border-radius: 6px; font-weight: 500; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.seg b.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.p-buyrow { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.p-price { margin: 0; display: flex; flex-direction: column; flex: none; }
.p-price b { font: 600 28px/1 var(--brand); font-variation-settings: 'wdth' 92; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p-price span { margin-top: 5px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.p-cta { flex: 1; display: grid; place-items: center; height: 54px; border-radius: 8px; background: var(--ink); color: var(--page); font-size: 15px; font-weight: 600; letter-spacing: .005em; }
.p-sub { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13.5px; }
.p-sub .box { flex: none; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: var(--ink); color: var(--page); }
.p-sub .box svg { width: 11px; height: 11px; }
.p-ship { margin: 0; font-size: 12.5px; color: var(--ink-3); }



/* ---------- joke states ---------- */
.site.premium {
  --page: #11100E; --ink: #E3C88E; --ink-2: rgba(227, 200, 142, .72); --ink-3: rgba(227, 200, 142, .5);
  --line: rgba(227, 200, 142, .22); --accent: #E3C88E; --soft: #1D1B18;
}
.site.premium, .site.premium * { font-family: 'Young Serif', Georgia, serif !important; }
.site.premium .p-title { text-transform: uppercase; letter-spacing: .09em; font-size: 40px; }
.site.premium .lg-word { letter-spacing: .14em; }
.site.premium .p-links, .site.premium .p-meta, .site.premium .p-bar { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.site.premium .p-cta { background: linear-gradient(180deg, #F0D9A6, #C9A35E); color: #11100E; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.site.premium .p-photo img { filter: grayscale(.55) contrast(1.15) brightness(.82) sepia(.15); transition: filter .6s var(--ease-out); }
.site.premium .p-flag { background: #11100E; color: #E3C88E; }

.site.fun { --page: #FFF3C4; --ink: #1C1915; --accent: #FF4FA3; --soft: #FFE1EF; --line: rgba(28, 25, 21, .2); }
.site.fun, .site.fun * { font-family: 'Comic Sans MS', 'Comic Neue', 'Chalkboard SE', cursive !important; }
.site.fun .el { animation: boing .62s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -.11s); }
.site.fun .p-cta { background: #FF4FA3; color: #fff; }
.site.fun .p-bar { background: #2BB673; }
.site.fun .seg b.on { box-shadow: inset 0 0 0 2px #FF4FA3; }
@keyframes boing { from { translate: 0 0; rotate: -1.5deg; } to { translate: 0 -9px; rotate: 1.5deg; } }

.site.know .p-title, .site.know .lg-word, .site.know .p-price b { font-family: var(--rf) !important; }
.site.know .p-photo img { filter: hue-rotate(var(--hue, 0deg)) saturate(1.3); }
.site.know, .site.know * { transition-duration: .2s !important; }
.site.know .el { transition: transform .8s var(--spring), opacity .4s var(--ease-out) !important; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) { .panel.left { display: none; } }
@media (max-width: 820px) {
  body { overflow: auto; height: auto; }
  .app { flex-direction: column; height: auto; }
  .panel.right { display: none; }
  .canvas { height: calc((100vw - 28px) * .625 + 64px); flex: none; }
  .toolbar { display: none; }
  .section { display: none; }
  .cursor { display: none; }
  .tray { display: block; padding: 18px 14px 28px; background: #fff; box-shadow: inset 0 1px 0 var(--f-line); }
  .tray .notes { padding: 0; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
  .tray .note { width: 100%; height: auto; aspect-ratio: 1; padding: 10px; border-radius: 5px; }
  .tray .note-text { font-size: 13px; line-height: 1.25; }
  .tray .note-from { font-size: 11px; }
  .tray .note-from b { width: 18px; height: 18px; font-size: 9px; }
  .tray-title { margin: 0 0 12px; font: 600 12px/1 var(--ui); }
}

@media (prefers-reduced-motion: reduce) {
  .el, .note, .site * { transition-duration: .01s !important; }
  .file-name > span.bump, .frame.shake, .pin-head, .layer.added, .note.back, .cursor, .site.fun .el { animation: none !important; }
  .cursor { transform: translate(980px, 1180px); }
}
