body {
    font-family: Segoe UI;
    background-color: #FFFFFF;
}

.gacui-container {
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    
    /* Disable text selection to prevent conflicts with application-like behavior */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard syntax */
    
    /* Disable text cursor when hovering over the container */
    cursor: default;
    
    /* Remove focus outline when element is focused */
    outline: none;
}

.gacui-error-mask,
.gacui-success-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.gacui-error-mask.visible,
.gacui-success-mask.visible {
    display: block;
}

.gacui-mask-message {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 24px;
    right: 24px;
    max-height: calc(100% - 48px);
    color: #202020;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-align: center;
    text-shadow: 0 1px 2px #FFFFFF, 0 -1px 2px #FFFFFF, 1px 0 2px #FFFFFF, -1px 0 2px #FFFFFF;
    transform: translateY(-50%);
    white-space: pre-wrap;
}

.gacui-error-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
}

.gacui-error-cross::before,
.gacui-error-cross::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 6px;
    background-color: #ff0000;
    transform-origin: center;
}

.gacui-error-cross::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.gacui-error-cross::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.gacui-success-tick {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 6px solid #00aa00;
    border-radius: 50%;
    background-color: transparent;
    transform: translate(-50%, -50%);
}

body { margin: 16px; font-family: system-ui, sans-serif; background: #f5f7fa; color: #182434; }
header { display: flex; gap: 24px; align-items: center; margin-bottom: 16px; }
header a { color: #235fa4; font-weight: 700; }
.gacui-container { width: max(320px, calc(100vw - 32px)); height: max(240px, calc(100dvh - 112px)); background: white; }
.actions { display: flex; gap: 8px; margin-top: 12px; }
button { font: inherit; padding: 5px 18px; cursor: pointer; }
button:disabled { cursor: default; }
#gacui-loading { margin: 24px 0; }
#gacui-loading label { display: block; margin-bottom: 8px; }
progress { width: min(420px, 100%); height: 20px; }
