:root {
    --sreed-header-font: "Karma", "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", sans-serif;
    --sreed-header: #1D558A;
    --sreed-ink: #1e2329;
    --sreed-muted: #5b6673;
    --sreed-paper: #fbfbf7;
    --sreed-panel: #ffffff;
    --sreed-accent: #2f6f8f;
    --sreed-accent-2: #df8c2a;
    --sreed-border: #e2e6ea;
    --sreed-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    --sreed-radius: 14px;
    --sreed-radius-small: 0.1875em;
}

.sreed-content {
    background: var(--sreed-paper);
}

.sreed-dashboard-wrapper {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
    font-family: var(--sreed-header-font);
    color: var(--sreed-ink);
}

.sreed-sidebar {
    width: 260px;
    /* background: linear-gradient(180deg, #f7f1e6 0%, #f4f6f7 100%); */
    padding: 28px 0 28px 22px;
    box-sizing: border-box;
}

.sreed-navigation {
    min-height: 120px;
    /* background: #fff7ea; */
}

.sreed-main {
    flex: 1;
    padding: 28px 32px 36px;
    box-sizing: border-box;
}

.sreed-header {
    display: flex;
    flex-direction: row;
    margin-bottom: 22px;
    /* padding: 18px 22px; */
    /* border-radius: var(--sreed-radius); */
    /* background: rgba(255, 255, 255, 0.75); */
    /* border: 1px solid var(--sreed-border); */
    /* box-shadow: var(--sreed-shadow); */
    /* backdrop-filter: blur(4px); */
    color: var(--sreed-header) !important;
}

.sreed-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: 0.2px;
}

.sreed-header p {
    margin: 6px 0 0;
    color: var(--sreed-muted);
    font-size: 14px;
}

.sreed-header a {
    display: inline-block;
    margin-top: 6px;
    color: var(--sreed-accent);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
}

.sreed-header a:hover {
    border-bottom-color: var(--sreed-accent);
}

.sreed-report {
    /* background-color: var(--sreed-panel); */
    /* padding: 26px 28px; */
    /* border-radius: var(--sreed-radius); */
    /* border: 1px solid var(--sreed-border); */
    /* box-shadow: var(--sreed-shadow); */
}

.sreed-report section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sreed-border);
}

.sreed-report section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sreed-report h2 {
    margin: 0 0 14px;
    font-size: 20px;
    color: var(--sreed-accent);
}

.sreed-question-group {
    /* margin-bottom: 18px; */
    /* padding: 12px 14px; */
    /* background: #f9fafb; */
    /* border: 1px solid var(--sreed-border); */
    /* border-radius: 10px; */
}

.sreed-graph-list {
    display: flex;
    align-items: center;
    border: 1px solid var(--sreed-border);
    gap: 12px;
    margin: 0 !important;
}
.sreed-graph-list:nth-child(2n) {
    background-color: var(--sreed-border);
}

.sreed-question-group ul {
    margin: 0;
    color: var(--sreed-muted);
}

.sreed-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
}

.sreed-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sreed-muted);
}

.sreed-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #1b1f2a;
    display: inline-block;
    background: var(--sreed-legend-color, #1b1f2a);
}

.sreed-report > section > ul {
    padding-left: 18px;
}

.sreed-report li {
    margin: 8px 0;
}

.sreed-report li ul {
    margin-top: 6px;
    padding-left: 18px;
    color: var(--sreed-muted);
}

.sreed-report li ul li {
    margin: 6px 0;
}

/* ── Navigation labels ────────────────────────────────────────── */

.sreed-navigation h2 {
    margin: 10px 0 4px;
    padding: 0 2px;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--sreed-header);
}

/* ── Dropdown control ─────────────────────────────────────────── */

.sreed-dropdown {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 6px 0;
}

.sreed-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 11px 4px;
    background: #ffffff;
    border: 1px solid var(--sreed-border);
    font-family: inherit;
    font-size: 13px;
    color: var(--sreed-ink);
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.sreed-dropdown-button::after {
    content: "⇅";
    font-size: 11px;
    color: var(--sreed-muted);
    pointer-events: none;
    flex-shrink: 0;
    margin-left: 8px;
}

.sreed-dropdown-button:hover,
.sreed-dropdown-button:focus {
    border-color: var(--sreed-accent);
    box-shadow: 0 0 0 2px rgba(47, 111, 143, 0.12);
    outline: none;
}

.sreed-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100%);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--sreed-border);
    border-radius: 0px 0px 8px 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    z-index: 200;
    overflow: hidden;
}

.sreed-dropdown-menu.show {
    display: block;
}

.sreed-dropdown-filter {
    display: block;
    width: calc(100% - 0.5em);
    box-sizing: border-box;
    margin: 0.25em;
    padding: 8px 11px;
    border: none;
    border-bottom: 1px solid var(--sreed-border);
    font-family: inherit;
    font-size: 13px;
    color: var(--sreed-ink);
    background: #f9fafb;
    outline: none;
}

.sreed-dropdown-filter:focus {
    background: #ffffff;
    box-shadow: inset 0 0 0 var(--sreed-accent);
}

.sreed-dropdown-content {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 220px;
    overflow-y: auto;
}

.sreed-dropdown-content li {
    padding: 8px 13px;
    font-size: 13px;
    color: var(--sreed-ink);
    cursor: pointer;
    transition: background 0.1s;
}

.sreed-dropdown-content li:hover {
    background: #f0f4f8;
}

.sreed-dropdown-content li.selected {
    background: #e8f1f8;
    color: var(--sreed-accent);
    font-weight: 600;
}

/* ── End dropdown control ──────────────────────────────────────── */

/* ── Toggle (pillbox) control ─────────────────────────────────── */

.sreed-toggle {
    list-style: none;
    margin: 6px 0;
    padding: 3px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    background: #ffffff;
    border: 1px solid var(--sreed-border);
    border-radius: var(--sreed-radius-small);
    box-sizing: border-box;
    width: 100%;
}

.sreed-toggle li {
    flex: 1;
    padding: 4px 10px 0px;
    font-size: 13px;
    font-family: inherit;
    color: var(--sreed-muted);
    cursor: pointer;
    text-align: center;
    border-radius: var(--sreed-radius-small);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    user-select: none;
}

.sreed-toggle li:hover {
    background: #f0f4f8;
    color: var(--sreed-ink);
}

.sreed-toggle li.selected {
    background: #e8f1f8;
    color: var(--sreed-accent);
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(47, 111, 143, 0.18);
}

/* ── End toggle control ────────────────────────────────────────── */

@media (max-width: 960px) {
    .sreed-dashboard-wrapper {
        flex-direction: column;
    }

    .sreed-sidebar {
        width: 100%;
        padding: 28px;
        border-right: 0;
        border-bottom: 1px solid var(--sreed-border);
    }

    .sreed-main {
        padding: 24px;
    }
}