﻿/*
Copyright 2026 VoteWorld. All rights reserved.
This file is part of the VoteWorld project and may not be redistributed or reused without permission.
*/

/* ========== MondaOpinio — integrated, tokenized stylesheet ========== */

/* 0) TOKENS ------------------------------------------------ */
:root {
    /* Base */
    --bg: #fff;
    --text: #000;
    --panel: #fff;
    --header: #fff;
    --modal: #fff;
    --input: #fff;
    --avatar-text: #fff;
    --avatar-bg: #007bff;
    --avatar-bg-hover: #0724d8;
    /* Links / accents */
    --link: #0d6efd;
    --link-hover: #0b5ed7;
    /* Lines */
    --line: #e0e0e0;
    --line-subtle: #e5e5e5;
    /* States */
    --sel-bg: #b3d4fc;
    --muted: #777;
    /* Buttons */
    --btn-bg: #f8f9fa;
    --btn-bg-hover: #e9ecef;
    /* Misc */
    --radius: 4px;
    --pad: 10px;
}

.dark-mode {
    --bg: #1e1e1e;
    --text: #e0e0e0;
    --panel: #1e1e1e;
    --header: #1e1e1e;
    --modal: #222;
    --input: #222;
    --link: #83b4ff;
    --link-hover: #a3c9ff;
    --line: #333;
    --line-subtle: #444;
    --sel-bg: #555;
    --muted: #aaa;
    --btn-bg: #2c2c2c;
    --btn-bg-hover: #3a3a3a;
}

/* 1) GLOBAL ------------------------------------------------ */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body, .modal-content {
    background: var(--bg);
    color: var(--text)
}

.hidden {
    display: none !important
}

::selection {
    background: var(--sel-bg);
    color: #fff
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background-color: rgba(128,128,128,.4);
    border-radius: 3px
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(128,128,128,.6)
    }
/* placeholders */
input.form-control::placeholder, textarea.form-control::placeholder {
    color: var(--muted);
    opacity: 1
}

/* 2) TOP BAR / HEADER ------------------------------------- */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: var(--header);
    color: var(--text);
    border-bottom: 1px solid var(--line)
}

.site-name {
    font-size: 1.25rem
}

.dark-mode .site-name {
    color: #007bff;  
}

.icon-button img {
    width: 32px;
    height: 32px
}
/* links/buttons in top bar (exclude avatar) */
button.btn-link,
.top-bar a,
.top-bar .btn:not(.user-initial-icon),
.top-bar .dropdown-toggle:not(.user-initial-icon) {
    background: transparent;
    border: none;
    color: var(--link);
    text-decoration: none;
    cursor: pointer
}

.top-bar input {
    background: var(--input) !important;
    color: var(--text) !important;
    border: 1px solid var(--line-subtle) !important
}

    .top-bar input::placeholder {
        color: var(--muted) !important
    }

.top-bar-main {
    min-width: 0;
}

.topbar-nav-icons {
    gap: .35rem;
}

.topbar-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    flex: 0 0 auto;
}

    .topbar-home-link:hover,
    .topbar-home-link:focus-visible {
        background: var(--btn-bg-hover) !important;
        text-decoration: none;
        outline: none;
    }

.topbar-home-icon {
    width: 30px;
    height: 30px;
    display: block;
}

.topbar-hamburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: .25rem;
    font-size: 1.2rem;
    line-height: 1;
}

.topbar-region-wrapper {
    position: relative;
    min-width: 0;
}

