/* Additions for parts that the original site rendered with third-party UI (Clerk sign-in, Radix sheet). */
html, body { margin: 0; }
body { background: #0e0e10; }

a { color: inherit; }

/* Side sheet (dashboard main menu) */
.sheet-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.8); animation: sheet-fade .2s ease; }
.sheet-panel { position: fixed; z-index: 51; inset: 0 auto 0 0; height: 100%; padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,.4); border-right: 1px solid var(--line); animation: sheet-in .28s ease; overflow-y: auto; }
.sheet-close { position: absolute; right: 16px; top: 16px; background: none; border: 0; color: var(--soft); cursor: pointer; padding: 4px; border-radius: 6px; }
.sheet-close:hover { color: var(--ink); }
.sheet-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; font-weight: 600; }
.ap-menu-nav .ap-nav { cursor: pointer; }
@keyframes sheet-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes sheet-in { from { transform: translateX(-100%) } to { transform: none } }
.ap-top .ap-logo { cursor: pointer; }

/* Auth pages (sign in / sign up) */
.auth-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse 55% 45% at 50% 100%, rgba(139,92,246,.5), transparent 70%), radial-gradient(rgba(232,220,196,.09) 1px, transparent 1.2px), #2B4A40; background-size: auto, 22px 22px, auto; font-family: "Plus Jakarta Sans", sans-serif; color: #2B4A40; }
.auth-card { width: min(400px, 100%); background: #F4EEE1; border: 1px solid rgba(232,220,196,.4); border-radius: 18px; box-shadow: 0 30px 80px rgba(5,14,9,.45); padding: 36px 32px 28px; text-align: center; }
.auth-logo { width: 36px; height: 36px; border-radius: 50%; background: #8B5CF6; margin: 0 auto 18px; display: grid; place-items: center; color: #f4f3ee; }
.auth-card h1 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.02em; }
.auth-card .auth-sub { color: #5d6b78; font-size: 13px; margin: 0 0 24px; }
.auth-field { text-align: left; margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.auth-input-wrap { position: relative; }
.auth-field input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid rgba(24,38,56,.18); border-radius: 8px; font: inherit; font-size: 13.5px; background: #fff; color: #182638; outline: none; }
.auth-field input:focus { border-color: #8B5CF6; box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.auth-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #5d6b78; cursor: pointer; padding: 4px; display: grid; }
.auth-btn { width: 100%; margin-top: 8px; padding: 11px 14px; border: 0; border-radius: 999px; background: #8B5CF6; color: #fff; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.auth-btn:disabled { opacity: .6; cursor: default; }
.auth-err { background: #f4e2e1; color: #a1383a; border-radius: 8px; padding: 9px 12px; font-size: 13px; text-align: left; margin-bottom: 14px; }
.auth-foot { margin-top: 22px; font-size: 13px; color: #5d6b78; }
.auth-foot a { color: #6D3FE0; font-weight: 600; text-decoration: none; cursor: pointer; }
.auth-back { display: inline-block; margin-top: 14px; font-size: 12.5px; color: rgba(232,220,196,.75); cursor: pointer; text-decoration: underline; }

/* Error boundary */
.app-crash { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px; font-family: "DM Sans", sans-serif; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 10px 14px; border: 1px solid rgba(43,74,64,.2); border-radius: 999px; background: #fff; color: #1f2a24; font: 600 13.5px "Plus Jakarta Sans", sans-serif; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.auth-google:hover { border-color: #8B5CF6; box-shadow: 0 6px 18px rgba(139,92,246,.18); transform: translateY(-1px); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #7a857c; font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(43,74,64,.14); }
