/* CS-ELECT / How to install. Only this component is affected. */
.cig {
  --cig-bg: #151e24;
  --cig-line: #2c3d47;
  --cig-text: #f2f5f7;
  --cig-muted: #b4c2cc;
  --cig-accent: #ffae18;
  position: relative;
  margin: 22px 0;
  padding: 26px;
  border: 1px solid var(--cig-line);
  border-radius: 12px;
  background: var(--cig-bg);
  color: var(--cig-text);
  font: 400 14px/1.65 Onest, Arial, sans-serif;
  color-scheme: dark;
  scroll-margin-top: 20px;
}
.cig *, .cig *::before, .cig *::after { box-sizing: border-box; }
.cig [hidden] { display: none !important; }
.cig .cig-icon {
  display: block; width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.cig button { font: inherit; cursor: pointer; color: inherit; }
.cig button:disabled { cursor: default; }
.cig a { color: inherit; text-decoration: none; }
.cig :is(a, button):focus-visible { outline: 2px solid #ffcc73; outline-offset: 3px; }
.cig .cig-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.cig .cig-eyebrow { display: block; color: var(--cig-accent); font-size: 10px; font-weight: 600; letter-spacing: 1.6px; margin-bottom: 8px; }
.cig .cig-heading h2 { margin: 0 0 8px; color: var(--cig-text); font: 500 23px/1.4 Unbounded, Onest, sans-serif; letter-spacing: -.5px; text-transform: none; }
.cig .cig-heading em { font-style: normal; color: var(--cig-accent); }
.cig .cig-heading p { margin: 0; color: var(--cig-muted); font-size: 13px; }
.cig .cig-heading-mark { display: grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px; border: 1px solid #705622; background: #ffad180c; color: var(--cig-accent); border-radius: 10px; }
.cig .cig-heading-mark svg { width: 24px; height: 24px; }
.cig .cig-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.cig .cig-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cig .cig-steps li { margin: 0; padding: 0; }
.cig .cig-step { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; min-height: 66px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; transition: background .18s, border-color .18s; }
.cig .cig-step:hover:not(:disabled) { background: #ffffff05; border-color: var(--cig-line); }
.cig .cig-step[aria-pressed="true"] { background: linear-gradient(100deg,#ffae1814,#ffae1804); border-color: #836020; }
.cig .cig-step > span:nth-child(2) { flex: 1; min-width: 0; }
.cig .cig-step strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.45; }
.cig .cig-step small { display: block; color: var(--cig-muted); font-size: 11px; margin-top: 4px; line-height: 1.5; }
.cig .cig-step > svg { width: 15px; height: 15px; color: #617681; }
.cig .cig-step[aria-pressed="true"] > svg { color: var(--cig-accent); }
.cig .cig-number { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid #344651; border-radius: 8px; background: #1a2730; color: #a5bac7; font-size: 12px; font-weight: 650; }
.cig .cig-number svg { display: none; width: 17px; height: 17px; }
.cig .is-previous .cig-number { color: #6fdbab; border-color: #315e4a; background: #143328; }
.cig .is-previous .cig-number > span { display: none; }
.cig .is-previous .cig-number svg { display: block; }
.cig .cig-step[aria-pressed="true"] .cig-number { color: #162027; background: var(--cig-accent); border-color: var(--cig-accent); }
.cig .cig-path { margin: 19px 0 0; padding: 13px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--cig-line); border-radius: 8px; background: #0e181e; }
.cig .cig-path > svg { color: var(--cig-accent); }
.cig .cig-path > div { flex: 1; min-width: 0; }
.cig .cig-path span { display: block; color: var(--cig-muted); font-size: 10px; }
.cig .cig-path code { font: 12px/1.5 Consolas, monospace; overflow-wrap: anywhere; }
.cig .cig-copy { border: 1px solid #3a4b56; border-radius: 6px; padding: 8px; background: #1b2a33; }
.cig .cig-copy:hover { border-color: var(--cig-accent); color: var(--cig-accent); }
.cig .cig-copy-status { margin: 2px 0 0; min-height: 18px; font-size: 10px; color: #9fdfb8; }
.cig .cig-archive { margin: 6px 1px 0; font-size: 11px; line-height: 1.7; color: var(--cig-muted); }
.cig .cig-archive strong { color: #e6edf1; font-weight: 550; }
.cig .cig-right { min-width: 0; overflow: hidden; border: 1px solid #354751; border-radius: 10px; background: #0e181f; padding: 16px; }
.cig .cig-viewer-head { display: flex; align-items: center; gap: 12px; min-height: 30px; margin-bottom: 13px; }
.cig .cig-viewer-head > span { flex-shrink: 0; font-size: 10px; font-weight: 600; color: #c4d1d9; letter-spacing: .6px; }
.cig .cig-progress { flex: 1; display: flex; gap: 4px; }
.cig .cig-progress i { flex: 1; min-width: 5px; height: 3px; border-radius: 3px; background: #2c3b45; }
.cig .cig-progress .is-past { background: var(--cig-accent); }
.cig .cig-auto { display: flex; align-items: center; gap: 5px; padding: 5px 7px; min-height: 30px; border: 1px solid #344751; background: #172730; border-radius: 5px; font-size: 10px; }
.cig .cig-auto svg { width: 12px; height: 12px; }
.cig .cig-auto[aria-pressed="true"] { color: var(--cig-accent); border-color: #8c6726; }
.cig .cig-panel { margin: 0; padding: 0; border: 0; }
.cig .cig-visual { position: relative; display: grid; place-items: center; height: 290px; overflow: hidden; background: radial-gradient(ellipse at 50% 0,#283a45,#121e26 80%); border: 1px solid #2c404b; border-radius: 7px; }
.cig .cig-visual > img { display: block; width: 100%; height: 100%; max-height: 288px; object-fit: contain; padding: 10px; }
.cig .cig-zoom { display: flex; align-items: center; gap: 6px; position: absolute; right: 8px; bottom: 8px; min-height: 32px; padding: 6px 9px; border: 1px solid #647481; border-radius: 5px; background: #0d1827ef; font-size: 10px; }
.cig .cig-zoom:hover { border-color: var(--cig-accent); color: var(--cig-accent); }
.cig .cig-zoom svg { width: 14px; height: 14px; }
.cig .cig-caption { min-height: 32px; margin: 9px 0 10px; font-size: 10px; line-height: 1.5; color: #91a7b5; }
.cig .cig-explanation { min-height: 135px; }
.cig .cig-explanation h3 { margin: 0 0 7px; color: var(--cig-text); font: 600 15px/1.45 Onest,Arial,sans-serif; text-transform: none; }
.cig .cig-explanation p { margin: 0 0 10px; color: var(--cig-muted); font-size: 12px; line-height: 1.75; }
.cig .cig-inline-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 550; color: var(--cig-accent); }
.cig .cig-inline-link svg { width: 13px; height: 13px; }
.cig .cig-inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cig .cig-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; margin-top: 4px; border-top: 1px solid #293a45; }
.cig .cig-controls button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; min-width: 95px; padding: 7px 12px; border-radius: 6px; border: 1px solid #3c515f; font-size: 12px; font-weight: 550; background: #1b2c36; }
.cig .cig-controls svg { width: 15px; height: 15px; }
.cig .cig-back svg { transform: rotate(180deg); }
.cig .cig-controls .cig-next { background: linear-gradient(110deg,#ffb729,#ff9d00); color: #152027; border-color: #ffae18; }
.cig .cig-controls button:disabled { opacity: .4; }
.cig .cig-page { color: #a8bcc9; font-size: 11px; font-variant-numeric: tabular-nums; }
.cig .cig-schematic { width: 90%; max-width: 430px; padding: 23px; border-radius: 9px; background: #1a2a34; border: 1px solid #49606e; box-shadow: 0 15px 30px #0003; }
.cig .cig-diagram-tag { display: inline-block; margin-bottom: 17px; padding: 2px 6px; color: var(--cig-accent); background: #ffb01d0d; border: 1px solid #785f2f; border-radius: 4px; letter-spacing: 1px; font-size: 9px; }
.cig .cig-schematic-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.cig .cig-schematic-title svg { color: var(--cig-accent); }
.cig .cig-option { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #354955; font-size: 10px; }
.cig .cig-option b { color: #c4d1db; font-weight: 400; }
.cig .cig-option svg { width: 15px; height: 15px; color: #82dfaf; }
.cig .cig-schematic small { display: block; color: #a6bac8; font-size: 10px; margin-top: 10px; line-height: 1.6; }
.cig .cig-transfer { text-align: center; }
.cig .cig-transfer-symbol { display: grid; place-items: center; margin: 0 auto 12px; color: var(--cig-accent); }
.cig .cig-transfer-symbol svg { width: 38px; height: 38px; }
.cig .cig-transfer .cig-schematic-title { justify-content: center; }
.cig .cig-demo-track { height: 6px; border-radius: 4px; overflow: hidden; background: #0d1921; margin: 17px 0; }
.cig .cig-demo-track span { display: block; height: 100%; width: 65%; background: linear-gradient(90deg,#ff9b05,#ffd578); border-radius: inherit; }
.cig .cig-after { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--cig-line); margin-top: 24px; padding-top: 18px; }
.cig .cig-after > span { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.cig .cig-after > span svg { color: var(--cig-accent); }
.cig .cig-after strong { font-size: 12px; font-weight: 550; }
.cig .cig-after nav { display: flex; justify-content: flex-end; flex: 1; flex-wrap: wrap; gap: 8px; }
.cig .cig-after a { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #334752; border-radius: 6px; padding: 7px 10px; font-size: 11px; background: #16232c; }
.cig .cig-after a svg { width: 12px; height: 12px; color: var(--cig-accent); }
.cig .cig-after a:hover { border-color: var(--cig-accent); }
.cig .cig-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.cig .cig-dialog { width: min(920px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 18px; background: #111d25; color: var(--cig-text); border: 1px solid #4c6271; border-radius: 12px; overflow: auto; }
.cig .cig-dialog::backdrop { background: #020a12df; backdrop-filter: blur(5px); }
.cig .cig-dialog-head { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin-bottom: 12px; }
.cig .cig-dialog-head h2 { font: 550 16px/1.5 Onest,Arial,sans-serif; margin: 0; color: inherit; text-transform: none; }
.cig .cig-dialog button { display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; background: #21333e; border: 1px solid #4a6271; border-radius: 6px; flex-shrink: 0; }
.cig .cig-dialog-media { display: grid; place-items: center; height: min(65dvh,640px); min-height: 180px; background: #0b151b; border-radius: 7px; overflow: hidden; }
.cig .cig-dialog-media > img { width: 100%; height: 100%; max-height: min(65dvh,640px); object-fit: contain; }
.cig .cig-dialog-media .cig-schematic { max-width: 620px; padding: 28px; }
.cig .cig-dialog-media .cig-schematic-title { font-size: 20px; }
.cig .cig-dialog-media .cig-option { font-size: 13px; padding-block: 12px; }
.cig .cig-dialog-note { margin: 10px 0; font-size: 11px; color: #b5c4cd; }
.cig .cig-dialog-controls { display: flex; justify-content: center; align-items: center; gap: 24px; font-size: 12px; }
.cig [data-cig-dialog-prev] svg { transform: rotate(180deg); }
.cig .cig-dialog button:disabled { opacity: .35; }
@media (max-width: 1000px) {
  .cig { padding: 22px; }
  .cig .cig-layout { gap: 18px; grid-template-columns: 1fr 1fr; }
  .cig .cig-step { gap: 9px; padding-inline: 8px; }
  .cig .cig-step strong { font-size: 12px; }
  .cig .cig-visual { height: 270px; }
  .cig .cig-visual > img { max-height: 268px; }
  .cig .cig-explanation { min-height: 160px; }
  .cig .cig-schematic { padding: 15px; }
  .cig .cig-option { flex-wrap: wrap; gap: 3px; }
}
@media (max-width: 760px) {
  .cig .cig-layout { grid-template-columns: 1fr; gap: 18px; }
  .cig .cig-heading h2 { font-size: 20px; }
  .cig .cig-heading-mark { display: none; }
  .cig .cig-step strong { font-size: 13px; }
  .cig .cig-step { min-height: 61px; padding: 8px 10px; }
  .cig .cig-steps { gap: 6px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cig .cig-step { min-height: 70px; height: 100%; border-color: #2c3d47; }
  .cig .cig-step small, .cig .cig-step > svg { display: none; }
  .cig .cig-path { margin-top: 12px; }
  .cig .cig-visual { height: 310px; }
  .cig .cig-visual > img { max-height: 308px; }
  .cig .cig-explanation { min-height: 128px; }
  .cig .cig-after { display: block; margin-top: 18px; }
  .cig .cig-after nav { justify-content: flex-start; margin-top: 12px; }
}
@media (max-width: 460px) {
  .cig { margin-block: 16px; padding: 16px 12px; border-radius: 10px; }
  .cig .cig-heading { margin-bottom: 17px; }
  .cig .cig-heading h2 { font-size: 18px; }
  .cig .cig-heading p { font-size: 12px; }
  .cig .cig-eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .cig .cig-step small { font-size: 10px; }
  .cig .cig-step strong { font-size: 12px; }
  .cig .cig-step { gap: 9px; padding-inline: 7px; }
  .cig .cig-number { width: 29px; height: 29px; font-size: 11px; }
  .cig .cig-right { padding: 12px; }
  .cig .cig-visual { height: 235px; }
  .cig .cig-visual > img { max-height: 233px; padding: 6px; }
  .cig .cig-viewer-head { gap: 7px; }
  .cig .cig-viewer-head > span { font-size: 9px; }
  .cig .cig-auto { padding: 4px 5px; font-size: 9px; }
  .cig .cig-explanation { min-height: 178px; }
  .cig .cig-after a { font-size: 10px; }
  .cig .cig-schematic { padding: 12px; }
  .cig .cig-schematic-title { font-size: 12px; margin-bottom: 8px; }
  .cig .cig-diagram-tag { font-size: 8px; margin-bottom: 10px; }
  .cig .cig-option { font-size: 9px; padding-block: 6px; }
  .cig .cig-schematic small { font-size: 9px; }
  .cig .cig-dialog { padding: 12px; }
  .cig .cig-dialog-media .cig-schematic { padding: 15px; }
  .cig .cig-dialog-media .cig-schematic-title { font-size: 14px; }
  .cig .cig-dialog-media .cig-option { font-size: 10px; }
}
/* A pulsating click guide, attached to the picture's real content area. */
.cig .cig-dialog-media { position: relative; }
.cig .cig-pointer {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
}
.cig .cig-pointer-ring {
  position: absolute; width: 30px; height: 30px;
  transform: translate(-50%, -50%); border: 2px solid #ffd16c;
  border-radius: 50%; background: #ffae1814;
  box-shadow: 0 0 0 1px #2e1a00b3, 0 0 13px #ffae1870;
}
.cig .cig-pointer-ring::before, .cig .cig-pointer-ring::after {
  content: ''; position: absolute; inset: -3px; border: 2px solid #ffbc43;
  border-radius: 50%; animation: cig-pointer-pulse 1.8s ease-out infinite;
}
.cig .cig-pointer-ring::after { animation-delay: .9s; }
@keyframes cig-pointer-pulse {
  0% { transform: scale(.8); opacity: .95; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}
.cig .cig-pointer-note {
  position: absolute; max-width: min(220px, calc(100% - 16px));
  padding: 8px 11px; border: 1px solid #986b2e; border-radius: 6px;
  color: #fff2d6; background: #132530f5; box-shadow: 0 3px 14px #0007;
  font: 500 11px/1.45 Onest, Arial, sans-serif; text-align: left;
}
.cig .cig-pointer-note::after {
  content: ''; position: absolute; left: var(--pointer-tip, 24px);
  width: 8px; height: 8px; background: #172a34;
  transform: translateX(-50%) rotate(45deg);
}
.cig .cig-pointer-note[data-side="above"]::after { bottom: -5px; border-right: 1px solid #986b2e; border-bottom: 1px solid #986b2e; }
.cig .cig-pointer-note[data-side="below"]::after { top: -5px; border-top: 1px solid #986b2e; border-left: 1px solid #986b2e; }
.cig .cig-zoom { z-index: 3; }
.cig .cig-motion {
  display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px;
  padding: 5px; border: 1px solid #8c6726; border-radius: 5px; background: #172730;
}
.cig .cig-motion > span { display: block; width: 13px; height: 13px; border: 2px solid #ffbc43; border-radius: 50%; box-shadow: 0 0 0 3px #ffbc4320; }
.cig .cig-motion[aria-pressed="false"] { border-color: #344751; }
.cig .cig-motion[aria-pressed="false"] > span { border-color: #8da3b2; box-shadow: none; }
.cig.cig-motion-paused .cig-pointer-ring::before,
.cig.cig-motion-paused .cig-pointer-ring::after { animation: none; opacity: 0; }
.cig.cig-document-hidden .cig-pointer-ring::before,
.cig.cig-document-hidden .cig-pointer-ring::after,
.cig.cig-offscreen:not(.cig-viewing-image) .cig-pointer-ring::before,
.cig.cig-offscreen:not(.cig-viewing-image) .cig-pointer-ring::after { animation-play-state: paused; }
.cig .cig-dialog-media .cig-pointer-note { max-width: min(280px, calc(100% - 16px)); font-size: 13px; }
@media (max-width: 460px) {
  .cig .cig-pointer-note { padding: 6px 8px; max-width: min(190px, calc(100% - 16px)); font-size: 10px; }
  .cig .cig-pointer-ring { width: 25px; height: 25px; }
  .cig .cig-dialog-media .cig-pointer-note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .cig * { transition: none !important; scroll-behavior: auto !important; }
  .cig .cig-pointer-ring::before, .cig .cig-pointer-ring::after { animation: none !important; opacity: 0; }
}
/* v3: original olive installer illustrations with a synchronized demonstration. */
.cig .cig-visual { height: auto; aspect-ratio: 1.28; background: #0c151b; }
.cig .cig-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; padding: 0; }
.cig .cig-figure-tools { display: flex; align-items: center; gap: 12px; margin: 9px 0 12px; }
.cig .cig-figure-tools .cig-caption { margin: 0; min-height: 0; flex: 1; }
.cig .cig-figure-tools .cig-zoom { position: static; flex-shrink: 0; }
.cig .cig-explanation { min-height: 130px; }
.cig .cig-progress i, .cig .cig-progress i.is-past { background: linear-gradient(to right, var(--cig-accent) var(--fill, 0%), #2c3b45 var(--fill, 0%)); }
.cig .cig-cursor { position: absolute; z-index: 4; width: 24px; height: 31px; margin-left: -1px; margin-top: -1px; filter: drop-shadow(1px 3px 2px #0009); transform-origin: 2px 2px; }
.cig .cig-cursor svg { display: block; width: 100%; height: 100%; }
.cig .is-clicking .cig-cursor { transform: scale(.81); }
.cig .cig-pointer-ring { z-index: 3; }
.cig .is-moving .cig-pointer-ring { opacity: .45; }
.cig .is-clicking .cig-pointer-ring { background: #ffb52466; box-shadow: 0 0 0 8px #ffb52430; }
.cig .cig-pointer-note { z-index: 5; padding: 6px 9px; font-size: 10px; }
.cig .cig-typed, .cig-install-file, .cig-install-percent { position: absolute; display: flex; align-items: center; color: #fff; font-family: Arial, sans-serif; font-weight: 400; line-height: 1; white-space: nowrap; overflow: hidden; padding: 0 2px; }
.cig .cig-typed i { display: inline-block; flex-shrink: 0; width: 1px; height: 75%; background: #fff; margin-left: 1px; }
.cig .cig-install-track { position: absolute; overflow: hidden; background: #394330; }
.cig .cig-install-track > i { display: block; height: 100%; width: 0; background: linear-gradient(180deg,#d3cb69,#aaa740); }
.cig .cig-install-percent { justify-content: flex-end; }
.cig .cig-checkmark { position: absolute; transform: translate(-50%,-50%); color: #fff; line-height: 1; font-family: Arial,sans-serif; font-weight: bold; }
.cig.cig-animation-paused .cig-pointer-ring::before, .cig.cig-animation-paused .cig-pointer-ring::after { animation-play-state: paused; }
.cig .cig-auto { flex-shrink: 0; }
@media (max-width: 460px) {
  .cig .cig-cursor { width: 19px; height: 25px; }
  .cig .cig-pointer-note { font-size: 9px; max-width: 155px; padding: 4px 6px; }
  .cig .cig-figure-tools { gap: 8px; }
  .cig .cig-figure-tools .cig-zoom { min-height: 34px; padding: 6px; }
  .cig .cig-explanation { min-height: 165px; }
}
.cig .cig-dialog-media { height: auto; aspect-ratio: 1.28; min-height: 0; max-height: 65dvh; }
.cig .cig-dialog-media > img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
.cig .cig-dialog .cig-dialog-auto { display: flex; gap: 5px; width: auto; min-width: 70px; padding: 7px; font-size: 11px; }
.cig .cig-dialog-auto svg { width: 14px; height: 14px; }
@media (max-width: 460px) { .cig .cig-dialog-controls { gap: 12px; } }