#topbarRegionBtn {
    max-width: min(34vw, 240px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.topbar-search-input {
    min-width: 120px;
    max-width: 360px;
}

.topbar-search-scope {
    width: auto;
    min-width: 150px;
    background: var(--input) !important;
    color: var(--text) !important;
    border: 1px solid var(--line-subtle) !important;
}

.mobile-main-menu {
    position: absolute;
    top: 100%;
    left: .5rem;
    width: min(280px, calc(100vw - 1rem));
    margin-top: .35rem;
    padding: .45rem 0;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    z-index: 2500;
}

.mobile-main-menu-item {
    display: block;
    width: 100%;
    padding: .45rem .75rem;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    text-decoration: none;
}

    .mobile-main-menu-item:hover {
        background: var(--hover);
        color: var(--text);
        text-decoration: none;
    }

.mobile-main-menu-label {
    padding: .35rem .75rem .15rem .75rem;
    color: var(--muted);
    font-size: .85rem;
}

.mobile-main-menu-divider {
    height: 1px;
    background: var(--line);
    margin: .35rem 0;
}

.mobile-sort-options .mobile-main-menu-item {
    padding-left: 1.5rem;
}

.topbar-region-modal-dialog {
    max-height: calc(100dvh - 6rem);
}

    .topbar-region-modal-dialog .modal-content {
        max-height: calc(100dvh - 6rem);
    }

    .topbar-region-modal-dialog .modal-body {
        overflow-y: auto;
    }

.mobile-region-selector-flyout {
    max-width: 100%;
    padding-bottom: .25rem;
}

.mobile-region-tree-row {
    padding-left: calc(var(--region-level) * 1rem);
}

.mobile-region-tree-btn {
    display: inline-flex !important;
    justify-content: flex-start !important;
    align-items: baseline;
    width: auto !important;
    min-width: 0;
    gap: .5rem;
    padding: .25rem 0 !important;
}

.mobile-region-selector-flyout .topbar-region-choice-counts {
    margin-left: .5rem;
}

.topbar-region-flyout {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: .35rem;
    padding: .5rem;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    z-index: 2000;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .top-bar {
        gap: .4rem;
    }

    .topbar-search-scope {
        min-width: 42px;
        max-width: 42px;
        padding-left: .35rem;
        padding-right: .35rem;
        color: transparent !important;
    }

        .topbar-search-scope option {
            color: var(--text);
        }

    .topbar-search-input {
        min-width: 0;
    }
}

/* Avatar button */
.user-initial-icon {
    background: var(--avatar-bg) !important;
    color: var(--avatar-text) !important;
    border: none !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    padding: 0;
}

    .user-initial-icon:hover {
        background: var(--avatar-bg-hover) !important;
        color: var(--avatar-text) !important
    }

    .user-initial-icon.dropdown-toggle::after {
        border-top-color: var(--avatar-text) !important
    }

.top-bar {
    width: 100%;
}

.top-bar-left {
    min-width: 0;
}

.topbar-search-form {
    flex: 1 1 520px;
    max-width: 560px;
    min-width: 220px;
}

.topbar-search-input {
    min-width: 120px;
}

.topbar-search-scope {
    width: auto;
    min-width: 150px;
    background: var(--input) !important;
    color: var(--text) !important;
    border: 1px solid var(--line-subtle) !important;
}

.topbar-hamburger {
    font-size: 1.2rem;
    line-height: 1;
}

.topbar-region-flyout {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: .35rem;
    padding: .5rem;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    z-index: 2000;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .top-bar {
        flex-wrap: wrap;
        gap: .4rem;
        padding-left: .5rem !important;
        padding-right: .5rem !important;
    }

    .top-bar-left {
        order: 1;
        flex: 1 1 auto;
    }

    .top-bar-right {
        order: 2;
        margin-left: 0 !important;
    }

    .topbar-search-form {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .topbar-search-input {
        width: 100%;
        min-width: 0;
        font-size: 1rem;
    }

    .topbar-search-scope {
        min-width: 42px;
        max-width: 42px;
        padding-left: .35rem;
        padding-right: .35rem;
        color: transparent !important;
    }

        .topbar-search-scope option {
            color: var(--text);
        }

    .topbar-nav-icons {
        gap: .25rem;
    }

    .topbar-home-link {
        width: 34px;
        height: 34px;
    }

    .topbar-home-icon {
        width: 28px;
        height: 28px;
    }

    .topbar-hamburger {
        margin-left: .35rem;
    }

    #topbarRegionWrapper {
        position: absolute;
        top: .95rem;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100vw - 220px);
        text-align: center;
        z-index: 3;
    }

    #topbarRegionBtn {
        max-width: calc(100vw - 220px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #topbarRegionWrapper .topbar-region-flyout {
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100vw - 1rem);
        white-space: normal;
        text-align: left;
    }

    #sortDropdownWrapper,
    #btn-create_poll {
        display: none !important;
    }
}

/* Top bar region selector counts */
.topbar-region-choice {
    display: flex !important;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    width: 100%;
    min-width: 12rem;
}

.topbar-region-choice-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-region-choice-counts {
    color: var(--muted);
    font-size: .9em;
    white-space: nowrap;
}


/* 3) BUTTON SYSTEM (base + variants + unified hover) ------ */
.btn {
    background: none;
    border: none !important;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: color .2s, background-color .2s;
}
    /* only non-avatar buttons get link color */
    .btn:not(.user-initial-icon) {
        color: var(--link) !important;
    }
/* Bootstrap variants follow tokenized look (no solid bg).
   Keep .btn-danger as-is if you want destructive red behavior. */
.btn-primary, .btn-secondary, .btn-success, .btn-info {
    background: transparent !important;
    border: none !important;
    color: var(--link) !important;
}

    .btn-primary:hover, .btn-secondary:hover, .btn-success:hover, .btn-info:hover {
        background: transparent !important;
        color: var(--link-hover) !important;
    }
/* Report buttons special: text red on hover, no bg */
.btn-warning {
    background: transparent !important;
    border: none !important;
    color: var(--link) !important
}

    .btn-warning:hover {
        background: transparent !important;
        color: #dc3545 !important
    }

/* GLOBAL HOVER BEHAVIOR ----------------------------------- */
/* “Clickable text” hover (links, link-buttons, modal footer buttons) */
a:hover,
button.btn-link:hover,
.poll-link:hover,
.breadcrumb .breadcrumb-item a:hover,
.modal-content .btn:hover,
.modal-content button:hover {
    color: var(--link-hover) !important;
    text-decoration: none;
    background: transparent !important;
}

/* Hover should not override selected rows */
button.btn:hover:not(.user-initial-icon):not(.btn-warning):not(.selected):not([aria-selected="true"]),
.flyout-btn:hover:not(.selected):not([aria-selected="true"]),
.subregion-btn:hover:not(.selected):not([aria-selected="true"]),
.region-btn:hover:not(.selected):not([aria-selected="true"]),
.country-btn:hover:not(.selected):not([aria-selected="true"]),
.continent-btn:hover:not(.selected):not([aria-selected="true"]) {
    background: var(--btn-bg-hover) !important;
    color: var(--link-hover) !important;
}


