/**
 * Plugin Showcase — front-end styles.
 *
 * Everything is scoped to .pls-showcase so themes cannot leak in and the
 * mockup cannot leak out. Sizing comes from the inline custom properties
 * printed by the shortcode: --pls-max-w, --pls-h, --pls-card-min, --pls-accent.
 */

.pls-showcase {
	--pls-accent: #3ddc97;
	--pls-accent-ink: #06281a;
	--pls-bg: #14161a;
	--pls-panel: #1b1e24;
	--pls-panel-2: #21252c;
	--pls-hover: #262b33;
	--pls-text: #d6dae1;
	--pls-strong: #f4f6f8;
	--pls-muted: #8b93a1;
	--pls-border: #2c313a;
	--pls-border-soft: #232830;
	--pls-tick: #454d5c;
	--pls-chip: #232830;
	--pls-dots: rgba(255, 255, 255, 0.05);
	--pls-bezel-a: #3a3d44;
	--pls-bezel-b: #101114;
	--pls-glass: rgba(255, 255, 255, 0.06);
	--pls-font: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	max-width: var(--pls-max-w, 1180px);
	margin: 0 auto;
	color: var(--pls-text);
	font-family: var(--pls-font);
	font-size: 13px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------------- fonts
   Everything inside the showcase inherits from here, including the elements
   pinned to `inherit` further down, so one variable swaps the whole mockup. */

/* The system UI stack, as used by Email Showcase. */
.pls-showcase.pls-font-system {
	--pls-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 13.5px;
}

/* Whatever the page is set in, as Website Showcase does — the mockup then
   reads as part of the site rather than as a terminal. */
.pls-showcase.pls-font-theme {
	--pls-font: inherit;
	font-size: 13.5px;
}

.pls-showcase.pls-theme-light {
	--pls-accent: #12855a;
	--pls-accent-ink: #ffffff;
	--pls-bg: #f4f6f8;
	--pls-panel: #ffffff;
	--pls-panel-2: #eef1f5;
	--pls-hover: #e7ebf0;
	--pls-text: #3d444d;
	--pls-strong: #14171b;
	--pls-muted: #6b7280;
	--pls-border: #d7dce3;
	--pls-border-soft: #e4e8ed;
	--pls-tick: #b6bec9;
	--pls-chip: #eef1f5;
	--pls-dots: rgba(0, 0, 0, 0.06);
	--pls-bezel-a: #e2e4e8;
	--pls-bezel-b: #a9adb4;
	--pls-glass: rgba(0, 0, 0, 0.05);
}

.pls-showcase.pls-orient-portrait {
	max-width: min(var(--pls-max-w, 1180px), 820px);
}

.pls-showcase *,
.pls-showcase *::before,
.pls-showcase *::after {
	box-sizing: border-box;
}

.pls-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------ theme reset
   Themes style every button, link and input on the page — pill shapes, black
   hover fills, display fonts, underlines. None of that belongs inside a device
   mockup, so controls are reset hard here and the few backgrounds the mockup
   actually wants are re-applied further down.

   The selectors are wrapped in :where() on purpose: !important beats anything a
   theme declares without it, while the zero specificity lets the mockup's own
   single-class rules further down win on source order. Without that, this block
   would strip the padding off its own buttons. */

.pls-showcase :where(button, input, a) {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-style: normal !important;
	line-height: inherit !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-shadow: none !important;
	color: inherit;
	/* Themes pad their buttons generously. Inside a 30px icon button that
	   padding squeezes the SVG to zero width, so it goes too. The margin is
	   just as important: a theme's `input[type="search"] { margin: 0 0 20px }`
	   is enough to lift the search box off the centre of the app bar, because a
	   flex item is centred by its margin box, not its border box. */
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	min-width: 0;
	min-height: 0;
	-webkit-appearance: none;
	appearance: none;
}

/* Themes set a display font on headings by element, which beats inheritance —
   a card title would come out in the theme's sans while everything around it
   stayed monospace. Pinning the family to `inherit` sends it back up the tree
   to the monospace stack declared on .pls-showcase. */
.pls-showcase :where(h1, h2, h3, h4, h5, h6, p, span, div, ul, ol, li, dl, dt, dd, strong, em, small, time) {
	font-family: inherit !important;
}

/* Display headings are a theme favourite; card and sheet titles set their own
   size and weight below, but the casing has to be pinned here. */
.pls-showcase h3 {
	text-transform: none !important;
	letter-spacing: normal !important;
	font-style: normal !important;
}

.pls-showcase :where(button, a)::before,
.pls-showcase :where(button, a)::after {
	content: none !important;
}

.pls-showcase :where(button, a):hover,
.pls-showcase :where(button, a):focus,
.pls-showcase :where(button, a):active {
	background: none !important;
	border-color: transparent !important;
	box-shadow: none !important;
	transform: none !important;
}

/* Same story for text elements: theme margins on `p`, `ul` or a heading push
   the mockup's own spacing around. :where() keeps this beatable by the single
   class rules below, which carry !important where they need to win. */
.pls-showcase :where(ul, ol, li, dl, dd, dt, p, h1, h2, h3, h4, h5, h6) {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.pls-showcase [hidden] {
	display: none !important;
}

/* Icons never shrink, whatever a theme does to the box around them. */
.pls-showcase .pls-icon {
	flex: 0 0 auto;
}

.pls-showcase :focus-visible {
	outline: 2px solid var(--pls-accent);
	outline-offset: 2px;
}

.pls-empty-notice {
	padding: 14px 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	color: #50575e;
	background: #fff;
}

/* ------------------------------------------------------------ iPad frame */

.pls-device {
	position: relative;
}

.pls-device-ipad .pls-device {
	padding: 16px;
	background:
		linear-gradient(155deg, var(--pls-bezel-a), var(--pls-bezel-b) 55%, var(--pls-bezel-a));
	border-radius: 42px;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.08) inset,
		0 1px 0 rgba(255, 255, 255, 0.18) inset,
		0 34px 70px -26px rgba(0, 0, 0, 0.7);
}

/* The black glass under the screen, so the bezel reads as one piece. */
.pls-device-ipad .pls-device::before {
	content: "";
	position: absolute;
	inset: 8px;
	background: #0b0c0e;
	border-radius: 34px;
}

/* Front camera. Landscape iPads wear it on the long edge. */
.pls-device-ipad .pls-device::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 7px;
	width: 5px;
	height: 5px;
	background: #4b5058;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
	transform: translateY(-50%);
}

