/* Shared type scale and controls, used by every page and tool. */
:root { --text-xs: .75rem; --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.125rem; --text-xl: 1.5rem; --text-2xl: 2rem; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:where(a, button, input, textarea, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.button { min-height: 44px; padding: 8px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--pill); font: inherit; font-size: var(--text-sm); line-height: 1.4; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color var(--transition), border-color var(--transition); }
.button-primary { color: var(--on-primary); background: var(--button-bg); border-color: var(--button-bg); }
@media (hover: hover) { .button-primary:hover { background: var(--button-hover); } }
.button-secondary { color: var(--text); background: var(--surface); border-color: var(--border); }
@media (hover: hover) { .button-secondary:hover { background: var(--bg-secondary); border-color: var(--border-strong); } }
.button-small { padding-inline: 12px; }
.button:not(:disabled):active, .icon-button:not(:disabled):active { filter: brightness(.94); }
.button:disabled { opacity: 0.6; cursor: wait; }
.field-input { min-width: 0; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: var(--bg-secondary); font: inherit; font-size: var(--text-base); line-height: 1.5; transition: border-color var(--transition), box-shadow var(--transition); }
.field-input::placeholder { color: var(--text-muted); }
.field-input:focus { border-color: var(--primary); outline: 2px solid var(--primary-soft); outline-offset: 1px; }
.icon-button { width: 44px; height: 44px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-secondary); background: transparent; font: inherit; text-decoration: none; cursor: pointer; transition: color var(--transition), background-color var(--transition), border-color var(--transition); }
@media (hover: hover) { .icon-button:hover { border-color: var(--border); color: var(--primary); background: var(--primary-soft); } }
.icon-button:disabled { cursor: wait; opacity: .6; }
.button svg, .icon-button svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.form-field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.form-field > label, .form-field > span, .section-label { color: var(--text-secondary); font-size: var(--text-sm); font-weight: 600; }
.section-label { margin-bottom: 8px; }
.checkbox-field { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: var(--text-sm); cursor: pointer; }
.checkbox-field input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }
.empty-state { padding: 24px 12px; color: var(--text-muted); font-size: var(--text-sm); text-align: center; list-style: none; }
.status-message { margin-top: 8px; color: var(--text-muted); font-size: var(--text-sm); }
.status-message:empty { display: none; }
.status-message.is-error { color: var(--danger); }

:root {
    color-scheme: light;
    scroll-padding-top: 104px;
    --primary: #0066cc;
    --primary-dark: #0055b3;
    --primary-soft: rgba(0, 122, 255, 0.1);
    --button-bg: #0066cc;
    --button-hover: #0055b3;
    --on-primary: #ffffff;
    --bg: #f3f6fb;
    --bg-secondary: #f0f3f8;
    --bg-tertiary: #e6ecf4;
    --surface: #fcfdff;
    --glass: rgba(255, 255, 255, 0.74);
    --glass-edge: rgba(255, 255, 255, 0.9);
    --text: #191c20;
    --text-secondary: #515862;
    --text-muted: #626b77;
    --border: rgba(60, 80, 110, 0.12);
    --border-strong: rgba(60, 80, 110, 0.24);
    --success: #15803d;
    --danger: #c2413a;
    --shadow: 0 8px 28px rgba(35, 65, 100, 0.07);
    --radius: 20px;
    --radius-sm: 12px;
    --pill: 999px;
    --transition: 160ms ease;
}

[data-theme="dark"] {
    color-scheme: dark;
    --primary: #75a7ff;
    --primary-dark: #a1c3ff;
    --primary-soft: rgba(59, 130, 246, 0.16);
    --on-primary: #ffffff;
    --bg: #10151e;
    --bg-secondary: #202936;
    --bg-tertiary: #2b3645;
    --surface: #19212d;
    --glass: rgba(30, 40, 55, 0.8);
    --glass-edge: rgba(255, 255, 255, 0.12);
    --text: #f3f5f5;
    --text-secondary: #b8bec5;
    --text-muted: #89929c;
    --border: #30353a;
    --border-strong: #444b51;
    --success: #86efac;
    --danger: #fca5a5;
    --shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background-color var(--transition), color var(--transition);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app { display: flex; flex-direction: column; min-height: 100vh; }

.header {
    position: fixed; top: 16px; left: 20px; right: 20px; max-width: 1080px; margin: auto;
    border-radius: var(--pill); z-index: 100;
}

/* Glass is reserved for floating controls; content stays opaque. */
.header, .mobile-nav, .back-to-top {
    background: var(--glass); border: 1px solid var(--glass-edge);
    box-shadow: inset 0 1px 0 var(--glass-edge), var(--shadow);
    backdrop-filter: blur(24px) saturate(160%);
}

.header-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}