/* 4) BREADCRUMBS ------------------------------------------ */
.breadcrumb {
    background: transparent;
    /*padding: 0 0 !important;*/
    margin: 0
}

    .breadcrumb .breadcrumb-item {
        margin: 0
    }

        /* divider for every crumb after the first */
        .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
            content: "/"; /* standardize the divider */
            color: var(--muted);
            padding: -0.5rem -0.5rem !important;
        }

        /* show a divider before the first crumb so it connects to the regions */
        .breadcrumb .breadcrumb-item:first-child::before {
            content: "/"; /* this fixes the “missing slash before first topic” */
            color: var(--muted);
            padding: -0.8rem .2rem;
            display: inline-block;
        }

        .breadcrumb .breadcrumb-item a {
            color: var(--link)
        }

        .breadcrumb .breadcrumb-item.active {
            color: var(--text)
        }

/* Compact topic filter line */
#topicFilterLine {
    max-width: 100%;
}

.compact-topic-breadcrumb {
    --bs-breadcrumb-divider: '>';
}

    .compact-topic-breadcrumb .breadcrumb-item,
    .compact-topic-breadcrumb .breadcrumb-item a {
        color: var(--text);
    }

        .compact-topic-breadcrumb .breadcrumb-item.active {
            color: var(--text);
            font-weight: 600;
        }

#topicFilterUpBtn {
    color: var(--link) !important;
}


.topic-filter-flyout {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: .25rem;
    padding: .35rem .5rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    z-index: 1900;
    min-width: 220px;
    max-width: min(520px, 90vw);
    white-space: normal;
}

.topic-filter-choice {
    text-align: left;
}

.compact-topic-breadcrumb .breadcrumb-item a {
    text-decoration: none;
}

    .compact-topic-breadcrumb .breadcrumb-item a:hover,
    .topic-filter-choice:hover {
        text-decoration: underline;
    }


/* 5) DROPDOWNS (Bootstrap) -------------------------------- */
.dropdown-menu {
    background: var(--panel) !important;
    color: var(--text) !important;
    border: 1px solid var(--line) !important;
    z-index: 1300; /* sits above header/banner */
}

.dropdown-item {
    color: var(--text) !important
}

    .dropdown-item:hover {
        background: var(--btn-bg-hover) !important;
        color: var(--link-hover) !important
    }

.dropdown-divider {
    border-top-color: var(--line) !important
}

/* 6) LAYOUT: 3 columns ----------------------------------- */
.main-container {
    display: flex;
    height: calc(100vh - 120px);
    overflow: hidden
}

/* Panel-top strip that holds the three expand buttons when columns are collapsed */
.panel-top {
    height: 24px; /* a bit taller for a comfortable hit area */
    position: relative;
    background: transparent;
}

/* Collapsed-strip expand buttons on vert2 (size only; position comes from the containers) */
.top-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--v2-collapsed-w);
    height: var(--v2-collapsed-w);
    padding: 0;
    line-height: 1;
    font-size: 18px; /* glyph size */
    background: transparent;
    border: 0;
}

/* Put each one where it belongs when vert2 is collapsed */
.polls-list-panel.collapsed #toggle-vert1-container {
    left: 4px;
}
/* left edge */
.polls-list-panel.collapsed #toggle-vert2-container {
    left: 50%;
    transform: translateX(-50%);
}
/* center */
.polls-list-panel.collapsed #toggle-vert3-container {
    right: 4px;
}
/* right edge */

/* Unify the appearance/size of ALL expand/close arrow buttons */
#toggle-vert1-alt,
#toggle-vert2-alt,
#toggle-vert3-alt {
    width: var(--v2-collapsed-w);
    height: var(--v2-collapsed-w);
    line-height: var(--v2-collapsed-w);
    padding: 0;
    font-size: 18px;
    text-align: center;
}

/* When a column is open, its close button lives inside the panel.
   Give each one a stable anchor so they don't overlap other controls. */
#toggle-vert1-alt {
    position: absolute;
    top: 0;
    left: 6px;
}

#toggle-vert2-alt {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* close/open from the top center of vert2 */
}

#toggle-vert3-alt {
    position: absolute;
    top: 0;
    right: 6px;
}

/* Make the vert1/vert3 open/close arrows a little easier to see and tap. */
#toggle-vert1,
#toggle-vert1-alt,
#toggle-vert3,
#toggle-vert3-alt {
    width: calc(var(--v2-collapsed-w) + 4px);
    height: calc(var(--v2-collapsed-w) + 4px);
    line-height: calc(var(--v2-collapsed-w) + 4px);
    font-size: 22px;
    font-weight: 600;
}

/* vert1 (sidebar) */
#vert1.sidebar-nav {
    position: relative;
    width: 250px;
    min-width: 150px;
    max-width: 500px;
    overflow-y: auto;
    padding-left: 10px;
    padding-right: 0
}

#vert1 .nav-item {
    padding-right: 10px;
}

/* vert1 per topic - format count of votes and reports */
.topic-counts {
    margin-left: .5rem;
    opacity: .85;
    font-variant-numeric: tabular-nums;
}

/* drag handles */
#drag-handle, #drag-handle-vert2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    cursor: ew-resize;
    background: var(--line);
    z-index: 10
}

    #drag-handle:hover, #drag-handle-vert2:hover {
        background: var(--link-hover)
    }

/* vert2 (list) */
.polls-list-panel {
    flex: 0 0 35%;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    padding: var(--pad);
    position: relative
}

.polls-list {
    padding-top: 7px
}

/* Collapse Vert‑2 to a skinny rail so Vert‑1/Vert‑3 get the space */
:root {
    --v2-collapsed-w: 22px;
}
/* tweak to taste */

/* (already present) center the Vert‑2 chevron; keep as-is */
.polls-list-panel #toggle-vert2-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
}


