:root {
    --main-bg: white;
    --secondary-bg: #eee;
    --card-bg: white;

    --main-text: #333;
    --secondary-text: #666;
    --sub-text: #666;

    --main-link: #333;
    --main-link-hover: #333;
    --secondary-link: #333;

    --border: #d6d6d6;
    --border-soft: #eee;
    --border-strong: #c2c2c2;
    --shadow: #b4b4b4;
}

body {
    padding: 0px;
    margin: 0px;
    font-size: 16px;
    font-family: sans-serif;
    background-color: var(--main-bg);
    line-height: 170%;
}

a {
    text-decoration: none;
}

stateful-component {
    display: contents;
}

span {
    line-height: 120%;
}

/* basic */
.stateful-component {
    display: contents;
}

.img_box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.paper {
    margin: 10px;
    padding: 10px;
    border: #999 2px solid;
    box-shadow: 10px 5px 5px #999;
}

dl {
    margin: 5px 0;
}

dt {
    font-weight: bold;
}

dd {
    margin-left: 0;
}

.container {
    display: flex;
}

.alignment {
    position: relative;
    width: 100%;
    height: 100%;
}

.checkbox-label {
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.icon-btn {
    justify-content: center;
    width: 30px;
    padding: 0;
}


.svg_icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
}


.splitview>div {
    display: flex;
    align-items: center;
    overflow: auto;
    box-sizing: border-box;
    padding: 10px;
    min-height: 100px;
}

.splitview_first {
    width: var(--splitview-first-width, 50%);
}

.splitview_second {
    width: var(--splitview-second-width, 50%);
}

@media (max-width: 600px) {

    .splitview_first,
    .splitview_second {
        width: 100%;
    }
}

/* section */
.section_title {
    font-weight: bold;
    font-size: 1.2em;
}

.form-ln {
    display: flex;
    margin: 10px;
    flex-direction: column;
    align-items: flex-start;
}

select,
input[type="text"],
input[type="password"] {
    width: 100%;
}


textarea {
    width: 95%;
    padding: 10px;
    border-radius: 3px;
    font-size: 16px;
    border-radius: 6px;
}

textarea:focus,

input:focus {
    outline: none !important;
}

input {
    flex: 1;
    position: relative;
    padding: 8px 10px;
    border-radius: 5px;
}

input,
textarea {
    font-size: 16px;
}

.input_icon {
    position: absolute;
    left: 5;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
}

.checkbox_container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}

.radio_box {
    display: flex;
    gap: 10px;
}

select {
    font-size: 16px;
}

.form_image_preview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.form_image_preview>div {
    width: 120px;
    height: 120px;
    border: #666 1px solid;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form_image_close_btn {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    display: flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    background: #666;
    color: white;
}

.slideDown {
    overflow: hidden;
    animation: _slideDown 1s;
}

@keyframes _slideDown {
    0% {
        max-height: 0px;
    }

    100% {
        max-height: 500px;
    }
}

.fadeIn {
    /* opacity: 0; */
    transition: opacity 0.2s ease-out;
}


@keyframes btnbg {
    0% {
        background-position: 200% 0%;
    }

    50% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}


span {
    overflow-wrap: break-word;
    min-width: 0;
}

span.normal {
    font-size: 15px;
}

span.lg {
    font-size: 18px;
}

.flex {
    display: flex;
}


.stack {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

span.gray {
    color: #999;
}

span.sm {
    font-size: 0.9em;
}

#container {
    max-width: 1050px;
    padding: 10px;
    margin: 20px auto;
}

.block_title {
    display: block;
    font-weight: bold;
    font-size: 1.5em;
    padding: 5px;
    margin: 10px 0 5px 0;
}

#footer {
    margin-top: 100px;
    text-align: center;
}

ul {
    margin: 1px;
    padding-left: 20px;
}

li {
    margin: 7px 0;
}


hr {
    border: 1px #eee solid;
}

th {
    text-align: left;
    padding: 5px;
}

td {
    padding: 5px;
    min-width: 150px;
}