.pls-device-ipad.pls-orient-portrait .pls-device::after {
	top: 7px;
	left: 50%;
	transform: translateX(-50%);
}

.pls-screen {
	position: relative;
	overflow: hidden;
	background: var(--pls-bg);
	border-radius: 10px;
}

.pls-device-ipad .pls-screen {
	border-radius: 26px;
}

.pls-device-none .pls-screen {
	border: 1px solid var(--pls-border);
	border-radius: 16px;
}

.pls-homebar {
	position: absolute;
	bottom: 7px;
	left: 50%;
	z-index: 3;
	width: 128px;
	height: 4px;
	background: currentColor;
	border-radius: 4px;
	opacity: 0.35;
	transform: translateX(-50%);
	pointer-events: none;
}

/* ------------------------------------------------------------- app shell */

.pls-app {
	display: flex;
	flex-direction: column;
	height: var(--pls-h, 760px);
	max-height: 86vh;
	background:
		radial-gradient(circle at 1px 1px, var(--pls-dots) 1px, transparent 0) 0 0 / 22px 22px,
		var(--pls-bg);
}

/* ------------------------------------------------------------ status bar */

.pls-statusbar {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	padding: 7px 20px 3px;
	font-size: 11px;
	font-weight: 700;
	color: var(--pls-muted);
	letter-spacing: 0.02em;
}