/* vert3 (detail) */
.poll-detail-panel {
    flex: 1;
    overflow-y: auto;
    padding: 15px
}

.poll-detail {
    padding-top: 7px
}

/* panel theme */
.polls-list-panel, .poll-detail-panel, .polls-list, .poll-detail, .poll-detail-container, table, table th, table td {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--line) !important
}

/* vert3 header buttons */
#vert3top {
    position: relative;
    background: transparent;
    padding: 0;
    margin: 0
}

    #vert3top button {
        position: absolute;
        top: 2px;
        left: 6px;
    }

/* --- Toggle handles around vert2 (stable position + size) --- */
#toggle-vert1-container,
#toggle-vert3-container {
    position: absolute;
    top: 2px;
    z-index: 20; /* above list content */
    pointer-events: auto;
}

/* anchor at the inside edges of vert2 */
#toggle-vert1-container {
    left: -2px;
}
/* sits on the left divider */
#toggle-vert3-container {
    right: -2px;
}
/* sits on the right divider */

/* 7) SIDEBAR NAV ITEMS ----------------------------------- */
.sidebar-nav {
    font-size: 15px;
}

.nav-item, .topic-item, .subtopic-item {
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius);
}

/* vert1 rows: grid with [icon][name][counts] */
#vert1 .nav-item:has(.toggle-icon) {
    display: grid;
    grid-template-columns: 15px 1fr auto;
    align-items: center;
    column-gap: 4px;
}

#vert1 .nav-item.my-polls {
    padding-left: 19px; /* match caret+gap alignment for top-level topics */
}

.folder-content {
    display: none;
}

.toggle-icon {
    width: 15px;
    text-align: center;
    color: #888;
    transition: transform .2s;
    margin-right: 0;
}

    .toggle-icon.expanded {
        transform: rotate(90deg);
    }

#vert1 .vote-count {
    white-space: nowrap;
    text-align: right;
    margin-left: 0;
}

.nav-item:hover, .topic-item:hover, .subtopic-item:hover {
    background: var(--btn-bg-hover);
}

#vert1 .topic-name {
    padding-right: 0; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.left-aligned {
    padding-left: 16px;
}

#vert1 .folder-content,
#vert1 .sidebar-topics {
    padding-left: 0;
}


/* 8) POLLS (list + detail) -------------------------------- */
.poll-link {
    text-decoration: none;
    color: var(--link)
}
/* hidden indicators */
h2.poll-hidden {
    font-style: italic;
    opacity: .8;
    color: var(--muted)
}

.poll-hidden-text {
    color: var(--muted);
    font-style: italic
}
/* counters header */
.poll-detail-header {
    display: flex;
    justify-content: flex-end;
    font-weight: bold;
    margin-bottom: 4px;
    max-width: 380px
}

.votes-header {
    text-align: right;
    display: block;
    max-width: 380px
}
/* numbers */
.poll-option-votes {
    display: inline-flex;
    white-space: nowrap;
    gap: .3em;
    min-width: 70px;
    justify-content: flex-end;
    font-family: monospace;
    font-size: .9em;
    text-align: center;
    padding-left: 1rem
}
/* option rows */
.poll-option-line {
    display: grid;
    grid-template-columns: 1fr 60px;
    align-items: center;
    margin-bottom: 6px
}

.poll-detail .poll-option-line {
    max-width: 380px
}
/* option labels */
.poll-check-label, .poll-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-grow: 0
}

    .poll-radio-label .radio-wrapper {
        display: inline-flex;
        align-items: center;
        gap: 6px
    }

    .poll-check-label:hover, .poll-radio-label:hover,
    .poll-detail-title:hover,
    .poll-detail-title:hover * {
        color: var(--link-hover)
    }

.poll-detail-title {
    cursor: pointer;
}
    /* custom checkbox glyph */
    .poll-check-label input[type="checkbox"] {
        display: none
    }

.custom-check-symbol {
    display: inline-block;
    width: 1.2em;
    text-align: center;
    margin-right: 6px;
    font-size: .95rem;
    color: transparent;
    line-height: 1
}

.poll-check-label input[type="checkbox"]:checked + .custom-check-symbol {
    color: #3498db
}
/* thumbs */
.thumb-count {
    color: var(--text) !important
}

.thumb-icon:hover {
    filter: brightness(1.5)
}
/* image + share */
.poll-image {
    width: 10vw;
    height: auto;
    margin-top: 10px
}

.share-poll a {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px
}

.share-poll input {
    font-family: monospace;
    font-size: 90%
}


/* Mobile inline poll detail */
.mobile-poll-detail-row > td {
    padding: .75rem .25rem 1rem .25rem;
    border-top: 0;
}

.mobile-inline-poll-detail {
    border-top: 1px solid var(--line);
    padding-top: .75rem;
}

.mobile-deep-link-shell {
    padding: .5rem .25rem 1rem .25rem;
}

.mobile-deep-link-back-btn {
    margin-bottom: .6rem;
}

.mobile-deep-link-poll-detail {
    border-top: 1px solid var(--line);
}


.poll-list-row.selected-poll-row .poll-question-text a {
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .poll-list-row.selected-poll-row > td {
        background: color-mix(in srgb, var(--link) 8%, var(--panel));
    }

    .mobile-inline-poll-detail .poll-detail-title {
        cursor: pointer;
    }
}

@media (min-width: 768px) {
    .mobile-poll-detail-row {
        display: none !important;
    }
}


/* Poll list result preview */
.poll-row-expand-indicator {
    margin-left: .35rem;
    color: var(--muted);
}

