*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: 'DM Sans', sans-serif; background: #0f0f0f; color: #f0f0f0; touch-action: manipulation; }
.hdr { background: #0a0a0a; border-bottom: 1px solid #1e1e1e; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; flex-shrink: 0; }
.logo-img { height: 26px; width: auto; display: block; }
.brand { font-weight: 800; letter-spacing: .12em; font-size: 15px; }
.hdr-right { display: flex; align-items: center; gap: 8px; }
.hdr-link { font-size: 11px; font-weight: 700; color: #60a5fa; text-decoration: none; cursor: pointer; }
.hdr-date { font-size: 11px; color: #555; font-family: 'DM Mono', monospace; }
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; background: #242424; border: 1px solid #333; color: #9a9a9a; font-weight: 800; font-family: 'DM Sans', sans-serif; flex-shrink: 0; overflow: hidden; }
.btn { background: #1a1a1a; border: 1px solid #2a2a2a; color: #e6e6e6; font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn:active { background: #2a2a2a; }
.btn.primary { background: #4ade80; color: #0a2412; border-color: #4ade80; }
.btn.danger { background: #2e0e0e; border-color: #5a1a1a; color: #f87171; }
.btn:disabled { opacity: .5; }
.inp { width: 100%; background: #141414; border: 1px solid #2a2a2a; border-radius: 10px; color: #f0f0f0; font-size: 16px; font-family: 'DM Sans', sans-serif; padding: 12px; margin-bottom: 12px; }
.lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #f5f5f5; margin-bottom: 6px; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); background: #fff; color: #111; padding: 9px 18px; border-radius: 9px; font-size: 13px; font-weight: 600; z-index: 1000; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#gate { position: fixed; inset: 0; background: #0f0f0f; z-index: 999; display: none; align-items: center; justify-content: center; padding: 24px; }
#gate .box { width: 290px; max-width: 100%; }
#gate .brand { text-align: center; font-size: 22px; margin-bottom: 28px; }
#gate .go { width: 100%; padding: 14px; border: none; border-radius: 10px; background: #4ade80; color: #0a2412; font-size: 14px; font-weight: 800; cursor: pointer; }
#gate .go:disabled { opacity: .6; }
#gate .msg { text-align: center; font-size: 12px; color: #ef4444; font-weight: 700; margin-top: 12px; min-height: 16px; }
#gate .msg.ok { color: #4ade80; }
#gate .forgot { display: block; text-align: center; font-size: 12px; color: #888; margin-top: 14px; cursor: pointer; }

.pw-wrap { position: relative; }
.pw-wrap .inp { padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 0; height: 44px; width: 40px; background: none; border: none; color: #888; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hdr-gear { color: #888; display: none; align-items: center; cursor: pointer; padding: 4px; -webkit-tap-highlight-color: transparent; }
.hdr-me { display: flex; align-items: center; gap: 6px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hdr-name { font-size: 12px; font-weight: 700; color: #ddd; max-width: 84px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-me { text-decoration: none; }
