/* Pluto 0.12: the booklet reader at <domain>/boo/{code}. One dark reading room; the pages bring their own colours. */
@font-face { font-family: "LINE Seed TH"; font-weight: 400; font-display: swap; src: url("/assets/admin/fonts/LINESeedSansTH_W_Rg.woff2") format("woff2"); }
@font-face { font-family: "LINE Seed TH"; font-weight: 700; font-display: swap; src: url("/assets/admin/fonts/LINESeedSansTH_W_Bd.woff2") format("woff2"); }
@font-face { font-family: "LINE Seed TH"; font-weight: 800; font-display: swap; src: url("/assets/admin/fonts/LINESeedSansTH_W_XBd.woff2") format("woff2"); }
:root {
	--bk-ink: #f1eaff; --bk-mute: #c4b8d8; --bk-line: #3a3150; --bk-panel: rgba(13, 10, 20, .78); --bk-accent: #f6c177;
	--sk-font-display: "LINE Seed TH", system-ui, sans-serif; --sk-font-body: "LINE Seed TH", system-ui, sans-serif; --primary: #6b4a33;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.bk-body { margin: 0; background: radial-gradient(120% 90% at 50% 0%, #2a2140 0%, #15111f 60%, #0d0a14 100%) fixed; color: var(--bk-ink); font: 400 15px/1.5 "LINE Seed TH", system-ui, sans-serif; }
.bk { display: flex; flex-direction: column; height: 100%; min-height: 100dvh; }
.bk-bar, .bk-foot { display: flex; align-items: center; gap: 10px; padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right)); background: var(--bk-panel); }
.bk-bar { border-bottom: 1px solid #2a2338; padding-top: max(10px, env(safe-area-inset-top)); }
.bk-foot { border-top: 1px solid #2a2338; flex-wrap: wrap; }
.bk-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-title h1 { margin: 0; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-title span { font-size: 12px; color: var(--bk-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-btn { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--bk-line); background: rgba(255, 255, 255, .05); color: var(--bk-ink); cursor: pointer; padding: 0 8px; text-decoration: none; font: inherit; }
.bk-btn:disabled { opacity: .35; cursor: default; }
.bk-btn svg, .bk-zone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-btn:focus-visible, .bk-zone:focus-visible, .bk-strip button:focus-visible, .bk-stage:focus-visible { outline: 3px solid var(--bk-accent); outline-offset: 2px; }
.bk-num { font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; min-width: 4.5em; text-align: center; }
.bk-gap { flex: 1; }
.bk-foot input[type=range] { width: min(240px, 30vw); accent-color: var(--bk-accent); }
.bk-stage { position: relative; flex: 1; min-height: 300px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.bk-stage.is-zoomed { cursor: move; }
.bk-pos { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }
.bk-spread { position: relative; display: flex; perspective: 2600px; }
.bk-side { position: relative; width: var(--pw); height: var(--ph); }
.bk-side.is-empty > .bk-pg { visibility: hidden; }
.bk-side::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14%; pointer-events: none; }
.bk-side.bk-l::after { right: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .16)); }
.bk-side.bk-r::after { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent); }
.bk-side.is-single::after { display: none; }
.bk-shadow { position: absolute; inset: 6px -8px -14px; background: rgba(0, 0, 0, .5); filter: blur(16px); border-radius: 10px; z-index: -1; }
.bk-pg { position: absolute; inset: 0; overflow: hidden; background-size: cover; background-position: center; container: ksl / inline-size; color: #2b2118; font-family: var(--sk-font-body); }
.bk-l > .bk-pg { border-radius: 4px 0 0 4px; } .bk-r > .bk-pg { border-radius: 0 4px 4px 0; } .is-single > .bk-pg { border-radius: 4px; }
.bk-pg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.bk-layers { position: absolute; inset: 0; }
.bk-layers .cms-layer-image img { display: block; width: 100%; height: auto; }
.bk-layers .cms-layer-video .cms-layer-inner { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; }
.bk-layers .cms-layer-video-frame, .bk-layers .cms-layer-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.bk-layers .kx-cd b { min-width: 1.6em; padding: 0 .2em; border-radius: .25em; background: rgba(0, 0, 0, .78); color: #fff; text-align: center; }
.bk-link { position: absolute; z-index: 2; border-radius: 4px; }
.bk-link:hover, .bk-link:focus-visible { background: rgba(246, 193, 119, .22); outline: 2px solid var(--bk-accent); }
.bk-leaf { position: absolute; top: 0; width: var(--pw); height: var(--ph); transform-style: preserve-3d; transition: transform .75s cubic-bezier(.45, .05, .3, 1); z-index: 5; }
.bk-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.bk-face.bk-back { transform: rotateY(180deg); }
.bk-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .2), transparent 30%); pointer-events: none; }
.bk-zone { position: absolute; top: 0; bottom: 0; width: 14%; z-index: 6; display: grid; place-items: center; background: transparent; border: 0; color: transparent; cursor: pointer; }
.bk-zone:hover, .bk-zone:focus-visible { color: rgba(255, 255, 255, .8); }
.bk-zone-l { left: 0; } .bk-zone-r { right: 0; }
.bk-zone svg { width: 34px; height: 34px; }
.bk-stage.is-zoomed .bk-zone { display: none; }
.bk-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-size: 12px; background: rgba(13, 10, 20, .82); border-radius: 999px; padding: 3px 12px; white-space: nowrap; pointer-events: none; }
.bk-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 14px; background: var(--bk-panel); scrollbar-width: thin; }
.bk-strip button { flex: none; border: 2px solid transparent; border-radius: 4px; padding: 0; background: transparent; color: var(--bk-mute); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font: 11px/1 ui-monospace, monospace; }
.bk-strip button[aria-current="true"] { border-color: var(--bk-accent); color: var(--bk-ink); }
.bk-strip .bk-thumb { position: relative; height: 62px; width: calc(62px * var(--ratio)); overflow: hidden; border-radius: 2px; }
.bk-strip .bk-thumb .bk-pg { inset: 0; }
.bk-brand { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(96px, calc(env(safe-area-inset-bottom) + 96px)); font-size: 12px; color: var(--bk-mute); background: var(--bk-panel); border-radius: 999px; padding: 3px 10px; text-decoration: none; z-index: 8; }
@media (max-width: 600px) {
	.bk-foot input[type=range] { display: none; }
	.bk-strip { display: none; }
	.bk-brand { bottom: max(70px, calc(env(safe-area-inset-bottom) + 70px)); }
}
@media (prefers-reduced-motion: reduce) { .bk-leaf { transition: none; } }
/* 0.16 (board 15): "report" sits opposite the brand */
.bk-brand.bk-report { right: auto; left: max(12px, env(safe-area-inset-left)); }