.poll-preview-line {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    width: 100%;
    min-width: 0;
    margin-top: .15rem;
    color: var(--muted);
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
}

.poll-preview-line-options-only {
    margin-bottom: 0;
}

.poll-preview-stats-line {
    display: flex;
    align-items: baseline;
    width: 100%;
    min-width: 0;
    margin-top: .12rem;
    color: var(--muted);
    font-size: .92rem;
}

.poll-preview-block {
    min-width: 0;
}

.poll-preview-option {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poll-preview-counts {
    display: inline-flex;
    align-items: baseline;
    gap: .75rem;
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

.poll-preview-counts-below {
    display: inline-flex;
    margin-left: 0;
}

.poll-preview-count {
    white-space: nowrap;
}

/* On wider screens, plain rows still use the Activity column for counts. */
@media (min-width: 768px) {
    .poll-preview-counts:not(.poll-preview-counts-below) {
        display: none;
    }
}



/* Optional poll-list tag thumbnails */
.poll-list {
    table-layout: fixed;
    width: 100%;
}

.poll-list th,
.poll-list td {
    min-width: 0;
}

.poll-list-activity-header {
    width: 7.5rem;
}

.poll-list-with-tag-images .poll-list-activity-header {
    width: 168px;
}

.poll-list-date-header {
    width: 9rem;
}

.poll-question-text > .poll-link {
    display: block;
    color: var(--text) !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.poll-question-text > .poll-link:hover,
.poll-question-text > .poll-link:focus-visible {
    color: var(--link-hover) !important;
    text-decoration: none;
}

.poll-question-text .hashtag-link {
    color: var(--link) !important;
}

.poll-list-question-wrap {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    min-width: 0;
}

.poll-list-question-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.poll-list-activity-cell {
    width: 1%;
    vertical-align: top;
}

.poll-list-activity-inner {
    display: inline-flex;
    align-items: flex-start;
    gap: .65rem;
    white-space: nowrap;
}

.poll-list-with-tag-images .poll-list-row-with-tag-image .poll-list-activity-inner-image-only {
    justify-content: end;
}

.poll-list-image-cell {
    width: 168px;
    min-width: 168px;
}

.poll-list-tag-image-link {
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 0;
    text-decoration: none;
}

.poll-list-tag-image {
    display: block;
    width: 168px;
    height: 95px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: transparent;
}

.poll-list-tag-image-transparent {
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.mobile-poll-detail-image-wrap {
    display: none;
}

@media (max-width: 767.98px) {
    .poll-list-question-wrap {
        gap: .5rem;
    }

    .poll-list-question-wrap-with-image {
        align-items: flex-start;
    }

    .poll-list-tag-image-link-mobile {
        margin-left: auto;
    }

    .poll-list-tag-image-link-mobile .poll-list-tag-image {
        width: 84px;
        height: 84px;
        border-radius: 8px;
    }

    .poll-list-tag-image-link-mobile .poll-list-tag-image-transparent {
        border-radius: 0;
    }

    .poll-list-question-main-16x9-left {
        display: flex;
        align-items: flex-start;
        gap: .55rem;
        min-width: 0;
    }

    .poll-list-question-main-16x9-left .poll-question-text {
        min-width: 0;
    }

    .poll-list-question-and-preview-16x9-left {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: .12rem;
    }

    .poll-list-question-and-preview-16x9-left .poll-preview-mobile-smart-stats {
        margin-top: .08rem;
    }

    .poll-list-tag-image-link-mobile-16x9-left {
        flex: 0 0 clamp(112px, 32vw, 164px);
        width: clamp(112px, 32vw, 164px);
        max-width: 42vw;
        margin: .1rem 0 .2rem 0;
    }

    .poll-list-tag-image-link-mobile-16x9-left .poll-list-tag-image-mobile-16x9-left {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 8px;
    }

    .poll-list-tag-image-link-mobile-16x9-left .poll-list-tag-image-transparent {
        object-fit: contain;
        border-radius: 0;
    }

    .poll-list-question-wrap-mobile-wide {
        display: block;
    }

    .poll-list-question-wrap-mobile-wide .poll-list-question-copy {
        width: 100%;
    }

    .poll-list-tag-image-link-mobile-wide {
        display: block;
        width: 100%;
        margin: .45rem 0 .35rem 0;
    }

    .poll-list-tag-image-link-mobile-wide .poll-list-tag-image-mobile-wide {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 1;
        object-fit: cover;
        border-radius: 10px;
    }

    .poll-list-tag-image-link-mobile-wide .poll-list-tag-image-transparent {
        object-fit: contain;
        border-radius: 0;
    }

    .poll-list-row-mobile-wide-image .poll-question-text > .poll-link {
        font-size: 1.13rem;
        line-height: 1.28;
    }

    .poll-list-row-mobile-wide-image .poll-preview-mobile-smart-stats,
    .poll-list-row-mobile-16x9-left-image .poll-preview-mobile-smart-stats {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        column-gap: .85rem;
        row-gap: .08rem;
        margin-top: .18rem;
        max-width: 100%;
    }

    .poll-list-row-mobile-wide-image .poll-preview-mobile-smart-stats .poll-preview-line-options-only,
    .poll-list-row-mobile-16x9-left-image .poll-preview-mobile-smart-stats .poll-preview-line-options-only {
        flex: 1 1 12rem;
        width: auto;
        max-width: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }

    .poll-list-row-mobile-wide-image .poll-preview-mobile-smart-stats .poll-preview-stats-line,
    .poll-list-row-mobile-16x9-left-image .poll-preview-mobile-smart-stats .poll-preview-stats-line {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
        margin-top: 0;
    }

    .poll-list-row-mobile-wide-image .poll-preview-mobile-smart-stats .poll-preview-counts-below,
    .poll-list-row-mobile-16x9-left-image .poll-preview-mobile-smart-stats .poll-preview-counts-below {
        margin-left: 0;
    }

    .mobile-poll-detail-image-wrap {
        display: block;
        margin: .25rem 0 .75rem 0;
    }

    .mobile-poll-detail-image {
        display: block;
        width: 146px;
        max-width: 45vw;
        height: auto;
        aspect-ratio: 146 / 102;
        object-fit: cover;
        border-radius: 9px;
        border: 1px solid var(--line);
        background: transparent;
    }

    .mobile-poll-detail-image.poll-list-tag-image-transparent {
        object-fit: contain;
        border: 0;
        border-radius: 0;
    }
}

/* 9) COMMENTS ------------------------------------------- */
.comments-section {
    margin-top: 15px
}

.comment-list > li {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    margin-bottom: 10px
}

.comment-item {
    padding: 10px;
    border-bottom: 1px solid var(--line-subtle);
    position: relative
}

.comment-text {
    color: inherit !important;
    font-style: normal !important;
    opacity: 1 !important
}

.comment-user {
    font-size: .9em;
    color: #888
}

.comment-form {
    display: flex;
    flex-direction: column
}

    .comment-form textarea {
        margin-bottom: 8px
    }

    .comment-form button {
        align-self: flex-start
    }

.comment-hidden-text {
    color: var(--muted);
    font-style: italic
}

.comments-toggle-header {
    margin-bottom: .5rem;
    font-size: 1rem;
    font-weight: 400;
}

.comments-toggle-btn,
.poll-reports-toggle-btn,
.more-info-toggle-btn {
    color: var(--text) !important;
    text-decoration: none;
}

    .comments-toggle-btn:hover,
    .poll-reports-toggle-btn:hover,
    .more-info-toggle-btn:hover {
        text-decoration: underline;
    }

.comments-toggle-symbol {
    color: var(--link);
    margin-left: .35rem;
}

/* 10) QUILL ---------------------------------------------- */
.quill-html img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0
}

.ql-container, .ql-editor {
    background: var(--bg);
    color: var(--text)
}

    .ql-editor.ql-blank::before {
        color: var(--muted);
        font-style: italic;
        opacity: .8
    }

.ql-toolbar {
    background: var(--header);
    border-color: var(--line-subtle);
    color: var(--text)
}

    .ql-toolbar button, .ql-toolbar .ql-picker-label, .ql-toolbar .ql-picker-item, .ql-toolbar .ql-picker {
        color: var(--text) !important;
        fill: var(--text) !important;
        stroke: var(--text) !important;
        opacity: 1 !important
    }

        .ql-toolbar button:hover, .ql-toolbar .ql-picker-label:hover {
            background: var(--btn-bg-hover) !important;
            border-radius: var(--radius)
        }

.ql-picker-label::after {
    border-top: 6px solid var(--text) !important
}

.ql-picker.ql-header .ql-picker-options, .ql-picker-options {
    background: var(--panel) !important;
    color: var(--text) !important;
    border: 1px solid var(--line-subtle)
}

    .ql-picker-options span {
        color: var(--text) !important
    }

/* 11) FORMS / INPUTS ------------------------------------- */
/* exclude checkboxes & radios so Bootstrap can render checkmark/dot */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
.form-control,
.comment-form textarea,
.share-poll input,
.form-select {
    background: var(--input) !important;
    color: var(--text) !important;
    border: 1px solid var(--line-subtle) !important;
}

    .form-control:focus,
    .form-select:focus,
    input:not([type="checkbox"]):not([type="radio"]):focus,
    textarea:focus {
        background: var(--input) !important;
        color: var(--text) !important;
        border-color: var(--line) !important;
        box-shadow: none !important;
        outline: none !important;
    }

/* optional: theme Bootstrap's checkboxes */
.form-check-input {
    background-color: var(--input);
    border-color: var(--line-subtle);
}

    .form-check-input:checked {
        background-color: var(--link);
        border-color: var(--link);
    }

    /* WebKit autofill */
    input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
        -webkit-text-fill-color: var(--text) !important;
        -webkit-box-shadow: 0 0 0px 1000px var(--input) inset !important;
        box-shadow: 0 0 0px 1000px var(--input) inset !important;
        caret-color: var(--text) !important;
        transition: background-color 9999s ease-in-out 0s;
    }

/* 12) FLYOUTS -------------------------------------------- */
.flyout-left, .flyout-right {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow-y: auto
}

.flyout-left {
    min-width: 150px
}

.flyout-right {
    min-width: 200px
}

#regionFlyoutContainer.hidden {
    display: none !important
}

.flyout-btn {
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius);
    margin: 1px 0
}

