:root{color-scheme:light;--tg-theme-bg-color:#fff;--tg-theme-secondary-bg-color:#f7f7f8;--tg-theme-text-color:#111;--tg-theme-hint-color:#777}
html,body{background:#fff!important;color:#111!important}
.proves-standalone-auth{position:fixed;z-index:99999;inset:0;display:grid;place-items:center;padding:calc(22px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));background:#f7f7f8;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.proves-standalone-auth-card{width:min(100%,430px);box-sizing:border-box;padding:24px;border:1px solid #ececef;border-radius:24px;background:#fff;box-shadow:0 14px 50px rgba(20,20,25,.08);text-align:center}
.proves-standalone-auth-logo{width:344px;height:344px;max-width:100%;max-height:none;object-fit:contain;object-position:center center;display:block;margin:-22px auto -10px}.proves-auth-title{margin:0 0 22px!important;color:#666!important;line-height:1.42!important;font-size:18px!important;font-weight:500}.proves-standalone-auth p{color:#666;line-height:1.45}.proves-auth-field{display:block;text-align:left;margin:12px 0}.proves-auth-field span{display:block;font-size:13px;font-weight:700;margin:0 0 7px}.proves-auth-field input{width:100%;box-sizing:border-box;border:1px solid #dedee3;border-radius:14px;padding:14px 15px;font:inherit;font-size:16px;color:#111;background:#fff;outline:none}.proves-auth-field input:focus{border-color:#D22B28;box-shadow:0 0 0 3px rgba(210,43,40,.1)}
.proves-auth-primary{width:100%;border:0;border-radius:14px;padding:14px 16px;background:#D22B28;color:#fff;font:inherit;font-weight:750}.proves-auth-primary#proves-auth-go{transition:background-color .08s ease,filter .08s ease;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.proves-auth-primary#proves-auth-go:active,.proves-auth-primary#proves-auth-go.proves-auth-pressed{background:#b92422;filter:brightness(.94)}.proves-auth-secondary{border:0;background:transparent;color:#555;padding:12px;font:inherit}.proves-auth-error{color:#a51f25!important;font-size:13px}.proves-auth-note{color:#3d6f51!important;font-size:13px}.proves-auth-foot{font-size:12px;color:#888!important;margin-top:18px!important}.proves-auth-explain{margin:14px 6px 0!important;color:#8a8a8f!important;font-size:12px!important;line-height:1.42!important;text-align:center}
.proves-standalone-back{position:fixed;z-index:21000;top:calc(8px + env(safe-area-inset-top));left:calc(10px + env(safe-area-inset-left));display:none;width:42px;height:42px;border:1px solid #e7e7ea;border-radius:50%;background:rgba(255,255,255,.97);box-shadow:0 4px 14px rgba(0,0,0,.07);font-size:27px;line-height:1;color:#111}
.proves-standalone-push{position:fixed;z-index:22000;right:max(12px,env(safe-area-inset-right));bottom:calc(88px + env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));max-width:520px;margin:0 auto;padding:14px 15px;border:1px solid #e8e8eb;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 12px 38px rgba(0,0,0,.13);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}.proves-standalone-push strong,.proves-standalone-push span{display:block}.proves-standalone-push span{margin-top:4px;color:#666;font-size:13px}.proves-standalone-push .actions{display:flex;gap:8px;margin-top:11px}.proves-standalone-push button{flex:1;border:0;border-radius:12px;padding:10px;background:#D22B28;color:#fff;font-weight:700}.proves-standalone-push button.secondary{background:#f0f0f2;color:#333}
.proves-account-button{position:fixed;z-index:20500;top:calc(9px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));width:40px;height:40px;border:1px solid #e7e7ea;border-radius:50%;background:rgba(255,255,255,.96);box-shadow:0 4px 14px rgba(0,0,0,.06);font-size:18px;color:#555}.proves-account-modal{position:fixed;z-index:23000;inset:0;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.24);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}.proves-account-card{width:min(100%,360px);box-sizing:border-box;padding:20px;border-radius:20px;background:#fff}.proves-account-card h3{margin:0 0 6px}.proves-account-card p{color:#666;overflow-wrap:anywhere}.proves-account-card button{width:100%;border:0;border-radius:12px;padding:12px;margin-top:8px;font-weight:700}.proves-account-card .logout{background:#D22B28;color:#fff}.proves-account-card .close{background:#f0f0f2;color:#333}

.proves-auth-divider{display:flex;align-items:center;gap:10px;margin:20px 0 12px;color:#aaa;font-size:11px}.proves-auth-divider::before,.proves-auth-divider::after{content:"";height:1px;flex:1;background:#ececef}.proves-auth-divider span{padding:0 3px}.proves-telegram-login-block{display:flex;flex-direction:column;align-items:center;margin-top:0}.proves-telegram-login-block iframe{display:block;max-width:100%!important;border:0!important}.proves-telegram-login-block #proves-telegram-login{min-height:44px;display:flex;justify-content:center;align-items:center}

/* v0.10: requested standalone login/account polish */
.proves-standalone-auth-card{overflow:visible}
.proves-auth-content{transform:translateY(-38px)}
.proves-auth-explain{margin:14px 6px 0!important}
.proves-account-button{display:none;align-items:center;justify-content:center;padding:0;line-height:1}
.proves-account-button.is-visible{display:flex}
.proves-account-dots{display:flex;align-items:center;justify-content:center;gap:3px;width:18px;height:18px}
.proves-account-dots i{display:block;width:3.5px;height:3.5px;border-radius:50%;background:currentColor}
.proves-account-card button{font:inherit;font-size:16px;line-height:1.2;font-weight:700;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.proves-account-card .close{transition:background-color .08s ease,filter .08s ease}
.proves-account-card .close:active,.proves-account-card .close.proves-close-pressed{background:#dadadd;filter:brightness(.96)}
@media (max-height:700px){.proves-auth-content{transform:translateY(-24px)}}
.proves-account-card .identity-link,.proves-account-card .identity-primary{background:#54a9e8;color:#fff;transition:filter .08s ease,background-color .08s ease}.proves-account-card .identity-link:active,.proves-account-card .identity-primary:active{filter:brightness(.92)}.proves-account-card .identity-linked{background:#eef6f1;color:#397353}.proves-account-card .identity-help{font-size:13px;line-height:1.4;color:#777;margin:8px 0 14px}.proves-account-card .identity-field{text-align:left;margin:10px 0}.proves-account-card .identity-message{min-height:18px;font-size:13px;line-height:1.35;margin:10px 2px 0}.proves-account-card .identity-message.note{color:#666}.proves-account-card .identity-message.success{color:#397353}.proves-account-card .identity-message.error{color:#a51f25}.proves-account-card #proves-account-telegram-link{min-height:50px;display:flex;align-items:center;justify-content:center;margin:8px 0}

/* v0.13: reliable pressed-state for Account controls */
.proves-account-button,.proves-account-card button{transition:background-color .07s ease,filter .07s ease,transform .07s ease;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.proves-account-button.proves-button-pressed{background:#ececef;filter:brightness(.96);transform:scale(.96)}
.proves-account-card .logout:active,.proves-account-card .logout.proves-button-pressed{background:#b92321!important;filter:brightness(.94);transform:scale(.985)}
.proves-account-card .close:active,.proves-account-card .close.proves-button-pressed{background:#d7d7db!important;filter:brightness(.97);transform:scale(.985)}
.proves-account-card .identity-link:active,.proves-account-card .identity-link.proves-button-pressed,.proves-account-card .identity-primary:active,.proves-account-card .identity-primary.proves-button-pressed{background:#3e96d6!important;filter:brightness(.94);transform:scale(.985)}
.proves-account-card button:disabled{transform:none!important;filter:none!important}


/* v0.14: requested e-mail link modal polish */
.proves-account-card .logout,.proves-account-card .close,.proves-account-card .identity-link,.proves-account-card .identity-primary{height:48px;min-height:48px;box-sizing:border-box;padding:0 16px;display:flex;align-items:center;justify-content:center}
.proves-account-card #proves-link-send.identity-primary{background:linear-gradient(180deg,#3a3a3c 0%,#171719 46%,#050506 100%);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.30),inset 0 -1px 0 rgba(255,255,255,.06),0 2px 5px rgba(0,0,0,.20);text-shadow:0 1px 1px rgba(0,0,0,.35)}
.proves-account-card #proves-link-send.identity-primary:active,.proves-account-card #proves-link-send.identity-primary.proves-button-pressed{background:linear-gradient(180deg,#252527 0%,#101012 48%,#000 100%)!important;filter:brightness(.92);transform:scale(.985)}


/* v0.15: account root button order/style only */
.proves-account-card.account-root .identity-link{background:#050506!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 2px 5px rgba(0,0,0,.16)}
.proves-account-card.account-root .identity-link:active,.proves-account-card.account-root .identity-link.proves-button-pressed{background:#000!important;filter:brightness(.88);transform:scale(.985)}
.proves-account-card.account-root .close{display:flex;width:100%;margin-left:auto;margin-right:auto;align-items:center;justify-content:center}
.proves-account-card.account-root .logout{margin-top:18px}