.pls-status-app {
	margin: 0 auto;
	color: var(--pls-strong);
	opacity: 0.75;
}

.pls-status-icons {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.pls-statusbar .pls-icon {
	width: 15px;
	height: 15px;
}

/* --------------------------------------------------------------- app bar */

.pls-appbar {
	display: flex;
	flex: 0 0 auto;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px 10px;
}

.pls-titles {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pls-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--pls-strong);
	letter-spacing: -0.01em;
}

.pls-subtitle {
	font-size: 11.5px;
	color: var(--pls-muted);
}

.pls-appbar-actions {
	display: flex;
	flex: 0 1 auto;
	gap: 10px;
	align-items: center;
	min-width: 0;
}

.pls-icon-btn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--pls-muted);
	cursor: pointer;
	background: var(--pls-panel) !important;
	border: 1px solid var(--pls-border) !important;
	border-radius: 9px !important;
	transition: color 0.15s, border-color 0.15s;
}

.pls-icon-btn:hover {
	color: var(--pls-strong);
	background: var(--pls-hover) !important;
	border-color: var(--pls-border) !important;
}

.pls-icon-btn .pls-icon {
	width: 16px;
	height: 16px;
}

.pls-theme-toggle .pls-icon-moon,
.pls-theme-light .pls-theme-toggle .pls-icon-sun {
	display: none;
}

.pls-theme-light .pls-theme-toggle .pls-icon-moon {
	display: block;
}

.pls-search {
	position: relative;
	display: flex;
	flex: 1 1 240px;
	gap: 8px;
	align-items: center;
	max-width: 280px;
	height: 34px;
	padding: 0 12px;
	background: var(--pls-panel);
	border: 1px solid var(--pls-border);
	border-radius: 10px;
}

.pls-search .pls-icon {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	color: var(--pls-muted);
}

/* Two classes so it also beats theme rules like `.site-content input`: themes
   set a height and a line-height on inputs, and either one pushes the text off
   the centre of the box — or stretches the box past the rest of the app bar. */
.pls-showcase .pls-search-input {
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: normal !important;
	color: var(--pls-text) !important;
	background: transparent !important;
	border: 0 !important;
	outline: none;
	box-shadow: none !important;
}

.pls-search-input::placeholder {
	color: var(--pls-muted);
	opacity: 1;
}

.pls-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.pls-search:focus-within {
	border-color: var(--pls-accent);
}

/* ---------------------------------------------------------- filter tabs */

.pls-filters {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 2px;
	align-self: flex-start;
	max-width: calc(100% - 40px);
	margin: 0 20px 12px;
	padding: 4px;
	background: var(--pls-panel);
	border: 1px solid var(--pls-border);
	border-radius: 12px !important;
}

.pls-filter {
	padding: 6px 14px !important;
	font-size: 12px !important;
	color: var(--pls-muted);
	white-space: nowrap;
	cursor: pointer;
	border-radius: 9px !important;
	transition: color 0.15s, background-color 0.15s;
}

.pls-filter:hover {
	color: var(--pls-strong);
	background: var(--pls-hover) !important;
}

.pls-filter.is-active {
	color: var(--pls-strong);
	background: var(--pls-panel-2) !important;
	box-shadow: 0 0 0 1px var(--pls-border) inset !important;
}

/* ---------------------------------------------------------------- grid */

.pls-grid-wrap {
	flex: 1 1 auto;
	min-height: 0;
	padding: 0 20px 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--pls-border) transparent;
}

.pls-grid-wrap::-webkit-scrollbar {
	width: 10px;
}

.pls-grid-wrap::-webkit-scrollbar-thumb {
	background: var(--pls-border);
	border: 3px solid transparent;
	border-radius: 10px;
	background-clip: content-box;
}

/* No align-items here on purpose: cards stretch, so every card in a row ends
   on the same line and the footer rules line up across the grid. */