.continent-btn, .country-btn, .region-btn, .subregion-btn {
    text-align: left;
    padding: 2px 0
}

    /* Unified selected state for all flyout buttons */
    .country-btn.selected,
    .region-btn.selected,
    .subregion-btn.selected,
    .continent-btn.selected {
        font-weight: 700;
        background: color-mix(in srgb, var(--link) 15%, transparent);
        color: var(--link-hover) !important;
    }

/* Topic flyout layout */
.topic-flyout-tree .flyout-btn {
    display: block
}

/* 13) Z-LAYERS ------------------------------------------- */
.top-bar {
    z-index: 1200
}

.dropdown-menu {
    z-index: 1300
}

/* ---------------------------------------------------- */
/* Discrete green checkmark */
.checkmark {
    color: #28a745;
    font-weight: 600;
    margin-left: 6px;
    display: none; /* JS toggles display where needed */
}

/* Ensure modals don't clash with the top banner and keep nice vertical spacing */
.modal-dialog {
    margin-top: 1.25rem; /* ~20px; adjust if you prefer a bit more/less */
}

/* Helper text uses the global muted token (light/dark from :root/.dark-mode) */
.form-text,
.text-muted {
    color: var(--muted) !important;
    font-weight: 400;
}

/* Keep Bootstrap modal close icons visible in dark mode without changing light mode. */
.dark-mode .modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(180%);
    opacity: .7;
}