.section {
    margin-bottom: 10px;
}


.grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.box {
    padding: 5px
}

img {
    max-width: 100%;
    height: auto;
}

.cover_icon {
    max-width: 180px;
    height: auto;
}

.list_item_description {
    margin-left: 20px;
}

.kv {
    display: flex;
    flex-direction: row;
}

.kv_k {
    color: #666;
    width: 130px;
    padding: 5px;
}

.kv_v {
    font-size: 1.1em;
    padding: 5px;
}

.btn {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
}

/* Modal */
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px;
    background-color: var(--secondary-bg);
    border-radius: 15px 15px 0 0;
}

.modal-title {
    color: var(--secondary-text);
    font-size: 1.3em;
    font-weight: bold;
}

.modal-close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-container {
    opacity: 0;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s linear;
}

.modal {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.modal-content-container {
    transition: transform 0.05s linear;
}

.modal-content {
    background-color: #fefefe;
    border: 1px solid rgb(124, 124, 124);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 10px;
    transform: scale(0.3);
    transition: transform 0.15s linear;
}

.modal-body {
    padding: 20px;
    overflow-y: hidden;
    min-height: 60px;
    transition: max-height 0.2s linear;
}

@media (min-width:451px) {
    .modal-content {
        width: 500px;
    }
}

@media (max-width:450px) {
    .modal-content {
        width: 350px;
    }
}

/* loader */
.topLoader {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    display: none;
    padding: 0;
}

.loader {
    width: 100%;
    height: 3px;
    position: relative;
    top: 0;
    background: #eee;
    overflow: hidden;
}

.loader::after {
    content: '';
    width: 50%;
    height: 3px;
    background: rgb(23, 126, 245);
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    animation: animloader 1s linear infinite;
}

@keyframes animloader {
    0% {
        left: 0;
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        left: 50%;
        opacity: 1;
        transform: translateX(-50%);
    }

    100% {
        left: 100%;
        opacity: 0;
        transform: translateX(0%);
    }
}

.spinner {
    width: 28px;
    height: 28px;
    border: 4px solid var(--sub-text);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin {
    display: inline-flex;
    animation: spinrotation 2s linear infinite;
}

@keyframes spinrotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

p code {
    background-color: #eee;
    color: #a71616;
}

.popover {
    position: relative;
    display: inline-block;
}

.popover_trigger {
    cursor: pointer;
    display: inline-block;
}

.popover_content {
    display: none;
    position: absolute;
    z-index: 9999;
    min-width: max-content;
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* bottom variants: content appears below trigger */
.popover-bottom-left .popover_content,
.popover-bottom-right .popover_content,
.popover-smart .popover_content {
    top: calc(100% + 4px);
}

/* top variants: content appears above trigger */
.popover-top-left .popover_content,
.popover-top-right .popover_content {
    bottom: calc(100% + 4px);
}

/* left-anchored: content's left edge aligns with trigger's left edge */
.popover-bottom-left .popover_content,
.popover-top-left .popover_content,
.popover-smart .popover_content {
    left: 0;
}

/* right-anchored: content's right edge aligns with trigger's right edge */
.popover-bottom-right .popover_content,
.popover-top-right .popover_content {
    right: 0;
}

/* right-center: content appears to the right of trigger, vertically centered */
.popover-right-center .popover_content {
    left: calc(100% + 12px);
    top: 50%;
}

/* left-center: content appears to the left of trigger, vertically centered */
.popover-left-center .popover_content {
    right: calc(100% + 12px);
    top: 50%;
}

button {
    background-color: #e7e7e7;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-bottom: 1px solid #808080;
    border-right: 1px solid #808080;
    padding: 8px 12px;
    border-radius: 6px;
    color: #000000;
    cursor: pointer;
    /* box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #8b8b8b; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
    outline: none;
    transition: background-color 0.2s ease;
    font-size: 15px;
}


button:hover {
    background-color: #dbe1e6;
}

/* Message Box Styles */
.fl_message_box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.info_message {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.success_message {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #81c784;
}

.error_message {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ef5350;
}

.preview-style {
    display: flex;
    gap: 5px;
}

.image-square {
    position: relative;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-square span {
    display: flex;
    background-color: rgb(180, 26, 26);
    border-radius: 50%;
    color: white;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
}

.image-square span:hover {
    background-color: red;
}

.avatar-upload-btn-box {
    display: flex;
    gap: 5px;
    padding: 5px;
    align-items: center;
}

/* Tooltip */
.tooltip-content {
    padding: 1px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    background: var(--tooltip-bg, #333333);
    color: var(--tooltip-color, #ffffff);
}

/* Center content vertically for side placements */
.tooltip.popover-right-center .popover_content,
.tooltip.popover-left-center .popover_content {
    transform: translateY(-50%);
}

/* Arrow: right placement — arrow points left on the left edge of content */
.tooltip-arrow-right-center::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--tooltip-bg, #333333);
}

/* Arrow: left placement — arrow points right on the right edge of content */
.tooltip-arrow-left-center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--tooltip-bg, #333333);
}

/* Arrow: top placement — arrow points down on the bottom edge of content */
.tooltip-arrow-top-left::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 16px;
    border: 6px solid transparent;
    border-top-color: var(--tooltip-bg, #333333);
}

/* Arrow: bottom placement — arrow points up on the top edge of content */
.tooltip-arrow-bottom-left::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 16px;
    border: 6px solid transparent;
    border-bottom-color: var(--tooltip-bg, #333333);
}

/* =============================================================================
   Custom Select
   ============================================================================= */

.rdselect {
    position: relative;
    display: inline-flex;
    flex-direction: column;
}

.rdselect .popover_trigger {
    width: 100%;
}

.rdselect_trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--main-bg, #fff);
    cursor: pointer;
    user-select: none;
    padding: 1px 6px;
    min-height: 28px;
    font-size: 14px;
    transition: border-color 0.15s, background 0.15s;
}

.rdselect--sm .rdselect_trigger {
    padding: 2px 6px;
    min-height: 24px;
    font-size: 13px;
}

.rdselect--lg .rdselect_trigger {
    padding: 2px 5px;
    font-size: 16px;
}

.rdselect_trigger:hover {
    border-color: var(--border-strong);
    background: var(--secondary-bg);
}

.rdselect_label {
    flex: 1;
    color: var(--main-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-width: 120px;
}

.rdselect_placeholder {
    flex: 1;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.rdselect_chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--secondary-text);
    transition: transform 0.15s ease;
}

.rdselect.popover-click[data-open] .rdselect_chevron,
.rdselect_trigger[data-open] .rdselect_chevron {
    transform: rotate(180deg);
}

.rdselect_menu {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 4px 0;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
}

.rdselect_option {
    padding: 2px 12px;
    cursor: pointer;
    color: var(--main-text);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rdselect_option:hover {
    background: var(--secondary-bg);
}

.rdselect_option--selected {
    font-weight: 600;
    background: var(--secondary-bg);
}

.rdselect_search_wrap {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-soft);
}

.rdselect_search {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--main-bg, #fff);
    color: var(--main-text);
    font-size: 13px;
    font-family: inherit;
    padding: 3px 8px;
    outline: none;
    line-height: 1.4;
}

.rdselect_search:focus {
    border-color: var(--border-strong);
}

/* Remove native search cancel button */
.rdselect_search::-webkit-search-cancel-button {
    display: none;
}

.rdselect_spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.rdselect_spinner::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--secondary-text);
    border-radius: 50%;
    animation: rdselect_spin 0.6s linear infinite;
}

@keyframes rdselect_spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================================================
   Dropdown (link menu)
   ============================================================================= */

.rddropdown_menu {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 4px 0;
    min-width: max-content;
}

.rddropdown_item {
    display: block;
    padding: 2px 12px;
    color: var(--main-text);
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
}

.rddropdown_item:hover {
    background: var(--secondary-bg);
    color: var(--main-text);
}

.rddropdown_divider {
    height: 1px;
    background: var(--border-soft);
    margin: 4px 0;
}

/* =============================================================================
   Button Variants
   ============================================================================= */

/* --general (default): subtle filled, inherits existing button look */
button.btn--general {
    background-color: var(--secondary-bg, #e7e7e7);
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-bottom: 1px solid var(--border-strong, #808080);
    border-right: 1px solid var(--border-strong, #808080);
    color: var(--main-text, #333);
}

button.btn--general:hover {
    background-color: var(--border, #d6d6d6);
}

/* --solid: strong filled primary action */
button.btn--solid {
    background-color: #2563eb;
    border: 1px solid #1d4ed8;
    color: #ffffff;
}

button.btn--solid:hover {
    background-color: #1d4ed8;
    border-color: #1e40af;
}

/* --outline: transparent bg with visible border */
button.btn--outline {
    background-color: transparent;
    border: 1.5px solid var(--border-strong, #c2c2c2);
    color: var(--main-text, #333);
}

button.btn--outline:hover {
    background-color: var(--secondary-bg, #eee);
    border-color: var(--shadow, #b4b4b4);
}

/* --ghost: no border, very subtle hover fill */
button.btn--ghost {
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--main-text, #333);
}

button.btn--ghost:hover {
    background-color: var(--secondary-bg, #eee);
}

/* --plain: completely flat, no border, no fill — text only */
button.btn--plain {
    background-color: transparent;
    border: none;
    color: var(--main-text, #333);
    padding: 4px 6px;
}

button.btn--plain:hover {
    color: var(--secondary-text, #666);
    text-decoration: underline;
}

/* --glass: frosted glass effect */
button.btn--glass {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

button.btn--glass:hover {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Separator */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2px 0;
    color: rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(73, 73, 73, 0.2);
}

.separator::before {
    margin-right: 15px;
}

.separator::after {
    margin-left: 15px;
}
/* appended css */


:root {
  color-scheme: dark;
  --bg: #06120c;
  --panel: #0d2418;
  --panel-strong: #102f20;
  --text: #f4f0d8;
  --muted: #b9b08a;
  --line: #294d32;
  --link: #f1c84b;
  --link-strong: #ffe17a;
  --soft: #173821;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -10%, rgba(204, 165, 50, 0.18), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(28, 92, 50, 0.38), transparent 30rem),
    linear-gradient(180deg, #07160d 0%, var(--bg) 44%, #041009 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 22, 12, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px var(--shadow);
  backdrop-filter: blur(12px);
}

.topbar {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--link-strong);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  color: #000;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 252, 232, 0.55);
  border: 1px solid rgba(204, 173, 73, 0.54);
  border-radius: 8px;
}

.brand-img {
  width: 26px;
  height: 26px;
  display: block;
  filter: brightness(0) saturate(100%);
}

.menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.menu a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.menu a.active,
.menu a:hover {
  color: var(--link-strong);
}

.menu-user {
  color: var(--link-strong);
  font-size: 13px;
  font-weight: 700;
}

.connect-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  background: var(--link);
  border-radius: 8px;
  color: #07120c !important;
  font-weight: 700;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 22, 12, 0.72);
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--link-strong);
}

.hero {
  margin-bottom: 32px;
}

.eyebrow {
  color: var(--link);
  font-size: 14px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  font-size: 34px;
  line-height: 1.16;
  margin: 0 0 12px;
}

h2 {
  font-size: 22px;
  margin: 0 0 14px;
}

h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.section {
  margin-top: 34px;
}

.home-sections {
  display: grid;
  gap: 34px 28px;
}

.home-sections .section {
  margin-top: 0;
}

.card {
  display: block;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 18px 40px var(--shadow);
}

.card:hover {
  border-color: rgba(241, 200, 75, 0.58);
  background: linear-gradient(180deg, #153923, #0e2a1b);
}

.title-link {
  text-decoration: none;
}

.title-link:hover {
  color: var(--link-strong);
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
}

.summary {
  color: var(--muted);
  margin: 0;
}

.stack {
  display: grid;
  gap: 14px;
}

.title-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 40px var(--shadow);
  overflow: hidden;
}

.title-list li {
  border-bottom: 1px solid var(--line);
}

.title-list li:last-child {
  border-bottom: 0;
}

.title-list a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
}

.title-list a:hover {
  background: var(--soft);
  color: var(--link-strong);
}

.title-list-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.more-button:hover {
  background: var(--soft);
  border-color: rgba(241, 200, 75, 0.58);
  color: var(--link-strong);
}

.article {
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 22px 48px var(--shadow);
}

.article-body {
  margin-top: 24px;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body > :last-child {
  margin-bottom: 0;
}

.article-body h2 {
  margin-top: 28px;
}

.article-body h3 {
  margin-top: 22px;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.article-body table {
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-body blockquote {
  border-left: 3px solid var(--link);
  color: var(--muted);
  padding-left: 14px;
}

.article-body code {
  background: var(--soft);
  border-radius: 4px;
  padding: 2px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.article-body pre {
  overflow-x: auto;
  padding: 14px;
  background: #030806;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-body pre code {
  background: transparent;
  padding: 0;
}

.comments-section {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.comments-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.comments-head h2 {
  margin-bottom: 0;
}

.comment-connect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid var(--line);
  background: #07170e;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.comment-form textarea::placeholder {
  color: #8f875f;
}

.comment-form button {
  justify-self: start;
  min-height: 34px;
  border: 1px solid var(--link);
  background: var(--link);
  color: #07120c;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.comment p {
  margin: 8px 0 10px;
  white-space: pre-wrap;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
}

.comment-meta strong {
  color: var(--link-strong);
}

.comment-children {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.comment-target {
  color: var(--link);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.comment-target:hover {
  color: var(--link-strong);
}

.content-note,
.content-warning,
.content-success {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
  padding: 14px 16px;
}

.content-note {
  background: rgba(21, 59, 35, 0.78);
  border-color: #3f7d4d;
}

.content-warning {
  background: rgba(94, 70, 18, 0.48);
  border-color: #b88922;
}

.content-success {
  background: rgba(17, 75, 43, 0.66);
  border-color: #48a463;
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--link);
}

.text-success {
  color: #7ee59b;
}

.text-warning {
  color: #f1c84b;
}

.content-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(10, 30, 18, 0.64);
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tag-groups {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.tag-group {
  display: grid;
  gap: 6px;
}

.tag-group .tags {
  margin-top: 0;
}

.tag-label {
  color: var(--muted);
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid rgba(241, 200, 75, 0.22);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.tag:hover {
  border-color: rgba(241, 200, 75, 0.72);
  color: var(--link-strong);
}

.list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
}

.search-form input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--line);
  background: #07170e;
  color: var(--text);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.search-form input::placeholder {
  color: #8f875f;
}

.search-form button {
  height: 40px;
  border: 1px solid var(--link);
  background: var(--link);
  color: #07120c;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--link-strong);
  border-color: var(--link-strong);
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin: -10px 0 18px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  background: rgba(10, 30, 18, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.filter-option:hover,
.filter-option.active {
  background: var(--link);
  border-color: var(--link);
  color: #07120c;
}

.empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px var(--shadow);
}

.ranking-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ranking-table th {
  color: var(--link);
  font-size: 13px;
  font-weight: 600;
}

.ranking-table tr:last-child td {
  border-bottom: 0;
}

.ranking-table td:first-child {
  color: var(--muted);
  width: 58px;
}

.ranking-table td:not(:nth-child(2)):not(:nth-child(4)),
.ranking-table th:not(:nth-child(2)):not(:nth-child(4)) {
  white-space: nowrap;
}

.price-lines {
  display: grid;
  gap: 3px;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  .article {
    padding: 20px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .comment-connect,
  .comments-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .comment-children {
    padding-left: 10px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 801px) {
  .home-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

