:root {
    --ink: #173a42;
    --ink-soft: #45616a;
    --paper: #f7f5ee;
    --card: #fffdf9;
    --mint: #dceae1;
    --coral: #ea745b;
    --line: #dce3de;
    --shadow: 0 24px 60px rgba(31, 60, 60, 0.08);
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-main {
    flex: 1;
    padding-bottom: 80px;
}
.site-header {
    border-bottom: 1px solid rgba(23, 58, 66, 0.09);
    background: rgba(247, 245, 238, 0.92);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.06em;
}
.brand:hover {
    color: var(--ink);
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--ink);
    color: white;
    border-radius: 12px;
    font-size: 1.2rem;
    letter-spacing: -0.1em;
}
.brand-dot {
    color: var(--coral);
}
.nav-link {
    color: var(--ink) !important;
    font-weight: 600;
    font-size: 0.93rem;
}
.nav-link:hover {
    color: #13757b !important;
}
.nav-logout {
    margin: 0;
}
.navbar-toggler {
    border: 0;
    color: var(--ink);
}
.btn {
    border-radius: 10px;
    font-weight: 700;
}
.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    padding: 0.65rem 1.15rem;
}
.btn-primary:hover,
.btn-primary:focus {
    background: #27616a;
    border-color: #27616a;
}
.btn-outline-dark {
    border-color: var(--ink);
    color: var(--ink);
}
.btn-outline-dark:hover {
    background: var(--ink);
    border-color: var(--ink);
}
.btn-lg {
    padding: 0.8rem 1.35rem;
}
.text-link {
    color: var(--ink);
    font-weight: 750;
    text-decoration: none;
}
.text-link:hover {
    color: #25777b;
}
.text-link i {
    margin-left: 5px;
    font-size: 0.8em;
}
h1,
h2,
h3 {
    letter-spacing: -0.045em;
    line-height: 1.14;
}
h1 {
    font-size: clamp(2.7rem, 5.5vw, 5.5rem);
    font-weight: 800;
}
h1 em {
    font-family: Georgia, serif;
    font-weight: 400;
    color: #dd7058;
}
h2 {
    font-weight: 800;
}
h3 {
    font-size: 1.15rem;
    font-weight: 750;
}
.eyebrow {
    display: inline-block;
    color: #317e80;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.73rem;
    font-weight: 850;
}
.muted,
.form-tip {
    color: #71858a;
}
.form-tip {
    font-size: 0.85rem;
    margin: 0.45rem 0 0;
}
.hero {
    min-height: 640px;
    padding-top: 60px;
    padding-bottom: 55px;
}
.hero h1 {
    max-width: 680px;
    margin: 20px 0 25px;
}
.hero-lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
    max-width: 550px;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    margin: 30px 0 45px;
}
.hero-note {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 440px;
    color: #697f84;
    font-size: 0.87rem;
}
.note-icon {
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    background: var(--mint);
    color: #3e7b72;
}
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
    margin-right: 8px;
}
.hero-card-wrap {
    position: relative;
}
.hero-card-wrap:before {
    content: "";
    position: absolute;
    width: 75%;
    height: 80%;
    left: 15%;
    top: 12%;
    background: #dde9df;
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
}
.statement-card {
    background: var(--card);
    border: 1px solid #e9e9df;
    box-shadow: var(--shadow);
    border-radius: 25px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.statement-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px 15px;
}
.statement-index {
    color: #a0aeb0;
    font-size: 0.8rem;
    font-weight: 800;
}
.statement-content {
    padding: 25px 35px 20px;
    flex: 1;
}
.statement-prefix {
    color: var(--coral);
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    margin-bottom: 15px;
}
.statement-text {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 750;
    line-height: 1.15;
    max-width: 650px;
}
.statement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 28px;
}
.option-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}
.tag-pill {
    display: inline-block;
    background: #ecf4ef;
    color: #49776c;
    border-radius: 100px;
    padding: 5px 11px;
    font-size: 0.75rem;
    font-weight: 750;
}
.statement-bottom {
    border-top: 1px solid #edf0ea;
    background: #fafbf6;
    padding: 25px 30px;
    text-align: center;
}
.answer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.btn-answer {
    border: 2px solid transparent;
    border-radius: 11px;
    padding: 14px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 800;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}
