/* The learning dashboard: warm paper, forest ink, a little curiosity. */
.latest-page {
    --latest-blue: #244c3f;
    --latest-blue-dark: #193c30;
    --latest-teal: #244c3f;
    --latest-bg: #f6f5f1;
    --latest-border: #e4e7df;
    --latest-text: #253431;
    --latest-muted: #65715f;
    --lime: #d9ed9a;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
.latest-page * { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.latest-page [hidden] { display: none !important; }
.latest-page a, .latest-page button, .latest-page input { -webkit-tap-highlight-color: transparent; }
.latest-page a, .latest-page button { transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
.latest-page :focus-visible { outline: 3px solid #81a65a; outline-offset: 4px; }
.latest-page svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.latest-page .arrow-icon { width: 15px; height: 15px; stroke-width: 1.5; vertical-align: middle; }
.hero-button .arrow-icon { width: 18px; height: 18px; }
.art-card-back .arrow-icon { width: 23px; height: 23px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: 8px; background: #244c3f; color: white; }
.skip-link:focus { top: 12px; }
.latest-topbar {
    height: 82px;
    grid-template-columns: 200px minmax(180px, 430px) 1fr;
    gap: 32px;
    padding: 0 32px;
    background: #fff;
    color: var(--latest-text);
    border-bottom: 1px solid var(--latest-border);
    box-shadow: none;
}
.latest-topbar .brand {
    display: flex;
    align-items: center;
    color: var(--latest-blue);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
    line-height: 1;
}
.brand-light { font-weight: 450; margin-left: 4px; }
.brand-dot { color: #839f43; }
.brand-mark { position: relative; width: 31px; height: 32px; margin-right: 13px; }
.brand-mark i { position: absolute; width: 21px; height: 27px; border: 2px solid #244c3f; border-radius: 5px; background: #fff; top: 1px; left: 0; transform: rotate(-14deg); }
.brand-mark i:last-child { background: #d9ed9a; transform: rotate(9deg); top: 4px; left: 9px; }
.top-search { height: 42px; border-radius: 9px; background: #f6f7f3; color: #7f877d; padding: 0 14px; border: 1px solid #eef0e9; gap: 10px; }
.top-search svg { width: 19px; height: 19px; }
.top-search input { min-width: 0; font-size: 12px; color: var(--latest-text); }
.top-search input::placeholder { color: #65715f; }
.top-search:focus-within { border-color: #76926f; box-shadow: 0 0 0 3px #eaf0df; }
.top-actions { gap: 20px; flex-wrap: nowrap; min-width: 0; }
.top-actions a { font-size: 12px; font-weight: 650; color: var(--latest-text); white-space: nowrap; }
.top-actions a:hover { color: #66844d; }
.top-actions .top-create { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; color: var(--latest-blue); }
.top-create span { font-size: 20px; font-weight: 400; }
.top-actions .signup-action { background: var(--latest-blue); color: #fff; padding: 10px 17px; border-radius: 8px; }
.top-actions .signup-action:hover { background: #193c30; }
.top-actions [data-auth-user] { background: #f0f4e8; color: var(--latest-blue); padding: 9px 15px; border: 1px solid #e0e7d4; border-radius: 30px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.latest-layout { grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 82px); }
.latest-sidebar { position: sticky; top: 82px; align-self: start; height: calc(100dvh - 82px); min-height: 580px; padding: 30px 18px 22px; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.nav-caption, .side-section p { font-size: 9px; font-weight: 650; letter-spacing: 1.5px; padding: 0 15px; margin-bottom: 13px; color: #65715f; }
.side-nav { gap: 5px; }
.side-nav a, .side-section a { min-height: 45px; padding: 10px 14px; gap: 12px; border-radius: 8px; font-size: 12px; font-weight: 550; color: #65715f; }
.side-nav a svg, .side-section a svg { width: 19px; height: 19px; }
.side-nav a.active { background: #edf3df; color: #345231; border: none; padding-left: 14px; font-weight: 700; }
.side-nav a:hover, .side-section a:hover { background: #f4f6ef; color: #244c3f; }
.side-section { border-top: 1px solid #edf0e8; margin: 27px 0 0; padding-top: 25px; gap: 5px; }
.side-section p { padding: 0 15px; margin-bottom: 7px; }
.side-section a:last-child { color: #65715f; }
.sidebar-note { margin: auto 3px 20px; padding: 20px 15px; border-radius: 12px; background: #f6f7ef; color: #48573f; }
.note-spark { display: block; font-size: 32px; font-weight: 400; color: #839e4e; line-height: 1; margin-bottom: 14px; }
.sidebar-note p { font-size: 13px; font-weight: 650; line-height: 1.6; margin-bottom: 9px; }
.sidebar-note > span:last-child { display: block; font-size: 10px; color: #65715f; line-height: 1.7; }
.sidebar-footer { color: #65715f; font-size: 9px; text-align: center; }
.latest-main { width: 100%; max-width: 1440px; padding: 37px clamp(24px, 3.8vw, 60px) 20px; margin: 0 auto; }
.latest-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.eyebrow { color: #65715f; font-size: 9px; font-weight: 650; letter-spacing: 1.6px; line-height: 1.5; margin-bottom: 9px; }
.latest-heading h1 { font-size: clamp(25px, 2.5vw, 35px); font-weight: 600; letter-spacing: -1.2px; line-height: 1.2; }
.heading-description { color: #65715f; font-size: 12px; margin-top: 8px; line-height: 1.7; }
.heading-badge { display: flex; gap: 7px; align-items: center; padding: 7px 11px; border: 1px solid #e3e6dc; border-radius: 20px; font-size: 10px; color: #65715f; white-space: nowrap; }
.heading-badge span { color: #8b9c58; font-size: 14px; }
.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 305px; overflow: hidden; position: relative; background: #244c3f; color: #fff; border-radius: 18px; margin-bottom: 31px; }
.hero-copy { position: relative; z-index: 1; padding: 32px 0 33px 35px; }
.hero-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 8px; font-weight: 500; letter-spacing: 1.5px; color: #b9c8b9; margin-bottom: 15px; }
.hero-eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.hero-copy h2 { font-size: clamp(28px, 3.1vw, 43px); font-weight: 500; line-height: 1.17; letter-spacing: -1.5px; margin: 0 0 14px; }
.hero-copy h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--lime); }
.hero-copy > p:not(.hero-eyebrow) { font-size: 11px; color: #c2d0c4; line-height: 1.8; }
.hero-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 40px; background: var(--lime); color: #29442e; border-radius: 7px; font-size: 11px; text-decoration: none; font-weight: 650; padding: 0 15px; margin-top: 22px; }
.hero-button > span { font-size: 17px; }
.hero-button:hover { background: #e5f5b3; transform: translateY(-2px); }
.hero-art { position: relative; min-height: 305px; }
.art-orbit { position: absolute; width: 360px; height: 360px; border: 1px solid #496852; border-radius: 50%; top: -35px; left: 0; }
.orbit-two { width: 275px; height: 275px; top: 7px; left: 42px; }
.art-card { width: 180px; height: 205px; position: absolute; border-radius: 12px; box-shadow: 0 14px 24px #122d2826; padding: 20px; }
.art-card-back { background: #d9ed9a; color: #34523b; transform: rotate(-14deg); left: 20px; top: 36px; }
.art-card > span { font-size: 7px; letter-spacing: 1.2px; font-weight: 650; }
.art-card-back strong { font-family: Georgia, serif; font-size: 27px; font-weight: 400; display: block; line-height: 1.2; margin-top: 30px; }
.art-card-back i { position: absolute; bottom: 16px; font-style: normal; font-size: 22px; }
.art-card-front { background: #fbf7ed; color: #344737; left: 116px; top: 69px; transform: rotate(10deg); }
.art-card-front > span { color: #989c87; }
.art-card-front strong { display: block; font-family: Georgia, serif; font-size: 32px; font-weight: 400; letter-spacing: -1px; margin-top: 25px; line-height: 1.2; }
.art-card-front strong span { font-size: 10px; display: block; margin-top: 5px; color: #8f9885; font-family: ui-sans-serif, sans-serif; letter-spacing: 0; }
.art-card-front p { font-size: 9px; color: #6e7b69; margin-top: 10px; }
.art-card-bottom { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; font-size: 7px; color: #88957c; }
.art-card-bottom span:last-child { font-size: 18px; color: #7b945a; }
.art-star { position: absolute; z-index: 1; line-height: 1; }
.star-one { top: 28px; right: 37px; font-size: 43px; font-weight: 400; color: #d9ed9a; transform: rotate(12deg); }
.star-two { bottom: 48px; left: -6px; color: #a7c696; font-size: 21px; }
.art-caption { position: absolute; bottom: 18px; left: 72px; color: #9cb29d; font-size: 8px; letter-spacing: .3px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.section-heading h2, .activity-section .section-heading h2 { font-size: 17px; font-weight: 600; letter-spacing: -.45px; color: var(--latest-text); line-height: 1.4; text-transform: none; margin: 0; }
.section-heading > span { font-size: 10px; color: #65715f; }
.section-heading > a { font-size: 10px; font-weight: 650; color: #4a6950; text-decoration: none; white-space: nowrap; }
.section-heading > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-heading > a span { margin-left: 8px; }
.section-heading .eyebrow { font-size: 8px; margin-bottom: 5px; }
.quick-create { gap: 13px; margin-bottom: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-create .action-card { background: #fff; border: 1px solid #e4e7df; box-shadow: none; border-radius: 12px; padding: 19px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 15px 12px; text-decoration: none; color: var(--latest-text); cursor: pointer; text-align: left; min-width: 0; min-height: 140px; position: relative; }
.quick-create .action-card:hover { border-color: #b2c49d; box-shadow: 0 5px 17px #35472c09; transform: translateY(-3px); }
.action-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.action-icon svg { width: 21px; height: 21px; }
.icon-green { color: #5b7e47; background: #edf3df; }
.icon-peach { color: #bb875e; background: #fbede1; }
.icon-lilac { color: #9380b3; background: #eeebf7; }
.action-copy { flex: 0 0 100%; display: grid; gap: 5px; }
.action-copy strong { font-size: 12px; font-weight: 650; line-height: 1.5; }
.action-copy > span { font-size: 10px; color: #65715f; font-weight: 400; line-height: 1.6; }
.action-arrow { position: absolute; right: 16px; top: 24px; color: #899180; font-size: 18px; font-weight: 400; }
.mini-badge { display: inline-flex; font-size: 7px; padding: 1px 4px; margin-left: 3px; border-radius: 4px; background: #f5e6d8; color: #9b7557; vertical-align: middle; }
.activity-section { margin-bottom: 28px; }
.activity-list { gap: 10px; }
.activity-item { min-height: 97px; grid-template-columns: 55px minmax(0, 1fr) auto; border-radius: 12px; border: 1px solid #e4e7df; box-shadow: none; gap: 15px; padding: 18px 22px; }
.activity-item.clickable-set:hover { border-color: #b7c9a5; box-shadow: 0 4px 14px #35472c08; transform: translateY(-2px); }
.set-thumb { background: #eaf0df; color: #64804f; border-radius: 10px; width: 50px; height: 55px; font-size: 18px; font-weight: 500; letter-spacing: -1px; }
.activity-item:nth-child(3n + 2) .set-thumb { background: #f5e9de; color: #aa825d; }
.activity-item:nth-child(3n) .set-thumb { background: #ece9f5; color: #9683af; }
.set-meta { font-size: 9px; font-weight: 450; color: #65715f; line-height: 1.5; margin-bottom: 5px; }
.activity-item h3 { font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: -.2px; overflow-wrap: anywhere; }
.set-title-link { color: inherit; text-decoration: none; }
.set-title-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.set-description { font-size: 10px; color: #65715f; line-height: 1.6; margin-top: 4px; overflow-wrap: anywhere; }
.study-link { color: #4e6a3e; border: 1px solid #e1e8d4; background: #f3f6ec; font-size: 10px; font-weight: 600; border-radius: 7px; padding: 7px 13px; text-decoration: none; white-space: nowrap; }
.study-link:hover { background: #e6edda; }
.secondary-study-link { background: #fff; color: #65715f; border-color: #e6e9df; }
.set-actions { gap: 7px; }
.delete-set-button { min-height: 32px; font-size: 10px; font-weight: 500; border: 1px solid #efddd4; background: #fff; color: #926148; border-radius: 7px; padding: 6px 10px; }
.empty-state { display: flex; justify-content: center; align-items: center; flex-direction: column; text-align: center; gap: 0; min-height: 187px; border: 1px dashed #d7decf; background: #fbfcf8; }
.empty-state .set-thumb { width: 42px; height: 42px; font-size: 22px; margin-bottom: 12px; }
.empty-state h3 { font-weight: 550; font-size: 14px; }
.empty-state .set-description { max-width: 320px; margin: 5px auto 0; }
.empty-state .study-link { display: inline-flex; margin-top: 14px; }
.empty-state .set-meta { display: none; }
.study-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.study-tools a { display: flex; justify-content: flex-start; min-height: 68px; background: transparent; box-shadow: none; border: 1px solid #e4e7df; border-radius: 10px; padding: 13px 16px; gap: 13px; color: #6d7d62; }
.study-tools a:hover { background: #fff; border-color: #c3d0b3; }
.study-tools a > span:first-child { display: grid; place-items: center; font-size: 23px; font-weight: 400; width: 26px; }
.study-tools a > span:last-child { margin-left: auto; font-size: 18px; font-weight: 400; }
.study-tools strong { display: block; font-size: 11px; color: #526249; font-weight: 600; }
.study-tools small { display: block; font-size: 9px; color: #65715f; font-weight: 400; margin-top: 3px; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #e2e5dc; margin-top: 33px; padding-top: 17px; color: #65715f; font-size: 9px; }
.dashboard-footer > span:last-child span { color: #8fa261; margin-left: 7px; }
.create-set-link { display: inline-flex; align-items: center; gap: 9px; border-radius: 8px; background: #244c3f; font-weight: 550; font-size: 11px; padding: 10px 17px; white-space: nowrap; }
.create-set-link:hover { background: #193c30; }
.create-set-link span { font-size: 17px; font-weight: 400; }
.library-page .latest-heading { margin-bottom: 37px; }
.library-page .activity-section > h2 { color: #253431; text-transform: none; letter-spacing: -.4px; font-size: 17px; font-weight: 600; }
.library-page .dashboard-footer { margin-top: 55px; }
.latest-page .ai-create-dialog { margin: auto; background: #fff; color: var(--latest-text); border: 1px solid #e4e7df; border-radius: 18px; width: min(600px, calc(100% - 32px)); box-shadow: 0 25px 100px #203e3240; max-height: calc(100dvh - 40px); overflow-y: auto; }
.latest-page .ai-create-dialog::backdrop { background: #182d286e; backdrop-filter: blur(4px); }
.latest-page .ai-create-dialog form { padding: 28px; }
.latest-page .dialog-header h2 { font-size: 23px; letter-spacing: -.7px; font-weight: 600; }
.latest-page .dialog-header button { color: #65795d; background: #f0f3e9; border-radius: 7px; }
.latest-page .ai-create-dialog p { color: #7c8674; font-size: 12px; line-height: 1.8; }
.latest-page .ai-create-title-field, .latest-page .ai-create-text-field { color: #54654b; font-size: 11px; font-weight: 550; }
.latest-page .ai-create-title-field input, .latest-page .ai-create-title-field select, .latest-page .ai-create-text-field textarea { background: #f8f9f4; border: 1px solid #e1e6d8; border-radius: 8px; color: #35472f; font-size: 13px; font-weight: 400; }
.latest-page .ai-create-text-field textarea { min-height: 160px; }
.latest-page .ai-create-title-field input:focus, .latest-page .ai-create-title-field select:focus, .latest-page .ai-create-text-field textarea:focus { outline: 2px solid #afc98c; border: 1px solid #a0b983; }
.latest-page .primary-button { background: #244c3f; color: #fff; border-radius: 8px; font-size: 12px; }
.latest-page .secondary-button { background: #eef2e6; color: #546a45; border-radius: 8px; font-size: 12px; }
.latest-page .toast { background: #244c3f; color: #fff; border: 1px solid #48735c; box-shadow: 0 8px 35px #17342b25; }
.search-empty { padding: 35px; text-align: center; border-radius: 12px; border: 1px dashed #d7decf; color: #65715f; }
@media (min-width: 1600px) {
    .hero-art { max-width: 400px; }
    .hero-copy { padding-left: 45px; }
}
@media (max-width: 1100px) {
    .latest-topbar { grid-template-columns: 180px minmax(150px, 1fr) auto; gap: 20px; padding: 0 24px; }
    .latest-layout { grid-template-columns: 205px minmax(0, 1fr); }
    .latest-sidebar { padding-left: 12px; padding-right: 12px; }
    .top-actions { gap: 15px; }
    .top-actions .top-create { display: none; }
    .latest-main { padding: 30px 28px 20px; }
    .heading-badge { display: none; }
    .hero-copy { padding-left: 26px; }
    .art-card { width: 153px; height: 185px; padding: 17px; }
    .art-card-back { left: 8px; top: 43px; }
    .art-card-front { left: 73px; top: 86px; }
    .art-card-front strong { font-size: 28px; }
    .art-card-back strong { font-size: 23px; }
    .star-one { right: 16px; font-size: 30px; }
    .art-caption { left: 25px; font-size: 7px; }
    .hero-eyebrow { font-size: 7px; letter-spacing: 1px; }
    .hero-copy h2 { font-size: 33px; }
    .quick-create .action-card { padding: 16px 13px; }
    .action-copy strong { font-size: 11px; }
    .action-copy > span { font-size: 9px; }
    .mini-badge { display: none; }
}
@media (max-width: 900px) {
    .latest-topbar { grid-template-columns: 180px minmax(130px, 1fr) auto; height: 74px; padding: 0 22px; gap: 20px; }
    .latest-layout { grid-template-columns: 1fr; }
    .latest-sidebar { position: static; height: auto; min-height: 0; border-bottom: 1px solid #e4e7df; padding: 9px 22px; }
    .side-nav { display: flex; gap: 8px; }
    .side-nav a, .side-nav a.active { padding: 9px 15px; min-height: 38px; font-size: 11px; gap: 8px; }
    .nav-caption, .side-section, .sidebar-note, .sidebar-footer { display: none; }
    .latest-main { max-width: 960px; padding: 30px 30px 20px; }
    .latest-heading { display: flex; }
    .quick-create { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .activity-item { grid-template-columns: 55px minmax(0, 1fr) auto; }
    .study-link { grid-column: auto; }
    .dashboard-hero { grid-template-columns: 1.1fr .9fr; }
    .hero-copy { padding: 33px; }
    .hero-copy h2 { font-size: 38px; }
    .art-card { width: 170px; height: 193px; }
    .art-card-front { left: 93px; top: 72px; }
    .art-card-back { left: 12px; top: 35px; }
    .hero-eyebrow { font-size: 8px; }
    .art-caption { left: 47px; }
}
@media (max-width: 620px) {
    .latest-topbar { grid-template-columns: 1fr auto; height: auto; min-height: 74px; padding: 19px 20px 15px; gap: 16px 12px; position: relative; }
    .latest-topbar .brand { font-size: 23px; }
    .brand-mark { margin-right: 11px; }
    .top-search { grid-row: 2; grid-column: 1 / -1; height: 42px; }
    .top-actions { grid-row: 1; grid-column: 2; gap: 12px; }
    .top-actions a { font-size: 11px; }
    .top-actions .signup-action { padding: 9px 12px; }
    .top-actions [data-auth-user] { max-width: min(145px, 32vw); padding: 8px 12px; }
    .latest-sidebar { padding: 8px 14px; overflow-x: auto; }
    .side-nav { justify-content: space-between; gap: 4px; }
    .side-nav a, .side-nav a.active { font-size: 10px; padding: 8px 9px; gap: 6px; white-space: nowrap; }
    .side-nav a svg { width: 16px; height: 16px; }
    .latest-main { padding: 26px 20px 20px; }
    .latest-heading { gap: 16px; margin-bottom: 23px; align-items: flex-start; }
    .latest-heading h1 { font-size: 27px; letter-spacing: -1px; }
    .heading-description { font-size: 11px; max-width: 280px; }
    .eyebrow { font-size: 8px; }
    .dashboard-hero { display: block; min-height: 0; margin-bottom: 27px; border-radius: 15px; }
    .hero-copy { padding: 28px; }
    .hero-copy h2 { font-size: 34px; letter-spacing: -1.2px; }
    .hero-copy > p:not(.hero-eyebrow) { font-size: 10px; }
    .hero-art { display: none; }
    .hero-eyebrow { font-size: 7px; }
    .hero-button { margin-top: 20px; }
    .section-heading { gap: 10px; }
    .section-heading h2, .activity-section .section-heading h2 { font-size: 16px; }
    .section-heading > span { display: none; }
    .section-heading > a { font-size: 9px; }
    .quick-create { grid-template-columns: 1fr; gap: 9px; margin-bottom: 27px; }
    .quick-create .action-card { flex-wrap: nowrap; min-height: 82px; padding: 17px; gap: 14px; }
    .action-copy { flex: 1; min-width: 0; gap: 3px; padding-right: 14px; }
    .action-copy strong { font-size: 12px; }
    .action-copy > span { font-size: 10px; }
    .action-icon { flex-shrink: 0; }
    .action-arrow { position: static; margin-left: auto; font-size: 18px; }
    .activity-item { grid-template-columns: 44px minmax(0, 1fr); padding: 17px; gap: 13px; }
    .set-thumb { width: 43px; height: 49px; font-size: 15px; }
    .activity-item h3 { font-size: 13px; }
    .activity-item > .study-link, .activity-item > .set-actions { grid-column: 2; justify-self: start; }
    .empty-state { display: flex; min-height: 195px; padding: 22px; gap: 0; }
    .study-tools { grid-template-columns: 1fr 1fr; gap: 9px; }
    .study-tools a { min-height: 100px; display: flex; flex-wrap: wrap; padding: 13px; gap: 10px; position: relative; }
    .study-tools a > div { flex-basis: 100%; }
    .study-tools a > span:first-child { font-size: 21px; width: auto; height: 22px; }
    .study-tools a > span:last-child { position: absolute; right: 13px; top: 10px; font-size: 17px; }
    .study-tools strong { font-size: 10px; }
    .study-tools small { font-size: 8px; }
    .dashboard-footer { flex-direction: column; gap: 5px; font-size: 8px; margin-top: 27px; }
    .library-page .latest-heading { flex-direction: column; gap: 17px; margin-bottom: 28px; }
    .library-page .latest-heading h1 { max-width: 280px; }
    .latest-page .ai-create-dialog form { padding: 22px; }
    .latest-page .dialog-header h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .latest-page *, .latest-page *::before, .latest-page *::after { transition: none !important; scroll-behavior: auto !important; }
}

.top-actions [data-logout], .account-actions [data-logout] { border: 1px solid #d8e1cd; border-radius: 7px; color: #4f6542; background: #fff; font: inherit; font-size: 11px; padding: 8px 11px; cursor: pointer; white-space: nowrap; }
.top-actions [data-logout]:hover, .account-actions [data-logout]:hover { background: #eef3e5; }
@media(max-width:620px) { .top-actions { gap: 8px; } .top-actions [data-auth-user] { max-width: min(100px,23vw); } }
.load-more-button { display: block; margin: 16px auto 0; padding: 10px 18px; border: 1px solid #cbd8b9; border-radius: 8px; background: #eef3e5; color: #4d653d; font: inherit; font-size: 12px; cursor: pointer; }
.load-more-button:disabled { opacity: .6; cursor: wait; }
@media(max-width:380px) {
 .latest-topbar { padding-left:16px; padding-right:16px; gap:14px 9px; }
 .latest-topbar .brand { font-size:20px; }
 .latest-topbar .brand-mark { margin-right:9px; width:28px; }
 .top-actions { gap:6px; }
 .top-actions [data-auth-user] { max-width:64px; padding:7px 9px; font-size:10px; }
 .top-actions [data-logout] { padding:7px 8px; font-size:10px; }
}
