.tw-island {
  position: fixed;
  top: calc(12px + var(--tw-safe-t));
  left: calc((100vw - var(--tw-full-w)) / 2 + var(--tw-ie-shift, 0px));
  z-index: var(--tw-z-island);
  width: var(--tw-w, 120px);
  height: var(--tw-h, 38px);
  border-radius: var(--tw-r, 19px);
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint style;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transform: scale(var(--tw-sc, 1));
  transform-origin: 50% 0;
  will-change: width, height, transform;
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / .35);
  background:
    radial-gradient(140px 72px at var(--tw-light-x, 18%) var(--tw-light-y, 0%), rgb(255 255 255 / .16), transparent 72%),
    radial-gradient(120% 160% at 16% 0%, color-mix(in srgb, var(--color-accent) 24%, transparent), transparent 44%),
    radial-gradient(90% 130% at 84% 0%, rgb(255 255 255 / .13), transparent 42%),
    linear-gradient(180deg, rgb(255 255 255 / .10), rgb(255 255 255 / .025) 48%, rgb(0 0 0 / .08)),
    color-mix(in srgb, #070916 66%, transparent);
  backdrop-filter: blur(var(--tw-blur, 24px)) saturate(1.6) brightness(1.08);
  -webkit-backdrop-filter: blur(var(--tw-blur, 24px)) saturate(1.6) brightness(1.08);
  border: 1px solid rgb(255 255 255 / .14);
  box-shadow: 0 10px 30px rgb(0 0 0 / .28), inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(0 0 0 / .22);
}

.tw-island::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 16%, rgb(255 255 255 / .17) 27%, transparent 39%),
    radial-gradient(60% 90% at 28% 0%, rgb(255 255 255 / .12), transparent 64%),
    radial-gradient(60% 90% at 78% 115%, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 65%);
  mix-blend-mode: screen;
  opacity: .95;
  transform: translate3d(calc(-9% + var(--tw-glint, 0) * 120%), -6%, 0) scale(1.15);
}

.tw-island::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .06), transparent 20%, transparent 76%, rgb(0 0 0 / .12)),
    radial-gradient(80% 70% at 50% 120%, rgb(0 0 0 / .18), transparent 70%);
}

[data-reduced-transparency="true"] .tw-island,
[data-motion-profile="lite"] .tw-island {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: color-mix(in srgb, #070916 92%, transparent);
}

.tw-ie-bar {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
  transition: opacity .2s;
}

.tw-ie-bar[data-dim="true"] {
  opacity: 0;
}

.tw-ie-clock {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}

.tw-ie-batt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tw-ie-batt-svg {
  width: 26px;
  height: 13px;
}

.tw-ie-batt-body {
  stroke: currentColor;
  stroke-opacity: .45;
  stroke-width: 1;
}

.tw-ie-batt-cap {
  fill: currentColor;
  fill-opacity: .45;
}

.tw-ie-batt-fill {
  fill: #fff;
  transition: width .4s, fill .3s;
}

.tw-ie-batt-bolt {
  fill: #fff;
  opacity: 0;
  stroke: #0a0d1c;
  stroke-width: .6;
  paint-order: stroke;
}

.tw-ie-batt-pct {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tw-ie-batt[data-state="charging"] .tw-ie-batt-fill {
  fill: #30d158;
}

.tw-ie-batt[data-state="charging"] .tw-ie-batt-bolt {
  opacity: 1;
}

.tw-ie-batt[data-state="low"] .tw-ie-batt-fill {
  fill: #ff453a;
}

.tw-ie-batt[data-state="unknown"] .tw-ie-batt-svg {
  opacity: .55;
}

.tw-ie-batt[data-state="unknown"] .tw-ie-batt-pct {
  display: none;
}

.tw-island-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  max-width: calc(100% - 150px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  pointer-events: none;
  transform: translate3d(-50%, calc(-50% + var(--tw-ly, 0px)), 0);
  opacity: calc(var(--tw-li, 1) * var(--tw-lab, 1));
}

.tw-island__expanded-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 12px 52px 12px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--tw-ci, 0);
  transform: translate3d(0, var(--tw-cy, 8px), 0);
}

.tw-island__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .62;
}

.tw-island[data-sky-mode="true"] .tw-island__eyebrow {
  opacity: .72;
}

.tw-island__title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.tw-island__hint {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 11px;
  opacity: .56;
}

.tw-island__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: inherit;
  border: 1px solid rgb(255 255 255 / .12);
  background: rgb(255 255 255 / .08);
  opacity: calc(var(--tw-ci, 0) * .76);
  transform: scale(calc(.82 + var(--tw-ci, 0) * .18));
  pointer-events: none;
}

.tw-island__close svg {
  width: 14px;
  height: 14px;
}

.tw-island[data-tw-expanded="true"] .tw-island__close {
  pointer-events: auto;
}

.tw-island__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.tw-island[data-tw-expanded="true"] .tw-island__hit {
  width: calc(100% - 44px);
}

.tw-ie-back {
  position: fixed;
  z-index: calc(var(--tw-z-island) + 2);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(90% 90% at 30% 20%, rgb(255 255 255 / .16), transparent 70%), color-mix(in srgb, #070916 78%, transparent);
  border: 1px solid rgb(255 255 255 / .24);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 8px 22px rgb(0 0 0 / .3), inset 0 1px 0 rgb(255 255 255 / .22);
  will-change: transform, opacity;
}

.tw-ie-back svg {
  width: 16px;
  height: 16px;
}
