#main .ce-section[data-ce-theme^="product-"] {
 --pe-surface: color-mix(in srgb, var(--ce-edge) 76%, black);
 --pe-light: color-mix(in srgb, var(--ce-title) 45%, var(--ce-edge));
 --ce-paper: color-mix(in srgb, var(--ce-title) 30%, white);
 --ce-ink: color-mix(in srgb, var(--ce-bg) 88%, black);
 --ce-rule: color-mix(in srgb, var(--ce-ink) 23%, var(--ce-paper));
 --ce-line: color-mix(in srgb, var(--ce-title) 50%, var(--ce-bg));
 color-scheme: light;
}
[data-theme="dark"] #main .ce-section[data-ce-theme^="product-"] { color-scheme: dark; }
#main .ce-section[data-ce-theme="product-iris"] {
 --ce-bg: light-dark(#211447,#170f34);
 --ce-edge: light-dark(#443071,#342259);
 --ce-title: #e1ccff;
}
#main .ce-section[data-ce-theme="product-marine"] {
 --ce-bg: light-dark(#10263b,#0c1829);
 --ce-edge: light-dark(#244669,#19344c);
 --ce-title: #c6e1ff;
}
#main .ce-section[data-ce-theme="product-ember"] {
 --ce-bg: light-dark(#31202b,#241522);
 --ce-edge: light-dark(#5b3841,#402933);
 --ce-title: #ffdcc7;
}
#main .ce-section[data-ce-theme="product-aqua"] {
 --ce-bg: light-dark(#123033,#0c2024);
 --ce-edge: light-dark(#255651,#19403e);
 --ce-title: #bfece0;
}
#main .ce-section[data-ce-theme="product-orchid"] {
 --ce-bg: light-dark(#2d193c,#1b102a);
 --ce-edge: light-dark(#573770,#38264f);
 --ce-title: #e9c9fb;
}
#main .ce-section[data-ce-theme="product-sand"] {
 --ce-bg: light-dark(#2b2420,#211914);
 --ce-edge: light-dark(#524237,#3c3025);
 --ce-title: #f9dfb4;
}
#main .ce-section[data-ce-theme="product-slate"] {
 --ce-bg: light-dark(#1d253b,#12192a);
 --ce-edge: light-dark(#3a4868,#263450);
 --ce-title: #d2dfff;
}
.ce-section[data-ce-theme^="product-"] .ce-media {
 border: 1px solid color-mix(in srgb, var(--ce-title) 27%, transparent);
 background: var(--pe-surface);
 container-type: inline-size;
}
.pe-scene {
 height: 100%;
 display: grid;
 align-items: center;
 justify-items: center;
 isolation: isolate;
 position: relative;
 padding: 5cqw;
 background: radial-gradient(ellipse at 70% 0%, var(--pe-light), transparent 70%), var(--pe-surface);
 font-size: clamp(.64rem, 2.65cqw, 1rem);
}
.pe-scene::before {
 content: "";
 position: absolute;
 z-index: -1;
 inset: 0;
 background: repeating-linear-gradient(0deg,transparent 0 27px,#ffffff10 28px),repeating-linear-gradient(90deg,transparent 0 27px,#ffffff10 28px);
 mask-image: linear-gradient(115deg,black,transparent 75%);
}
.pe-window {
 width: 100%;
 background: light-dark(#fff,#1a1827);
 color: light-dark(#211b32,#faf1ff);
 border: 1px solid light-dark(#e2d9ed,#655771);
 border-radius: .9em;
 overflow: hidden;
 box-shadow: 0 1.2em 2.3em #0c071b80, 0 0 0 .27em #ffffff38;
}
.pe-toolbar {
 display: flex;
 align-items: center;
 gap: .5em;
 padding: .6em 1em;
 font-size: .8em;
 font-weight: 700;
 background: light-dark(#f4eefb,#302640);
 border-bottom: 1px solid light-dark(#e5d9f2,#514264);
}
.pe-toolbar img { width: 1.15em; height: 1.15em; }
.pe-toolbar i { margin-inline-start: auto; font-style: normal; letter-spacing: .14em; }
.pe-body { padding: .85em 1.13em 1.05em; }
.pe-title { display: flex; align-items: center; gap: .65em; margin-bottom: .65em; }
.pe-title > span {
 display: grid;
 flex: 0 0 1.85em;
 place-items: center;
 aspect-ratio: 1;
 border-radius: .45em;
 background: light-dark(var(--ce-paper),var(--ce-edge));
 color: light-dark(var(--ce-ink),var(--ce-title));
}
.pe-title svg { width: 1.09em; height: 1.09em; }
#main .pe-title h4 { margin: 0; color: inherit; font-size: 1.4em; letter-spacing: -.04em; line-height: 1.08; }
.pe-rows { list-style: none; margin: 0; padding: 0; }
.pe-rows li {
 display: grid;
 grid-template-columns: minmax(0,1fr) minmax(0,.95fr);
 align-items: center;
 gap: .7em;
 padding: .54em .65em;
 font-size: .91em;
 line-height: 1.2;
 border-bottom: 1px solid light-dark(#e9e2f1,#423852);
 overflow-wrap: anywhere;
}
.pe-rows li:last-child { border-bottom: 0; }
#main .pe-rows li > strong { color: light-dark(#211b32,#faf1ff); }
#main .pe-rows li > span { color: light-dark(#514664,#dfd0ed); }
.pe-rows [data-pe-state] { display: flex; align-items: center; gap: .4em; }
.pe-rows [data-pe-state]::before { content: ""; border-radius: 50%; width: .56em; height: .56em; background: var(--pe-status); flex: none; }
.pe-rows [data-pe-state="mint"] { --pe-status: light-dark(#08765f,#71e0ba); }
.pe-rows [data-pe-state="amber"] { --pe-status: light-dark(#ad5d00,#ffc180); }
.pe-scene--register .pe-rows li:nth-child(even) { background: light-dark(#f6f2fa,#252034); }
.pe-scene--register .pe-window { width: 97%; }
.pe-scene--form .pe-rows { display: grid; gap: .35em; }
.pe-scene--form .pe-rows li { border: 1px solid light-dark(#e7def0,#514264); border-radius: .38em; }
.pe-scene--form .pe-rows li:nth-child(odd) { background: light-dark(#faf7fc,#221d30); }
.pe-scene--document .pe-window { width: 90%; }
.pe-scene--document .pe-body { border-inline-start: .3em solid var(--pe-light); }
.pe-scene--document .pe-rows li { padding-inline: 0; }
.pe-scene--timeline .pe-rows li { grid-template-columns: 4em 1fr; padding-inline-start: 1em; border-inline-start: .22em solid var(--pe-light); }
.pe-scene--lesson .pe-rows li { grid-template-columns: minmax(3em,.55fr) minmax(0,1.6fr); }
.pe-scene--lesson .pe-title { padding: .55em; border-radius: .5em; background: light-dark(var(--ce-paper),var(--ce-edge)); }
.pe-scene--mobile .pe-window {
 width: 72%;
 max-width: 25em;
 border: .32em solid light-dark(#6a5990,#746389);
 border-radius: 1.15em;
}
.pe-scene--mobile .pe-toolbar { justify-content: center; }
.pe-scene--mobile .pe-toolbar i { display: none; }
.pe-scene--mobile .pe-rows li { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); padding-inline: 0; }
.pe-scene--metrics .pe-rows { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; }
.pe-scene--metrics .pe-rows li { grid-template-columns: 1fr; gap: .23em; border: 1px solid light-dark(#e9e2f1,#514264); border-radius: .48em; }
#main .pe-scene--metrics .pe-rows li span { font-size: 1.3em; font-weight: 800; color: inherit; }
#main .pe-sheet { display: table; width: 100%; margin: 0; border-collapse: collapse; text-align: left; font-size: .88em; line-height: 1.15; }
#main .pe-sheet :is(th,td) {
 padding: .43em .64em;
 border: 1px solid light-dark(#e3ddeb,#514264);
 color: inherit;
 background: transparent;
}
#main .pe-sheet :is(thead tr:first-child > *,td:first-child) {
 background: light-dark(#eeedf5,#322a43);
 text-align: center;
}
#main .pe-sheet td:first-child { width: 2em; }
#main .pe-sheet :is(th,td):last-child { width: 28%; }
#main .pe-sheet thead th { background: light-dark(#e6f3ee,#263a38); }
#main .pe-sheet tbody tr:last-child td:last-child {
 outline: 2px solid light-dark(#2e7e6b,#83d6af);
 outline-offset: -2px;
 background: light-dark(#edf8f3,#2b433d);
}
.pe-scene--award .pe-body { display: grid; grid-template-columns: 1fr minmax(5em,.48fr); align-items: center; }
.pe-scene--award .pe-title { grid-column: 1; }
.pe-scene--award img.pe-detail-img { grid-area: 1 / 2 / span 2; width: 100%; height: auto; max-height: 8em; object-fit: contain; }
.pe-scene--award .pe-rows { grid-column: 1; }
.pe-scene--photo { padding: 0; overflow: hidden; }
.pe-scene--photo::before { content: none; }
.pe-scene--photo .pe-scene-photo { position: absolute; inset: 0; }
.pe-photo-caption {
 position: absolute;
 inset: auto auto 4cqw 4cqw;
 display: flex;
 align-items: center;
 gap: .6em;
 max-width: calc(100% - 8cqw);
 padding: .63em .85em;
 color: #fff;
 background: #171329e8;
 border: 1px solid #ffffff70;
 border-radius: .55em;
 backdrop-filter: blur(10px);
 font-size: .88em;
 font-weight: 720;
}
.pe-photo-caption svg { width: 1.2em; height: 1.2em; flex: none; }
@media (prefers-reduced-motion: no-preference) {
 .ce-panel.is-entering .pe-window { animation: ce-preview-in 240ms ease-out; }
}
@media (min-width:1000px) and (max-height:760px) {
 .pe-scene:not(.pe-scene--photo) { padding: 3cqw; }
}
@media (max-width:480px) {
 .pe-scene { font-size: clamp(.60rem,2.9cqw,.78rem); }
 .pe-scene--mobile .pe-window { width: 85%; }
 .pe-scene--sheet .pe-body { padding-block: .52em .68em; }
 #main .pe-sheet :is(th,td) { padding-block: .28em; }
}
