/* The interactive business card (15.2260, 15.2273, 15.2274; static/kit/livecard.js): a drawing of a printed card, as the
   sheet's designs are drawings - its own numbers. Every size inside is in the card's millimetres (--u - one millimetre of
   the card, whatever size it is shown at): margins 5 mm, the name about 12 pt, the details about 7 pt, as printers set
   them. The stock gives the paper, its grain and the thickness of its edge; the finish dresses the marked parts. */
@property --lc-x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --lc-y { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
/* one millimetre of the card, computed on the card's face and edge and handed down as a length: a box inside that measures
   its own width (a column of details, a photo) does not change it */
@property --u { syntax: "<length>"; inherits: true; initial-value: 0px; }
.lc {
  --lc-stock: #f8f7f3; --lc-ink: #1d1d1f; --lc-mute: #6e6e73;
  /* 15.2405: the edge is the face's own colour a shade deeper - a pale edge under a coloured face read as a white strip */
  --lc-edgecolor: color-mix(in srgb, var(--c1, var(--lc-stock)) 84%, #000); --lc-accent: #3a3a3c;
  --lc-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  position: relative; display: grid; justify-items: center; width: 100%;
  max-width: calc(var(--lc-wmm) * 1mm);
  color: var(--lc-ink); -webkit-tap-highlight-color: transparent;
}
.lc-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lc-stage {
  position: relative; display: block; width: 100%; perspective: 1200px; cursor: pointer;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.lc.lc-still .lc-stage { cursor: inherit; }
.lc.lc-sheet { width: min(100%, calc(var(--lc-wmm) * 1mm)); }

/* the card and its thickness */
.lc-card {
  position: relative; display: block; width: 100%; aspect-ratio: var(--lc-wmm) / var(--lc-hmm);
  container-type: inline-size; transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.lc-side, .lc-edge {
  --u: calc(100cqw / var(--lc-wmm));
  position: absolute; inset: 0; border-radius: calc(var(--u) * var(--lc-rmm));
}
/* the edge stands a pixel inside the face's outline: level with it, its colour showed through the face's smoothed rim as a
   tinted hairline on a card lying flat */
.lc-edge { inset: 1px; border-radius: max(0px, calc(var(--u) * var(--lc-rmm) - 1px)); background: var(--lc-edgecolor); }
/* a card that never tilts shows no edge: lying flat behind the face it only tinted the face's outline */
.lc.lc-still .lc-edge { display: none; }
.lc-edge.e1 { transform: translateZ(calc(var(--u) * var(--lc-tmm) * -.2)); }
.lc-edge.e2 { transform: translateZ(calc(var(--u) * var(--lc-tmm) * -.4)); }
.lc-edge.e3 { transform: translateZ(calc(var(--u) * var(--lc-tmm) * -.6)); }
.lc-edge.e4 { transform: translateZ(calc(var(--u) * var(--lc-tmm) * -.8)); }
/* 15.2405: a transparent outline makes Chrome smooth a tilted layer's rim - without it the edges stepped */
.lc-side, .lc-edge { outline: 1px solid transparent; }
.lc-side { overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: var(--lc-ink);
           font-family: var(--lc-ftext); font-variant-numeric: lining-nums; }

.lc-paper { position: absolute; inset: 0; background: var(--lc-grain), var(--lc-stock); background-size: 180px 180px, auto; }
.lc-light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(120% 90% at var(--lc-x) var(--lc-y), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 60%); }
.lc-shadow {
  position: absolute; inset: 6% 4% -2% 4%; border-radius: 8%; background: rgba(0, 0, 0, .42);
  filter: blur(14px); transform: translateY(6px); opacity: .55; pointer-events: none;
}
.lc.lc-sheet .lc-shadow { inset: 10% 3% -1% 3%; filter: blur(7px); opacity: .35; }

/* the stocks: their fibre, their edge and their thickness; the colour is the design's or «Основной цвет» (15.2284) */
.lc[data-stock="cotton"] { --lc-stock: #fbfaf6; --lc-ink: #232325; --lc-mute: #7a7872; --lc-edgecolor: #ece9e1; }
.lc[data-stock="cotton"] .lc-paper { background-size: 120px 120px, auto; }
.lc[data-stock="linen"] { --lc-stock: #f3efe6; --lc-ink: #26241f; --lc-mute: #77726a; --lc-edgecolor: #e4ded1;
  --lc-accent: #3b3833; }
.lc[data-stock="linen"] .lc-paper { background:
  repeating-linear-gradient(0deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(90deg, rgba(0, 0, 0, .03) 0 1px, transparent 1px 3px), var(--lc-grain), var(--c1, var(--lc-stock));
  background-size: auto, auto, 180px 180px, auto; }
.lc[data-stock="kraft"] { --lc-stock: #b88c5d; --lc-ink: #2a1a0b; --lc-mute: #4f3922; --lc-edgecolor: #a37a4e;
  --lc-accent: #2a1a0b; }
/* a design with its own colour prints it over the material: the material keeps its fibre, its edge and its thickness */
.lc[data-stock="kraft"] .lc-paper { background: var(--lc-grain), var(--lc-grain),
  repeating-linear-gradient(17deg, rgba(60, 35, 10, .07) 0 1px, transparent 1px 7px), var(--c1, var(--lc-stock));
  background-size: 180px 180px, 60px 60px, auto, auto; }
.lc[data-stock="duplex"] { --lc-stock: #f6f3ec; --lc-accent: #c2513a; --lc-edgecolor: var(--lc-accent); }
/* metal (15.2283, «у нас же уже есть металл»): the program's own metal - the subscription card's material, studio light and
   brushing, drawn by /kit/metalcard.js as the card's plate (--lc-metal-img; in the window drawn anew as the hand leans it,
   .lc-metal-live) - its tone running bronze → silver → gold as the tariff's card does (--lc-metal). Until the plate is
   drawn, and where it cannot be, the same tone brushed by the page */
.lc[data-stock="metal"] { --lc-metal: rgb(242 240 233); --lc-m4: color-mix(in srgb, var(--lc-metal) 26%, #141416);
  --lc-edgecolor: color-mix(in srgb, var(--lc-metal) 62%, #000); --lc-ink: var(--lc-m4); --lc-mute: var(--lc-m4);
  --lc-accent: var(--lc-m4); }
.lc[data-stock="metal"] .lc-paper { background:
  var(--lc-metal-img, none) center / 100% 100% no-repeat,
  repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, rgba(0, 0, 0, .035) 1px 2px),
  linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .3) 44%, transparent 58%),
  linear-gradient(140deg, color-mix(in srgb, var(--lc-metal) 92%, #fff) 0%, color-mix(in srgb, var(--lc-metal) 82%, #000) 55%,
    color-mix(in srgb, var(--lc-metal) 68%, #000) 100%); }
.lc-metal-live { inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.lc[data-stock="metal"] .lc-side { text-shadow: 0 calc(var(--u) * .1) 0 rgba(255, 255, 255, .35); }
.lc[data-stock="metal"]:not([data-layout="cover"]) { --ink: var(--lc-m4); --mute: color-mix(in srgb, var(--lc-m4) 72%, transparent);
  --d-namecolor: var(--lc-m4); }
/* engraved (15.2285, «Добавь возможность сделать текст гравировками, если выбран металл»): the words cut into the metal -
   their floor the same metal a tone deeper, a light lip under every stroke and a shade over it; a part's box reaches past
   its capitals and baseline so the cut keeps its tails */
.lc[data-stock="metal"][data-engrave="on"]:not([data-layout="cover"]) .lc-side :is(.lc-name, .lc-role, .lc-note, .lc-line, .lc-co > span) {
  padding-block: .3em; margin-block: -.3em; text-shadow: none;
  -webkit-text-fill-color: color-mix(in srgb, var(--lc-metal) 42%, #1b1b1d); color: color-mix(in srgb, var(--lc-metal) 42%, #1b1b1d);
  filter: drop-shadow(0 calc(var(--u) * .06) 0 rgba(255, 255, 255, .62)) drop-shadow(0 calc(var(--u) * -.04) 0 rgba(0, 0, 0, .28)); }
/* «Лента» prints its band on the metal: the words in it stay printed white; «Обложка» keeps its photo's white words */
.lc[data-stock="metal"][data-layout="band"][data-engrave] .lc-front > .lc-who :is(.lc-name, .lc-role, .lc-note) { background: none; filter: none;
  color: #ffffff; -webkit-text-fill-color: #ffffff; }
.lc[data-stock="metal"][data-layout="band"][data-engrave] .lc-front > .lc-who :is(.lc-role, .lc-note) { color: rgba(255, 255, 255, .72);
  -webkit-text-fill-color: rgba(255, 255, 255, .72); }
/* on metal the initials stand in the metal's own tone, never in a design's paper colours */
.lc[data-stock="metal"]:not([data-layout="cover"]) .lc-front > .lc-photo.lc-initials { color: var(--lc-m4); background: color-mix(in srgb, #000 6%, transparent);
  box-shadow: inset 0 0 0 calc(var(--u) * .2) color-mix(in srgb, var(--lc-m4) 30%, transparent); }
/* a large cut shows the brushed metal on its floor; small words keep one deep tone, which reads */
.lc[data-stock="metal"][data-engrave="on"]:not([data-layout="cover"]) .lc-side .lc-name {
  background: linear-gradient(rgba(0, 0, 0, .36), rgba(0, 0, 0, .36)),
    var(--lc-metal-img, linear-gradient(var(--lc-metal), var(--lc-metal))) center / cover;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* the parts: every design places them on one grid (15.2279, «эти у тебя кривые какие-то»): 5 mm margins on every side
   (--m), the second column from the middle and half a gutter (--col2), the type standing on that grid by its capitals and
   its baseline rather than by its leading, so a name's top stands where a photo's top stands and the last baseline on the
   margin. The designs follow what identity studios print (15.2277; BP&O's «Business Cards»): one idea a card, one or two
   colours, the type doing the work, the details small on the grid, no pictograms, the material instead of ornament.
   A length built of --m or --g is declared on .lc-side or under it: declared on .lc it would name nothing. */
.lc-side { --m: calc(var(--u) * 5); --g: calc(var(--u) * 2.5); --col2: calc(50% + var(--g));
  color: var(--ink, var(--lc-ink)); font-family: var(--lc-ftext, var(--d-text, Inter, system-ui, sans-serif)); }
.lc-paper { background: var(--lc-grain), var(--c1, var(--lc-stock)); background-size: 180px 180px, auto; }
.lc-front > * { position: absolute; min-width: 0; }
.lc-side > .lc-paper, .lc-side > .lc-art, .lc-side > .lc-light { inset: 0; }
.lc-art > i { position: absolute; display: block; }
.lc-scene { display: none; }
/* a word of the card is never broken and nothing is cut: what reaches the end of its room shrinks to fit (15.2280, «пусть
   уменьшается строка если дошла до конца и упёрлась, вместо переноса»). The kit gives every line its length in characters
   (--n) and its longest word's (--nw); a design gives it its size (--fs), its room (--room - its box unless said) and its
   face's widest character in em (--k, measured on the faces over long names and addresses: Inter .68-.72, its capitals
   .79-.81, Oswald's capitals .63, Prata .72 and .89, Playfair .68, Tenor's capitals .87, Manrope .66, the monospace .59; a
   chosen face brings its own) */
.lc-who, .lc-lines, .lc-co { container-type: inline-size; }
.lc-name, .lc-role, .lc-note, .lc-line, .lc-co > span { display: block; text-box: trim-both cap alphabetic; }
/* the details and the firm stand on one line, shrinking by their whole length */
.lc-line, .lc-co > span { white-space: nowrap; font-size: min(var(--fs), calc(var(--room, 100cqw) / (var(--n, 1) * var(--k)))); }
/* the name, the title and the signature wrap between their words where the design has room, shrinking only when their
   longest word reaches the end (15.2282, «если есть возможность можно же сделать перенос») */
.lc-name, .lc-role, .lc-note { white-space: normal; overflow-wrap: normal; text-wrap: balance;
  font-size: min(var(--fs), calc(var(--room, 100cqw) / (var(--nw, var(--n, 1)) * var(--k)))); }
.lc-name { --fs: calc(var(--u) * 3.6); --k: var(--lc-kn, var(--d-kn, .72)); }
.lc-role, .lc-note, .lc-line, .lc-co { --fs: calc(var(--u) * 2.1); --k: var(--lc-kt, var(--d-kt, .68)); }
/* a foiled name keeps its tails and accents: its box reaches past the capitals and the baseline, its place does not */
.lc-name { padding-block: .3em; margin-block: -.3em; }
.lc-who { left: var(--m); right: var(--m); top: var(--m); display: flex; flex-direction: column; align-items: flex-start;
  gap: calc(var(--u) * 1.7); }
.lc-name { max-width: 100%; font-family: var(--lc-fname, var(--d-name, Inter, sans-serif)); font-weight: var(--d-weight, 500);
  line-height: 1.06; letter-spacing: var(--d-track, -.01em); color: var(--d-namecolor, inherit); }
.lc-role, .lc-note { line-height: 1.3; color: var(--mute, var(--lc-mute)); }
.lc-lines { left: var(--m); right: var(--m); bottom: var(--m); display: flex; flex-direction: column; align-items: flex-start;
  gap: calc(var(--u) * 1.25); }
.lc-line { line-height: 1.3; }
.lc-ic { display: none; }
.lc-co { line-height: 1.3; color: var(--mute, var(--lc-mute)); }
.lc-co, .lc-mono, .lc-rule, .lc-photo { display: none; }
.lc-rule { height: calc(var(--u) * .2); width: calc(var(--u) * 10); background: currentColor; }
.lc-mono { font-family: var(--lc-fname, var(--d-name, Inter, sans-serif)); line-height: 1; white-space: nowrap;
  text-box: trim-both cap alphabetic; }
.lc-mono > i { font-style: normal; }
/* a design laid out as a column (`flow` in the kit's list): the words flow inside the margins - the person, the rule, the
   firm, the details - each across the column and never squeezed, while the paper, the art, the photo and the light keep
   their places */
.lc-flow { display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--u) * 1.7); padding: var(--m); }
.lc-flow > :is(.lc-who, .lc-co, .lc-rule, .lc-lines) { position: relative; inset: auto; }
.lc-flow > :is(.lc-who, .lc-co, .lc-lines) { align-self: stretch; }
.lc-flow > *, .lc-flow :is(.lc-role, .lc-note) { flex: none; }
.lc-flow > .lc-rule { order: 1; }
.lc-flow > .lc-co { order: 2; }
.lc-flow > .lc-lines { order: 3; }
/* the avatar: the photo in black and white as studios print it, the initials quietly where there is none */
.lc[data-photo="show"] .lc-front > .lc-photo { display: block; }
.lc[data-photo="show"] .lc-front > .lc-photo.lc-initials { display: grid; }
.lc-photo { overflow: hidden; width: calc(var(--u) * 12); aspect-ratio: 1; border-radius: 50%; container-type: inline-size; }
.lc-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--d-photo, grayscale(1) contrast(1.05)); }
.lc-photo.lc-initials { place-items: center; color: var(--ink, var(--lc-ink)); font-family: var(--lc-fname, var(--d-name, Inter, sans-serif));
  font-weight: 400; line-height: 1; background: color-mix(in srgb, var(--ink, var(--lc-ink)) 7%, transparent);
  box-shadow: inset 0 0 0 calc(var(--u) * .2) color-mix(in srgb, var(--ink, var(--lc-ink)) 22%, transparent); }
.lc-photo.lc-initials > i { font-style: normal; font-size: 28cqw; letter-spacing: var(--d-initials, .04em);
  margin-right: calc(var(--d-initials, .04em) * -1); text-box: trim-both cap alphabetic; }
.lc[data-shape="rounded"] .lc-photo { border-radius: 18%; }
.lc[data-shape="square"] .lc-photo { border-radius: 0; }

/* 1 «Сетка» - a white card on a Swiss grid: the person in the left column, the firm and the photo in the right one, a
   hairline between them, a soft spectrum at the right edge */
.lc[data-layout="grid"] { --c1: var(--lc-u1, var(--lc-stock)); --ink: var(--lc-uink, var(--lc-ink)); --c2: var(--lc-u2, #8fd3c4);
  --d-name: Inter, sans-serif; --d-weight: 500; --d-track: -.015em; --d-kn: .70; }
.lc[data-layout="grid"] .lc-front::after { content: ""; position: absolute; left: 50%; top: var(--m); bottom: var(--m);
  width: calc(var(--u) * .15); translate: -50% 0; background: color-mix(in srgb, var(--ink) 30%, transparent); z-index: 1; }
.lc[data-layout="grid"] .lc-front > :is(.lc-who, .lc-lines) { right: var(--col2); }
.lc[data-layout="grid"] .lc-name { --fs: calc(var(--u) * 3.2); }
.lc[data-layout="grid"] .lc-front > .lc-co:not(:empty) { display: block; left: var(--col2); right: var(--m); top: var(--m);
  color: var(--ink); }
.lc[data-layout="grid"] .lc-front > .lc-photo { left: var(--col2); bottom: var(--m); width: calc(var(--u) * 11); }
/* the spectrum reaches past the edges by its blur: blurred inside them, its fade would show the paper as a pale line */
.lc[data-layout="grid"] .a1 { top: calc(var(--u) * -3); bottom: calc(var(--u) * -3); right: calc(var(--u) * -3);
  width: calc(22% + var(--u) * 3); opacity: .8; filter: blur(calc(var(--u) * 1.5));
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c2) 60%, transparent) 55%,
    color-mix(in srgb, color-mix(in srgb, var(--c2) 45%, #e88fb0) 80%, transparent)); }

/* 2 «Цветное поле» - one strong colour edge to edge, the person and the photo at the two upper corners, the details in two
   columns at the foot */
.lc[data-layout="field"] { --c1: var(--lc-u1, #2f4bd6); --c2: var(--lc-u2, #f2efe8); --ink: var(--lc-uink, #ffffff);
  --mute: color-mix(in srgb, var(--ink) 72%, transparent); --d-name: Inter, sans-serif; --d-weight: 700; --d-track: -.02em;
  --d-kn: .72; --d-namecolor: var(--c2); }
.lc[data-layout="field"] .lc-name { --fs: calc(var(--u) * 3.4); }
.lc[data-layout="field"] .lc-front > .lc-who { right: var(--col2); }
.lc[data-layout="field"] .lc-front > .lc-co:not(:empty) { display: block; left: var(--col2); right: calc(var(--m) + var(--u) * 16);
  top: var(--m); color: var(--ink); font-weight: 700; --k: var(--lc-kt, .71); }
.lc[data-layout="field"] .lc-front > .lc-lines { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--g) * 2);
  --room: calc((100cqw - var(--g) * 2) / 2); }
.lc[data-layout="field"] .lc-front > .lc-photo { right: var(--m); top: var(--m); }
.lc[data-layout="field"] .lc-photo.lc-initials { color: var(--c1); background: var(--c2); box-shadow: none; }

/* 3 «Крупное имя» - a deep colour, the name set huge in a condensed face across the foot, the title above it, the details
   small at the top in the second colour */
.lc[data-layout="bold"] { --c1: var(--lc-u1, #222b63); --c2: var(--lc-u2, #b9e7c9); --ink: var(--lc-uink, var(--c2));
  --mute: color-mix(in srgb, var(--ink) 75%, transparent); --d-name: Oswald, Inter, sans-serif; --d-weight: 600; --d-track: 0; }
.lc[data-layout="bold"] .lc-front > .lc-who { top: auto; bottom: var(--m); flex-direction: column-reverse; gap: calc(var(--u) * 2.4); }
.lc[data-layout="bold"] .lc-name { --fs: calc(var(--u) * 11.5); --k: var(--lc-knc, .63); line-height: .92; text-transform: uppercase; }
.lc[data-layout="bold"] :is(.lc-role, .lc-note) { font-family: var(--lc-ftext, Inter, sans-serif); }
.lc[data-layout="bold"] .lc-front > .lc-lines { top: var(--m); bottom: auto; right: var(--col2); }
.lc[data-layout="bold"] .lc-front > .lc-co:not(:empty) { display: block; left: var(--col2); right: calc(var(--m) + var(--u) * 16);
  top: var(--m); }
.lc[data-layout="bold"] .lc-front > .lc-photo { right: var(--m); top: var(--m); }
.lc[data-layout="bold"] .lc-photo.lc-initials { color: var(--c1); background: var(--c2); box-shadow: none; }

/* 4 «Тиснение» - a thick dark stock, the name in small spaced capitals, the initials pressed blind into the middle, the
   details numbered */
.lc[data-layout="emboss"] { --c1: var(--lc-u1, #4c564f); --ink: var(--lc-uink, #e8e6df);
  --mute: color-mix(in srgb, var(--ink) 70%, transparent); --d-name: "Tenor Sans", Inter, sans-serif; --d-weight: 400;
  --d-track: .22em; }
.lc[data-layout="emboss"] .lc-name { --fs: calc(var(--u) * 2.5); --k: calc(var(--lc-knc, .87) + .22); text-transform: uppercase;
  line-height: 1.3; }
/* blind on metal too: the letters are only their light and shade, the metal's own gradient showing through */
.lc[data-stock="metal"][data-layout="emboss"] .lc-front > .lc-mono { color: transparent !important; -webkit-text-fill-color: transparent !important; }
.lc[data-layout="emboss"] :is(.lc-role, .lc-note) { --fs: calc(var(--u) * 1.9); --k: calc(var(--lc-kt, .68) + .08); letter-spacing: .08em; }
.lc[data-layout="emboss"] .lc-front > .lc-co:not(:empty) { display: block;
  font-family: var(--lc-ftext, ui-monospace, "Cascadia Mono", Consolas, monospace); --fs: calc(var(--u) * 1.85); --k: var(--lc-kt, .59); }
.lc[data-layout="emboss"] .lc-front > .lc-lines { margin-top: auto;
  font-family: var(--lc-ftext, ui-monospace, "Cascadia Mono", Consolas, monospace); }
.lc[data-layout="emboss"][data-photo="show"] .lc-front:has(> .lc-photo:not(.lc-initials)) > .lc-lines {
  max-width: calc(100% - var(--u) * 14); }
/* a number before every line, five characters more of the same face; written out, as a column that measures its own width
   keeps a counter from passing between its lines */
.lc[data-layout="emboss"] .lc-line { --fs: calc(var(--u) * 1.85);
  font-size: min(var(--fs), calc(100cqw / ((var(--n, 1) + 5) * var(--lc-kt, .59)))); }
.lc[data-layout="emboss"] .lc-line::before { content: "(1)\00a0\00a0"; color: var(--mute); }
.lc[data-layout="emboss"] .lc-line:nth-child(2)::before { content: "(2)\00a0\00a0"; }
.lc[data-layout="emboss"] .lc-line:nth-child(3)::before { content: "(3)\00a0\00a0"; }
.lc[data-layout="emboss"] .lc-line:nth-child(4)::before { content: "(4)\00a0\00a0"; }
.lc[data-layout="emboss"] .lc-line:nth-child(5)::before { content: "(5)\00a0\00a0"; }
.lc[data-layout="emboss"] .lc-front > .lc-mono { display: block; left: 50%; top: 50%; translate: -50% -50%; padding-left: .08em;
  font-family: var(--lc-fname, "Tenor Sans", Inter, sans-serif); font-size: calc(var(--u) * 14); letter-spacing: .08em;
  color: var(--c1) !important; -webkit-text-fill-color: var(--c1) !important; background: none !important;
  text-shadow: calc(var(--u) * -.12) calc(var(--u) * -.12) calc(var(--u) * .1) rgba(255, 255, 255, .14),
    calc(var(--u) * .14) calc(var(--u) * .16) calc(var(--u) * .2) rgba(0, 0, 0, .45) !important; }
.lc[data-layout="emboss"] .lc-front > .lc-photo { right: var(--m); bottom: var(--m); width: calc(var(--u) * 10);
  --d-photo: grayscale(1) contrast(.95) brightness(.95); }
.lc[data-layout="emboss"] .lc-front > .lc-photo.lc-initials { display: none; }

/* 5 «Гротеск» - an uncoated natural card, the firm and the details at the top, the name set large and tight at the foot */
.lc[data-layout="grotesk"] { --c1: var(--lc-u1, #ddd3c2); --ink: var(--lc-uink, #141414);
  --mute: color-mix(in srgb, var(--ink) 70%, transparent); --d-name: Inter, sans-serif; --d-weight: 500; --d-track: -.035em;
  --d-initials: -.02em; --d-kn: .70; }
.lc[data-layout="grotesk"] .lc-front > :is(.lc-co, .lc-lines) { max-width: calc(100% - var(--u) * 17); }
.lc[data-layout="grotesk"] .lc-front > .lc-co:not(:empty) { display: block; color: var(--ink); }
.lc[data-layout="grotesk"] .lc-front > .lc-who { order: 4; margin-top: auto; flex-direction: column-reverse; gap: calc(var(--u) * 2.2); }
.lc[data-layout="grotesk"] .lc-name { --fs: calc(var(--u) * 6.4); line-height: .98; }
.lc[data-layout="grotesk"] .lc-front > .lc-photo { right: var(--m); top: var(--m); width: calc(var(--u) * 13); }
.lc[data-layout="grotesk"] .lc-photo.lc-initials { background: none; box-shadow: inset 0 0 0 calc(var(--u) * .2) var(--ink);
  font-family: var(--lc-fname, Inter, sans-serif); font-weight: 500; }

/* 6 «Отель» - a coloured uncoated stock, everything centred in a serif, the name in capitals, a thin rule */
.lc[data-layout="hotel"] { --c1: var(--lc-u1, #e07a4f); --ink: var(--lc-uink, #2a1712); --c2: var(--lc-u2, var(--ink));
  --mute: color-mix(in srgb, var(--ink) 80%, transparent); --d-name: Prata, Georgia, serif; --d-text: Prata, Georgia, serif;
  --d-weight: 400; --d-track: .08em; }
.lc[data-layout="hotel"] .lc-front { align-items: center; justify-content: safe center; gap: 0; text-align: center; }
.lc[data-layout="hotel"] .lc-front > .lc-co:not(:empty) { display: block; order: -2; margin-bottom: calc(var(--u) * 2.8);
  text-transform: uppercase; --fs: calc(var(--u) * 1.8); --k: calc(var(--lc-ktc, .80) + .12); }
.lc[data-layout="hotel"] .lc-co > span { letter-spacing: .12em; padding-left: .12em; }
.lc[data-layout="hotel"] .lc-front > .lc-photo { position: relative; order: -1; width: calc(var(--u) * 9);
  margin-bottom: calc(var(--u) * 3); --d-photo: grayscale(1) sepia(.25) contrast(1.05); }
.lc[data-layout="hotel"] .lc-photo.lc-initials { background: none; box-shadow: inset 0 0 0 calc(var(--u) * .2) var(--c2); }
.lc[data-layout="hotel"] .lc-front > .lc-who { align-items: center; gap: calc(var(--u) * 1.6); }
.lc[data-layout="hotel"] .lc-name { --fs: calc(var(--u) * 3.4); --k: calc(var(--lc-knc, .89) + .08); text-transform: uppercase;
  line-height: 1.18;
  padding-left: .08em; }
.lc[data-layout="hotel"] :is(.lc-role, .lc-note) { letter-spacing: .12em; padding-left: .12em; text-transform: uppercase;
  --fs: calc(var(--u) * 1.8); --k: calc(var(--lc-ktc, .80) + .12); }
.lc[data-layout="hotel"] .lc-front > .lc-rule { display: block; width: calc(var(--u) * 6); margin: calc(var(--u) * 2.8) 0;
  background: var(--c2); }
.lc[data-layout="hotel"] .lc-front > .lc-lines { align-items: center; gap: calc(var(--u) * 1.1); }
.lc[data-layout="hotel"] .lc-line { letter-spacing: .06em; padding-left: .06em; text-transform: uppercase; --fs: calc(var(--u) * 1.8);
  --k: calc(var(--lc-ktc, .80) + .06); }

/* 7 «Сумерки» - a near-black card with a soft band of light, the name in a large light serif */
.lc[data-layout="dusk"] { --c1: var(--lc-u1, #121212); --c2: var(--lc-u2, #7fb0c8); --c3: #e9b8a2; --ink: var(--lc-uink, #efece6);
  --mute: color-mix(in srgb, var(--ink) 62%, transparent); --d-name: "Playfair Display", Georgia, serif; --d-weight: 400;
  --d-track: 0; --d-kn: .68; }
.lc[data-layout="dusk"] .a1 { left: calc(var(--u) * -4); right: calc(var(--u) * -4); top: calc(var(--u) * -4);
  height: calc(58% + var(--u) * 4); background:
  linear-gradient(180deg, color-mix(in srgb, var(--c2) 55%, #000) 0%, var(--c2) 38%, var(--c3) 62%, var(--c1) 100%);
  filter: blur(calc(var(--u) * 2.4)) saturate(1.1); opacity: .95; }
.lc[data-layout="dusk"] .a2 { left: 0; right: 0; top: 0; height: 58%; background: repeating-linear-gradient(90deg,
  rgba(255, 255, 255, .06) 0 calc(var(--u) * .6), transparent calc(var(--u) * .6) calc(var(--u) * 1.6));
  -webkit-mask: linear-gradient(180deg, #000 40%, transparent); mask: linear-gradient(180deg, #000 40%, transparent); }
.lc[data-layout="dusk"] .lc-front > .lc-who { top: auto; bottom: var(--m); right: var(--col2); gap: calc(var(--u) * 2.2); }
.lc[data-layout="dusk"] .lc-name { --fs: calc(var(--u) * 5.2); line-height: 1; }
.lc[data-layout="dusk"] .lc-front > .lc-lines { left: var(--col2); align-items: flex-end; text-align: right; }
.lc[data-layout="dusk"] .lc-front > .lc-co:not(:empty) { display: block; left: var(--col2); right: var(--m); top: var(--m);
  text-align: right; color: var(--ink); }
.lc[data-layout="dusk"] .lc-front > .lc-photo { left: var(--m); top: var(--m); width: calc(var(--u) * 10);
  outline: calc(var(--u) * .25) solid color-mix(in srgb, var(--ink) 70%, transparent); outline-offset: calc(var(--u) * -.25); }
.lc[data-layout="dusk"] .lc-photo.lc-initials { background: color-mix(in srgb, #000 35%, transparent); box-shadow: none;
  color: rgba(255, 255, 255, .9); }

/* 8 «Портрет» - the photo printed to the left edge in black and white, the words on the paper beside it */
.lc[data-layout="portrait"] { --c1: var(--lc-u1, var(--lc-stock)); --ink: var(--lc-uink, var(--lc-ink)); --c2: var(--lc-u2, #2b2b2b);
  --d-name: Inter, sans-serif; --d-weight: 600; --d-track: -.02em; --d-kn: .71; --d-namecolor: var(--c2); }
.lc[data-layout="portrait"][data-photo="show"] .lc-front { padding-left: calc(40% + var(--m)); }
.lc[data-layout="portrait"] .lc-front > .lc-co:not(:empty) { display: block; }
.lc[data-layout="portrait"] .lc-front > .lc-lines { margin-top: auto; }
.lc[data-layout="portrait"] .lc-name { --fs: calc(var(--u) * 3.4); }
.lc[data-layout="portrait"] .lc-front > .lc-photo { left: 0; top: 0; width: 40%; height: 100%; aspect-ratio: auto; border-radius: 0;
  --d-photo: grayscale(1) contrast(1.08); }
.lc[data-layout="portrait"] .lc-photo.lc-initials { background: var(--c2); color: var(--c1); box-shadow: none;
  font-family: var(--lc-fname, "Playfair Display", Georgia, serif); }

/* 9 «Классика» - a printer's white card: the name in a serif, the title, a thin rule, the details at the foot */
.lc[data-layout="classic"] { --c1: var(--lc-u1, var(--lc-stock)); --c2: var(--lc-u2, var(--lc-ink)); --ink: var(--lc-uink, var(--lc-ink));
  --d-name: "Playfair Display", Georgia, serif; --d-weight: 400; --d-track: 0; --d-kn: .68; }
.lc[data-layout="classic"] .lc-front { gap: 0; }
.lc[data-layout="classic"][data-photo="show"] .lc-front > :is(.lc-who, .lc-co) { max-width: calc(100% - var(--u) * 15); }
.lc[data-layout="classic"] .lc-name { --fs: calc(var(--u) * 4.4); }
.lc[data-layout="classic"] .lc-front > .lc-rule { display: block; width: calc(var(--u) * 7); margin-top: calc(var(--u) * 3);
  background: var(--c2); }
.lc[data-layout="classic"] .lc-front > .lc-co:not(:empty) { display: block; margin-top: calc(var(--u) * 3); }
.lc[data-layout="classic"] .lc-front > .lc-lines { margin-top: auto; padding-top: calc(var(--u) * 3); }
.lc[data-layout="classic"] .lc-front > .lc-photo { right: var(--m); top: var(--m); width: calc(var(--u) * 11); }
.lc[data-layout="classic"] .lc-photo.lc-initials { font-family: var(--lc-fname, "Playfair Display", Georgia, serif); }

/* 10 «Два угла» - a display serif split across the card: the given name at the top left, the surname at the bottom right,
   the rest small at the bottom left; both parts take the size the longer of them allows */
.lc[data-layout="split"] { --c1: var(--lc-u1, #1f2340); --c2: var(--lc-u2, #c9c3ea); --ink: var(--lc-uink, var(--c2));
  --mute: color-mix(in srgb, var(--ink) 70%, transparent); --d-name: Prata, Georgia, serif; --d-weight: 400; --d-track: -.01em;
  --d-kn: .72; }
.lc[data-layout="split"] .lc-front { justify-content: flex-end; gap: calc(var(--u) * 1.25); }
.lc[data-layout="split"] .lc-front > .lc-who { display: contents; }
.lc[data-layout="split"] .lc-name { position: absolute; z-index: 3; inset: var(--m); display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-start; max-width: none; line-height: 1; text-box: none;
  --fs: calc(var(--u) * 8.4); font-size: min(var(--fs), calc(var(--u) * (var(--lc-wmm) - 25) / (var(--nf, 1) * var(--k))),
    calc(var(--u) * (var(--lc-wmm) / 2 - 7.5) / (var(--nl, 1) * var(--k)))); }
.lc[data-layout="split"] .lc-name > span { text-box: trim-both cap alphabetic; }
.lc[data-layout="split"] .lc-name > span:last-child:not(:first-child) { align-self: flex-end; }
.lc[data-layout="split"] :is(.lc-role, .lc-note) { position: relative; z-index: 3; --room: calc(var(--u) * (var(--lc-wmm) / 2 - 7.5)); }
.lc[data-layout="split"] .lc-front > :is(.lc-co, .lc-lines) { max-width: calc(50% - var(--g)); }
.lc[data-layout="split"] .lc-front > .lc-co:not(:empty) { display: block; }
.lc[data-layout="split"] .lc-front:has(.lc-role, .lc-note, .lc-co:not(:empty)) > .lc-lines { margin-top: calc(var(--u) * .45); }
.lc[data-layout="split"] .lc-front > .lc-photo { right: var(--m); top: var(--m); width: calc(var(--u) * 11); }
.lc[data-layout="split"] .lc-photo.lc-initials { background: color-mix(in srgb, var(--c2) 18%, transparent); color: var(--ink); }

/* 11 «Бланк» - a cream card ruled like a form: the name and the title in the head's two cells, the firm and the photo in
   the body's, the details at the foot, every word 2.5 mm from its rules */
.lc[data-layout="form"] { --c1: var(--lc-u1, #efe8d8); --ink: var(--lc-uink, #1d1d1b); --c2: var(--lc-u2, #1d1d1b);
  --mute: color-mix(in srgb, var(--ink) 70%, transparent); --d-name: Inter, sans-serif; --d-weight: 500; --d-track: -.01em;
  --d-kn: .70; }
.lc[data-layout="form"] .lc-side { --col2: calc(50% + var(--u) * 2); --f: calc(var(--u) * 3); --row: calc(var(--u) * 8);
  --pad: calc(var(--u) * 2.5); --t1: calc(var(--f) + (var(--row) - var(--u) * 1.75) / 2); --t2: calc(var(--f) + var(--row) + var(--pad));
  --cell: calc(var(--u) * (var(--lc-wmm) / 2 - 7)); }
.lc[data-layout="form"] .a1 { inset: var(--f); border: calc(var(--u) * .18) solid var(--c2); opacity: .75; background:
  linear-gradient(var(--c2), var(--c2)) 0 var(--row) / 100% calc(var(--u) * .14) no-repeat,
  linear-gradient(var(--c2), var(--c2)) 50% 0 / calc(var(--u) * .14) 100% no-repeat; background-origin: border-box; }
.lc[data-layout="form"] .lc-front > .lc-who { display: contents; }
.lc[data-layout="form"] :is(.lc-name, .lc-role, .lc-note) { position: absolute; z-index: 3; --room: var(--cell); white-space: nowrap;
  font-size: min(var(--fs), calc(var(--room) / (var(--n, 1) * var(--k)))); }
.lc[data-layout="form"] :is(.lc-name, .lc-role) { --fs: calc(var(--u) * 2.4); }
.lc[data-layout="form"] .lc-name { left: var(--m); right: var(--col2); top: var(--t1); }
.lc[data-layout="form"] .lc-role { left: var(--col2); right: var(--m); top: var(--t1); color: var(--ink); }
.lc[data-layout="form"] .lc-note { left: var(--m); right: var(--col2); top: var(--t2); }
.lc[data-layout="form"] .lc-front > .lc-co:not(:empty) { display: block; left: var(--m); right: var(--col2); top: var(--t2); }
.lc[data-layout="form"] .lc-front:has(.lc-note) > .lc-co { top: calc(var(--t2) + var(--u) * 3.3); }
.lc[data-layout="form"] .lc-front > .lc-photo { left: var(--col2); top: var(--t2); width: calc(var(--u) * 16); }
.lc[data-layout="form"] .lc-front > .lc-lines { left: var(--f); right: var(--f); bottom: calc(var(--f) + var(--pad));
  padding: var(--pad) calc(var(--m) - var(--f)) 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--u) * 4);
  border-top: calc(var(--u) * .14) solid color-mix(in srgb, var(--c2) 75%, transparent);
  --room: calc((100cqw - var(--u) * 4) / 2); }

/* 12 «Дуплекс» - two papers pressed together: a white face, the colour of the other paper seen on the edge and in the
   rule over the details */
.lc[data-layout="duplex"] { --c1: var(--lc-stock); --c2: var(--lc-u1, #c2513a); --ink: var(--lc-uink, var(--lc-ink));
  --d-name: Inter, sans-serif; --d-weight: 500; --d-track: -.015em; --d-kn: .70; --lc-edgecolor: var(--c2); }
.lc[data-layout="duplex"] .lc-front { align-items: center; gap: 0; text-align: center; }
.lc[data-layout="duplex"] .lc-front > .lc-photo { position: relative; order: -1; width: calc(var(--u) * 9);
  margin: auto 0 calc(var(--u) * 3.6); }
.lc[data-layout="duplex"] .lc-front > .lc-who { align-items: center; }
.lc[data-layout="duplex"] .lc-front:not(:has(> .lc-photo)) > .lc-who { margin-top: auto; }
.lc[data-layout="duplex"] .lc-name { --fs: calc(var(--u) * 3.8); }
.lc[data-layout="duplex"] .lc-front > .lc-co:not(:empty) { display: block; margin-top: calc(var(--u) * 1.7); }
.lc[data-layout="duplex"] .lc-front > .lc-lines { margin-top: auto; flex-direction: row; flex-wrap: wrap; justify-content: center;
  column-gap: calc(var(--u) * 4); padding-top: calc(var(--u) * 2.4); border-top: calc(var(--u) * .15) solid var(--c2); }
.lc[data-layout="duplex"] .lc-line { --fs: calc(var(--u) * 1.95); }

/* 13 «Колонка» - the person and the details in one column at the left, centred in the height, the photo large beside them */
.lc[data-layout="column"] { --c1: var(--lc-u1, var(--lc-stock)); --ink: var(--lc-uink, var(--lc-ink));
  --d-name: Manrope, Inter, sans-serif; --d-weight: 600; --d-track: -.02em; --d-kn: .66; }
.lc[data-layout="column"] .lc-front { justify-content: center; gap: calc(var(--u) * 4.2); }
.lc[data-layout="column"][data-photo="show"] .lc-front { padding-right: calc(var(--m) + var(--u) * 24); }
.lc[data-layout="column"] .lc-front > .lc-co:not(:empty) { display: block; margin-top: calc(var(--u) * -2.5); }
.lc[data-layout="column"] .lc-name { --fs: calc(var(--u) * 4); }
.lc[data-layout="column"] .lc-front > .lc-photo { right: var(--m); top: 50%; translate: 0 -50%; width: calc(var(--u) * 20); }

/* 14 «Строка» - the name large at the top, the details in one row along the foot under a hairline */
.lc[data-layout="row"] { --c1: var(--lc-u1, var(--lc-stock)); --ink: var(--lc-uink, var(--lc-ink)); --c2: var(--lc-u2, var(--lc-ink));
  --d-name: Inter, sans-serif; --d-weight: 600; --d-track: -.025em; --d-kn: .71; }
.lc[data-layout="row"][data-photo="show"] .lc-front > :is(.lc-who, .lc-co) { max-width: calc(100% - var(--u) * 15); }
.lc[data-layout="row"] .lc-name { --fs: calc(var(--u) * 5); }
.lc[data-layout="row"] .lc-front > .lc-co:not(:empty) { display: block; }
.lc[data-layout="row"] .lc-front > .lc-photo { right: var(--m); top: var(--m); width: calc(var(--u) * 11); }
.lc[data-layout="row"] .lc-front > .lc-lines { margin-top: auto; flex-direction: row; flex-wrap: wrap; column-gap: calc(var(--u) * 4.5);
  padding-top: calc(var(--u) * 2.4); border-top: calc(var(--u) * .15) solid var(--c2); }

/* 15 «Лента» - a band of colour over the upper part with the name in it, the photo across its edge, the details below */
.lc[data-layout="band"] { --c1: var(--lc-stock); --c2: var(--lc-u1, #1e3a34); --ink: var(--lc-uink, var(--lc-ink));
  --d-name: Manrope, Inter, sans-serif; --d-weight: 600; --d-track: -.02em; --d-kn: .66; --edge: 46%; }
.lc[data-layout="band"] .a1 { left: 0; right: 0; top: 0; height: var(--edge); background: var(--c2); }
.lc[data-layout="band"] .lc-front > .lc-who { top: auto; bottom: calc(100% - var(--edge) + var(--u) * 3.6);
  right: calc(var(--m) + var(--u) * 18); color: #ffffff; --d-namecolor: #ffffff; }
.lc[data-layout="band"] .lc-who :is(.lc-role, .lc-note) { color: rgba(255, 255, 255, .72); }
.lc[data-layout="band"] .lc-name { --fs: calc(var(--u) * 3.8); }
.lc[data-layout="band"] .lc-front > .lc-photo { right: var(--m); top: calc(var(--edge) - var(--u) * 7); width: calc(var(--u) * 14);
  outline: calc(var(--u) * .8) solid var(--c1); outline-offset: calc(var(--u) * -.8); }
.lc[data-layout="band"] .lc-photo.lc-initials { background: var(--c1);
  box-shadow: inset 0 0 0 calc(var(--u) * 1) color-mix(in srgb, var(--ink) 25%, transparent); }
.lc[data-layout="band"] .lc-front:has(> .lc-co:not(:empty)) > .lc-lines { right: var(--col2); }
.lc[data-layout="band"] .lc-front > .lc-co:not(:empty) { display: block; left: var(--col2); right: var(--m); bottom: var(--m);
  text-align: right; }

/* 16 «Машинопись» - a typewriter's card: one monospaced face, the head ruled off, the details labelled */
.lc[data-layout="mono"] { --c1: var(--lc-u1, #f4f3ef); --ink: var(--lc-uink, #151515); --c2: var(--lc-u2, #151515);
  --mute: color-mix(in srgb, var(--ink) 55%, transparent);
  --d-name: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; --d-text: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --d-weight: 600; --d-track: .02em; --d-kt: .59; }
.lc[data-layout="mono"] .lc-front > .lc-who { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--g) * 2);
  row-gap: calc(var(--u) * 1.25); align-items: end; padding-bottom: calc(var(--u) * 2.4);
  border-bottom: calc(var(--u) * .15) solid var(--c2); --room: calc((100cqw - var(--g) * 2) / 2); }
.lc[data-layout="mono"] :is(.lc-role, .lc-note) { grid-column: 2; }
.lc[data-layout="mono"] .lc-name { grid-row: 1; --fs: calc(var(--u) * 2.6); --k: calc(var(--lc-knc, .59) + .02); text-transform: uppercase;
  line-height: 1.2; }
.lc[data-layout="mono"] :is(.lc-role, .lc-note, .lc-line, .lc-co) { --fs: calc(var(--u) * 1.95); }
.lc[data-layout="mono"] .lc-role { color: var(--ink); }
.lc[data-layout="mono"] .lc-front > .lc-co:not(:empty) { display: block; margin-top: calc(var(--u) * .7); max-width: calc(50% - var(--g)); }
.lc[data-layout="mono"] .lc-front > .lc-lines { margin-top: auto; max-width: calc(50% - var(--g)); --room: calc(100cqw - var(--u) * 3.2); }
.lc[data-layout="mono"] .lc-line::before { display: inline-block; width: calc(var(--u) * 3.2); color: var(--mute); }
.lc[data-layout="mono"] .lc-line[data-key="phone"]::before { content: "T"; }
.lc[data-layout="mono"] .lc-line[data-key="email"]::before { content: "E"; }
.lc[data-layout="mono"] .lc-line[data-key="site"]::before { content: "W"; }
.lc[data-layout="mono"] .lc-line[data-key="chat"]::before { content: "M"; }
.lc[data-layout="mono"] .lc-line[data-key="address"]::before { content: "A"; }
.lc[data-layout="mono"] .lc-front > .lc-photo { left: var(--col2); bottom: var(--m); width: calc(var(--u) * 11); }
.lc[data-layout="mono"] .lc-photo.lc-initials { font-family: var(--lc-fname, ui-monospace, "Cascadia Mono", Consolas, monospace); }

/* 17 «Корешок» - the name along the left edge, read upwards as on a book's spine, the rest beside it */
.lc[data-layout="spine"] { --c1: var(--lc-u1, var(--lc-stock)); --ink: var(--lc-uink, var(--lc-ink)); --c2: var(--lc-u2, var(--lc-ink));
  --d-name: Inter, sans-serif; --d-weight: 700; --d-track: -.02em; --d-kn: .72; }
.lc[data-layout="spine"] .lc-side { --x: calc(var(--m) + var(--u) * 10); }
.lc[data-layout="spine"] .lc-front { padding-left: var(--x); }
.lc[data-layout="spine"] .lc-front > .lc-who { display: contents; }
.lc[data-layout="spine"] .lc-name { position: absolute; z-index: 3; left: var(--m); top: calc(100% - var(--m)); transform-origin: 0 .3em;
  rotate: -90deg; max-width: none; line-height: 1; --fs: calc(var(--u) * 4.8); --room: calc(var(--u) * (var(--lc-hmm) - 10));
  white-space: nowrap; font-size: min(var(--fs), calc(var(--room) / (var(--n, 1) * var(--k)))); }
.lc[data-layout="spine"] .lc-front::after { content: ""; position: absolute; left: calc(var(--x) - var(--u) * 3.25); top: var(--m);
  bottom: var(--m); width: calc(var(--u) * .15); translate: -50% 0; background: color-mix(in srgb, var(--c2) 45%, transparent);
  z-index: 1; }
.lc[data-layout="spine"] :is(.lc-role, .lc-note) { position: relative; z-index: 3; --room: calc(var(--u) * (var(--lc-wmm) - 20)); }
.lc[data-layout="spine"] .lc-role { color: var(--ink); --fs: calc(var(--u) * 2.4); }
.lc[data-layout="spine"] .lc-front > .lc-co:not(:empty) { display: block; }
.lc[data-layout="spine"][data-photo="show"] :is(.lc-role, .lc-note, .lc-co) { margin-right: calc(var(--u) * 15); }
.lc[data-layout="spine"][data-photo="show"] :is(.lc-role, .lc-note) { --room: calc(var(--u) * (var(--lc-wmm) - 35)); }
.lc[data-layout="spine"] .lc-front > .lc-lines { margin-top: auto; }
.lc[data-layout="spine"] .lc-front > .lc-photo { right: var(--m); top: var(--m); width: calc(var(--u) * 11); }

/* 18 «Буквица» - the first letter of the name set enormous in a pale tint and cut by the edges, the words over the paper */
.lc[data-layout="initial"] { --c1: var(--lc-u1, var(--lc-stock)); --ink: var(--lc-uink, var(--lc-ink));
  --c2: var(--lc-u2, color-mix(in srgb, var(--ink) 11%, var(--c1))); --d-name: "Playfair Display", Georgia, serif; --d-weight: 400;
  --d-track: 0; --d-kn: .68; }
.lc[data-layout="initial"][data-photo="show"] .lc-front > :is(.lc-who, .lc-co) { max-width: calc(100% - var(--u) * 14); }
.lc[data-layout="initial"] .lc-front > .lc-co:not(:empty) { display: block; }
.lc[data-layout="initial"] .lc-front > .lc-lines { margin-top: auto; }
.lc[data-layout="initial"] .lc-name { --fs: calc(var(--u) * 4.4); }
.lc[data-layout="initial"] .lc-front > .lc-mono { display: block; right: 0; bottom: 0; translate: 16% 24%; z-index: 1;
  font-family: var(--lc-fname, "Playfair Display", Georgia, serif); font-size: calc(var(--u) * min(var(--lc-wmm), var(--lc-hmm)) * 1.1);
  color: var(--c2) !important; -webkit-text-fill-color: var(--c2) !important; background: none !important; text-shadow: none !important; }
.lc[data-layout="initial"] .lc-mono > i + i { display: none; }
.lc[data-layout="initial"] .lc-front > .lc-photo { right: var(--m); top: var(--m); width: calc(var(--u) * 10); }

/* 19 «Обложка» - the photo over the whole card in black and white, the person in white at the foot */
.lc[data-layout="cover"] { --c1: var(--lc-u1, #262626); --ink: var(--lc-uink, #ffffff); --mute: rgba(255, 255, 255, .74);
  --d-name: Inter, sans-serif; --d-weight: 600; --d-track: -.02em; --d-kn: .71; }
.lc[data-layout="cover"] .lc-front > .lc-photo { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; z-index: 1;
  --d-photo: grayscale(1) contrast(1.05) brightness(.92); }
.lc[data-layout="cover"] .lc-photo.lc-initials { background: none; box-shadow: none; color: rgba(255, 255, 255, .08); }
.lc[data-layout="cover"] .a1 { inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0) 62%); }
.lc[data-layout="cover"] .a2 { inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 30%); }
.lc[data-layout="cover"] .lc-front > .lc-who { top: auto; bottom: var(--m); right: var(--col2); }
.lc[data-layout="cover"] .lc-name { --fs: calc(var(--u) * 4.4); }
.lc[data-layout="cover"] .lc-front > .lc-lines { left: var(--col2); align-items: flex-end; text-align: right; }
.lc[data-layout="cover"] .lc-front > .lc-co:not(:empty) { display: block; left: var(--m); right: var(--m); top: var(--m); color: var(--ink); }

/* 20 «Рамка» - a thin frame inset from the edge, everything centred within it */
.lc[data-layout="frame"] { --c1: var(--lc-u1, var(--lc-stock)); --ink: var(--lc-uink, var(--lc-ink)); --c2: var(--lc-u2, var(--lc-ink));
  --d-name: "Playfair Display", Georgia, serif; --d-weight: 400; --d-track: .01em; --d-kn: .69; }
.lc[data-layout="frame"] .a1 { inset: calc(var(--u) * 3); border: calc(var(--u) * .2) solid color-mix(in srgb, var(--c2) 60%, transparent);
  border-radius: calc(var(--u) * max(0, var(--lc-rmm) - 3)); }
.lc[data-layout="frame"] .lc-front { align-items: center; justify-content: safe center; gap: 0; padding: calc(var(--m) + var(--u) * 1.5);
  text-align: center; }
.lc[data-layout="frame"] .lc-front > .lc-photo { position: relative; order: -1; width: calc(var(--u) * 9); margin-bottom: calc(var(--u) * 3.4); }
.lc[data-layout="frame"] .lc-front > .lc-who { align-items: center; }
.lc[data-layout="frame"] .lc-name { --fs: calc(var(--u) * 4.2); }
.lc[data-layout="frame"] .lc-front > .lc-co:not(:empty) { display: block; margin-top: calc(var(--u) * 1.7); }
.lc[data-layout="frame"] .lc-front > .lc-lines { align-items: center; margin-top: calc(var(--u) * 4); }
/* the centred designs hold four details and more as rows, each centred: in a column they would not fit the card */
.lc:is([data-layout="hotel"], [data-layout="frame"]) .lc-front > .lc-lines:has(> .lc-line:nth-child(4)) { flex-direction: row;
  flex-wrap: wrap; justify-content: center; column-gap: calc(var(--u) * 3); }

/* dark designs take the light softly: no grey haze over a deep colour */
.lc:is([data-layout="emboss"], [data-layout="bold"], [data-layout="dusk"], [data-layout="split"], [data-layout="cover"]) .lc-light {
  opacity: .3; }

/* an upright card: a design of two columns keeps one, the others move what the narrow card cannot hold side by side */
.lc[data-orient="portrait"] .lc-side { --col2: var(--m); }
.lc[data-orient="portrait"][data-layout="grid"] .lc-front::after { left: var(--m); right: var(--m); top: 50%; bottom: auto; width: auto;
  height: calc(var(--u) * .15); translate: 0 -50%; }
.lc[data-orient="portrait"][data-layout="grid"] .lc-front > .lc-co:not(:empty) { top: calc(50% + var(--u) * 4);
  right: calc(var(--m) + var(--u) * 15); }
.lc[data-orient="portrait"][data-layout="grid"] .lc-front > .lc-photo { left: auto; right: var(--m); top: calc(50% + var(--u) * 4);
  bottom: auto; }
.lc[data-orient="portrait"][data-layout="field"] .lc-front > .lc-photo { right: auto; left: var(--m); }
.lc[data-orient="portrait"][data-layout="field"] .lc-front > .lc-who { top: calc(var(--m) + var(--u) * 16); }
.lc[data-orient="portrait"][data-layout="field"] .lc-front > .lc-co:not(:empty) { left: calc(var(--m) + var(--u) * 16); right: var(--m); }
.lc[data-orient="portrait"][data-layout="field"] .lc-front > .lc-lines { grid-template-columns: 1fr; --room: 100cqw; }
.lc[data-orient="portrait"][data-layout="bold"] .lc-name { --fs: calc(var(--u) * 9.5); line-height: 1.02; }
.lc[data-orient="portrait"][data-layout="bold"] .lc-front > .lc-lines { top: calc(var(--m) + var(--u) * 16); }
.lc[data-orient="portrait"][data-layout="bold"] .lc-front > .lc-co:not(:empty) { left: var(--m); right: calc(var(--m) + var(--u) * 16); }
.lc[data-orient="portrait"][data-layout="grotesk"] .lc-front { padding-top: calc(var(--m) + var(--u) * 17); }
.lc[data-orient="portrait"][data-layout="grotesk"] .lc-front > :is(.lc-co, .lc-lines) { max-width: 100%; }
.lc[data-orient="portrait"][data-layout="grotesk"] .lc-front > .lc-photo { right: auto; left: var(--m); }
.lc[data-orient="portrait"][data-layout="dusk"] .lc-front { display: flex; flex-direction: column; justify-content: flex-end;
  align-items: flex-start; gap: calc(var(--u) * 4); padding: var(--m); }
.lc[data-orient="portrait"][data-layout="dusk"] .lc-front > :is(.lc-who, .lc-lines) { position: relative; inset: auto; align-self: stretch;
  flex: none; }
.lc[data-orient="portrait"][data-layout="dusk"] .lc-front > .lc-lines { align-items: flex-start; text-align: left; }
.lc[data-orient="portrait"][data-layout="dusk"] .lc-front > .lc-co:not(:empty) { left: calc(var(--m) + var(--u) * 14); }
.lc[data-orient="portrait"][data-layout="dusk"] .a1 { height: calc(46% + var(--u) * 4); }
.lc[data-orient="portrait"][data-layout="dusk"] .a2 { height: 46%; }
.lc[data-orient="portrait"][data-layout="portrait"][data-photo="show"] .lc-front { padding-left: var(--m);
  padding-top: calc(var(--u) * var(--lc-hmm) * .46 + var(--m)); }
.lc[data-orient="portrait"][data-layout="portrait"] .lc-front > .lc-photo { width: 100%; height: 46%; }
.lc[data-orient="portrait"][data-layout="classic"][data-photo="show"] .lc-front { padding-top: calc(var(--m) + var(--u) * 15); }
.lc[data-orient="portrait"][data-layout="classic"][data-photo="show"] .lc-front > :is(.lc-who, .lc-co) { max-width: 100%; }
.lc[data-orient="portrait"][data-layout="classic"] .lc-front > .lc-photo { right: auto; left: var(--m); }
.lc[data-orient="portrait"][data-layout="split"] .lc-name { --fs: calc(var(--u) * 7.5);
  font-size: min(var(--fs), calc(var(--u) * (var(--lc-wmm) - 10) / (var(--nf, 1) * var(--k))),
    calc(var(--u) * (var(--lc-wmm) - 10) / (var(--nl, 1) * var(--k)))); }
.lc[data-orient="portrait"][data-layout="split"] .lc-front { padding-bottom: calc(var(--m) + var(--u) * 9.5); }
.lc[data-orient="portrait"][data-layout="split"] .lc-front > .lc-photo { right: auto; left: var(--m); top: calc(var(--m) + var(--u) * 9.5); }
.lc[data-orient="portrait"][data-layout="split"] .lc-front > :is(.lc-co, .lc-lines) { max-width: 100%; }
.lc[data-orient="portrait"][data-layout="split"] :is(.lc-role, .lc-note) { --room: calc(var(--u) * (var(--lc-wmm) - 10)); }
.lc[data-orient="portrait"][data-layout="form"] .lc-side { --row: calc(var(--u) * 12.5); --cell: calc(var(--u) * (var(--lc-wmm) - 10)); }
.lc[data-orient="portrait"][data-layout="form"] .a1 {
  background: linear-gradient(var(--c2), var(--c2)) 0 var(--row) / 100% calc(var(--u) * .14) no-repeat; }
.lc[data-orient="portrait"][data-layout="form"] .lc-name { right: var(--m); top: calc(var(--f) + (var(--row) - var(--u) * 5.2) / 2); }
.lc[data-orient="portrait"][data-layout="form"] .lc-role { left: var(--m); top: calc(var(--f) + (var(--row) - var(--u) * 5.2) / 2 + var(--u) * 3.45); }
.lc[data-orient="portrait"][data-layout="form"] .lc-front > .lc-photo { left: var(--m); }
.lc[data-orient="portrait"][data-layout="form"] .lc-note,
.lc[data-orient="portrait"][data-layout="form"] .lc-front > .lc-co:not(:empty) { left: calc(var(--m) + var(--u) * 20); right: var(--m); }
.lc[data-orient="portrait"][data-layout="form"] .lc-note { --room: calc(var(--u) * (var(--lc-wmm) - 30)); }
.lc[data-orient="portrait"][data-layout="form"] .lc-front > .lc-lines { grid-template-columns: 1fr; --room: 100cqw; }
.lc[data-orient="portrait"][data-layout="duplex"] .lc-front > .lc-lines { flex-direction: column; align-items: center; }
.lc[data-orient="portrait"][data-layout="column"] .lc-front { justify-content: flex-end; }
.lc[data-orient="portrait"][data-layout="column"][data-photo="show"] .lc-front { padding-right: var(--m); }
.lc[data-orient="portrait"][data-layout="column"] .lc-front > .lc-photo { left: var(--m); right: auto; top: var(--m); translate: none;
  width: calc(var(--u) * 18); }
.lc[data-orient="portrait"][data-layout="row"][data-photo="show"] .lc-front { padding-top: calc(var(--m) + var(--u) * 15); }
.lc[data-orient="portrait"][data-layout="row"][data-photo="show"] .lc-front > :is(.lc-who, .lc-co) { max-width: 100%; }
.lc[data-orient="portrait"][data-layout="row"] .lc-front > .lc-photo { right: auto; left: var(--m); }
.lc[data-orient="portrait"][data-layout="row"] .lc-front > .lc-lines { flex-direction: column; }
.lc[data-orient="portrait"][data-layout="band"] { --edge: 40%; }
.lc[data-orient="portrait"][data-layout="band"] .lc-front > .lc-co:not(:empty) { left: var(--m); top: var(--m); bottom: auto;
  text-align: left; color: #ffffff; }
.lc[data-orient="portrait"][data-layout="band"] .lc-front > .lc-lines { right: var(--m); }
.lc[data-orient="portrait"][data-layout="band"] .lc-front > .lc-who { right: var(--m); bottom: calc(100% - var(--edge) + var(--u) * 9); }
.lc[data-orient="portrait"][data-layout="mono"] .lc-front > .lc-who { grid-template-columns: 1fr; align-items: start; --room: 100cqw; }
.lc[data-orient="portrait"][data-layout="mono"] :is(.lc-role, .lc-note) { grid-column: 1; }
.lc[data-orient="portrait"][data-layout="mono"] .lc-name { grid-row: auto; }
.lc[data-orient="portrait"][data-layout="mono"] .lc-front > .lc-co:not(:empty) { max-width: 100%; }
.lc[data-orient="portrait"][data-layout="mono"] .lc-front > .lc-lines { max-width: 100%; }
.lc[data-orient="portrait"][data-layout="mono"] .lc-front > .lc-photo { position: relative; inset: auto; order: 2; align-self: flex-end; }
.lc[data-orient="portrait"][data-layout="initial"] .lc-front > .lc-mono { top: 50%; bottom: auto; translate: 16% -50%; }
.lc[data-orient="portrait"][data-layout="initial"][data-photo="show"] .lc-front { padding-top: calc(var(--m) + var(--u) * 14); }
.lc[data-orient="portrait"][data-layout="initial"][data-photo="show"] .lc-front > :is(.lc-who, .lc-co) { max-width: 100%; }
.lc[data-orient="portrait"][data-layout="initial"] .lc-front > .lc-photo { right: auto; left: var(--m); }
.lc[data-orient="portrait"][data-layout="emboss"] .lc-front > .lc-lines { max-width: 100%; }
.lc[data-orient="portrait"][data-layout="emboss"][data-photo="show"] .lc-front:has(> .lc-photo:not(.lc-initials)) > .lc-lines {
  max-width: 100%; margin-bottom: calc(var(--u) * 13); }
.lc[data-orient="portrait"][data-layout="spine"] .lc-front > .lc-photo { position: relative; inset: auto; order: -1;
  margin-bottom: calc(var(--u) * .7); }
.lc[data-orient="portrait"][data-layout="spine"][data-photo="show"] :is(.lc-role, .lc-note, .lc-co) { margin-right: 0; }
.lc[data-orient="portrait"][data-layout="spine"][data-photo="show"] :is(.lc-role, .lc-note) { --room: calc(var(--u) * (var(--lc-wmm) - 20)); }
.lc[data-orient="portrait"][data-layout="cover"] .lc-front { display: flex; flex-direction: column; justify-content: flex-end;
  align-items: flex-start; gap: calc(var(--u) * 4); padding: var(--m); }
.lc[data-orient="portrait"][data-layout="cover"] .lc-front > :is(.lc-who, .lc-lines) { position: relative; inset: auto; align-self: stretch;
  flex: none; }
.lc[data-orient="portrait"][data-layout="cover"] .lc-front > .lc-lines { align-items: flex-start; text-align: left; }

/* the layers: the paper, the photo of the design, its art, the words, the light */
.lc-side > .lc-paper { z-index: 0; }
.lc-side > .lc-scene { z-index: 1; }
.lc-side > .lc-art { z-index: 2; }
.lc-side > .lc-co, .lc-side > .lc-photo, .lc-side > .lc-mono, .lc-side > .lc-who, .lc-side > .lc-rule,
.lc-side > .lc-lines { z-index: 3; }
.lc-side > .lc-light { z-index: 4; }

/* the finishes of the marked parts - the name, the initials, the rule */
.lc[data-finish="foil"] { --lc-f1: #a8771f; --lc-f2: #e2bf6a; --lc-f3: #8a6014; --lc-f4: #f0d07c; }
.lc[data-finish="foil"][data-foil="silver"] { --lc-f1: #7d838a; --lc-f2: #c9cdd2; --lc-f3: #5d6268; --lc-f4: #dfe2e6; }
.lc[data-finish="foil"][data-foil="copper"] { --lc-f1: #9a4d27; --lc-f2: #dc9264; --lc-f3: #793a1c; --lc-f4: #eaa77c; }
.lc[data-finish="foil"] .lc-hot {
  background: linear-gradient(115deg, var(--lc-f1), var(--lc-f2) 22%, var(--lc-f3) 38%, var(--lc-f4) 50%, var(--lc-f1) 64%,
    var(--lc-f2) 80%, var(--lc-f3));
  background-size: 260% 100%; background-position: var(--lc-x) 50%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--lc-f1);
}
.lc[data-finish="foil"][data-foil="holo"] .lc-hot { background: linear-gradient(115deg, #c3a6ff, #8fe3ff 18%, #9dffc8 34%,
  #fff2a1 50%, #ffb3d9 66%, #b9a7ff 82%, #8fe3ff); background-size: 300% 100%; background-position: var(--lc-x) 50%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lc[data-finish="foil"] .lc-rule.lc-hot, .lc[data-finish="spot"] .lc-rule.lc-hot {
  -webkit-background-clip: border-box; background-clip: border-box; background-size: 100% 100%;
  background-image: linear-gradient(135deg, var(--lc-f1, var(--lc-ink)), var(--lc-f4, var(--lc-mute)) 50%, var(--lc-f3, var(--lc-ink))); }
.lc[data-finish="emboss"] .lc-hot { color: var(--lc-stock); -webkit-text-fill-color: var(--lc-stock);
  text-shadow: calc(var(--u) * -.1) calc(var(--u) * -.1) calc(var(--u) * .05) rgba(255, 255, 255, .75),
    calc(var(--u) * .14) calc(var(--u) * .16) calc(var(--u) * .14) rgba(0, 0, 0, .3); }
.lc[data-finish="emboss"] .lc-rule.lc-hot { background: var(--lc-stock);
  box-shadow: calc(var(--u) * .1) calc(var(--u) * .12) calc(var(--u) * .12) rgba(0, 0, 0, .3),
    calc(var(--u) * -.06) calc(var(--u) * -.06) 0 rgba(255, 255, 255, .7); }
.lc[data-finish="spot"] .lc-hot { background: linear-gradient(115deg, var(--lc-ink) 30%,
  color-mix(in srgb, var(--lc-ink) 40%, #fff) 48%, var(--lc-ink) 62%); background-size: 260% 100%;
  background-position: var(--lc-x) 50%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }

/* at rest */
.lc:not(.lc-still)[data-idle="float"] > .lc-stage > .lc-card { animation: lc-float 7s ease-in-out infinite; }
@keyframes lc-float { 0%, 100% { rotate: x 0deg; translate: 0 0; } 50% { rotate: x 4deg; translate: 0 -2px; } }
.lc:not(.lc-still)[data-idle="glint"] { animation: lc-glint 6s ease-in-out infinite; }
@keyframes lc-glint { 0%, 55% { --lc-x: -30%; } 100% { --lc-x: 130%; } }

/* the window over the page: the card at its real size, its actions as a sheet under it */
.lc-pop {
  --lc-pxmm: 1mm;
  position: fixed; inset: 0; z-index: 2147483000; display: none; overflow: auto; overscroll-behavior: contain;
  font-family: Inter, system-ui, sans-serif; -webkit-tap-highlight-color: transparent;
}
body:has(.lc-toggle:checked) .lc-pop, .lc-toggle:checked ~ .lc-pop { display: grid; place-items: center; }
html.lc-lock, html.lc-lock body { overflow: hidden; }
.lc-pop-back { position: fixed; inset: 0; background: rgba(14, 14, 16, .6); cursor: default;
  -webkit-backdrop-filter: blur(20px) saturate(1.15); backdrop-filter: blur(20px) saturate(1.15); }
.lc-pop-room { position: relative; display: grid; justify-items: center; gap: 36px; width: min(100%, 440px);
  padding: 56px 16px max(24px, env(safe-area-inset-bottom, 0px)); }
.lc-pop-stage { position: relative; display: block; width: calc(var(--lc-wmm) * var(--lc-pxmm));
  height: calc(var(--lc-hmm) * var(--lc-pxmm)); cursor: grab; touch-action: none; perspective: 1400px; }
.lc-pop-turn { position: absolute; left: 50%; top: 50%; width: calc(var(--lc-wmm) * var(--lc-pxmm)); translate: -50% -50%; }
.lc.lc-big { width: 100%; max-width: none; }
.lc.lc-big .lc-shadow { inset: 8% 2% -6% 2%; filter: blur(22px); opacity: .7; }

.lc-pop-sheet { display: grid; gap: 8px; width: min(100%, 400px); }
.lc-pop-group { overflow: hidden; border-radius: 14px; background: rgba(246, 246, 248, .94); color: #111114; }
.lc-pop-head { display: grid; gap: 2px; padding: 14px 16px 12px; text-align: center; font-size: 13px; line-height: 18px;
  color: #6c6c72; }
.lc-pop-head b { font-size: 15px; line-height: 20px; font-weight: 600; color: #111114; }
.lc-pop-acts { display: grid; }
.lc-act { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 16px; color: #111114;
  text-decoration: none; font-size: 17px; line-height: 22px; border-top: 1px solid rgba(60, 60, 67, .16); }
.lc-act:hover { background: rgba(0, 0, 0, .04); }
.lc-act-sign { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); color: #111114; }
.lc-pop[data-menu="tiles"] .lc-pop-acts { grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(60, 60, 67, .16); }
.lc-pop[data-menu="tiles"] .lc-act { flex-direction: column; justify-content: center; gap: 6px; min-height: 86px;
  padding: 10px 4px; border-top: 0; font-size: 12px; line-height: 15px; text-align: center; }
.lc-pop[data-menu="tiles"] .lc-act-sign { width: 44px; height: 44px; border-radius: 12px; }
.lc-pop-close { display: grid; place-items: center; min-height: 56px; border-radius: 14px; background: #fff;
  color: #111114; font-size: 17px; font-weight: 600; cursor: pointer; }
/* a phone: about 6 css px to a millimetre; a landscape card wider than the screen stands turned a quarter */
@media (pointer: coarse) and (max-width: 700px) {
  .lc-pop { --lc-pxmm: 6.1px; }
  .lc-pop[data-orient="landscape"] .lc-pop-stage { width: calc(var(--lc-hmm) * var(--lc-pxmm));
    height: calc(var(--lc-wmm) * var(--lc-pxmm)); }
  .lc-pop[data-orient="landscape"] .lc-pop-turn { rotate: 90deg; }
  .lc-pop-room { gap: 28px; padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lc .lc-card, .lc { animation: none !important; }
}
@media print {
  .lc .lc-card { animation: none !important; transform: none !important; }
  .lc-pop, .lc-toggle, .lc .lc-light, .lc .lc-shadow { display: none !important; }
  .lc .lc-front { box-shadow: inset 0 0 0 .2mm rgba(0, 0, 0, .15); }
}
