.top-actions { display: flex; align-items: center; gap: 8px; }
.account-button { border: 1px solid var(--green); background: var(--green); color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 750; cursor: pointer; margin-left: 4px; }
.brand-mark { border: 0; background: var(--green); box-shadow: 0 0 0 6px var(--orange-soft); }
.brand-mark::before { left: 50%; top: 50%; bottom: auto; width: 16px; height: 21px; border-radius: 3px; background: var(--card); transform: translate(-50%,-50%) rotate(-6deg); }
.brand-mark::after { content: ""; position: absolute; right: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 2px solid var(--orange-soft); }
.hero { min-height: 430px; display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: center; padding: 72px 0 52px; gap: 54px; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.flare-visual { width: 270px; height: 270px; position: relative; display: grid; place-items: center; justify-self: end; border-radius: 50%; background: radial-gradient(circle,rgba(255,255,255,.92) 0 24%,rgba(217,238,229,.75) 25% 47%,rgba(217,238,229,.18) 48% 62%,transparent 63%); border: 1px solid rgba(31,104,79,.14); }
.flare-visual:before,.flare-visual:after { content: ""; position: absolute; inset: 50% -20px auto; height: 1px; background: linear-gradient(90deg,transparent,var(--orange),transparent); }
.flare-visual:after { transform: rotate(90deg); }
.flare-core { position: relative; z-index: 2; width: 78px; height: 78px; border-radius: 50%; background: var(--orange-soft); box-shadow: 0 0 0 9px rgba(255,254,250,.9), 0 0 38px rgba(183,76,45,.2); }
.flare-core::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--orange); }
.flare-core::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--card); transform: translate(-50%,-50%); }
.flare-ring { position: absolute; border: 1px solid rgba(31,104,79,.25); border-radius: 50%; }
.ring-one { inset: 58px; }
.ring-two { inset: 28px; }
.flare-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(228,110,68,.12); }
.dot-one { top: 36px; right: 72px; }
.dot-two { left: 40px; bottom: 71px; }
.dot-three { right: 29px; bottom: 105px; background: var(--green); }
.flare-visual strong { position: absolute; bottom: 73px; font-size: 9px; letter-spacing: .12em; line-height: 1.35; text-align: center; color: var(--green); }
.value-strip { display: grid; grid-template-columns: repeat(3,1fr); background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-top: 22px; overflow: hidden; box-shadow: 0 8px 28px rgba(24,40,33,.04); }
.value-strip div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 20px 22px; border-right: 1px solid var(--line); }
.value-strip div:last-child { border: 0; }
.value-strip span { grid-row: 1/3; color: var(--orange); font-family: Georgia,serif; font-size: 20px; }
.value-strip strong { font-size: 14px; }
.value-strip small { color: var(--muted); margin-top: 3px; }
.account-dialog { width: min(510px,calc(100vw - 28px)); max-height: calc(100vh - 32px); border: 0; border-radius: 24px; padding: 34px; overflow: auto; color: var(--ink); background: #fff; box-shadow: 0 32px 100px rgba(20,34,29,.3); }
.account-dialog::backdrop { background: rgba(14,30,24,.6); backdrop-filter: blur(5px); }
.account-dialog h2 { font-family: Georgia,serif; font-size: 35px; line-height: 1.08; margin: 8px 0 12px; font-weight: 500; }
.dialog-intro { color: var(--muted); line-height: 1.55; margin: 0 0 22px; }
.dialog-close { position: absolute; right: 16px; top: 14px; border: 0; background: #f1f2ee; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f3ef; padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.auth-tabs button { border: 0; background: transparent; border-radius: 9px; padding: 10px; color: var(--muted); font-weight: 700; cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(20,34,29,.08); }
.account-dialog .field select { width: 100%; border: 1px solid var(--line); background: #fbfbf8; border-radius: 11px; padding: 12px; margin-top: 7px; color: var(--ink); }
.auth-submit { width: 100%; margin-top: 22px; }
.auth-status { min-height: 20px; margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.auth-status.success { color: var(--green); }
.auth-status.error { color: #a83c2f; }
.auth-status.warning { color: #865225; background: #fff7e8; padding: 10px 12px; border-radius: 10px; }
.privacy-note { display: block; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px; }
.account-benefit { display: flex; justify-content: space-between; gap: 20px; background: var(--mint); padding: 15px 17px; border-radius: 13px; margin: 20px 0; }
.account-benefit span { color: var(--green); }
.account-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-right: 34px; }
.account-heading h2 { margin-top: 8px; }
.account-heading .dialog-intro { margin-bottom: 0; overflow-wrap: anywhere; }
.logout-button { flex: none; min-height: 40px; border: 1px solid #b9c7c0; border-radius: 999px; padding: 9px 15px; background: var(--card); color: var(--green-dark); font-weight: 750; cursor: pointer; }
.logout-button:hover { border-color: var(--green); background: #f1f7f3; }
.account-note { color: var(--muted); font-size: 14px; line-height: 1.5; }
.account-settings-form { display: grid; gap: 14px; margin: 18px 0; }
.starred-library { margin: 24px 0 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.starred-library-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.starred-library-heading h3 { margin: 4px 0 0; font-family: Georgia,serif; font-size: 25px; font-weight: 500; }
.starred-library-heading > span { color: var(--muted); font-size: 12px; }
.starred-papers { display: grid; gap: 9px; max-height: 330px; overflow: auto; padding-right: 3px; }
.starred-paper { display: grid; grid-template-columns: 72px minmax(0,1fr) 32px; gap: 11px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: #fbfbf8; }
.starred-paper .paper-preview.compact { width: 72px; aspect-ratio: 4/3; border-radius: 8px; }
.starred-paper .paper-preview-label,.starred-paper .paper-preview-fallback strong,.starred-paper .paper-preview-fallback small { display: none; }
.starred-paper .paper-preview-fallback i { width: 28px; height: 21px; margin: 0; }
.starred-paper small { color: var(--orange); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.starred-paper h4 { margin: 3px 0 0; font-family: Georgia,serif; font-size: 15px; line-height: 1.25; font-weight: 500; }
.starred-paper h4 a { color: var(--ink); text-decoration: none; }
.starred-paper h4 a:hover { color: var(--green); text-decoration: underline; }
.unstar-paper { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--orange-soft); color: var(--orange); cursor: pointer; }
.starred-empty { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 13px; }
.toggle-field { display: flex; gap: 11px; align-items: flex-start; color: var(--ink); cursor: pointer; }
.toggle-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.toggle-field span { display: grid; gap: 3px; }
.toggle-field small { color: var(--muted); line-height: 1.4; }
.account-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger-button { border: 1px solid #d9aaa3; background: #fff; color: #a83c2f; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.danger-button:hover { background: #fff3f1; }
.policy-page { max-width: 760px; padding-top: 70px; padding-bottom: 90px; }
.policy-page h1 { font-family: Georgia,serif; font-size: clamp(38px,6vw,62px); line-height: 1.04; font-weight: 500; }
.policy-page h2 { margin-top: 34px; }
.policy-page p { color: var(--muted); line-height: 1.75; }
footer { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
footer strong { color: var(--ink); }
footer small { width: 100%; }
@media (max-width: 900px) { .topbar { height: auto; min-height: 72px; padding-top: 10px; padding-bottom: 10px; } .top-actions { align-items: flex-end; } .topbar nav { flex-wrap: wrap; justify-content: flex-end; } .hero { grid-template-columns: 1fr; } .flare-visual { display: none; } }
@media (max-width: 760px) { .brand span:last-child { display: none; } .top-actions { gap: 3px; } .nav-button { padding: 9px 8px; } .nav-button[data-view="profile"] { display: none; } .account-button { padding: 9px 12px; } .hero-actions { align-items: stretch; flex-direction: column; } .hero-actions .primary,.hero-actions .secondary { width: 100%; } .value-strip { grid-template-columns: 1fr; } .value-strip div { border-right: 0; border-bottom: 1px solid var(--line); } .value-strip div:last-child { border-bottom: 0; } .account-dialog { padding: 30px 22px 24px; } .account-heading { display: block; padding-right: 32px; } .logout-button { margin-top: 14px; } }
