html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
}

#out {
    position: fixed;
    inset: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.loading {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    color: #94a3b8;
}

/* the app's own icon, rounded the way a phone rounds it */
.mark {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* the sign-in door, and «confirm with Google» over the app: the page's own, before and above the app */
.panel {
    position: fixed;
    inset: 0;
    z-index: 10;
    overflow-y: auto;
    box-sizing: border-box;
    padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #0f172a;
    color: #cbd5e1;
    font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}

.panel[hidden] {
    display: none;
}

.panel.confirm {
    background: rgba(15, 23, 42, 0.94);
}

.panel h1, .panel h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.5;
}

.panel h1 span, .panel h2 span {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #94a3b8;
}

.panel p {
    margin: 0;
    max-width: 440px;
}

.panel .google {
    min-height: 44px;
    margin: 8px 0;
}

.panel .message {
    min-height: 1.7em;
    color: #fbbf24;
}

.panel .note {
    font-size: 12.5px;
    color: #64748b;
}

.panel .note span {
    display: block;
    margin-top: 4px;
}

.panel a {
    display: inline-block;
    margin-top: 6px;
    color: #93c5fd;
}

.panel .cancel {
    padding: 8px 20px;
    border: 1px solid #334155;
    border-radius: 999px;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    cursor: pointer;
}
