/* ApnaPrompt — gallery front page. Mobile first; desktop overrides at the end. */
:root {
	--ap-bg: #0b0b0c;
	--ap-ink: #f5f2ec;
	--ap-ink-2: rgba(245, 242, 236, 0.74);
	--ap-ink-3: rgba(245, 242, 236, 0.5);
	--ap-line: rgba(245, 242, 236, 0.18);
	--ap-glass: rgba(14, 14, 15, 0.6);
	--ap-glass-2: rgba(20, 19, 18, 0.94);
	--ap-gold: #e9d3ad;
	--ap-serif: "Playfair Display", "Times New Roman", serif;
	--ap-sans: "Jost", "Segoe UI", system-ui, sans-serif;
	--ap-ease: cubic-bezier(.22, .8, .24, 1);
	--ap-gutter: 16px;
	--ap-safe-b: env(safe-area-inset-bottom, 0px);
	--ap-safe-t: env(safe-area-inset-top, 0px);
}

html, body.ap-body { margin: 0; height: 100%; background: var(--ap-bg); color: var(--ap-ink); overscroll-behavior: none; overscroll-behavior-x: none; }
body.ap-body { overflow: hidden; font-family: var(--ap-sans); font-weight: 300; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }

.ap { position: fixed; inset: 0; overflow: hidden; overflow: clip; touch-action: none; } /* clip: can't be scrolled by focus */
/* The gallery owns every swipe; only these areas scroll natively. */
.ap-rooms, .ap-index-tabs { touch-action: pan-x; }
.ap-panel-scroll, .ap-index-body { touch-action: pan-y; }
.ap-panel { touch-action: pan-y; }
.ap *, .ap *::before, .ap *::after { box-sizing: border-box; }
.ap button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
.ap h1, .ap h2, .ap h3, .ap p { margin: 0; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#ap-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; transition: opacity .38s ease; }
.is-switching #ap-canvas { opacity: 0; }

.ap-vignette {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .5) 100%),
		linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 16%, transparent 52%, rgba(0, 0, 0, .82) 82%, rgba(0, 0, 0, .9));
}

.ap-eyebrow {
	display: inline-block; font-weight: 400; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ap-ink-3);
}

.ap-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ap-sans); font-size: 21px; font-weight: 500; letter-spacing: .01em; color: var(--ap-ink); text-decoration: none; white-space: nowrap; }
.ap-logo-mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 6px 18px -6px rgba(233, 211, 173, .35); }
@media (max-width: 900px) {
	/* logo, 3D|Grid switch and list button share one row on phones */
	.ap-top .ap-logo { gap: 8px; font-size: 19px; }
	.ap-top .ap-logo-mark { width: 30px; height: 30px; border-radius: 8px; }
	.ap-view a { min-width: 0; padding: 0 12px; }
}
@media (max-width: 380px) {
	.ap-top { gap: 8px; }
	.ap-top .ap-logo { gap: 7px; font-size: 17px; }
	.ap-top .ap-logo-mark { width: 28px; height: 28px; }
	.ap-view a { padding: 0 10px; letter-spacing: .1em; }
}
.ap-logo em { font-family: var(--ap-serif); font-style: italic; font-weight: 400; color: var(--ap-gold); }

