/* website-only bits */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-wrap { width: 100%; max-width: 420px; padding: 24px 16px; }
.login-card { padding: 28px; }
.login-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.login-brand img { width: 44px; height: 44px; border-radius: 10px; }
.login-brand b { display: block; font-size: 18px; }
.login-brand small { color: var(--muted); }
.login-tabs { width: 100%; margin-bottom: 16px; }
.login-tabs button { flex: 1; }
.login-go { width: 100%; justify-content: center; padding: 10px; margin-top: 6px; }
.login-err { color: var(--bad); min-height: 0; margin: 4px 0; }
.login-ok { color: var(--ok); margin: 4px 0; }
.login-links { display: flex; justify-content: space-between; margin-top: 12px; }
.login-note { font-size: 12.5px; }
.web-busy { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 20px; padding: 8px 16px; z-index: 300; font-size: 13px; }

/* paid version: balances in the sidebar */
.bal-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; background: var(--panel2); display: flex; flex-direction: column; gap: 4px; }
.bal-box:hover { border-color: var(--accent); }
.bal-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 6px; align-items: center; font-size: 12px; }
.bal-name { color: var(--muted); }
.bal-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bal-bar i { display: block; height: 100%; background: var(--accent); }
.bal-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.plan-grid .card { margin: 0; }
.big-num { font-size: 26px; font-weight: 700; margin: 4px 0 6px; }
.big-num small { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan-mine { border: 2px solid var(--accent); }
.warn-text { color: var(--warn); }

/* paid version: template previews can be looked at, not copied or printed */
body.paid-mode .preview-pages, body.paid-mode .preview-pages * { -webkit-user-select: none; user-select: none; }
body.paid-mode .preview-pages .pg { position: relative; }
body.paid-mode .preview-pages .pg::after { content: "PREVIEW"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 64px/1 var(--ui); letter-spacing: .2em; color: rgba(120, 120, 120, .16); transform: rotate(-35deg); pointer-events: none; z-index: 5; }
@media print { body.paid-mode * { display: none !important; } body.paid-mode::after { content: "Printing is available after publishing."; display: block !important; padding: 40px; } }