.pls-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--pls-card-min, 280px), 1fr));
	gap: 16px;
}

.pls-no-results {
	padding: 40px 0 !important;
	color: var(--pls-muted);
	text-align: center;
}

/* ------------------------------------------------------- sideways paging
   Applied only once showcase.js has chunked the cards into .pls-page
   wrappers — without scripting the grid stays a plain vertical scroller. */

.pls-grid.is-paged {
	display: flex;
	align-items: stretch;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pls-grid.is-paged::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.pls-showcase.is-paged .pls-grid-wrap {
	padding-bottom: 4px;
	overflow: hidden;
}

.pls-page {
	display: grid;
	flex: 0 0 100%;
	grid-template-columns: repeat(auto-fill, minmax(var(--pls-card-min, 280px), 1fr));
	/* Cards keep their natural height and the page fills from the top: a page
	   is a chunk of the grid, not a stretched-out layout of its own. Rows still
	   line up with each other because every card in a row shares a track. */
	grid-auto-rows: min-content;
	align-content: start;
	gap: 16px;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	scrollbar-width: none;
}

.pls-page::-webkit-scrollbar {
	display: none;
	width: 0;
}

/* ---------------------------------------------------------- liquid dots */

.pls-pager {
	display: flex;
	flex: 0 0 auto;
	justify-content: center;
	padding: 12px 20px 2px;
}

.pls-dots {
	--pls-dot-size: 8px;
	--pls-dot-gap: 13px;

	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 18px;
}

/* No SVG goo filter here on purpose: a compositor-promoted child inside a
   filtered element renders as an opaque black box in Chrome. The liquid read
   comes from the blob stretching far enough to bridge the gap instead. */
.pls-dots-goo {
	position: relative;
	display: flex;
	gap: var(--pls-dot-gap);
	align-items: center;
	pointer-events: none;
}

.pls-dot-bg {
	display: block;
	flex: none;
	width: var(--pls-dot-size);
	height: var(--pls-dot-size);
	background: var(--pls-border);
	border-radius: 50%;
}

.pls-dot-blob {
	position: absolute;
	top: 50%;
	left: 0;
	width: var(--pls-dot-size);
	height: var(--pls-dot-size);
	margin-top: calc(var(--pls-dot-size) / -2);
	background: var(--pls-accent);
	border-radius: 50%;
	transform-origin: 50% 50%;
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

/* Unfiltered hit targets sit on top so focus rings stay crisp. */
.pls-dots-hit {
	position: absolute;
	inset: 0;
	display: flex;
	gap: var(--pls-dot-gap);
	align-items: center;
}

.pls-showcase .pls-page-dot {
	position: relative;
	display: block;
	flex: none;
	width: var(--pls-dot-size);
	height: var(--pls-dot-size);
	cursor: pointer;
	background: none !important;
	border-radius: 50% !important;
}

/* Comfortable tap target without disturbing the dot rhythm. */
.pls-showcase .pls-page-dot::before {
	content: "";
	position: absolute;
	inset: -8px calc(var(--pls-dot-gap) / -2);
}

.pls-showcase .pls-page-dot:focus-visible {
	outline: 2px solid var(--pls-accent);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.pls-grid.is-paged {
		scroll-behavior: auto;
	}

	.pls-dot-blob {
		transition-duration: 1ms;
	}
}

/* ---------------------------------------------------------------- card */

.pls-card-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	padding: 16px;
	background: var(--pls-panel);
	border: 1px solid var(--pls-border-soft);
	border-radius: 14px;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

/* Corner brackets — the little dashes in the top two corners. */
.pls-card-inner::before,
.pls-card-inner::after {
	content: "";
	position: absolute;
	top: -1px;
	width: 16px;
	height: 16px;
	border-top: 2px solid var(--pls-tick);
	transition: border-color 0.15s;
}

.pls-card-inner::before {
	left: -1px;
	border-left: 2px solid var(--pls-tick);
	border-top-left-radius: 14px;
}

.pls-card-inner::after {
	right: -1px;
	border-right: 2px solid var(--pls-tick);
	border-top-right-radius: 14px;
}

.pls-has-detail .pls-card-inner {
	cursor: pointer;
}

.pls-card-inner:hover,
.pls-card.is-open .pls-card-inner {
	border-color: var(--pls-border);
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -22px rgba(0, 0, 0, 0.9);
}

.pls-card-inner:hover::before,
.pls-card-inner:hover::after {
	border-color: var(--pls-accent);
}

/* Corner badge. */
.pls-badge {
	position: absolute;
	top: -1px;
	right: -1px;
	z-index: 2;
	display: inline-flex;
	gap: 5px;
	align-items: center;
	padding: 4px 9px;
	font-size: 9.5px;
	font-weight: 700;
	color: #06263f;
	letter-spacing: 0.06em;
	background: #4fa8ea;
	border-radius: 0 14px 0 10px;
}

.pls-badge .pls-icon {
	width: 12px;
	height: 12px;
	stroke-width: 1.4;
}

.pls-card-head {
	display: flex;
	gap: 11px;
	align-items: center;
	min-width: 0;
	padding-right: 8px;
}

.pls-avatar {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	color: var(--pls-accent-ink);
	letter-spacing: 0.02em;
	background: var(--pls-av, var(--pls-accent));
	border-radius: 11px;
}

.pls-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pls-card-heading {
	min-width: 0;
}

.pls-name {
	overflow: hidden;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--pls-strong);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pls-open {
	max-width: 100%;
	overflow: hidden;
	color: inherit;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
}

.pls-open:hover {
	color: var(--pls-accent);
}

.pls-status {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	margin-top: 3px;
	font-size: 10.5px;
	font-weight: 700;
	color: var(--pls-muted);
	letter-spacing: 0.08em;
}

.pls-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	background: var(--pls-dot, var(--pls-muted));
	border-radius: 50%;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pls-dot, #888) 22%, transparent);
}

.pls-version {
	color: var(--pls-muted);
	opacity: 0.7;
}

.pls-summary {
	font-size: 12.5px;
	color: var(--pls-text);
}

.pls-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pls-tag {
	padding: 3px 8px !important;
	font-size: 10.5px;
	color: var(--pls-muted);
	background: var(--pls-chip);
	border: 1px solid var(--pls-border-soft);
	border-radius: 6px;
}

.pls-card-foot {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px dashed var(--pls-border-soft);
}

.pls-progress {
	display: inline-flex;
	gap: 4px;
	align-items: center;
}

.pls-block {
	width: 9px;
	height: 5px;
	background: var(--pls-border);
	border-radius: 2px;
}

.pls-block.is-on {
	background: var(--pls-accent);
}

.pls-actions {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	margin-left: auto;
}

.pls-btn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--pls-muted);
	cursor: pointer;
	background: var(--pls-panel-2) !important;
	border: 1px solid var(--pls-border-soft) !important;
	border-radius: 8px !important;
	transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.pls-btn:hover {
	color: var(--pls-strong);
	background: var(--pls-hover) !important;
	border-color: var(--pls-border) !important;
}