/* ---------- loading veil ---------- */
.ap-loader {
	position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 22px;
	background: radial-gradient(70% 50% at 50% 45%, #1a1917, var(--ap-bg));
	transition: opacity .9s var(--ap-ease), visibility 0s linear .9s;
}
.ap-loader .ap-logo { font-size: 34px; }
.ap-loader-bar { display: block; width: 160px; height: 2px; background: rgba(245, 242, 236, .12); overflow: hidden; border-radius: 2px; }
.ap-loader-bar b { display: block; height: 100%; background: var(--ap-gold); transform-origin: left; transform: scaleX(.05); transition: transform .5s var(--ap-ease); }
.ap-loader-label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ap-ink-3); }
.ap:not(.is-loading) .ap-loader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- top bar ---------- */
.ap-top {
	position: absolute; top: 0; left: 0; right: 0; z-index: 5;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	padding: calc(12px + var(--ap-safe-t)) var(--ap-gutter) 0;
}
.ap-rooms {
	order: 3; width: calc(100% + 2 * var(--ap-gutter)); margin: 0 calc(-1 * var(--ap-gutter));
	padding: 2px var(--ap-gutter) 6px;
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ap-rooms::-webkit-scrollbar { display: none; }
.ap-rooms button {
	flex: none; min-height: 40px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--ap-line); background: var(--ap-glass);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-ink-2);
	transition: background .3s, color .3s, border-color .3s;
}
.ap-rooms button[aria-pressed="true"] { background: var(--ap-ink); color: #111; border-color: var(--ap-ink); }
.ap-btn-ghost {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--ap-line); background: var(--ap-glass); color: var(--ap-ink); text-decoration: none;
	font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ap-index-icon { display: grid; grid-template-columns: 5px 5px; gap: 3px; }
.ap-index-icon i { width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 1px; }

/* ---------- 3D / Grid view switch ---------- */
.ap-view {
	position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-left: auto;
	border: 1px solid var(--ap-line); border-radius: 999px; background: var(--ap-glass);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ap-view a {
	position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
	min-width: 52px; height: 36px; padding: 0 14px; border-radius: 999px;
	font: 400 12px/1 var(--ap-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
	color: var(--ap-ink-2); transition: color .3s;
}
.ap-view-thumb {
	position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
	background: var(--ap-ink); transition: transform .32s var(--ap-ease);
}
.ap-view[data-view="grid"] .ap-view-thumb { transform: translateX(100%); }
.ap-view[data-view="3d"] a[data-view="3d"], .ap-view[data-view="grid"] a[data-view="grid"] { color: #111; }

/* ---------- HUD (phone layout) ---------- */
.ap-hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .8s var(--ap-ease) .2s; }
.is-gallery .ap-hud { opacity: 1; }
.ap-hud > * { pointer-events: auto; }

.ap-caption {
	position: absolute; left: 76px; right: 76px;
	bottom: calc(20px + var(--ap-safe-b)); text-align: center;
}
.ap-caption.is-in { animation: ap-cap .7s var(--ap-ease) both; }
@keyframes ap-cap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ap-cap-eyebrow { color: var(--ap-gold); }
.ap-cap-title {
	margin-top: 4px; font-family: var(--ap-serif); font-weight: 400; font-size: 17px; line-height: 1.22;
	text-shadow: 0 2px 20px rgba(0, 0, 0, .7);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ap-cap-actions { display: flex; justify-content: center; margin-top: 10px; }
.ap-cap-actions .ap-btn { margin: 0; }
.ap .ap-cap-get { min-height: 38px; padding: 0 18px; font-size: 11.5px; letter-spacing: .16em; gap: 8px; }
.ap-cap-get span { font-size: 14px; letter-spacing: 0; }
.ap-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px; border-radius: 999px;
	border: 1px solid rgba(245, 242, 236, .45); background: rgba(10, 10, 10, .4);
	font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ap-ink);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	transition: background .3s, color .3s, border-color .3s, transform .2s;
}
.ap-btn:active { transform: scale(.97); }
.ap-btn[hidden] { display: none; }
.ap .ap-btn-solid { background: var(--ap-ink); color: #111; border-color: var(--ap-ink); }
.ap .ap-btn-solid.is-done { background: #9fd3a5; border-color: #9fd3a5; }
.ap-btn-big { width: 100%; min-height: 56px; font-size: 14px; }

/* end of a hall: room buttons "printed" on the closing wall */
.ap-caption.is-end { visibility: hidden; }
.ap-endwall {
	position: absolute; z-index: 4; transform: translate(-50%, -50%); width: min(92vw, 520px);
	text-align: center; opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .6s var(--ap-ease), visibility 0s linear .6s;
}
.is-at-end .ap-endwall { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .8s var(--ap-ease) .1s; }
.ap-endwall-label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: rgba(28, 27, 26, .62); }
.ap-endwall-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.ap-endwall-btns button {
	min-height: 42px; padding: 0 20px; border-radius: 999px;
	border: 1.5px solid #1c1b1a; background: rgba(255, 252, 246, .35); color: #1c1b1a;
	font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
	transition: background .3s, color .3s, transform .2s;
}
.ap-endwall-btns button:active { transform: scale(.96); }
.ap-endwall-btns button:hover, .ap-endwall-btns button.is-solid { background: #1c1b1a; color: var(--ap-ink); }
.ap-nav {
	position: absolute; left: var(--ap-gutter); right: var(--ap-gutter); bottom: calc(26px + var(--ap-safe-b));
	display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.ap-nav > * { pointer-events: auto; }
.ap-arrow {
	width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid rgba(245, 242, 236, .4); background: var(--ap-glass);
	display: grid; place-items: center;
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	transition: background .3s, color .3s, opacity .3s, transform .2s;
}
.ap-arrow:active:not(:disabled) { transform: scale(.94); background: var(--ap-ink); color: #111; }
.ap-arrow svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ap-arrow:disabled { opacity: .28; cursor: default; }
.ap-count { display: none; } /* phones: position is in the caption eyebrow */
.ap-count b { font-weight: 400; color: var(--ap-ink); }

.ap-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(245, 242, 236, .08); }
.ap-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--ap-gold), var(--ap-ink)); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ap-ease); }

.ap-hint {
	position: absolute; left: 50%; top: calc(118px + var(--ap-safe-t)); transform: translateX(-50%);
	padding: 9px 16px; border-radius: 999px; background: rgba(0, 0, 0, .55);
	font-size: 13px; color: var(--ap-ink); white-space: nowrap; pointer-events: none;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	transition: opacity .6s; animation: ap-hint 1.8s ease-in-out 1.2s 3;
}
.ap-hint-desk { display: none; }
.ap-hint-hand { display: inline-block; margin-right: 4px; color: var(--ap-gold); }
.ap-hint kbd { font-family: var(--ap-sans); font-size: 11px; padding: 1px 6px; border: 1px solid var(--ap-line); border-radius: 4px; }
@keyframes ap-hint { 50% { transform: translateX(calc(-50% + 10px)); } }
.has-moved .ap-hint { opacity: 0; }

/* ---------- details: bottom sheet on phones ---------- */
.ap-panel {
	position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 88vh; height: 88dvh;
	display: flex; flex-direction: column;
	background: var(--ap-glass-2); border-top: 1px solid var(--ap-line); border-radius: 20px 20px 0 0;
	backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
	transform: translateY(102%); transition: transform .5s var(--ap-ease); visibility: hidden;
	box-shadow: 0 -30px 60px rgba(0, 0, 0, .5);
}
.is-panel .ap-panel { transform: none; visibility: visible; }
.ap-panel-grip { width: 44px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: rgba(245, 242, 236, .28); flex: none; }
.ap-panel-close {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ap-line); background: rgba(0, 0, 0, .35);
	display: grid; place-items: center;
}
.ap-panel-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.ap-panel-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 24px; -webkit-overflow-scrolling: touch; }
.ap-panel-fig { margin: 0 auto 20px; width: 62%; max-width: 300px; border: 6px solid #141414; outline: 1px solid rgba(255, 255, 255, .06); background: #e9e6df; padding: 6px; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .8); }
.ap-panel-fig img { display: block; width: 100%; height: auto; }
.ap-panel-eyebrow { color: var(--ap-gold); }
.ap-panel-title { margin-top: 8px; font-family: var(--ap-serif); font-weight: 400; font-size: 25px; line-height: 1.18; }
.ap-panel-body { margin-top: 20px; }
.ap-panel-h { font-weight: 400; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ap-ink-3); margin: 0 0 10px; }
.ap-prompt {
	white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.7;
	padding: 16px 18px; border: 1px solid var(--ap-line); border-radius: 10px; background: rgba(0, 0, 0, .3);
	user-select: text; -webkit-user-select: text;
}
.ap-panel-desc { font-size: 15px; line-height: 1.7; color: var(--ap-ink-2); }
.ap-steps { margin: 18px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.65; color: var(--ap-ink-2); }
.ap-steps li + li { margin-top: 6px; }
.ap-steps b { color: var(--ap-ink); font-weight: 500; }
.ap-qr { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 12px; border: 1px solid var(--ap-line); border-radius: 10px; }
.ap-qr img { width: 96px; height: 96px; background: #fff; border-radius: 4px; padding: 5px; }
.ap-qr span { font-size: 13px; color: var(--ap-ink-2); line-height: 1.5; }
.ap-pagelink { display: inline-flex; gap: 8px; margin-top: 22px; padding-bottom: 3px; color: var(--ap-gold); text-decoration: none; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid rgba(233, 211, 173, .4); }
.ap-panel-actions { flex: none; padding: 12px 20px calc(12px + var(--ap-safe-b)); border-top: 1px solid var(--ap-line); background: rgba(14, 14, 13, .96); }
.ap-panel-actions:empty { display: none; }

/* ---------- prompt list ---------- */
.ap-index {
	position: absolute; inset: 0; z-index: 8; background: rgba(10, 10, 11, .97);
	opacity: 0; visibility: hidden; transition: opacity .4s var(--ap-ease), visibility 0s linear .4s;
	display: flex; flex-direction: column;
}
.is-index .ap-index { opacity: 1; visibility: visible; transition: opacity .4s var(--ap-ease); }
.ap-index-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: calc(18px + var(--ap-safe-t)) var(--ap-gutter) 14px; border-bottom: 1px solid var(--ap-line); }
.ap-index-head > div { min-width: 0; flex: 1; }
.ap-index-head h2 { margin-top: 6px; font-family: var(--ap-serif); font-weight: 400; font-size: 26px; }
.ap-index-head .ap-panel-close { position: static; flex: none; }
.ap-index-tabs { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; margin-right: -60px; padding-right: 60px; }
.ap-index-tabs::-webkit-scrollbar { display: none; }
.ap-index-tabs button { flex: none; min-height: 38px; border: 1px solid var(--ap-line); background: transparent; border-radius: 999px; padding: 0 15px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ap-ink-2); }
.ap-index-tabs button span { font-size: 11px; letter-spacing: 0; color: var(--ap-ink-3); margin-left: 4px; }
.ap-index-tabs button[aria-selected="true"] { background: var(--ap-ink); color: #111; border-color: var(--ap-ink); }
.ap-index-tabs button[aria-selected="true"] span { color: rgba(0, 0, 0, .5); }
.ap-index-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--ap-gutter) 24px; -webkit-overflow-scrolling: touch; }
.ap-index-room { padding-top: 24px; }
.ap-index-room[hidden] { display: none; }
.ap-index-room h3 { font-family: var(--ap-serif); font-weight: 400; font-size: 22px; display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ap-index-room h3 span { font-family: var(--ap-sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ap-gold); }
.ap-index-room h3 a { color: inherit; text-decoration: none; }
.ap-index-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
.ap-index-grid a { display: block; color: inherit; text-decoration: none; }
.ap-index-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 4px; background: #1a1a1a; }
.ap-idx-title { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; font-weight: 400; }
.ap-idx-text { display: none; }
.ap-index-page { flex: none; display: block; padding: 16px var(--ap-gutter) calc(16px + var(--ap-safe-b)); border-top: 1px solid var(--ap-line); text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-gold); text-decoration: none; }
.no-webgl .ap-index { background: var(--ap-bg); }

