/* Windows sit directly on the article paper, without an outer display card. */
.switzerland-memo .window-stage {
    position: relative;
    margin: 38px 0 44px;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
}
.switzerland-memo .floating-window {
    position: relative;
    display: flex;
    flex-direction: column;
    left: 0;
    top: 0;
    width: 100%;
    border: 1px solid #0000001a;
    border-radius: 18px;
    color: #34363b;
    background: #ffffffec;
    box-shadow: 0 22px 52px -20px #273b4e38, 0 4px 12px #273b4e0d, inset 0 1px #fff;
    container: article-window / inline-size;
    isolation: isolate;
}
.switzerland-memo .floating-window.is-dragging,
.switzerland-memo .floating-window.is-resizing {
    user-select: none;
    box-shadow: 0 28px 64px -18px #273b4e42, 0 6px 16px #273b4e12, inset 0 1px #fff;
}
.switzerland-memo .window-chrome {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 54px;
    gap: 12px;
    padding: 9px 14px;
    border-radius: 17px 17px 0 0;
    background: linear-gradient(115deg, #f5f7fae8, #fffffff2);
    box-shadow: inset 0 1px #fff;
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    cursor: grab;
    touch-action: none;
}
.switzerland-memo .window-lights { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.switzerland-memo .window-lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff6058; box-shadow: inset 0 0 0 .5px #00000020; }
.switzerland-memo .window-lights i:nth-child(2) { background: #ffbd2e; }
.switzerland-memo .window-lights i:nth-child(3) { background: #28c840; }
.switzerland-memo .floating-window .window-drag {
    flex: 1;
    align-self: stretch;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    color: #585b61;
    background: none;
    font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
    cursor: grab;
    touch-action: none;
    overflow-wrap: anywhere;
}
.switzerland-memo .is-dragging .window-drag,
.switzerland-memo .is-dragging .window-chrome { cursor: grabbing; }
.switzerland-memo .floating-window .window-reset {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 7px;
    border: 1px solid #ffffffd9;
    border-radius: 50%;
    color: #81858d;
    background: #ffffffcf;
    box-shadow: 0 2px 8px #273b4e06;
}
.switzerland-memo .window-reset:hover { color: #37352f; background: #edf4fa; }
.switzerland-memo .window-reset svg { display: block; width: 100%; height: 100%; }
.switzerland-memo .floating-window .window-resize {
    position: absolute;
    z-index: 4;
    padding: 0;
    border: 0;
    background: transparent;
    touch-action: none;
}
.switzerland-memo .window-resize-n { top: -3px; left: 20px; right: 20px; height: 7px; cursor: ns-resize; }
.switzerland-memo .window-resize-s { bottom: -3px; left: 20px; right: 20px; height: 7px; cursor: ns-resize; }
.switzerland-memo .window-resize-w { left: -3px; top: 20px; bottom: 20px; width: 7px; cursor: ew-resize; }
.switzerland-memo .window-resize-e { right: -3px; top: 20px; bottom: 20px; width: 7px; cursor: ew-resize; }
.switzerland-memo .window-resize-ne, .switzerland-memo .window-resize-nw,
.switzerland-memo .window-resize-se, .switzerland-memo .window-resize-sw { width: 20px; height: 20px; }
.switzerland-memo .window-resize-ne { right: -2px; top: -2px; cursor: nesw-resize; }
.switzerland-memo .window-resize-nw { left: -2px; top: -2px; cursor: nwse-resize; }
.switzerland-memo .window-resize-sw { left: -2px; bottom: -2px; cursor: nesw-resize; }
.switzerland-memo .window-resize-se { right: 2px; bottom: 2px; color: #9ca7b1; cursor: nwse-resize; border-radius: 0 0 10px !important; }
.switzerland-memo .window-resize-se svg { display: block; width: 16px; height: 16px; margin: 2px; }
.switzerland-memo .github-address { flex: 0 0 auto; padding: 0 14px 10px; background: #fafbfde6; }
.switzerland-memo .github-address span {
    display: block;
    padding: 6px 12px;
    border: 1px solid #e8edf2;
    border-radius: 7px;
    color: #828b93;
    background: #ffffffc4;
    font: 10px/1.5 "SF Mono", Menlo, monospace;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.switzerland-memo .window-content { min-height: 0; flex: 1; overflow: auto; border-radius: 0 0 17px 17px; scrollbar-width: thin; }
.switzerland-memo .github-sheet { position: relative; background: #fff; }
.switzerland-memo .github-capture { display: block; width: 100%; height: auto; }
.switzerland-memo .github-arrows {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #68879c;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.switzerland-memo .github-arrows path { vector-effect: non-scaling-stroke; }
.switzerland-memo .github-note {
    position: absolute;
    padding: 4px 7px;
    border: 1px solid #c5dcebc9;
    border-radius: 3px;
    color: #506c80;
    background: #eaf6fff2;
    font: 10px/1.25 "SF Mono", Menlo, monospace;
    font-size: clamp(9px, 1.55cqw, 12px);
    white-space: nowrap;
    pointer-events: none;
}
.switzerland-memo .github-note-folders { left: 29%; top: 14%; }
.switzerland-memo .github-note-path { left: 58%; top: 15%; }
.switzerland-memo .github-note-tree { left: 16%; top: 31%; }
@media (pointer: coarse) {
    .switzerland-memo .floating-window .window-drag { min-height: 36px; }
    .switzerland-memo .floating-window .window-reset { width: 36px; height: 36px; }
    .switzerland-memo .window-resize-se { width: 28px; height: 28px; }
    .switzerland-memo .window-resize-se svg { margin: 6px; }
}