.dark-mode .modal .btn-close:hover,
.dark-mode .modal .btn-close:focus {
    opacity: .95;
}

/* ---------------------------------------------------- */
/* Password show toggle eye icon */
.toggle-eye i {
    color: var(--muted);
    font-size: 1.2rem;
}

/* ---------------------------------------------------- */
/* Earth icon image and related text */
.brand-link {
    text-decoration: none;
    color: var(--text);
    gap: 0.5rem;
}

    .brand-link:hover {
        color: var(--text);
        text-decoration: none;
    }

.brand-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}


/* ---------------------------------------------------- */
/* Polls hero */

.polls-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 1.25rem 1rem 0.75rem;
    min-height: 260px;
    opacity: 1;
    transition: opacity 0.25s ease;
}

    .polls-hero.polls-hero-hidden {
        opacity: 0;
    }

.polls-hero-text {
    margin-bottom: 0.5rem;
}

.polls-hero-title {
    font-size: clamp(1.5rem, 2.4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.polls-hero-subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    margin: 0;
    color: var(--text);
    opacity: 0.85;
}

.polls-hero-image-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
    margin-top: 0.75rem;
}

.polls-hero-image {
    display: block;
    width: min(100%, 620px);
    height: auto;
    object-fit: contain;
    max-height: 220px;
}

@media (max-width: 767.98px) {
    .polls-hero {
        padding: .5rem .75rem .35rem;
        min-height: 120px;
        gap: .25rem;
    }

    .polls-hero-text {
        margin-bottom: .15rem;
    }

    .polls-hero-title {
        font-size: 1.15rem;
        margin-bottom: .1rem;
        line-height: 1.1;
    }

    .polls-hero-subtitle {
        font-size: .8rem;
        line-height: 1.2;
    }

    .polls-hero-image-wrap {
        margin-top: .25rem;
    }

    .polls-hero-image {
        max-height: 124px;
    }
}


    /* ---------------------------------------------------- */
    /* Show messages as Toast windows */

    .site-toast-container

{
    position: fixed;
    top: 92px;
    right: 16px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 24px));
}

.site-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--modal);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-toast-body {
    flex: 1 1 auto;
    line-height: 1.35;
    font-size: 0.95rem;
}

.site-toast-close {
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.75;
}

    .site-toast-close:hover {
        opacity: 1;
    }

.site-toast-hide {
    opacity: 0;
    transform: translateY(-6px);
}

/* subtle tag accents */
.site-toast-success {
    border-left: 4px solid #2e8b57;
}

.site-toast-error,
.site-toast-danger {
    border-left: 4px solid #c94a4a;
}

.site-toast-warning {
    border-left: 4px solid #c99a2e;
}

.site-toast-info {
    border-left: 4px solid #4a7fc9;
}

@media (max-width: 768px) {
    .site-toast-container {
        top: 84px;
        right: 10px;
        width: min(360px, calc(100vw - 20px));
    }
}
/* Poll detail action row and section cards ------------------ */

.post-vote-cta {
    margin-top: .75rem;
    padding: .7rem .8rem;
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius);
    background: var(--panel);
}

.post-vote-cta-title {
    font-weight: 600;
    margin-bottom: .15rem;
}

.post-vote-cta-body {
    color: var(--muted);
    font-size: .92rem;
    margin-bottom: .45rem;
}

.post-vote-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .75rem;
}
.poll-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem .5rem;
    margin-top: 10px;
}

.poll-detail-actions .btn-group {
    flex: 0 0 auto;
}

.poll-detail-actions .report-count {
    min-height: 1.5rem;
    display: inline-flex;
    align-items: center;
}

.poll-detail .share-poll-section:not(:empty),
.poll-detail .comments-section,
.poll-detail .more-info-section,
.poll-detail .poll-reports-section {
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius);
    padding: .65rem .75rem;
    background: var(--panel);
}

.poll-detail .comments-section + .comments-section,
.poll-detail .share-poll-section:not(:empty) + .comments-section,
.poll-detail .more-info-section + .comments-section,
.poll-detail .poll-reports-section + .comments-section {
    margin-top: .75rem;
}

.poll-detail-section-body {
    margin-top: .25rem;
    font-size: .9rem;
}