/* ---------- toast ---------- */
.ap-toast {
	position: absolute; z-index: 9; left: 50%; top: calc(16px + var(--ap-safe-t));
	transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
	padding: 13px 20px; border-radius: 999px; background: var(--ap-ink); color: #111; font-size: 14px; font-weight: 400;
	transition: opacity .35s, transform .35s var(--ap-ease); white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.ap-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

:is(.ap button, .ap a):focus-visible { outline: 2px solid var(--ap-gold); outline-offset: 3px; }

/* ---------- tablet / desktop ---------- */
@media (min-width: 901px) {
	:root { --ap-gutter: clamp(24px, 3.6vw, 52px); }
	.ap-top { flex-wrap: nowrap; padding-top: calc(18px + var(--ap-safe-t)); }
	.ap-logo { font-size: 22px; }
	.ap-rooms { order: 0; width: auto; margin: 0; padding: 4px; gap: 4px; border: 1px solid var(--ap-line); border-radius: 999px; background: var(--ap-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
	.ap-rooms button { min-height: 34px; padding: 0 16px; border: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.ap-rooms button:hover { color: var(--ap-ink); }
	.ap-rooms button[aria-pressed="true"]:hover { color: #111; }
	.ap-btn-ghost:hover { border-color: rgba(245, 242, 236, .5); }

	.ap-vignette { background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%), linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 18%, transparent 70%, rgba(0, 0, 0, .6)); }
	.ap-caption { left: var(--ap-gutter); right: auto; bottom: calc(40px + var(--ap-safe-b)); max-width: min(460px, 40vw); text-align: left; }
	.ap-cap-title { -webkit-line-clamp: 3; }
	.ap-cap-title { font-size: clamp(24px, 2.1vw, 32px); margin-top: 10px; }
	.ap-cap-actions { justify-content: flex-start; margin-top: 18px; }
	.ap-cap-main { flex: none; }
	.ap-btn { min-height: 46px; font-size: 12px; letter-spacing: .16em; }
	.ap-btn:hover { background: var(--ap-ink); color: #111; }
	.ap .ap-btn-solid:hover { background: var(--ap-gold); border-color: var(--ap-gold); }
	.ap-nav { left: auto; right: var(--ap-gutter); bottom: calc(40px + var(--ap-safe-b)); gap: 16px; }
	.ap-arrow { width: 50px; height: 50px; }
	.ap-arrow svg { width: 20px; height: 20px; }
	.ap-count { position: static; display: flex; gap: 8px; font-size: 13px; letter-spacing: .18em; color: var(--ap-ink-3); }
	.ap .ap-cap-get { min-height: 44px; padding: 0 24px; font-size: 12px; }
	.ap-arrow:hover:not(:disabled) { background: var(--ap-ink); color: #111; }
	.ap-hint { top: auto; bottom: calc(14px + var(--ap-safe-b)); background: none; color: var(--ap-ink-3); font-size: 12px; animation: none; }
	.ap-hint-desk { display: inline; }
	.ap-hint-touch { display: none; }
	.is-panel .ap-caption { visibility: hidden; }

	.ap-panel {
		top: 0; left: auto; right: 0; bottom: 0; height: auto; width: min(480px, 40vw);
		border-top: 0; border-left: 1px solid var(--ap-line); border-radius: 0; box-shadow: none;
		transform: translateX(102%); transition: transform .7s var(--ap-ease);
	}
	.ap-panel-grip { display: none; }
	.ap-panel-close { top: calc(18px + var(--ap-safe-t)); right: 20px; }
	.ap-panel-close:hover { background: var(--ap-ink); color: #111; }
	.ap-panel-scroll { padding: 80px 40px 32px; }
	.ap-panel-fig { width: 100%; max-width: none; }
	.ap-panel-title { font-size: 30px; }
	.ap-panel-actions { padding: 18px 40px 22px; }

	.ap-index-head { padding: calc(28px + var(--ap-safe-t)) var(--ap-gutter) 20px; align-items: flex-end; }
	.ap-index-head h2 { font-size: clamp(28px, 3.2vw, 42px); }
	.ap-index-tabs { margin-right: 0; padding-right: 0; flex-wrap: wrap; }
	.ap-index-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
	.ap-idx-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--ap-ink-3); }
	.ap-index-grid a:hover img { filter: brightness(1.08); }
}

@media (prefers-reduced-motion: reduce) {
	.ap *, .ap *::before, .ap *::after { animation-duration: .01ms !important; transition-duration: .15s !important; }
}
