.erra-lamp {
  --lamp-x: 25%;
  position: relative;
  width: 150px;
  height: 54px;
  border: 1px solid #8798a24d;
  border-radius: 15px;
  isolation: isolate;
  background: linear-gradient(162deg,#fbfcfd,#edf2f8);
  box-shadow: inset 0 1px #fff9, 0 3px 14px #24426415;
}
html[data-err-theme=dark] .erra-lamp {
  --lamp-x: 75%;
  border-color: #526378;
  background: linear-gradient(162deg,#182439,#101b2e);
  box-shadow: inset 0 1px #c9dbff17, 0 6px 17px #04070e4a;
}
.erra-lamp-wire {
  position: absolute;
  inset: 6px 16px auto;
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(90deg,transparent,#7c91a09c 20%,#7c91a09c 80%,transparent);
}
.erra-lamp .erra-lamp-mover {
  position: absolute;
  left: var(--lamp-x);
  top: 0;
  width: 44px;
  height: 25px;
  padding: 0;
  transform: translateX(-50%);
  transition: left .53s cubic-bezier(.24,.78,.19,1);
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: inherit;
  z-index: 2;
}
.erra-lamp-mover::before {
  content: "";
  position: absolute;
  inset: -4px -10px -11px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 58%,#ffb84b65 0,#ffb84b31 30%,transparent 68%);
}
html[data-err-theme=dark] .erra-lamp-mover::before {
  background: radial-gradient(ellipse at 50% 58%,#ffb3399c 0,#ff9f3c4d 31%,transparent 68%);
}
.erra-lamp-swing {
  position: absolute;
  display: block;
  inset: 4px 11px -2px;
  transform-origin: 50% 1px;
}
.erra-lamp-cord {
  position: absolute;
  width: 2px;
  height: 6px;
  top: 0;
  left: calc(50% - 1px);
  background: linear-gradient(90deg,#6c5538,#e2bf82);
}
.erra-lamp-cord::before {
  position: absolute;
  content: "";
  width: 4px;
  height: 4px;
  left: -1px;
  top: -1px;
  border-radius: 50%;
  background: linear-gradient(135deg,#ffe0a1,#a47342);
}
.erra-lamp-shade {
  position: absolute;
  inset: 5px 1px 5px;
  clip-path: polygon(0% 4%,15% 0%,85% 0%,100% 4%,85% 55%,63% 100%,37% 100%,15% 55%);
  border: 2px solid #c18a4b;
  border-radius: 5px;
  background:
    linear-gradient(#fff0 64%,#a86d2c8f 67% 73%,#fff0 77%),
    repeating-linear-gradient(83deg,#77492055 0 1px,#fff0 1px 5px),
    linear-gradient(100deg,#c89050,#ffe4a6 29%,#fff6d5 51%,#ffc875 70%,#a66b36);
}
html[data-err-theme=dark] .erra-lamp-shade {
  border-color: #a85c31;
  background:
    linear-gradient(#fff0 64%,#72381680 67% 74%,#fff0 77%),
    repeating-linear-gradient(83deg,#52230669 0 1px,#fff0 1px 5px),
    linear-gradient(100deg,#a86839,#ffc272 28%,#fff0b7 53%,#ffb354 72%,#925029);
}
.erra-lamp-cork {
  position: absolute;
  bottom: 2px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 2px 2px 7px 7px;
  background: linear-gradient(#41302b 0 2px,#a5693d 2px 4px,#ffe3ac 4px,#a36431 100%);
  box-shadow: 0 4px 8px #e9953869;
}
.erra-lamp-labels {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  inset: auto 0 0;
}
.erra-lamp-labels button {
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 3px;
  z-index: 1;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: 650 11px/1.2 system-ui,sans-serif;
  min-height: 25px;
  padding: 0 2px 5px;
  color: #405569;
  white-space: nowrap;
}
.erra-lamp-labels button[aria-pressed="true"] { color: #714517; }
.erra-lamp-labels button::after {
  content: "";
  display: block;
  width: 13px;
  height: 2px;
  border-radius: 4px;
  background: transparent;
}
.erra-lamp-labels button[aria-pressed="true"]::after {
  background: #a96928;
}
html[data-err-theme=dark] .erra-lamp-labels button { color: #b3bfd1; }
html[data-err-theme=dark] .erra-lamp-labels button[aria-pressed="true"] { color: #ffe0a0; }
html[data-err-theme=dark] .erra-lamp-labels button[aria-pressed="true"]::after { background: #ffc56b; }

html[data-err-theme=dark] .erra-lamp-layout .erra-ambient::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 81% 10%,#b76c3030,transparent 29%);
  pointer-events: none;
}
.erra-header-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  z-index: 2;
}
.erra-lamp-layout .erra-brand {
  display: grid;
}
.erra-lamp-layout .erra-brand img {
  display: block;
  grid-area: 1 / 1;
  width: 102px;
  height: 92px;
  transition: opacity .3s ease-in-out;
}
.erra-lamp-layout .erra-logo-dark,
html[data-err-theme=dark] .erra-lamp-layout .erra-logo-light {
  opacity: 0;
}
html[data-err-theme=dark] .erra-lamp-layout .erra-logo-dark {
  opacity: 1;
}
.erra-language-picker > summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  list-style: none;
  border: 1px solid #a7bbc9;
  border-radius: 50%;
  background: #f8fbfe;
  color: #275779;
  cursor: pointer;
}
.erra-language-picker > summary::-webkit-details-marker { display: none; }
.erra-language-picker > summary:focus-visible {
  outline: 2px solid #0c73b7;
  outline-offset: 3px;
}
.erra-language-picker[open] > summary {
  background: #e0effa;
  border-color: #5895be;
}
.erra-language-picker > .erra-languages {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 192px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 5px;
  display: grid;
  gap: 2px;
  border: 1px solid #d3e0eb;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 28px #1a355b32;
}
.erra-language-picker:not([open]) > .erra-languages { display: none; }
.erra-language-picker > .erra-languages a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 10px;
}
.erra-language-picker img { object-fit: contain; border-radius: 3px; }
.erra-language-picker a:hover,
.erra-language-picker a[aria-current] { background: #eaf4fc; }
.erra-language-picker a[aria-current]::after { content: "✓"; margin-left: auto; }
html[data-err-theme=dark] .erra-language-picker > summary {
  background: #162439;
  color: #d4e8fa;
  border-color: #526378;
}
html[data-err-theme=dark] .erra-language-picker[open] > summary,
html[data-err-theme=dark] .erra-language-picker a:hover { background: #294466; }
.erra-premium {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #75521e;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
}
.erra-premium img {
  flex: none;
  width: 35px;
  height: 35px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px #92621d43);
  animation: erra-medallion-in .55s ease-out both;
}
html[data-err-theme=dark] .erra-premium { color: #f1d398; }
@keyframes erra-medallion-in {
  from { opacity: 0; transform: scale(.88) rotate(-9deg); }
  to { opacity: 1; transform: none; }
}
@media (max-width:760px) {
  .erra-lamp-layout .erra-top { flex-wrap: nowrap; }
  .erra-lamp-layout .erra-brand img { width: 78px; height: 70px; }
  .erra-header-controls { gap: 7px; }
  .erra-lamp { width: 128px; height: 52px; }
  .erra-lamp-labels button { padding-bottom: 4px; font-size: 10px; }
}
@media (max-width:340px) {
  .erra-lamp-layout .erra-top { padding-inline: 14px; }
  .erra-lamp-layout .erra-brand img { width: 72px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .erra-lamp .erra-lamp-mover { transition:none; }
}