.btn-answer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.09);
}
.btn-yes {
    background: #d6eadb;
    color: #235f47;
}
.btn-no {
    background: #f8e7df;
    color: #934d40;
}
.btn-answer.selected {
    border-color: currentColor;
}
.option-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}
.btn-option {
    border: 2px solid #d8e4dc;
    border-radius: 10px;
    background: white;
    color: var(--ink);
    padding: 10px 7px;
    font-weight: 700;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.btn-option:hover,
.btn-option.selected {
    border-color: #4c9078;
    background: #e5f3e9;
}
.answer-hint {
    color: #8a9996;
    font-size: 0.76rem;
    margin: 12px 0 0;
}
.community-link {
    border: 0;
    background: none;
    text-decoration: underline;
    color: #708888;
    font-size: 0.75rem;
    margin-top: 8px;
}
.community {
    font-size: 0.8rem;
    color: #496b6a;
    margin-top: 7px;
}
.community-option {
    margin-top: 3px;
}
.section-space {
    margin-top: 60px;
}
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.section-heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 8px 0 0;
}
.stat-tile {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 23px;
    border-radius: 16px;
    min-height: 165px;
    display: flex;
    flex-direction: column;
}
.stat-tile span {
    font-weight: 750;
    color: #69858a;
    font-size: 0.82rem;
}
.stat-tile strong {
    font-size: 2.8rem;
    line-height: 1.1;
    letter-spacing: -0.07em;
    margin: 11px 0;
}
.stat-tile small {
    color: #789096;
}
.stat-tile.highlight {
    background: var(--ink);
    color: white;
}
.stat-tile.highlight span {
    color: #aac5c5;
}
.progress {
    height: 7px;
    background: #dde6e0;
    border-radius: 10px;
    overflow: hidden;
}
.progress-bar {
    background: var(--coral);
}
.stat-tile .progress {
    margin-top: 8px;
    background: #456570;
}
.topic-card {
    display: block;
    position: relative;
    height: 100%;
    min-height: 150px;
    padding: 25px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
    color: var(--ink);
    transition:
        transform 0.15s,
        border 0.15s;
}
.topic-card:hover {
    transform: translateY(-3px);
    border-color: #98b9b0;
    color: var(--ink);
}
.topic-symbol {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: #eaf2e9;
    color: #44817d;
    margin-bottom: 14px;
}
.topic-card strong {
    display: block;
    font-size: 1.2rem;
}
.topic-card small {
    display: block;
    color: #809196;
}
.topic-arrow {
    position: absolute;
    right: 24px;
    top: 28px;
    color: #93aaa8;
    font-size: 0.8rem;
}
.topic-progress {
    display: block;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #edf1e9;
    margin-top: 20px;
}
.topic-progress span {
    display: block;
    height: 100%;
    background: #65aa9b;
    border-radius: 5px;
}
.about-section {
    margin-top: 90px;
}
.about-card {
    height: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 31px;
}
.about-card h3 {
    font-size: 1.45rem;
    margin: 16px 0 14px;
}
.about-card p {
    color: var(--ink-soft);
    margin-bottom: 13px;
}
.about-card p:last-child {
    margin-bottom: 0;
}
.about-icon,
.about-story-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #e7f0e9;
    color: #47817a;
}
.about-questions {
    border-top: 4px solid #6fa996;
}
.about-plans {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}
.about-plans .about-icon {
    background: #335d62;
    color: #acd5c6;
}
.about-plans p,
.about-plans li {
    color: #d0dfdc;
}
.about-plans ul {
    padding-left: 20px;
    margin: 17px 0 0;
}
.about-plans li {
    margin: 6px 0;
}
.about-story {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 25px;
    background: #edf3ee;
    border-color: #d8e5dc;
}
.about-story h3 {
    margin-top: 7px;
}
.about-story-mark {
    flex: none;
    width: 54px;
    height: 54px;
    background: white;
    color: var(--coral);
}
.tag-cloud {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.tag-cloud a {
    display: inline-block;
    background: #e8f0e9;
    padding: 8px 13px;
    border-radius: 100px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 650;
}
.tag-cloud a:hover {
    background: #d4e8dc;
}
.tag-cloud small {
    color: #7c9991;
    margin-left: 6px;
}
.recent-list {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}
.recent-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    border-bottom: 1px solid #e7eae3;
}
.recent-item:last-child {
    border-bottom: 0;
}
.recent-item small {
    color: #8b9b9c;
}
.answer-badge {
    border-radius: 100px;
    padding: 3px 11px;
    font-size: 0.77rem;
    font-weight: 800;
}
.answer-badge.yes {
    background: #d6eadb;
    color: #235f47;
}
.answer-badge.no {
    background: #f8e7df;
    color: #934d40;
}
.answer-badge.option {
    background: #e6ebfa;
    color: #4d628c;
}
.page-intro {
    padding: 62px 0 32px;
}
.page-intro h1 {
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    margin: 14px 0;
}
.page-intro p {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 700px;
}
.filter-panel,
.form-card,
.list-filters {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 25px;
}
.filter-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 23px;
}
.form-label {
    font-size: 0.83rem;
    font-weight: 750;
    color: #547079;
}
.form-control,
.form-select {
    border-color: #d7e1dc;
    border-radius: 9px;
    padding: 0.65rem 0.8rem;
    color: var(--ink);
}
.form-control:focus,
.form-select:focus {
    border-color: #62a5a0;
    box-shadow: 0 0 0 0.2rem rgba(98, 165, 160, 0.15);
}
.form-check-input:checked {
    background-color: #26797b;
    border-color: #26797b;
}
.discover-stage {
    max-width: 790px;
    margin: auto;
}
.stage-meta,
.stage-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #758b8f;
    font-size: 0.85rem;
    margin-bottom: 14px;
}
.stage-actions {
    margin-top: 20px;
}
.stage-actions .muted {
    font-size: 0.8rem;
}
.discover-stage .statement-card {
    min-height: 480px;
}
.compact-progress {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 8px 0 26px;
    font-weight: 750;
}
.compact-progress .progress {
    flex: 1;
}
.list-filters {
    margin: 0 0 24px;
}
.answer-list {
    display: grid;
    gap: 10px;
}
.answer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 17px 22px;
}
.answer-row-main {
    flex: 1;
}
.answer-row-number {
    font-size: 0.72rem;
    color: #91a0a2;
    font-weight: 800;
}
.answer-row h2 {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    margin: 3px 0;
}
.answer-row p {
    font-size: 0.8rem;
    color: #81989a;
    margin: 0;
}
.answer-row-actions {
    text-align: right;
    min-width: 205px;
}
.answer-row-actions [data-option-select] {
    max-width: 235px;
    margin-left: auto;
}
.answer-state {
    display: block;
    font-size: 0.76rem;
    color: #778c8f;
    margin-bottom: 5px;
}
.btn-group .btn.active {
    color: white;
    background: var(--ink);
    border-color: var(--ink);
}
.empty-state {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 55px 30px;
}
.empty-state i {
    font-size: 2.5rem;
    color: var(--coral);
    margin-bottom: 15px;
}
.empty-state h2 {
    font-size: 1.6rem;
}
.empty-state p {
    color: #71858a;
}
.error-state {
    margin: 90px auto;
    max-width: 620px;
}
.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 9vw;
    align-items: center;
    min-height: 650px;
}
.auth-story h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    margin: 15px 0 25px;
}
.auth-story p {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 540px;
}
.auth-decoration {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: #d7735d;
    margin-top: 55px;
    font-style: italic;
}
.form-card h2 {
    font-size: 1.8rem;
}
.form-card p a {
    color: #26797b;
    font-weight: 750;
}
.form-card .form-label {
    margin-top: 8px;
}
.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
    color: #a0afad;
}
.divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--line);
}
.divider span {
    position: relative;
    background: var(--card);
    padding: 0 12px;
}
.account-card,
.suggest-card {
    max-width: 760px;
}
.suggest-card textarea {
    resize: vertical;
}
.admin-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin-bottom: 25px;
}
.admin-tabs a {
    display: block;
    padding: 11px 16px;
    color: #647e80;
    text-decoration: none;
    font-weight: 750;
    border-bottom: 3px solid transparent;
}
.admin-tabs a.active {
    color: var(--ink);
    border-color: var(--coral);
}
.admin-create {
    margin-bottom: 23px;
}
.admin-table-card {
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.admin-table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.admin-table-heading h2 {
    margin: 0;
}
.admin-table-card table {
    margin: 0 !important;
}
.admin-table-card .dt-container {
    color: var(--ink);
}
.admin-table-card .dt-search input,
.admin-table-card .dt-length select {
    margin-left: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px 8px;
    background: white;
}
.admin-table-card .dt-paging-button {
    border-radius: 8px !important;
}
.admin-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.admin-actions .delete-form {
    margin: 0;
}
.admin-action-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
}
.select2-container--default .select2-selection--multiple {
    min-height: 38px;
    border-color: #dee2e6;
    border-radius: 0.375rem;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 0;
    background: var(--mint);
    color: var(--ink);
}
.online-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 23px;
}
.online-summary div {
    flex: 1;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.online-summary span,
.online-summary strong {
    display: block;
}
.online-summary span {
    color: #647e80;
    font-size: 0.85rem;
}
.online-summary strong {
    font-size: 1.8rem;
}
.online-visitor span {
    margin-left: 8px;
    color: #647e80;
}
.admin-list {
    display: grid;
    gap: 10px;
}
.admin-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
}
.admin-row-meta {
    width: 130px;
    flex: none;
    font-size: 0.73rem;
    color: #87999a;
}
.admin-row-meta strong {
    display: block;
    color: var(--ink);
    font-size: 0.85rem;
}
.admin-edit {
    flex: 1;
}
.admin-edit p {
    margin: 4px 0;
}
.delete-form {
    margin-left: auto;
}
.site-footer {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    color: #8b9a9c;
    font-size: 0.8rem;
}
.site-footer a {
    color: var(--ink-soft);
    font-weight: 700;
}
.site-footer a:hover {
    color: #25777b;
}
@media (max-width: 991px) {
    .site-main {
        padding-bottom: 55px;
    }
    .hero {
        padding-top: 40px;
    }
    .auth-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 0;
    }
    .auth-decoration {
        margin-top: 25px;
    }
    .nav-logout {
        margin-top: 10px;
    }
    .admin-row {
        align-items: stretch;
        flex-wrap: wrap;
    }
    .admin-row-meta {
        width: 100%;
    }
    .admin-edit {
        width: 100%;
        flex: auto;
    }
    .admin-table-heading {
        align-items: stretch;
        flex-direction: column;
    }
    .about-section {
        margin-top: 65px;
    }
}
@media (max-width: 600px) {
    .statement-top {
        padding: 20px 22px 10px;
    }
    .statement-content {
        padding: 18px 23px;
    }
    .statement-bottom {
        padding: 20px;
    }
    .statement-card {
        min-height: 410px;
    }
    .btn-answer {
        font-size: 0.8rem;
        padding: 12px 7px;
    }
    .option-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-actions {
        gap: 16px;
    }
    .section-heading {
        align-items: start;
        flex-direction: column;
    }
    .recent-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .recent-item small {
        width: 100%;
    }
    .stage-meta,
    .stage-actions {
        align-items: start;
        flex-direction: column;
    }
    .answer-row {
        align-items: stretch;
        flex-direction: column;
    }
    .answer-row-actions {
        text-align: left;
        min-width: 0;
    }
    .answer-row-actions [data-option-select] {
        margin-left: 0;
    }
    .compact-progress {
        display: block;
    }
    .compact-progress .progress {
        margin-top: 10px;
    }
    .about-card {
        padding: 25px;
    }
    .about-story {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
