.status-island {
  position: fixed;
  z-index: 55;
  inset-inline: 0;
  inset-block-end: calc(var(--island-dock, 12px) + env(safe-area-inset-bottom, 0px));
  width: min(348px, calc(100% - 28px));
  margin-inline: auto;
  color: #fff;
  font-size: 13px;
  isolation: isolate;
}

.app-shell:has(#bottom-nav:not(.hidden)) .status-island { --island-dock: 68px; }
.status-island[hidden], .island-panel[hidden] { display: none; }
.modal-backdrop:not(.hidden) ~ .status-island { visibility: hidden; }
.app-shell:has(.status-island:not([hidden])) #screen-root { padding-block-end: 56px; }

.status-island::before,
.status-island::after {
  position: absolute;
  z-index: -1;
  inset-inline: 8px;
  inset-block-end: 5px;
  height: 44px;
  border: 1px solid #ffffff24;
  border-radius: 20px;
  background: #24344a;
  content: "";
  display: none;
}

.status-island:is([data-layers="1"], [data-layers="2"]):has([aria-expanded="false"])::before {
  display: block;
}
.status-island[data-layers="2"]:has([aria-expanded="false"])::after {
  display: block;
  inset-inline: 16px;
  inset-block-end: 9px;
  z-index: -2;
  background: #3b4c65;
}

.island-toggle,
.island-panel {
  border: 1px solid #ffffff20;
  border-radius: 20px;
  background: #121b2a;
  box-shadow: 0 8px 24px #10182642;
}

.island-toggle {
  min-height: 44px;
  width: 100%;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.island-chevron { color: #c3d1e4; }
.island-toggle[aria-expanded="true"] .island-chevron { transform: rotate(180deg); }
.island-panel {
  max-height: min(200px, 34dvh);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0 0 6px;
  padding: 4px 10px;
  list-style: none;
}

.island-row,
.island-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.island-row { min-height: 45px; padding-block: 4px; }
.island-row + .island-row { border-block-start: 1px solid #ffffff1a; }
.island-description { min-width: 0; flex: 1; line-height: 1.3; overflow-wrap: anywhere; }
.island-summary .island-label { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island-detail { white-space: nowrap; }
.island-detail { display: block; color: #bac9db; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.island-percent { font-variant-numeric: tabular-nums; color: #d6e5fa; font-size: 11px; }

.island-glyph {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff12;
  color: #8dc4ff;
}
.island-glyph svg { width: 16px; height: 16px; }
.island-done { color: #79e4bb; background: #75e4b925; }
.island-error { color: #ffc18f; background: #ffb98b26; }
.island-running svg { transform: rotate(-90deg); }
.island-running circle { fill: none; stroke: currentColor; stroke-width: 2px; opacity: 0.25; }
.island-running .island-arc {
  opacity: 1;
  stroke-linecap: round;
  stroke-dasharray: var(--island-progress, 25) 100;
}
.island-indeterminate svg { animation: island-spin 0.9s linear infinite; }
@keyframes island-spin { to { transform: rotate(270deg); } }

.island-action {
  border: 0;
  border-radius: 999px;
  flex: none;
  min-height: 36px;
  padding-inline: 9px;
  background: #ffffff18;
  color: inherit;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.island-icon-button { width: 36px; display: grid; place-items: center; }
.status-island button:focus-visible { outline: 2px solid #9bcaff; outline-offset: 2px; }
.island-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

body:has(.status-island:not([hidden])) { --feedback-bottom: 70px; }
body:has(#bottom-nav:not(.hidden)):has(.status-island:not([hidden])) { --feedback-bottom: 126px; }
body:has(.status-island:not([hidden]) [aria-expanded="true"]) { --feedback-bottom: calc(78px + min(200px, 34dvh)); }
body:has(#bottom-nav:not(.hidden)):has(.status-island:not([hidden]) [aria-expanded="true"]) {
  --feedback-bottom: calc(134px + min(200px, 34dvh));
}

@media (prefers-reduced-motion: reduce) {
  .island-indeterminate svg { animation: none; }
}
