/* Compact, real-operation island: the existing header stays one row; idle has no footprint. */
body.cmp-body .cmp-island {
    position: relative;
    flex: 0 1 196px;
    min-width: 0;
    width: 196px;
    margin-inline: auto;
    z-index: 4;
    color: #fff;
    font-family: inherit;
}
body.cmp-body .cmp-island[hidden], .cmp-island__panel[hidden] { display: none; }
.cmp-island__toggle, .cmp-island__panel {
    border: 1px solid var(--cmp-black-glass-line, rgba(255,255,255,.1));
    background: var(--cmp-black-glass-bg, rgba(0,0,0,.82));
    backdrop-filter: blur(var(--cmp-black-glass-blur, 25px));
    -webkit-backdrop-filter: blur(var(--cmp-black-glass-blur, 25px));
    color: #fff;
    box-shadow: var(--cmp-black-glass-shadow, -10px 0 50px rgba(0,0,0,.8));
}
.cmp-island__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    cursor: pointer;
    transition: border-radius .24s ease, background-color .2s ease;
}
.cmp-island__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-island__glyph, .cmp-island__item-head > svg { display: inline-flex; align-items: center; flex: none; }
.cmp-island__toggle > svg { flex: none; color: #aaa; transition: transform .24s ease; }
.cmp-island.is-open .cmp-island__toggle > svg { transform: rotate(180deg); }
.cmp-island__panel {
    position: fixed;
    z-index: var(--cmp-z-scrim, 40);
    box-sizing: border-box;
    top: var(--cmp-island-top, calc(60px + env(safe-area-inset-top)));
    left: var(--cmp-island-left, 12px);
    width: var(--cmp-island-width, min(372px, calc(100% - 24px)));
    max-width: calc(100% - 24px);
    min-width: 0;
    font-family: Montserrat, Arial, sans-serif;
    max-height: min(440px, var(--cmp-island-room, calc(100dvh - 180px)));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    border-radius: 22px;
    padding: 10px 12px 12px;
    animation: cmp-island-reveal .24s cubic-bezier(.2,.8,.2,1) both;
    transform-origin: top center;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}
.cmp-island__panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: #bbb; }
.cmp-island__close, .cmp-island__action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.45);
    color: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.3;
    min-width: 0;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
}
.cmp-island__close { width: 44px; padding: 0; border-color: transparent; }
.cmp-island__list { margin: 0; padding: 0; list-style: none; }
.cmp-island__item { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); min-width: 0; }
.cmp-island__item:last-child { padding-bottom: 0; }
.cmp-island__item-head { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.45; }
.cmp-island__title { min-width: 0; overflow-wrap: anywhere; font-weight: 400; }
.cmp-island__detail { margin: 6px 0 0; color: #bbb; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.cmp-island__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cmp-island__actions > button { flex: 1 1 auto; }
.cmp-island__progress { display: block; width: 100%; height: 4px; margin-top: 10px; accent-color: #ddd; }
.cmp-island__spinner { display: inline-block; width: 14px; height: 14px; flex: none; border: 1.5px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: cmp-island-spin .8s linear infinite; }
.cmp-island :is(button):focus-visible, .cmp-island__panel button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes cmp-island-spin { to { transform: rotate(360deg); } }
@keyframes cmp-island-reveal { from { opacity: 0; transform: translateY(-5px) scale(.96); } to { opacity: 1; transform: none; } }
/* Equal side tracks center the pill in the header regardless of right-side actions.
   Explicit columns keep those actions in place while the idle island is hidden. */
@media (min-width: 768px) {
    body.cmp-body .cmp-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    body.cmp-body .cmp-top > .cmp-top__start { grid-column: 1; grid-row: 1; justify-self: start; margin-inline: 0; }
    body.cmp-body .cmp-top > .cmp-island { grid-column: 2; grid-row: 1; justify-self: center; margin-inline: 0; }
    body.cmp-body .cmp-top > .cmp-top__end { grid-column: 3; grid-row: 1; justify-self: end; margin-inline: 0; }
}
/* Phone navigation and inline operation statuses already provide these actions.
   Hide both the logo bar and the body portal, including a panel opened before resizing. */
@media (max-width: 767px) {
    body.cmp-body .cmp-top,
    body.cmp-body .cmp-island__panel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cmp-island *, .cmp-island *::before, .cmp-island__panel, .cmp-island__panel *, .cmp-island__panel *::before { animation: none; transition: none; }
}