/* Shared navigation and the chat launchpad. Works with both style sheets (style.css uses --mute, site.css uses --dim). */
:root { --an-text: var(--text, #ececee); --an-mute: var(--mute, var(--dim, #8b8b93)); --an-line: var(--line, #26262a); --an-card: var(--surface, var(--card, #141416)); --an-lime: var(--lime, #B3FD1D); }

/* pills at the top of every other page */
header.top { position: sticky; top: 0; z-index: 30; padding: 12px 0; margin-bottom: 20px; background: rgba(4, 4, 4, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--an-line); }
nav.appnav-pills, .modes.appnav-pills { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 14px; border: 0; border-radius: 0; overflow: visible; }
nav.appnav-pills a, .modes.appnav-pills a { padding: 6px 13px; border-radius: 999px; color: var(--an-mute); text-decoration: none; font-weight: 600; transition: background .15s, color .15s; }
nav.appnav-pills a:hover, .modes.appnav-pills a:hover { background: rgba(255, 255, 255, .07); color: var(--an-text); }
nav.appnav-pills a[aria-current], .modes.appnav-pills a[aria-current] { background: var(--an-lime); color: #040404; }
@media (max-width: 700px) { nav.appnav-pills { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; padding-bottom: 2px; } nav.appnav-pills::-webkit-scrollbar { display: none; } nav.appnav-pills a { flex: none; } }

/* the app list in the chat sidebar */
.appnav { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 4px; }
.app-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--an-mute); text-decoration: none; transition: background .15s, color .15s; }
.app-item svg { flex: none; opacity: .85; }
.app-item span { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.app-item b { font-size: 14px; font-weight: 600; color: var(--an-text); }
.app-item small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-item:hover { background: rgba(255, 255, 255, .06); color: var(--an-text); }
.app-item[aria-current] { background: rgba(179, 253, 29, .1); color: var(--an-lime); }
.app-item[aria-current] svg { opacity: 1; }
.app-item[aria-current] small { color: var(--an-mute); }
.side-foot { display: flex; gap: 12px; flex-wrap: wrap; }
.side-foot a { text-decoration: none; }

/* the home screen of the chat */
.launch { width: 100%; margin: 22px 0 8px; padding: 0; }
.launch h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--an-mute); margin: 0 0 12px 2px; }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.launch-card { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--an-line); background: var(--an-card); color: var(--an-text); text-decoration: none; transition: border-color .15s, transform .15s, background .15s; }
.launch-card svg { grid-row: span 2; color: var(--an-lime); }
.launch-card b { font-size: 15px; font-weight: 650; }
.launch-card small { grid-column: 2; color: var(--an-mute); font-size: 12.5px; line-height: 1.35; }
.launch-card:hover { border-color: var(--an-lime); background: rgba(179, 253, 29, .05); transform: translateY(-1px); }
.launch-card:focus-visible { outline: 2px solid var(--an-lime); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .launch-card, .app-item, nav.appnav-pills a { transition: none; } .launch-card:hover { transform: none; } }
@media (max-width: 520px) { .launch-grid { grid-template-columns: 1fr 1fr; } .launch-card { grid-template-columns: 1fr; padding: 12px; } .launch-card svg { grid-row: auto; } .launch-card small { grid-column: 1; } }
@media print { header.top { position: static; } .launch { display: none; } }

/* inside the study page the chat is just the conversation: no app cards */
body.embed .launch { display: none; }

/* "More tools" folded under the main apps in the sidebar */
.more-tools { margin-top: 4px; }
.more-tools summary { list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 10px; color: var(--an-mute); font-size: 13px; font-weight: 600; }
.more-tools summary::-webkit-details-marker { display: none; }
.more-tools summary::before { content: '▸'; display: inline-block; width: 18px; color: var(--an-lime); }
.more-tools[open] summary::before { content: '▾'; }
.more-tools summary:hover { background: rgba(255, 255, 255, .06); color: var(--an-text); }

/* the home screen, Gauth style: scan or type, examples, courses */
.launch.home { margin: 14px 0 8px; }
.home-ask h2 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 750; letter-spacing: -.02em; text-transform: none; color: var(--an-text); margin: 0; }
.home-ask p { color: var(--an-mute); margin: 6px 0 16px; line-height: 1.5; }
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-big { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--an-line); background: var(--an-card); color: var(--an-text); transition: border-color .15s, transform .15s; }
.home-big svg { grid-row: span 2; width: 30px; height: 30px; }
.home-big b { font-size: 16px; font-weight: 700; }
.home-big small { color: var(--an-mute); font-size: 12.5px; }
.home-big.scan { background: var(--an-lime); color: #040404; border-color: var(--an-lime); }
.home-big.scan small { color: rgba(4, 4, 4, .7); }
.home-big:hover { transform: translateY(-1px); border-color: var(--an-lime); }
.home-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--an-mute); margin: 22px 2px 10px; }
.home-h a { text-transform: none; letter-spacing: 0; color: var(--an-lime); text-decoration: none; font-size: 13px; }
.home-examples { display: flex; flex-direction: column; gap: 6px; }
.home-examples button { text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--an-line); background: transparent; color: var(--an-text); font-size: 14px; line-height: 1.4; transition: border-color .15s, background .15s; }
.home-examples button::after { content: ' →'; color: var(--an-lime); }
.home-examples button:hover { border-color: var(--an-lime); background: rgba(179, 253, 29, .05); }
.home-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.home-subjects a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--an-line); background: var(--an-card); color: var(--an-text); text-decoration: none; transition: border-color .15s; }
.home-subjects a:hover { border-color: var(--an-lime); }
.home-subjects b { font-size: 14px; }
.home-subjects small { color: var(--an-mute); font-size: 12px; }
@media (max-width: 520px) { .home-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .home-big, .home-examples button { transition: none; } .home-big:hover { transform: none; } }