/* 0.19 (W5): saving is off — pages are backgrounds, no selecting, no long-press menu; a short note says why */
.bk-stage, .bk-strip, .bk-pg { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.bk .bk-img { position: absolute; inset: 0; background: center / contain no-repeat; pointer-events: none; }
.bk .bk-pg .bk-wm { position: absolute; right: 2%; bottom: 1.5%; z-index: 2; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .72); color: #3b3550; font: 700 clamp(8px, 1.6vw, 11px)/1.4 system-ui, sans-serif; letter-spacing: .02em; pointer-events: none; }
/* 0.31 (B2): where (left / right corner, the middle) and how strong (light · medium · strong) */
.bk .bk-pg .bk-wm-left { right: auto; left: 2%; }
.bk .bk-pg .bk-wm-center { right: auto; left: 50%; bottom: 50%; translate: -50% 50%; font-size: clamp(11px, 2.6vw, 18px); }
.bk .bk-pg .bk-wm-light { opacity: .45; }
.bk .bk-pg .bk-wm-mid { opacity: .75; }
.bk .bk-pg .bk-wm-strong { opacity: 1; background: rgba(255, 255, 255, .9); color: #1d1830; }
/* 0.31 (B9): the owner's preview */
.bk .bk-pv-tag { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #ffd84d; color: #241c00; font-size: 11.5px; font-style: normal; font-weight: 800; vertical-align: 3px; }
.bk-toast { position: fixed; z-index: 20; left: 50%; bottom: 96px; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 10px 16px; border-radius: 12px; background: rgba(20, 17, 31, .94); color: #fff; font-size: 14px; text-align: center; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.33, 1, .68, 1); }
.bk-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .bk-toast { transition: none; } }
/* the owner's words under the reader, in the flow (they no longer sit over the controls) */
.bk-credit { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0; padding: 4px 14px max(8px, env(safe-area-inset-bottom)); background: var(--bk-panel); color: var(--bk-mute); font-size: 12px; }
.bk-credit a { display: inline-flex; align-items: center; min-height: 32px; color: var(--bk-mute); text-decoration: none; }
.bk-credit a:hover { color: var(--bk-ink); text-decoration: underline; }
.bk-credit a:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 2px; border-radius: 4px; }/* 0.28 (K1): the owner turned "ปิดการบันทึกรูป" off — pages are real pictures; a long press offers to save them */
.bk-can-save .bk-pg, .bk-can-save .bk-pg > img { -webkit-touch-callout: default; }

/* 0.29 (M3, board Booklet29Reader): the reader's bars in the member area's navy; the ☰ menu; the bottom bar as five
   cells (pages · space · fit · space · zoom); the reading area 44 px taller (no line of links under it). */
body.bk-body { background: #12162e; }
.bk-bar { gap: 8px; padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 12px max(14px, env(safe-area-inset-left)); background: #0a0d22; border-bottom: 1px solid #1d2350; position: relative; }
.bk-title h1 { font-size: 18px; font-weight: 700; }
.bk-title span { font-size: 13px; color: #a9b1d6; }
.bk-btn { min-width: 44px; height: 44px; border-radius: 12px; border: 0; background: #141a3f; box-shadow: inset 0 0 0 1px #2e376f; color: #f1f3ff; }
.bk-btn svg { width: 20px; height: 20px; }
.bk-btn:disabled { opacity: .4; cursor: default; }
.bk-menu-btn[aria-expanded="true"] { background: #eef0ff; color: #0b1024; box-shadow: none; }
.bk-menu { position: absolute; right: 12px; top: 66px; z-index: 30; width: 250px; padding: 6px; border-radius: 16px; background: #141a3f; box-shadow: inset 0 0 0 1px #3a4690, 0 20px 40px -10px #000; }
.bk-menu[hidden] { display: none; }
.bk-menu [role="menuitem"] { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 10px; color: #f1f3ff; font-size: 15px; font-weight: 600; text-decoration: none; }
.bk-menu [role="menuitem"]:hover, .bk-menu [role="menuitem"]:focus-visible { background: #1d2554; outline: none; }
.bk-menu [role="menuitem"]:focus-visible { box-shadow: inset 0 0 0 2px var(--bk-accent); }
.bk-menu [role="menuitem"] svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-menu [role="menuitem"] small { margin-left: auto; color: #a9b1d6; font-size: 12px; font-weight: 400; }
.bk-menu-sep { display: block; height: 1px; margin: 6px 8px; background: #2e376f; }
.bk-menu .bk-menu-brand { color: #c7cdff; font-size: 13px; }
.bk-menu .bk-menu-brand svg { width: 22px; height: 22px; stroke-width: 2.2; }
.bk-stage { background: #12162e; }
.bk-hint { bottom: 10px; padding: 3px 12px; background: rgba(10, 13, 34, .82); color: #c7cdff; font-size: 13px; }
.bk-hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .bk-hint-touch { display: block; } .bk-hint-mouse { display: none; } }
.bk-foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 6px; flex-wrap: nowrap; padding: 10px 12px max(14px, calc(env(safe-area-inset-bottom) + 10px)); background: #0a0d22; border-top: 1px solid #1d2350; }
.bk-grp { display: inline-flex; align-items: center; gap: 4px; }
.bk-btn.bk-sq { min-width: 40px; width: 40px; height: 44px; padding: 0; }
.bk-foot .bk-num { min-width: 46px; font-size: 14px; font-weight: 700; }
.bk-fit { width: 58px; height: 50px; min-width: 58px; border-radius: 14px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; font-size: 11px; font-weight: 700; line-height: 1; }
.bk-fit svg { width: 20px; height: 20px; }
.bk-fit[aria-disabled="true"] { color: #7c86b8; cursor: default; }
.bk-fit.is-on { background: #ffd84d; color: #141008; box-shadow: none; }
.bk-strip { background: #0a0d22; }
@media (max-width: 380px) { .bk-foot { gap: 2px; padding-left: 8px; padding-right: 8px; } .bk-foot .bk-num { min-width: 40px; font-size: 13px; } }

/* 0.31 (B7): a page laid out with elements — laid out 360 wide, scaled to the page (--z, booklet.js) */
.bk .bk-pg .bk-els { position: absolute; inset: 0; min-height: 0; overflow: hidden; background: transparent; }
.bk .bk-pg .bk-els-in { display: flex; width: 360px; flex-direction: column; gap: 12px; padding: 22px 18px; transform-origin: 0 0; scale: var(--z, 1); }
.bk-els .st-el { animation: none; opacity: 1; }
.bk-els .bk-badge { display: flex; margin: 0; }
.bk-els .bk-al-left { justify-content: flex-start; } .bk-els .bk-al-center { justify-content: center; } .bk-els .bk-al-right { justify-content: flex-end; }
.bk-els .bk-badge span { padding: 4px 12px; border-radius: 999px; background: var(--b); color: var(--on); font-size: 13px; font-weight: 800; }
.bk-els .bk-menu-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bk-els .bk-menu-list li { display: flex; align-items: center; gap: 10px; }
.bk-els .bk-menu-list img { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; }
.bk-els .bk-mi { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.bk-els .bk-mi-row { display: flex; align-items: baseline; gap: 6px; }
.bk-els .bk-mi-row b { font-size: 15px; font-weight: 700; }
.bk-els .bk-mi-row i { flex: 1; min-width: 12px; }
.bk-els .is-dots .bk-mi-row i { border-bottom: 2px dotted currentColor; opacity: .35; translate: 0 -4px; }
.bk-els .bk-mi-p { font-weight: 800; white-space: nowrap; }
.bk-els .bk-mi small { color: var(--muted); font-size: 12.5px; }
.bk-els .bk-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.bk-els .bk-qr svg { display: block; border-radius: 8px; }
.bk-els .bk-qr-s svg { width: 96px; } .bk-els .bk-qr-m svg { width: 140px; } .bk-els .bk-qr-l svg { width: 200px; }
.bk-els .bk-qr figcaption { font-size: 12.5px; color: var(--muted); }

/* 0.35 (A6): a card's wishes as notes in a wish booklet (laid out 360 wide like every booklet element) */
.bk-notes { display: grid; gap: 14px 12px; margin: 6px 0; padding: 6px 4px 0; list-style: none; }
.bk-notes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-notes-1 { grid-template-columns: minmax(0, 1fr); }
.bk-note { position: relative; box-sizing: border-box; padding: 14px 12px 10px; border-radius: 10px; background: var(--p, #fff); color: var(--on, #2a2622); box-shadow: 0 2px 8px rgba(60, 40, 20, .12); text-align: left; }
.bk-note.is-wide { grid-column: 1 / -1; }
.bk-notes.is-tilt .bk-note:nth-child(2n+1) { transform: rotate(-1.5deg); }
.bk-notes.is-tilt .bk-note:nth-child(2n) { transform: rotate(1.5deg); }
.bk-note p { margin: 0; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.bk-note b { display: block; margin-top: 6px; font-size: 11.5px; opacity: .8; }
.bk-note small { display: block; margin-top: 4px; font-size: 11px; color: #b2475e; }
.bk-note-st { position: absolute; top: -10px; right: -4px; font-size: 20px; line-height: 1; }
