:root {
    --brand-green-dark: #0f382c;
    --brand-green-primary: #15573f;
    --brand-green-hover: #104230;
    --brand-green-light: #e8f5ee;
    --brand-green-accent: #2e7d5a;
    --bg-canvas: #f4f7f5;
    --card-border: #e2e8e5;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-canvas);
    color: #212529;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Minimal Header */
.header-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding: 0.85rem 0;
}

.brand-logo {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
}

/* Status Indicator */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: #f1f8f4;
    color: #196942;
    border: 1px solid #d2e7dc;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    font-size: 0.825rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #198754;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.25);
}

/* Main Layout */
main.main-content {
    flex: 1 0 auto;
}

/* Search Hub */
.search-container {
    max-width: 860px;
    margin: 0 auto;
}

.search-input-group {
    background: #ffffff;
    border: 1px solid #ced8d3;
    border-radius: 12px;
    padding: 0.35rem 0.5rem 0.35rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input-group:focus-within {
    border-color: var(--brand-green-accent);
    box-shadow: 0 4px 16px rgba(21, 87, 63, 0.12);
}

.search-input-group input {
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 1.05rem;
    width: 100%;
    min-width: 0;
}

.btn-search {
    background-color: var(--brand-green-primary);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.btn-search:hover {
    background-color: var(--brand-green-hover);
    color: #ffffff;
}

/* Quick Prompt Trigger Cards */
.workflow-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.workflow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--brand-green-accent);
}

.workflow-card i {
    font-size: 1.75rem;
    color: var(--brand-green-primary);
    flex-shrink: 0;
}

.workflow-card span {
    font-weight: 600;
    font-size: 0.975rem;
    color: #2c3e35;
    line-height: 1.35;
}

/* Results Workspace */
.results-workspace {
    max-width: 960px;
    margin: 2.5rem auto 0 auto;
    text-align: left !important;
}

.guidance-panel {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    text-align: left !important;
}

/* Strictly Left-Aligned Markdown Typography */
.markdown-body {
    text-align: left !important;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1f2925;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.markdown-body > :first-child {
    margin-top: 0 !important;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    text-align: left !important;
    font-weight: 700;
    color: var(--brand-green-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.markdown-body h2 {
    font-size: 1.35rem;
    border-bottom: 1px solid #e2e8e5;
    padding-bottom: 0.4rem;
}

.markdown-body h3 {
    font-size: 1.18rem;
    margin-top: 1.25rem;
}

.markdown-body h4 {
    font-size: 1.08rem;
}

.markdown-body p {
    text-align: left !important;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.95rem;
}

.markdown-body ol,
.markdown-body ul {
    text-align: left !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1.15rem;
}

.markdown-body li {
    text-align: left !important;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.55rem;
}

.markdown-body li > ul,
.markdown-body li > ol {
    margin-top: 0.35rem;
    margin-bottom: 0.4rem;
    padding-left: 1.25rem !important;
}

.markdown-body strong {
    color: var(--brand-green-dark);
    font-weight: 600;
}

.markdown-body kbd,
.markdown-body code {
    background-color: #eef4f0;
    color: var(--brand-green-primary);
    border: 1px solid #cfe0d6;
    font-size: 0.875em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 600;
}

.markdown-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin-bottom: 1.15rem;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--card-border);
    padding: 0.55rem 0.75rem;
}

.markdown-body a {
    color: var(--brand-green-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--brand-green-accent);
    transition: all 0.2s ease;
}

.markdown-body a:hover {
    color: var(--brand-green-hover);
    border-bottom-style: solid;
    background-color: var(--brand-green-light);
}

/* Professional Enterprise Footer */
.footer-bar {
    background-color: var(--brand-green-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.footer-brand {
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.footer-desc {
    color: #a3c4b5;
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 580px;
}

.footer-meta {
    font-size: 0.82rem;
    color: #d1e3da;
}

.footer-subtext {
    font-size: 0.76rem;
    margin-top: 0.2rem;
}

/* Mobile & Small Tablet Adjustments */
@media (max-width: 576px) {
    .brand-logo {
        height: 44px;
    }

    .status-pill {
        font-size: 0.75rem;
        padding: 0.28rem 0.65rem;
    }

    .search-input-group {
        padding: 0.3rem 0.4rem 0.3rem 0.85rem;
    }

    .search-input-group input {
        font-size: 0.95rem;
    }

    .btn-search {
        padding: 0.55rem 1rem;
        font-size: 0.92rem;
    }

    .workflow-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .workflow-card i {
        font-size: 1.45rem;
    }

    .results-workspace {
        margin-top: 1.5rem;
    }

    .guidance-panel {
        padding: 1.25rem;
    }

    .markdown-body,
    .markdown-body p,
    .markdown-body li {
        font-size: 0.98rem;
    }
}