/* Copyright (c) 2025-2026 Evil Works. All rights reserved. */
/* SPDX-License-Identifier: LicenseRef-EvilWorks-Proprietary */
html, body {
    margin: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    background: #0f1824;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#back {
    width: 100%;
    height: 100%;
    display: block;
}

/* The graph keeps its existing expansion policy. Normal document presentation
   supplies its own policy before the first contact begins. */
#back.portal-touch-document, #back.portal-touch-expanded-table, #back.portal-touch-expanded-context {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

#portal-touch-editor::selection {
    background: transparent;
    color: transparent;
}

.portal-touch-selection-handle {
    position: fixed;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 5px solid transparent;
    border-radius: 50%;
    background: #169cdb;
    background-clip: padding-box;
    transform: translate(-50%, -3px);
    touch-action: none;
    z-index: 100;
}

.portal-touch-selection-copy, .portal-touch-preview-status {
    position: fixed;
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    background: #15354b;
    color: #fff;
    font: 14px system-ui, sans-serif;
    z-index: 100;
}

.portal-touch-preview-status {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}