.logo { min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: var(--radius); background: var(--primary-soft); font-size: 19px; }
.logo-text { max-width: 180px; overflow: hidden; font-size: var(--text-base); font-weight: 600; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
    min-height: 44px; padding: 10px 18px; border-radius: var(--pill); color: var(--nav-color, var(--text-secondary));
    text-decoration: none; font-size: var(--text-sm); font-weight: 500; transition: color var(--transition), background-color var(--transition);
    cursor: pointer; border: none; background: var(--nav-background, transparent);
}
@media (hover: hover) { .nav-link:hover { color: var(--text); background: var(--bg-tertiary); } }
/* URL state is available before the deferred router and the first paint. */
html[data-page="home"] :is(#home, [data-page="home"]),
html[data-page="resume"] :is(#resume, [data-page="resume"]),
html[data-page="bookmarks"] :is(#bookmarks, [data-page="bookmarks"]),
html[data-page="apps"] :is(#apps, [data-page="apps"]) {
    --page-display: block; --nav-background: var(--primary-soft); --nav-color: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 6px; }

.header-icon-action { border-radius: var(--pill); text-decoration: none; }
@media (hover: hover) { .header-icon-action:hover { border-color: var(--border); background: var(--bg-secondary); color: var(--text); } }
.sun-icon, [data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }



.main { flex: 1; padding-top: 104px; }

.page { display: var(--page-display, none); animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.container { max-width: 1120px; margin: 0 auto; padding: 48px 24px 72px; }


.hero { min-height: calc(100svh - 104px - 64px - 80px); padding: 40px 24px 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 24px; overflow: hidden; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow); }
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-title { font-size: var(--text-2xl); line-height: 1.2; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.hero-subtitle { font-size: var(--text-base); color: var(--text-secondary); margin-bottom: 14px; }
.hero-slogan { max-width: 620px; font-size: var(--text-lg); color: var(--text-muted); font-style: normal; }
.hero-links { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero-link { font-size: var(--text-sm); }


.announcement-banner { max-width: 1064px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--primary-soft); }
.announcement-inner { max-width: 1120px; min-height: 52px; margin: 0 auto; padding: 11px 24px; display: flex; align-items: center; gap: 24px; }
.announcement-track { min-width: 0; display: grid; flex: 1; overflow: hidden; }
.announcement-slide { grid-area: 1 / 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s; }
.announcement-slide[aria-hidden="false"] { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.announcement-slide.is-leaving { visibility: visible; opacity: 0; transform: translateY(-8px); }
.announcement-icon { font-size: var(--text-base); line-height: 1; }
.announcement-slide p { min-width: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.55; overflow-wrap: anywhere; }
.announcement-slide a { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .announcement-slide a:hover { color: var(--primary-dark); } }
.announcement-slide a svg { width: 13px; height: 13px; }
.announcement-dots { max-width: 72px; display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.announcement-dot { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: none; border-radius: 50%; background: transparent; cursor: pointer; }
.announcement-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); opacity: 0.5; transition: background var(--transition), opacity var(--transition), transform var(--transition); }
@media (hover: hover) { .announcement-dot:hover::before { opacity: 0.9; } }
.announcement-dot[aria-pressed="true"]::before { background: var(--primary); opacity: 1; transform: scale(1.15); }
.announcement-dot:only-child { display: none; }





.section-title { font-size: var(--text-2xl); line-height: 1.2; font-weight: 700; margin-bottom: 24px; letter-spacing: 0; }


.bookmark-search { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bookmark-search-field { position: relative; width: min(100%, 560px); }
.bookmark-search-icon { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; transform: translateY(-50%); }
.bookmark-search-icon svg { width: 100%; height: 100%; }
.bookmark-search-field input { height: 52px; padding: 0 48px 0 44px; border-radius: var(--pill); background: var(--surface); }
.bookmark-search-field input::-webkit-search-cancel-button { appearance: none; }
.bookmark-search-clear { position: absolute; top: 50%; right: 4px; border-radius: var(--pill); transform: translateY(-50%); }
@media (hover: hover) { .bookmark-search-clear:hover { color: var(--text); background: var(--bg-tertiary); } }
.bookmark-search-status { flex: 0 0 auto; color: var(--text-muted); font-size: var(--text-sm); }
.bookmark-tag-filter { margin: -4px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.bookmark-tag-filter-button { min-height: 44px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--pill); color: var(--text-secondary); background: var(--surface); font: inherit; font-size: var(--text-xs); line-height: 1.2; cursor: pointer; transition: color var(--transition), background-color var(--transition), border-color var(--transition); }
@media (hover: hover) { .bookmark-tag-filter-button:hover { border-color: var(--text-muted); color: var(--text); background: var(--bg-secondary); } }
.bookmark-tag-filter-button[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.bookmark-tag-filter-button span { color: var(--text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.bookmark-categories { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bookmark-category { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.category-header {
    width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0;
    border: none; color: var(--text); background: transparent; font: inherit; text-align: left; cursor: pointer; transition: color var(--transition), border-color var(--transition);
}
@media (hover: hover) { .category-header:hover { color: var(--primary); } }
.category-title { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.category-count { min-width: 24px; padding: 2px 7px; border-radius: var(--radius-sm); color: var(--text-muted); background: var(--bg-tertiary); font-size: var(--text-xs); line-height: 1.4; font-weight: 500; text-align: center; }
.category-toggle { width: 20px; height: 20px; color: var(--text-muted); transition: var(--transition); }
.category-header[aria-expanded="true"] .category-toggle { transform: rotate(180deg); }
.bookmark-links { display: none; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--border); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.category-header[aria-expanded="true"] + .bookmark-links { display: grid; }
.bookmark-link {
    min-width: 0; min-height: 128px; padding: 16px; display: flex; flex-direction: column;
    border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text); background: var(--bg-secondary);
    text-decoration: none; transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}
@media (hover: hover) { .bookmark-link:hover { border-color: var(--border-strong); background: var(--bg-secondary); } }
.bookmark-link-heading { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: var(--text-base); line-height: 1.45; font-weight: 600; }
.bookmark-link-heading > span { min-width: 0; overflow-wrap: anywhere; }
.bookmark-link-heading svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; color: var(--text-muted); }
.bookmark-link-description { margin-top: 7px; display: -webkit-box; overflow: hidden; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bookmark-link-tags { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.bookmark-link-tags > span { padding: 2px 6px; border-radius: var(--pill); color: var(--text-secondary); background: var(--bg-tertiary); font-size: var(--text-xs); line-height: 1.4; }




.app-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.app-directory-link { min-height: 132px; padding: 24px; display: grid; grid-template-columns: 56px minmax(0, 1fr) 18px; align-items: center; gap: 16px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--surface); text-decoration: none; transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition); }
@media (hover: hover) { .app-directory-link:hover { border-color: var(--border-strong); background: var(--bg-secondary); } }
.app-directory-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); }
.app-directory-icon svg { width: 28px; height: 28px; }
.app-directory-copy { min-width: 0; }
.app-directory-copy strong { display: block; font-size: var(--text-lg); line-height: 1.4; font-weight: 600; }
.app-directory-copy span { display: block; margin-top: 7px; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; }
.app-directory-arrow { width: 18px; height: 18px; margin-top: 2px; color: var(--text-muted); transform: rotate(180deg); }





.ai-chat { position: fixed; inset: auto 24px 24px auto; width: min(420px, calc(100% - 48px)); max-width: none; max-height: none; margin: 0; padding: 0; border: none; color: var(--text); background: transparent; overflow: visible; }
.ai-chat-panel { width: 100%; max-height: min(620px, calc(100dvh - 48px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.ai-chat-header { min-height: 54px; padding: 10px 14px 10px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.ai-chat-header h2 { margin: 0; font-size: var(--text-base); font-weight: 600; }
@media (hover: hover) { .ai-chat-close:hover { color: var(--text); background: var(--bg-tertiary); } }
.ai-chat-messages { min-height: 0; flex: 1 1 auto; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-chat-message { max-width: 88%; padding: 9px 11px; border-radius: var(--radius-sm); color: var(--text); background: var(--bg-tertiary); font-size: var(--text-sm); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-chat-message-user { align-self: flex-end; color: var(--on-primary); background: var(--button-bg); }
.ai-chat-form { padding: 10px; display: flex; align-items: flex-end; gap: 8px; border-top: 1px solid var(--border); }
.ai-chat-form textarea { max-height: 112px; flex: 1; resize: vertical; background: var(--surface); }
.ai-chat-send { flex: 0 0 auto; }



.footer { padding: 24px; text-align: center; color: var(--text-muted); font-size: var(--text-sm); }
.footer p { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; }
.footer-segment { display: inline-flex; align-items: center; padding: 0 6px; }
.footer a { color: var(--text-secondary); text-decoration: none; }
@media (hover: hover) { .footer a:hover { color: var(--primary); } }
.visitor-counter strong { margin-left: 4px; color: var(--text-secondary); font-weight: 600; font-variant-numeric: tabular-nums; }

.back-to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 90;
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--pill); color: var(--text-secondary);
    cursor: pointer;
    animation: backToTopIn 0.2s ease; transition: color var(--transition), background-color var(--transition);
}
@media (hover: hover) { .back-to-top:hover { color: var(--primary); background: var(--bg-secondary); box-shadow: var(--shadow); } }
.back-to-top-progress { position: absolute; inset: 0; width: 44px; height: 44px; fill: none; transform: rotate(-90deg); }
.back-to-top-track { stroke: var(--border); stroke-width: 2; }
.back-to-top-value { stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.12s linear; }
.back-to-top-icon { position: relative; width: 18px; height: 18px; }
@keyframes backToTopIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }


@media (min-width: 769px) and (max-width: 1000px) { .bookmark-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 768px) {
    .header { top: 10px; left: 12px; right: 12px; }
    .header-inner { height: 56px; padding: 0 10px; }
    :root { scroll-padding-top: 88px; }
    .main { padding-top: 88px; }
    .nav { display: none; }
    
    .hero { min-height: calc(100svh - 88px - 96px - 88px); padding: 32px 20px 40px; }
    .hero-links { margin-top: 26px; }
    .announcement-banner { margin: 0 16px; }
    .announcement-inner { min-height: 56px; padding: 10px 12px; gap: 8px; }
    .announcement-slide { grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; }
    .announcement-slide a { grid-column: 2; justify-self: start; }
    
    .container { padding: 36px 16px 96px; }
    
    .bookmark-search { align-items: stretch; flex-direction: column; gap: 10px; }
    .bookmark-search-field { width: 100%; }
    .bookmark-search-status { align-self: flex-start; }
    .bookmark-tag-filter { flex-wrap: nowrap; overflow-x: auto; padding: 4px 24px 8px 4px; gap: 6px; scrollbar-width: thin; mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 18px), transparent); }
    .bookmark-tag-filter-button { flex-shrink: 0; }
    .bookmark-category { padding: 16px; }
    .bookmark-links { grid-template-columns: 1fr; }
    .bookmark-link { min-height: 0; padding: 14px; }

    .bookmark-link-heading { gap: 7px; }
    .bookmark-link-description { margin-top: 6px; }
    .bookmark-link-tags { padding-top: 9px; gap: 4px; }
    .bookmark-link-tags > span { padding: 0; color: var(--text-muted); background: transparent; font-size: var(--text-xs); }
    .bookmark-link-tags > span + span::before { content: '/'; margin-right: 4px; color: var(--border-strong); }
    
    
    .app-directory { grid-template-columns: 1fr; gap: 8px; }
    .app-directory-link { min-height: 112px; padding: 18px 16px; grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 12px; }
    .app-directory-icon { width: 44px; height: 44px; }
    .app-directory-icon svg { width: 24px; height: 24px; }
    
    
    .back-to-top { right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); }
    .footer { padding: 20px 16px calc(88px + env(safe-area-inset-bottom)); font-size: var(--text-sm); }
}

@media (max-width: 420px) {
    
    .hero-link { flex: 1 1 132px; justify-content: center; }
    
}

@media (max-width: 350px) {
    .logo-text { display: none; }
    .container { padding-right: 12px; padding-left: 12px; }
}

@media (max-width: 520px) {
    
    .ai-chat { inset: auto 12px 12px auto; width: calc(100% - 24px); }
    .ai-chat-panel { max-height: calc(100dvh - 24px); }
    
}

.mobile-nav {
    display: none; position: fixed; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; right: 12px;
    max-width: 440px; margin: auto; padding: 5px; border-radius: var(--pill); z-index: 100;
}

@media (max-width: 768px) { .mobile-nav { display: flex; justify-content: space-around; } }
.mobile-nav-link {
    min-width: 0; min-height: 54px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 5px 4px; color: var(--nav-color, var(--text-muted)); text-decoration: none; font-size: var(--text-xs);
    font-weight: 500; transition: color var(--transition), background-color var(--transition); cursor: pointer; border: none; border-radius: var(--pill); background: var(--nav-background, transparent);
}
.mobile-nav-link svg { width: 21px; height: 21px; }


.ai-chat:not([open]) { display: none; }
.ai-chat::backdrop { background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); }