.pls-btn .pls-icon {
	width: 15px;
	height: 15px;
}

.pls-btn-wporg {
	color: #4fa8ea;
	border-color: rgba(79, 168, 234, 0.35) !important;
}

.pls-btn.is-primary {
	color: var(--pls-accent-ink);
	background: var(--pls-accent) !important;
	border-color: var(--pls-accent) !important;
}

.pls-btn.is-primary:hover {
	color: var(--pls-accent-ink);
	background: var(--pls-accent) !important;
	filter: brightness(1.1);
}

/* -------------------------------------------------------------- footer */

.pls-footer {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-items: center;
	justify-content: space-between;
	padding: 9px 20px 16px;
	font-size: 10.5px;
	color: var(--pls-muted);
	letter-spacing: 0.04em;
	border-top: 1px solid var(--pls-border-soft);
}

.pls-legend {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.pls-legend-item {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

/* --------------------------------------------------------- detail sheet */

.pls-sheet {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
}

.pls-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 8, 11, 0.6);
	backdrop-filter: blur(2px);
	animation: pls-fade 0.18s ease-out;
}

.pls-sheet-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(440px, 88%);
	background: var(--pls-panel);
	border-left: 1px solid var(--pls-border);
	box-shadow: -24px 0 50px -30px rgba(0, 0, 0, 0.9);
	animation: pls-slide 0.22s ease-out;
}