.poll-detail-section-title {
    margin-bottom: .35rem;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 767.98px) {
    .poll-detail-actions {
        align-items: center;
        justify-content: flex-start;
        gap: .25rem .65rem;
        margin-bottom: .35rem;
    }

    .poll-detail-actions .btn,
    .poll-detail-actions #btn-edit_poll {
        min-height: 0;
        padding-top: .1rem;
        padding-bottom: .1rem;
        line-height: 1.35;
    }

    .poll-detail-actions .toggle-share-btn,
    .poll-detail-actions .btn-report-poll,
    .poll-detail-actions .btn-toggle-hide-poll,
    .poll-detail-actions #btn-edit_poll {
        flex: 0 0 auto;
        text-align: left;
        white-space: normal;
    }

    .poll-detail-actions .poll-detail-thumbs {
        flex: 0 0 auto;
    }

    .poll-detail-actions .report-count:empty {
        display: none;
    }

    .poll-detail .share-poll-section:not(:empty) {
        margin-top: .25rem;
        margin-bottom: .75rem;
    }

    .poll-detail .share-poll-section:not(:empty),
    .poll-detail .comments-section,
    .poll-detail .more-info-section,
    .poll-detail .poll-reports-section {
        padding: .7rem;
    }

    .post-vote-cta {
        padding: .7rem;
    }

    .post-vote-cta-actions {
        align-items: flex-start;
    }
}

/* Create/edit poll tag-image picker */
.poll-tag-image-preview-box {
    min-height: 5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.poll-tag-image-preview-inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
}

.poll-tag-image-preview-img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: transparent;
}

.poll-tag-image-preview-transparent {
    object-fit: contain;
    border: 0;
    border-radius: 0;
}

.poll-tag-image-preview-label,
.poll-tag-image-preview-empty {
    font-size: .9rem;
    color: var(--text);
    opacity: .75;
}

.tag-image-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: .75rem;
}

.tag-image-choice {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    padding: .4rem;
    text-align: center;
    color: var(--text);
}

.tag-image-choice.selected {
    outline: 2px solid #0d6efd;
    outline-offset: 1px;
}

.tag-image-choice-img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 7px;
    background: transparent;
}

.tag-image-choice-transparent {
    object-fit: contain;
    border-radius: 0;
}

.tag-image-choice-label {
    display: block;
    margin-top: .35rem;
    font-size: .75rem;
    line-height: 1.15;
    word-break: break-word;
}

/* Site review patch: keep modals/toasts above the sticky top bar. */
.modal-backdrop {
    z-index: 3000;
}

.modal {
    z-index: 3010;
}

.site-toast-container {
    z-index: 3600;
}

.modal-dialog {
    margin-top: max(1.25rem, env(safe-area-inset-top));
    margin-bottom: 1.25rem;
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100dvh - 2.5rem);
}

@media (min-width: 992px) {
    .top-bar {
        position: sticky;
    }

    .topbar-search-form {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: min(560px, 42vw);
        flex: 0 0 auto;
        max-width: 560px;
        z-index: 1;
    }

    .top-bar-left,
    .top-bar-right {
        position: relative;
        z-index: 2;
    }
}

.filter-section {
    border: 1px solid var(--line-subtle);
    border-radius: 10px;
    padding: .6rem .75rem;
    margin-bottom: .75rem;
    background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.filter-section-summary {
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}

.filter-section-body {
    margin-top: .45rem;
}

.share-advanced-options-wrap {
    margin-top: .35rem;
}

.share-advanced-toggle {
    cursor: pointer;
    color: var(--muted);
    font-size: .9rem;
}

.share-advanced-options {
    margin-top: .35rem;
    padding-left: .75rem;
    border-left: 1px solid var(--line-subtle);
}

.seed-import-dialog {
    width: min(96vw, 1680px);
    max-width: min(96vw, 1680px);
}

.seed-import-table-wrap {
    max-height: 68vh;
    overflow: auto;
}

.seed-import-title {
    max-width: 520px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.seed-import-editor-placeholder,
.seed-import-form-wrap {
    min-height: 240px;
    overflow-wrap: anywhere;
}

.seed-source-note,
.poll-more-info-plain {
    overflow-wrap: anywhere;
}

.seed-source-note > div,
.poll-more-info-plain > div {
    margin-bottom: .25rem;
}

.poll-more-info-spacer {
    min-height: .5rem;
}

.seed-import-vote-count {
    font-variant-numeric: tabular-nums;
}

#seedImportModal .border {
    border-color: var(--line-subtle) !important;
}

#seedImportModal .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--line-subtle);
    color: var(--text);
}

#seedImportModal .text-muted,
#seedImportModal .form-text {
    color: var(--muted) !important;
}

#seedImportModal .text-bg-light {
    background: var(--panel) !important;
    color: var(--text) !important;
    border: 1px solid var(--line-subtle);
}

#seedImportModal .text-bg-warning {
    background: var(--input) !important;
    color: var(--text) !important;
    border: 1px solid var(--line-subtle);
}

#seedImportModal .seed-import-row-ignored {
    opacity: .75;
}

#seedImportModal .modal-body {
    max-height: calc(100vh - 8rem);
    overflow: auto;
}

#seedImportModal .seed-import-layout {
    min-width: 0;
}

#seedImportModal .seed-import-list-col,
#seedImportModal .seed-import-editor-col {
    min-width: 0;
}

#seedImportModal textarea,
#seedImportModal input,
#seedImportModal select,
#pollModal textarea,
#pollModal input,
#pollModal select,
#moreInfoPreview {
    background: var(--input) !important;
    color: var(--text) !important;
}

.seed-import-source-card,
.seed-import-ai-preview,
.ai-seed-draft-preview,
#seedImportAiWordingBox,
#aiSeedWordingBox {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--line-subtle) !important;
}

.seed-import-ai-preview,
.ai-seed-draft-preview {
    overflow-wrap: anywhere;
}
