:root {
    --hg-red: #D80027;
    --hg-red-dark: #9b0d18;
    --hg-red-soft: #fff1f2;
    --hg-bg: #f8f9fb;
    --hg-white: #ffffff;
    --hg-text: #111827;
    --hg-muted: #6b7280;
    --hg-border: #e5e7eb;
    --hg-green: #16a34a;
    --hg-green-soft: #ecfdf5;
    --hg-amber: #d97706;
    --hg-amber-soft: #fffbeb;
    --hg-blue: #2563eb;
    --hg-blue-soft: #eff6ff;
    --hg-grey-soft: #f3f4f6;
    --hg-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
    --hg-navy: #101828;
}

.hg-app { background: var(--hg-bg); color: var(--hg-text); }
.hg-sidebar { background: var(--hg-white); border-right: 1px solid var(--hg-border); }
.hg-logo { font-size: 1.45rem; font-weight: 900; letter-spacing: -0.8px; color: var(--hg-red); }
.hg-logo-sub { margin-top: 6px; font-size: 12px; color: var(--hg-muted); line-height: 1.35; }
.hg-nav-title { font-size: 11px; color: var(--hg-muted); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin: 18px 10px 6px; }
.hg-nav-link { display: block; width: 100%; padding: 10px 12px; margin: 3px 0; border-radius: 12px; font-size: 14px; font-weight: 700; color: #374151; text-decoration: none; transition: all .15s; }
.hg-nav-link:hover, .hg-nav-link.active { background: var(--hg-red); color: white; }
.hg-nav-sublink { display: block; padding: 8px 12px 8px 20px; margin: 2px 0; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--hg-muted); text-decoration: none; }
.hg-nav-sublink:hover, .hg-nav-sublink.active { color: var(--hg-red); background: var(--hg-red-soft); }
.hg-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hg-topbar-profile { background: white; border: 1px solid var(--hg-border); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--hg-text); white-space: nowrap; }
.hg-topbar-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--hg-border); background: white; color: var(--hg-muted); cursor: pointer; transition: all .15s; padding: 0; line-height: 0; }
.hg-topbar-icon-btn:hover, .hg-topbar-icon-btn-active { border-color: var(--hg-red); color: var(--hg-red); background: var(--hg-red-soft); }
.hg-topbar-icon { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.hg-hero { background: linear-gradient(135deg, var(--hg-white), var(--hg-red-soft)); border: 1px solid #fecdd3; border-radius: 24px; padding: 28px; box-shadow: var(--hg-shadow); margin-bottom: 22px; }
.hg-hero h2 { margin: 0; font-size: 1.65rem; font-weight: 900; letter-spacing: -0.8px; }
.hg-hero p { max-width: 850px; color: var(--hg-muted); line-height: 1.55; margin: 10px 0 0; }
.hg-stat { background: white; border: 1px solid var(--hg-border); border-radius: 18px; padding: 18px; box-shadow: var(--hg-shadow); }
.hg-stat-number { color: var(--hg-red); font-weight: 900; font-size: 2rem; margin-bottom: 4px; }
.hg-stat-label { color: var(--hg-muted); font-size: 13px; font-weight: 700; }
.hg-panel { background: white; border: 1px solid var(--hg-border); border-radius: 20px; padding: 20px; box-shadow: var(--hg-shadow); }
.hg-panel-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0 0 16px; font-size: 17px; font-weight: 900; }
.hg-opportunity { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; background: white; border: 1px solid var(--hg-border); border-left: 5px solid var(--hg-red); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.hg-opportunity.high { background: linear-gradient(90deg, var(--hg-red-soft), white 34%); border-color: #fecdd3; }
.hg-score { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--hg-red); color: white; font-weight: 900; font-size: 22px; }
.hg-opp-title { font-weight: 900; margin-bottom: 5px; font-size: 15px; }
.hg-opp-meta { color: var(--hg-muted); font-size: 13px; line-height: 1.45; }
.hg-badge { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; white-space: nowrap; margin: 3px 4px 0 0; }
.hg-badge-red { background: var(--hg-red-soft); color: var(--hg-red-dark); }
.hg-badge-green { background: var(--hg-green-soft); color: #166534; }
.hg-badge-amber { background: var(--hg-amber-soft); color: #92400e; }
.hg-badge-blue { background: var(--hg-blue-soft); color: #1e40af; }
.hg-badge-grey { background: var(--hg-grey-soft); color: #374151; }
.hg-btn { border: 0; border-radius: 11px; padding: 10px 13px; font-size: 13px; font-weight: 900; cursor: pointer; text-decoration: none; display: inline-block; }
.hg-btn-primary { background: var(--hg-red); color: white; }
.hg-btn-primary:hover { background: var(--hg-red-dark); }
.hg-btn-secondary { background: white; border: 1px solid var(--hg-border); color: var(--hg-text); }
.hg-btn-green { background: var(--hg-green); color: white; }
.hg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hg-table th { text-align: left; color: var(--hg-muted); font-size: 12px; font-weight: 900; border-bottom: 1px solid var(--hg-border); padding: 11px 9px; }
.hg-table td { border-bottom: 1px solid var(--hg-border); padding: 13px 9px; vertical-align: middle; }
.hg-table tr:last-child td { border-bottom: none; }
.hg-toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.hg-search { min-width: 280px; border: 1px solid var(--hg-border); border-radius: 11px; padding: 11px 13px; font-size: 14px; }
.hg-select { border: 1px solid var(--hg-border); border-radius: 11px; padding: 11px 13px; font-size: 14px; background: white; }
.hg-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.hg-info { background: #fafafa; border: 1px solid var(--hg-border); border-radius: 15px; padding: 14px; }
.hg-info small { display: block; color: var(--hg-muted); font-size: 12px; margin-bottom: 6px; }
.hg-info strong { font-size: 14px; }
.hg-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--hg-border); margin-bottom: 18px; overflow: auto; }
.hg-tab { border: 0; background: transparent; padding: 12px 10px; border-bottom: 3px solid transparent; color: var(--hg-muted); font-weight: 900; cursor: pointer; white-space: nowrap; font-size: 14px; }
.hg-tab.active { color: var(--hg-red); border-color: var(--hg-red); }
.hg-flow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hg-flow span { border-radius: 999px; padding: 8px 11px; background: var(--hg-grey-soft); color: var(--hg-muted); font-size: 12px; font-weight: 900; }
.hg-flow .done { background: var(--hg-green-soft); color: #166534; }
.hg-flow .now { background: var(--hg-red-soft); color: var(--hg-red-dark); }
.hg-site-title { margin: 0; font-size: 1.65rem; letter-spacing: -.7px; font-weight: 900; }
.hg-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hg-page-subtitle { margin-top: 7px; color: var(--hg-muted); font-size: 14px; }
.hg-page-title { margin: 0; font-size: 1.75rem; font-weight: 900; letter-spacing: -1px; }

.hg-help-wrap { position: relative; }
.hg-help-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid #d0d5dd; background: #fff; color: var(--hg-navy, #101828); cursor: pointer; transition: all .15s; padding: 0; line-height: 1; flex-shrink: 0; }
.hg-help-btn:hover, .hg-help-btn-active { border-color: var(--hg-red); color: var(--hg-red); background: var(--hg-red-soft); }
.hg-help-btn-mark { font-size: 18px; font-weight: 900; line-height: 1; display: block; user-select: none; }
.hg-help-btn-icon { width: 18px; height: 18px; flex-shrink: 0; display: block; stroke: currentColor; }
.hg-help-dropdown { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 210px; background: white; border: 1px solid var(--hg-border); border-radius: 12px; box-shadow: var(--hg-shadow); padding: 6px 0; overflow: hidden; }
.hg-help-dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--hg-navy, #101828); text-decoration: none; background: transparent; border: 0; cursor: pointer; transition: background .15s, color .15s; }
.hg-help-dropdown-item:hover { background: var(--hg-red-soft); color: var(--hg-red); }
.hg-help-dropdown-icon { width: 18px; height: 18px; flex-shrink: 0; }
.hg-help-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(17, 24, 39, 0.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.hg-help-form-panel { background: white; border-radius: 20px; border: 1px solid var(--hg-border); box-shadow: var(--hg-shadow); width: min(480px, 100%); max-height: 90vh; overflow-y: auto; padding: 22px; }
.hg-help-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hg-help-menu-header h2 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.hg-help-menu-header button { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--hg-muted); cursor: pointer; }
.hg-help-input { width: 100%; border: 1px solid var(--hg-border); border-radius: 11px; padding: 11px 13px; font-size: 14px; }
.hg-help-toast { position: fixed; bottom: 24px; right: 24px; z-index: 70; background: #166534; color: white; padding: 14px 18px; border-radius: 14px; font-size: 14px; font-weight: 700; box-shadow: var(--hg-shadow); max-width: min(360px, calc(100vw - 40px)); }

/* Documentation screenshots — enterprise user-guide figures */
.docs-screenshot { margin: 20px 0 28px; padding: 0; border: 1px solid var(--hg-border); border-radius: 16px; background: #fafafa; box-shadow: var(--hg-shadow); overflow: hidden; max-width: 100%; }
.docs-screenshot img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; border: 0; border-bottom: 1px solid var(--hg-border); }
.docs-screenshot-caption { display: block; padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--hg-muted); text-align: center; line-height: 1.45; background: white; }
.docs-screenshot-pending { border-style: dashed; border-color: #fecdd3; background: linear-gradient(135deg, #fff, var(--hg-red-soft)); }
.docs-screenshot-placeholder { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 32px 24px; background: linear-gradient(135deg, #fff 0%, var(--hg-red-soft) 100%); }
.docs-screenshot-icon { font-size: 2rem; opacity: 0.45; line-height: 1; }
.docs-screenshot-pending .docs-screenshot-caption { color: var(--hg-red-dark); font-style: italic; }

@media (max-width: 1100px) {
    .hg-info-grid { grid-template-columns: 1fr 1fr; }
    .hg-opportunity { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .hg-info-grid { grid-template-columns: 1fr; }
    .hg-search { min-width: 100%; }
}