@keyframes pls-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes pls-slide {
	from { transform: translateX(20px); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.pls-sheet-backdrop,
	.pls-sheet-panel {
		animation: none;
	}

	.pls-card-inner {
		transition: none;
	}
}

.pls-sheet-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--pls-strong);
	cursor: pointer;
	background: var(--pls-panel-2) !important;
	border: 1px solid var(--pls-border) !important;
	border-radius: 8px !important;
}

.pls-sheet-close .pls-icon {
	width: 15px;
	height: 15px;
}

.pls-sheet-body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 18px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--pls-border) transparent;
}

.pls-detail {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pls-detail-shot {
	overflow: hidden;
	border: 1px solid var(--pls-border-soft);
	border-radius: 12px;
}

.pls-detail-shot img {
	display: block;
	width: 100%;
	height: auto;
}

.pls-detail-name {
	font-size: 17px !important;
	font-weight: 700 !important;
	color: var(--pls-strong);
}

.pls-detail-head .pls-status {
	margin-top: 5px;
}

.pls-detail-summary {
	font-size: 13px;
	color: var(--pls-text);
}

.pls-detail-body {
	font-size: 12.5px;
	color: var(--pls-muted);
}

.pls-detail-body p {
	margin: 0 0 10px !important;
}

.pls-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}

.pls-fact {
	padding: 9px 11px;
	background: var(--pls-panel-2);
	border: 1px solid var(--pls-border-soft);
	border-radius: 9px;
}

.pls-fact dt {
	font-size: 10px;
	color: var(--pls-muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pls-fact dd {
	margin-top: 2px !important;
	font-size: 12.5px;
	color: var(--pls-strong);
}

.pls-detail-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 4px;
}

.pls-detail-link {
	display: inline-flex;
	gap: 7px;
	align-items: center;
	padding: 8px 12px !important;
	font-size: 12px !important;
	color: var(--pls-text);
	cursor: pointer;
	background: var(--pls-panel-2) !important;
	border: 1px solid var(--pls-border) !important;
	border-radius: 9px !important;
}

.pls-detail-link:hover {
	color: var(--pls-strong);
	background: var(--pls-hover) !important;
}

.pls-detail-link.is-primary {
	color: var(--pls-accent-ink);
	background: var(--pls-accent) !important;
	border-color: var(--pls-accent) !important;
}

.pls-detail-link .pls-icon {
	width: 15px;
	height: 15px;
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 782px) {
	.pls-device-ipad .pls-device {
		padding: 10px;
		border-radius: 26px;
	}

	.pls-device-ipad .pls-device::before {
		inset: 5px;
		border-radius: 22px;
	}

	.pls-device-ipad .pls-device::after {
		display: none;
	}

	.pls-device-ipad .pls-screen {
		border-radius: 18px;
	}

	.pls-appbar {
		flex-wrap: wrap;
		gap: 10px;
	}

	.pls-appbar-actions,
	.pls-search {
		flex: 1 1 100%;
		max-width: none;
	}

	.pls-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.pls-sheet-panel {
		width: 100%;
		border-left: 0;
	}

	.pls-footer .pls-legend {
		display: none;
	}
}
