:root {
    --header-bg: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    --main-bg: #f5f7f9;
    --section-bg: #ffffff;
    --border-color: #ddd;
    --text-dark: #333;
    --text-light: #495057;
    --primary-accent: #0056b3;
    --primary-btn: #3498db;
    --code-bg: #e9ecef;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: var(--main-bg);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.header {
    background: var(--header-bg);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    flex-shrink: 0;
}
.header h1 { margin: 0; font-size: 1.7em; }
.header .sub { font-size: 0.95rem; opacity: 0.85; margin-top: 4px; }
.page-nav {
    background: #dee2e6;
    padding: 8px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.page-nav a {
    padding: 5px 12px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 5px;
    font-size: 0.95rem;
}
.page-nav a:hover { background-color: #f8f9fa; color: var(--primary-accent); }
.page-nav a.active { background-color: var(--primary-accent); color: white; }
html.ace-hosted-hub .hub-hosted-hide { display: none !important; }
.help-layout { display: flex; flex: 1; min-height: 0; align-items: stretch; }
.help-toc {
    flex: 0 0 220px;
    background: #eef2f6;
    border-right: 1px solid #d0d7de;
    padding: 12px 10px 24px;
    overflow-y: auto;
}
.container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 2rem 2rem;
    flex: 1;
}
.section {
    background-color: var(--section-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
h2 {
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 0.5rem;
    margin-top: 0;
    color: #2c3e50;
}
h3 { color: #4a6491; margin-top: 1.5rem; }
.button-style {
    display: inline-block;
    background-color: #7f8c8d;
    color: white;
    padding: 0.3em 0.8em;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
}
ol, ul { padding-left: 20px; }
li { margin-bottom: 0.5rem; }
.note {
    background-color: #eaf2fa;
    border-left: 4px solid var(--primary-accent);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}
.rag-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
.tool-tile-reference {
    background-color: var(--section-bg);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}
.tool-tile-reference svg { width: 40px; height: 40px; color: var(--primary-btn); flex-shrink: 0; }
.tool-tile-title { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 5px; }
.tool-tile-reference p { margin: 0; font-size: 0.9rem; color: var(--text-light); }
code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; font-family: Consolas, "Courier New", monospace; font-size: .95em; }
.online-index { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; list-style: none; }
.online-index a {
    display: block;
    background: #fff;
    border: 1px solid #d5deea;
    border-radius: 8px;
    padding: 12px 14px;
    text-decoration: none;
    color: #2c3e50;
}
.online-index a:hover { border-color: #0056b3; }
.online-index strong { display: block; color: #0056b3; }
.online-index span { font-size: 0.88rem; color: #5b6b7c; }
.help-foot {
    text-align: center;
    padding: 10px 16px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #7a8592;
    border-top: 1px solid #e3e8ee;
    background: #f7f9fc;
}
@media (max-width: 700px) {
    .online-index { grid-template-columns: 1fr; }
    .container { padding: 0 1rem 1.5rem; }
}
