@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,600;1,400&family=Unbounded:wght@700;900&display=swap');
@font-face{font-family:"Material Design Icons"; src:url(../../assets/fonts/materialdesignicons-webfont.woff2);}

:root {
    --font-text: 'IBM Plex Mono', 'Courier New', monospace;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
    --bg: #f7f9fa;
    --surface: #ffffff;
    --surface2: #f7f9fa;
    --surface3: #eff3f4;
    --border: rgba(0, 0, 0, .08);
    --border2: rgba(0, 0, 0, .14);
    --text: #0f1419;
    --text-dim: #536471;
    --text-dimmer: #8b98a5;
    --accent: #1d9bf0;
    --accent2: #00ba7c;
    --accent3: #f91880;
    --accent4: #ff7a00;
    --accent5: #7c4dff;
    --accent6: #00bcd4;
    --err: #f4212e;
    --keyword: #1d9bf0;
    --string: #00ba7c;
    --number: #ff7a00;
    --comment: #8b9eb7;
    --bool: #ff7a00;
    --sidebar-w: 230px;
    --header-h: 56px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

body {
    font-family: var(--font-text);
    background: var(--bg) url('../image/site-bg.svg') repeat;
    color: var(--text);
    min-height: 100vh;
}

pre,
code,
kbd,
samp,
.code-block,
.ex-viewer-code,
.faq-code,
.code-preview,
.code-textarea,
.ed-textarea,
.fn-sig,
.kw-tag,
.ex-kbd,
.dv-num {
    font-family: var(--font-mono);
}

.hero {
    padding: 52px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
    background: var(--bg) url('../image/pattern-bg.svg') repeat;
}

.hero h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -2px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero-sub {
    font-size: 13px;
    color: var(--text-dim);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 28px;
}

.hero-stats {
    display: flex;
    gap: clamp(16px, 4vw, 32px);
    flex-wrap: wrap;
    margin-top: 8px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 900;
    line-height: 1;
}

.stat-value.purple {
    color: var(--accent);
}

.stat-value.green {
    color: var(--accent2);
}

.stat-value.pink {
    color: var(--accent3);
}

.stat-value.orange {
    color: var(--accent4);
}

.stat-label {
    font-size: 10px;
    color: var(--text-dimmer);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.chapter-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: clamp(16px, 3vw, 28px) clamp(14px, 3vw, 32px);
    border-radius: 14px;
    margin-bottom: 40px;
    margin-top: 16px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.chapter-divider.about {
    background: rgba(29, 155, 240, .04);
    border-color: rgba(29, 155, 240, .18);
}

.chapter-divider.ref {
    background: rgba(0, 186, 124, .04);
    border-color: rgba(0, 186, 124, .18);
}

.chapter-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.5px;
    margin-bottom: 10px;
}

.chapter-desc {
    font-size: 11.5px;
    color: var(--text-dim);
}

a[target="_blank"] {
    color: #3949ab;
}
a[target="_blank"]:hover {
    color: #5c6bc0;
}

.download-logged {
 font-size: 10px;
}

.section {
    margin-bottom: 56px;
    scroll-margin-top: 72px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.5px;
}

.section-sub {
    font-size: 11.5px;
    color: var(--text-dimmer);
    margin-top: 2px;
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.card:hover {
    border-color: var(--border2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.card-header {
    padding: 10px 16px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text);
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-body {
    padding: 14px 16px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.75;
}

.card-body p {
    margin-bottom: 5px;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}

.row:last-child {
    border-bottom: none;
}

.row:hover {
    background: var(--surface2);
}

.row.comment-row {
    grid-template-columns: 1fr;
}

.row code {
    font-family: var(--font-mono);
    font-size: 12px;
    white-space: nowrap;
    color: var(--text);
}

.row .desc {
    font-size: 10.5px;
    color: var(--text-dimmer);
    text-align: right;
    white-space: nowrap;
}

.code-block {
    background: #f0f4f8;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: clamp(11px, 1.5vw, 11.5px);
    line-height: 1.85;
    white-space: pre;
    overflow-x: auto;
    margin: 10px 16px 14px;
    display: block;
    color: var(--text);
    -webkit-overflow-scrolling: touch;
}

.kw {
    color: var(--keyword);
}

.str {
    color: var(--string);
}

.cmt {
    color: var(--comment);
    font-style: italic;
}

.cm {
    color: var(--comment);
    font-style: italic;
}

.type {
   color: #ff7a00;
}

.fn {
    color: #7856ff;
}
.num {
    color: #7856ff;
}

.bl {
    color: var(--bool);
}

.op {
    color: var(--accent4);
}

.err {
    color: var(--err);
}

.note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 16px 14px;
    font-size: 11.5px;
    line-height: 1.65;
}

.note.info {
    background: rgba(29, 155, 240, .06);
    border: 1px solid rgba(29, 155, 240, .18);
    color: #0e6fa8;
}

.note.warn {
    background: rgba(255, 122, 0, .06);
    border: 1px solid rgba(255, 122, 0, .18);
    color: #c45e00;
}

.note.danger {
    background: rgba(244, 33, 46, .05);
    border: 1px solid rgba(244, 33, 46, .18);
    color: #b01a25;
}

.note.success {
    background: rgba(0, 186, 124, .06);
    border: 1px solid rgba(0, 186, 124, .18);
    color: #007a53;
}

.op-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.op-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color .15s;
}

.op-item:hover {
    border-color: var(--border2);
}

.op-sym {
    font-weight: 600;
    min-width: 40px;
    font-size: 12px;
    color: var(--accent4);
}

.op-name {
    font-size: 11.5px;
    color: var(--text);
}

.op-hint {
    font-size: 9.5px;
    color: var(--text-dimmer);
}

.op-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fn-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fn-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
}

.fn-card:hover {
    border-color: var(--border2);
}

.fn-sig {
    padding: 10px 14px 8px;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
}

.fn-body {
    padding: 8px 14px 10px;
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.6;
}

.fn-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

.fn-tag.math {
    background: rgba(255, 122, 0, .1);
    color: #c45e00;
    border: 1px solid rgba(255, 122, 0, .2);
}

.fn-tag.text {
    background: rgba(0, 186, 124, .08);
    color: #007a53;
    border: 1px solid rgba(0, 186, 124, .2);
}
.fn-tag.draw {
    background: rgba(0, 188, 212, .08);
    color: #00838f;
    border: 1px solid rgba(0, 188, 212, .2);
}
.fn-tag.arr {
    background: rgba(29, 155, 240, .08);
    color: #0e6fa8;
    border: 1px solid rgba(29, 155, 240, .2);
}

.fn-tag.date {
    background: rgba(249, 24, 128, .08);
    color: #b0005e;
    border: 1px solid rgba(249, 24, 128, .2);
}

.fn-tag.file {
    background: rgba(124, 77, 255, .08);
    color: #5e35b1;
    border: 1px solid rgba(124, 77, 255, .2);
}

.fn-tag.util {
    background: var(--surface2);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.fn-tag.enrg {
    background: rgba(244, 33, 46, .08);
    color: #b01a25;
    border: 1px solid rgba(244, 33, 46, .2);
}

.fn-tag.dict {
    background: rgba(63, 81, 181, .1);
    color: #3949ab;
    border: 1px solid rgba(63, 81, 181, .25);
}

.cat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    margin-top: 4px;
    color: var(--text-dim);
}

.cat-label span {
    width: 3px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

.ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.ref-table th {
    text-align: left;
    padding: 8px 14px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dimmer);
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
}

.ref-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.55;
    color: var(--text-dim);
}

.ref-table tr:hover td {
    background: var(--surface2);
}

.ref-table code {
    font-size: 11.5px;
    color: var(--text);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.philosophy-quote {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 14px 16px;
    background: rgba(29, 155, 240, .04);
    border-radius: 0 8px 8px 0;
}

.prose {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.85;
    margin-bottom: 14px;
}

.concept-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.8;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.3px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

h2::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color .2s;
}

.feature-item:hover {
    border-color: rgba(29, 155, 240, .3);
}

.feature-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.feature-desc {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.55;
}

.feature-list {
    display: flex;
    flex-direction: column;
}

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
}

.feature-list-item:last-child {
    border-bottom: none;
}

.fli-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.fli-desc {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.55;
}

.kw-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
}

.kw-tag {
    background: rgba(29, 155, 240, .08);
    border: 1px solid rgba(29, 155, 240, .2);
    color: #0e6fa8;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
}

.arch-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.arch-layer:last-child {
    border-bottom: none;
}

.arch-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 11.5px;
    font-weight: 900;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arch-layer.l1 .arch-num {
    background: rgba(29, 155, 240, .1);
    color: var(--accent);
}

.arch-layer.l2 .arch-num {
    background: rgba(0, 186, 124, .1);
    color: var(--accent2);
}

.arch-layer.l3 .arch-num {
    background: rgba(255, 122, 0, .1);
    color: var(--accent4);
}

.arch-layer.l4 .arch-num {
    background: rgba(249, 24, 128, .1);
    color: var(--accent3);
}

.arch-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.arch-detail {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.5;
}

.audience-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.audience-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.audience-card:last-child {
    border-bottom: none;
}

.audience-card:hover {
    background: var(--surface2);
}

.audience-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.audience-desc {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.55;
}

.conclusion-banner {
    background: rgba(29, 155, 240, .04);
    border: 1px solid rgba(29, 155, 240, .16);
    border-radius: 14px;
    padding: clamp(20px, 4vw, 32px) clamp(18px, 4vw, 36px);
}

.big-quote {
    font-size: clamp(13px, 1.8vw, 15px);
    line-height: 1.85;
    color: var(--text);
    font-style: italic;
    margin-bottom: 18px;
}

.big-quote span {
    color: var(--accent2);
    font-style: normal;
    font-weight: 600;
}

.conclusion-banner p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.8;
}

.copy-btn {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--text-dimmer);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    float: right;
    font-family: var(--font-mono);
    transition: color .15s, background .15s;
}

.copy-btn:hover {
    color: var(--text);
    background: var(--surface3);
}

.download-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    flex-wrap: wrap;
}

.dv-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dimmer);
}

.dv-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: var(--accent2);
}

.dv-stable {
    background: rgba(0, 186, 124, .1);
    border: 1px solid rgba(0, 186, 124, .22);
    color: #007a53;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 7px;
}

.download-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px !important;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.3px;
}

.download-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-download-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.btn-download-main:hover {
    background: #1a8cd8;
    transform: translateY(-1px);
}

.download-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dl-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding-bottom: 10px;
    color: var(--text-dim);
}

.dl-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dl-dot.green {
    background: var(--accent2);
}

.chapter-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: clamp(16px, 3vw, 28px) clamp(14px, 3vw, 32px);
    border-radius: 14px;
    margin-bottom: 40px;
    margin-top: 16px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.chapter-divider.debutant {
    background: rgba(29, 155, 240, .04);
    border-color: rgba(29, 155, 240, .18);
}

.chapter-divider.intermediaire {
    background: rgba(0, 186, 124, .04);
    border-color: rgba(0, 186, 124, .18);
}

.chapter-divider.avance {
    background: rgba(255, 122, 0, .04);
    border-color: rgba(255, 122, 0, .18);
}

.chapter-divider.expert {
    background: rgba(249, 24, 128, .04);
    border-color: rgba(249, 24, 128, .18);
}

.chapter-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.5px;
    margin-bottom: 10px;
}

.chapter-desc {
    font-size: 11.5px;
    color: var(--text-dim);
}

.chapter-divider.c1 {
    background: rgba(29, 155, 240, .04);
    border-color: rgba(29, 155, 240, .18);
}

.chapter-divider.c2 {
    background: rgba(0, 186, 124, .04);
    border-color: rgba(0, 186, 124, .18);
}

.chapter-divider.c3 {
    background: rgba(255, 122, 0, .04);
    border-color: rgba(255, 122, 0, .18);
}

.chapter-divider.c4 {
    background: rgba(249, 24, 128, .04);
    border-color: rgba(249, 24, 128, .18);
}

.q-num.green {
    background: var(--accent2);
}

.q-num.orange {
    background: var(--accent4);
}

.note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 13px;
    border-radius: 7px;
    font-size: 11.5px;
    line-height: 1.65;
    margin-top: 10px;
}

.note.warn {
    background: rgba(255, 122, 0, .06);
    border: 1px solid rgba(255, 122, 0, .18);
    color: #c45e00;
}

footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 40px) 28px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 10.5px;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 220px;
    margin-bottom: 14px;
}

.footer-version {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 186, 124, .08);
    border: 1px solid rgba(0, 186, 124, .2);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #007a53;
    letter-spacing: 1px;
}

.footer-col-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-link {
    font-size: 11.5px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .15s;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 10.5px;
    color: var(--text);
    flex-wrap: wrap;
    gap: 8px;
}

.contact-intro {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 36px;
}

.contact-intro strong {
    color: var(--text);
    font-weight: 500;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: border-color .18s, transform .18s;
    cursor: default;
    flex-wrap: wrap;
}

.contact-item:hover {
    border-color: var(--border2);
    transform: translateX(3px);
}

.contact-item.highlight {
    border-color: rgba(0, 186, 124, .2);
    background: rgba(0, 186, 124, .03);
}

.contact-item.highlight:hover {
    border-color: rgba(0, 186, 124, .35);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon.teal {
    background: rgba(0, 186, 124, .1);
}

.contact-icon.purple {
    background: rgba(29, 155, 240, .1);
}

.contact-icon.yellow {
    background: rgba(255, 122, 0, .1);
}

.contact-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.contact-value a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity .15s;
    font-weight: 900;
}

.contact-value a:hover {
    opacity: .75;
}

.contact-note {
    font-size: 10.5px;
    color: var(--text-dim);
    margin-top: 3px;
    line-height: 1.5;
}

.contact-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 5px;
    background: rgba(0, 186, 124, .08);
    color: #007a53;
    border: 1px solid rgba(0, 186, 124, .2);
}

.contact-form {
    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 24px 28px;
}

.contact-form-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1 1 200px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 7px;
}

.form-req {
    color: var(--accent);
}

.form-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    width: 100%;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: var(--text-dimmer);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-input.has-error {
    border-color: #e0245e;
}

.form-input.has-error:focus {
    box-shadow: 0 0 0 3px rgba(224, 36, 94, .12);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 38px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23536471' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    line-height: 1.3;
}

.form-select:invalid,
.form-select.is-placeholder {
    color: var(--text-dimmer);
}

.form-select option {
    background: var(--surface);
    color: var(--text);
}

.form-select option[value=""] {
    color: var(--text-dimmer);
}

.form-error {
    font-size: 11px;
    color: #e0245e;
    margin-top: 6px;
}

.form-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 12px 26px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}

.form-submit:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.form-submit:active {
    transform: translateY(0);
}

.form-note {
    font-size: 10.5px;
    color: var(--text-dim);
    margin-top: 14px;
}

.form-alert {
    border-radius: 9px;
    padding: 13px 16px;
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.form-counter {
    font-size: 10.5px;
    color: var(--text-dimmer);
    margin-top: 6px;
    text-align: right;
}

.form-counter.near-limit {
    color: #e0245e;
    font-weight: 600;
}

.form-alert-success {
    background: rgba(0, 186, 124, .1);
    border: 1px solid rgba(0, 186, 124, .3);
    color: #007a53;
}

.form-alert-error {
    background: rgba(224, 36, 94, .08);
    border: 1px solid rgba(224, 36, 94, .28);
    color: #c01e50;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--surface3);
    border-radius: 3px;
    cursor: pointer;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, .15);
}

@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    main {
        padding: 0 20px 80px;
    }

    .hero {
        padding: 36px 0 28px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .chapter-divider {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    main {
        padding: 0 14px 60px;
    }

    .hero {
        padding: 28px 0 20px;
        margin-bottom: 32px;
    }

    .hero h1 {
        font-size: 24px;
        letter-spacing: -1px;
    }

    .hero-sub {
        font-size: 12px;
    }

    .hero-stats {
        gap: 16px;
    }

    .section-title {
        font-size: 13px;
    }

    .code-block {
        margin: 8px 0 12px;
        font-size: 11.5px;
    }

    .note {
        margin: 8px 0 12px;
    }

    .card-header {
        font-size: 10px;
    }

    .card-body {
        font-size: 11.5px;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .row .desc {
        text-align: left;
    }

    .contact-item {
        padding: 14px 16px;
        gap: 12px;
    }

    .contact-badge {
        margin-left: 0;
        margin-top: 6px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .philosophy-quote {
        font-size: 12px;
        margin: 10px 0;
    }

    .chapter-divider {
        padding: 16px;
    }

    .chapter-title {
        font-size: 14px;
    }

    .conclusion-banner {
        padding: 20px 16px;
    }

    .big-quote {
        font-size: 13px;
    }

    .arch-layer {
        gap: 10px;
    }

    .btn-download-main {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 20px;
    }

    .stat-value {
        font-size: 16px;
    }

}

.version-item {
    border-bottom: 1px solid var(--border);
}
.version-item:last-child {
    border-bottom: none;
}
.version-item > summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 4px;
    user-select: none;
    transition: color .15s ease;
}
.version-item > summary::-webkit-details-marker {
    display: none;
}
.version-item > summary::before {
    content: "\203A"; 
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
    color: var(--text-dimmer);
    transform: rotate(0deg);
    transition: transform .2s ease;
}
.version-item[open] > summary::before {
    transform: rotate(90deg);
}
.version-item > summary:hover {
    color: var(--accent2);
}
.version-item > .fli-content {
    padding: 0 4px 14px 24px;
}

.version-item .code-block {
    white-space: pre-wrap;
    padding-left: 18px;
    text-indent: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(14px, 3vw, 32px);
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: clamp(17px, 2.2vw, 22px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.brand img {
    height: 30px;
    width: auto;
}

.mainnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 12px;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text-dim);
    border-radius: 8px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.nav-item.has-menu .nav-link {
    padding-right: 4px;
    border-radius: 8px 0 0 8px;
}

.nav-caret {
    background: transparent;
    border: 0;
    padding: 8px 6px 8px 2px;
    color: var(--text-dimmer);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    border-radius: 0 8px 8px 0;
    transition: transform .2s, color .15s;
}

.nav-item:hover .nav-link,
.nav-item.open .nav-link,
.nav-item:hover .nav-caret,
.nav-item.open .nav-caret,
.nav-link:focus-visible {
    color: var(--accent);
    background: rgba(29, 155, 240, .07);
}

.nav-item.is-active > .nav-link {
    color: var(--accent);
    font-weight: 600;
}

.nav-item.open .nav-caret .mdi {
    display: inline-block;
    transform: rotate(180deg);
}

.nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 14px 40px rgba(15, 20, 25, .12);
    flex-direction: column;
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
    z-index: 110;
}

.nav-menu-right {
    left: auto;
    right: 0;
}

.nav-item.open > .nav-menu {
    display: flex;
}

.nav-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.nav-menu a {
    display: block;
    padding: 7px 12px;
    font-size: 11.5px;
    color: var(--text-dim);
    border-radius: 7px;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.is-current {
    color: var(--accent);
    background: rgba(29, 155, 240, .08);
}

.nav-menu-admin {
    color: var(--accent5) !important;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-cta,
.nav-login,
.nav-signup {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    font-size: 12px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}

.nav-cta {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.nav-cta:hover {
    background: #1a8cd8;
}

.nav-login {
    color: var(--text-dim);
}

.nav-login:hover {
    color: var(--accent);
    background: rgba(29, 155, 240, .07);
}

.nav-signup {
    border-color: var(--border2);
    color: var(--text);
}

.nav-signup:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.nav-user .nav-link {
    color: var(--text);
    font-weight: 600;
}

.nav-user .nav-link .mdi {
    font-size: 18px;
    color: var(--accent);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 36px;
    border: 1px solid var(--border2);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.layout {
    max-width: 1440px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-h));
}

main {
    min-width: 0;
    padding: 0 clamp(20px, 4vw, 40px) 100px;
}

.layout.narrow {
    max-width: 1100px;
}

.section-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 60;
    background: rgba(247, 249, 250, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    margin: 0 calc(-1 * clamp(20px, 4vw, 40px)) 32px;
    padding: 8px clamp(20px, 4vw, 40px);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
    display: none;
}

.section-nav a {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    font-size: 11px;
    transition: all .15s;
}

.section-nav a:hover,
.section-nav a.is-active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(29, 155, 240, .06);
}

.code-block {
    color: var(--text);
}

.dbg {
    color: #e53935;
}

.dir {
    color: #e0399c;
}

.code-wrap {
    position: relative;
}

.code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 6px;
    font: inherit;
    font-size: 10.5px;
    padding: 4px 9px;
    color: var(--text-dim);
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s, color .15s, border-color .15s;
}

.code-wrap:hover .code-copy,
.code-copy:focus-visible {
    opacity: 1;
}

.code-copy:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.flash-zone {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    right: 16px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(420px, calc(100vw - 32px));
}

.flash {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12px;
    box-shadow: 0 12px 30px rgba(15, 20, 25, .12);
    transition: opacity .5s, transform .5s;
}

.flash-success {
    border-left-color: var(--accent2);
}

.flash-error {
    border-left-color: var(--err);
}

.flash-warn {
    border-left-color: var(--accent4);
}

.flash.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.download-gate {
    border: 1px dashed var(--border2);
    border-radius: 12px;
    padding: 20px 22px;
    background: var(--surface2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.download-gate-text {
    flex: 1 1 320px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.7;
}

.download-gate-text strong {
    color: var(--text);
}

.download-gate-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
    text-decoration: none;
    vertical-align: middle;
    line-height: 1.2;
}

.btn .mdi {
    font-size: 16px;
    line-height: 1;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #1a8cd8;
}

.btn-outline {
    border-color: var(--border2);
    color: var(--text);
    background: var(--surface);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-success {
    background: var(--accent2);
    color: #fff;
}

.btn-success:hover {
    background: #00a56e;
}

.btn-danger {
    background: var(--surface);
    color: var(--err);
    border-color: rgba(244, 33, 46, .35);
}

.btn-danger:hover {
    background: rgba(244, 33, 46, .08);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
}

.btn-ghost:hover {
    color: var(--accent);
    background: rgba(29, 155, 240, .07);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.btn[disabled],
.btn.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.page-head {
    padding: 44px 0 26px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    background: var(--bg) url('../image/pattern-bg.svg') repeat;
}

.page-head h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 3.4vw, 32px);
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.page-head p {
    font-size: 13px;
    color: var(--text-dim);
    max-width: 640px;
    line-height: 1.75;
}

.page-head-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
}

.auth-wrap {
    max-width: 460px;
    margin: 40px auto 0;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 30px 26px;
    box-shadow: 0 10px 30px rgba(15, 20, 25, .05);
}

.auth-card h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--accent);
    margin-bottom: 6px;
}

.auth-card .auth-sub {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 22px;
}

.auth-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.auth-links a {
    color: var(--accent);
}

.auth-links a:hover {
    text-decoration: underline;
}

.form-help {
    font-size: 10.5px;
    color: var(--text-dimmer);
    margin-top: 6px;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 16px;
}

.form-check input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3px;
    border: 1px solid transparent;
}

.badge-pending {
    background: rgba(255, 122, 0, .1);
    color: #c25f00;
    border-color: rgba(255, 122, 0, .3);
}

.badge-validated,
.badge-published,
.badge-active,
.badge-answered {
    background: rgba(0, 186, 124, .1);
    color: #00875a;
    border-color: rgba(0, 186, 124, .3);
}

.badge-refused,
.badge-blocked {
    background: rgba(244, 33, 46, .08);
    color: #c4141e;
    border-color: rgba(244, 33, 46, .3);
}

.badge-draft,
.badge-read,
.badge-closed {
    background: var(--surface3);
    color: var(--text-dim);
    border-color: var(--border2);
}

.badge-new {
    background: rgba(29, 155, 240, .1);
    color: #0d6fb8;
    border-color: rgba(29, 155, 240, .3);
}

.badge-admin {
    background: rgba(124, 77, 255, .1);
    color: #5b34d1;
    border-color: rgba(124, 77, 255, .3);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.8;
    border: 1px dashed var(--border2);
    border-radius: 12px;
}

.empty-state .mdi {
    font-size: 34px;
    color: var(--text-dimmer);
    display: block;
    margin-bottom: 8px;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
    }

    .mainnav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 10px 14px 16px;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(15, 20, 25, .12);
    }

    .mainnav.open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-item {
        flex-wrap: wrap;
        border-bottom: 1px solid var(--border);
    }

    .nav-link {
        flex: 1;
        padding: 12px 8px;
        font-size: 13px;
        border-radius: 8px;
    }

    .nav-item.has-menu .nav-link {
        border-radius: 8px;
    }

    .nav-caret {
        padding: 12px 10px;
        font-size: 20px;
    }

    .nav-menu {
        position: static;
        width: 100%;
        min-width: 0;
        border: 0;
        box-shadow: none;
        padding: 0 0 8px 14px;
        max-height: none;
        border-radius: 0;
    }

    .nav-menu a {
        padding: 9px 10px;
        font-size: 12px;
        white-space: normal;
    }

    .nav-actions {
        margin-top: 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-user {
        width: 100%;
        border-bottom: 0;
    }

    .nav-cta,
    .nav-login,
    .nav-signup {
        padding: 10px 16px;
        font-size: 13px;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    .auth-card {
        padding: 22px 18px;
    }
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border2);
    background: var(--surface);
    color: var(--accent);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 20, 25, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s, transform .2s, visibility .2s, background .15s, color .15s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.back-to-top:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
    }
}

.dl-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin: 18px 0 4px;
}

.dl-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color .15s, transform .15s;
}

.dl-stat:hover {
    border-color: rgba(29, 155, 240, .35);
    transform: translateY(-1px);
}

.dl-stat-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    background: rgba(29, 155, 240, .1);
}

.dl-stat-icon.green {
    color: var(--accent2);
    background: rgba(0, 186, 124, .1);
}

.dl-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dl-stat-value {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.5px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.dl-stat-label {
    font-size: 11px;
    color: var(--text-dim);
}

.dl-stat-refresh {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dimmer);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s, background .15s, transform .3s;
}

.dl-stat-refresh:hover {
    color: var(--accent);
    background: var(--surface3);
    transform: rotate(180deg);
}

@media (max-width: 600px) {
    .dl-stat {
        padding: 14px;
    }

    .dl-stat-value {
        font-size: 19px;
    }
}

.dl-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.dl-card-title h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.5px;
    margin: 0 0 4px;
}

.dl-card-title p {
    font-size: 11.5px;
    color: var(--text-dim);
    margin: 0;
}

.dl-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .5px;
}

.dl-badge.version {
    background: rgba(29, 155, 240, .1);
    border: 1px solid rgba(29, 155, 240, .25);
    color: var(--accent);
    font-family: var(--font-mono);
}

.dl-badge.stable {
    background: rgba(0, 186, 124, .1);
    border: 1px solid rgba(0, 186, 124, .25);
    color: #00875a;
}

.dl-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 9px 20px;
    margin: 0 0 18px;
    padding: 0;
}

.dl-points li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text);
}

.dl-points .mdi {
    color: var(--accent2);
    font-size: 16px;
    line-height: 1.35;
    flex-shrink: 0;
}

.dl-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    margin: 0 0 20px;
    padding: 0;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.dl-specs > div {
    background: var(--surface);
    padding: 12px 14px;
}

.dl-specs dt {
    font-size: 9.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dimmer);
    margin-bottom: 3px;
}

.dl-specs dd {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 600px) {
    .dl-card-title h3 {
        font-size: 17px;
    }

    .dl-specs > div {
        padding: 10px 12px;
    }
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.auth-logo img {
    width: 64px;
    height: 64px;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(29, 155, 240, .22));
}

.auth-card h1,
.auth-card .auth-sub {
    text-align: center;
}

@media (max-width: 600px) {
    .auth-logo img {
        width: 54px;
        height: 54px;
    }
}

.fb-wrap {
    display: grid;
    grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.fb-score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 22px;
    text-align: center;
}

.fb-score-value {
    font-family: 'Unbounded', sans-serif;
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--text);
}

.fb-score-empty {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--text-dim);
    margin-top: 4px;
}

.fb-score-max {
    font-family: var(--font-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-dimmer);
    margin-left: 4px;
}

.fb-score-stars {
    font-size: 20px;
    color: #f5a623;
    margin: 6px 0 2px;
}

.fb-score-count {
    font-size: 11px;
    color: var(--text-dimmer);
}

.fb-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.fb-bar {
    display: grid;
    grid-template-columns: 30px 1fr 22px;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    color: var(--text-dimmer);
}

.fb-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-end;
}

.fb-bar-label .mdi {
    color: #f5a623;
    font-size: 11px;
}

.fb-bar-track {
    height: 7px;
    border-radius: 999px;
    background: var(--surface3);
    overflow: hidden;
}

.fb-bar-fill {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffc65c, #f5a623);
    transition: width .4s ease;
}

.fb-bar-count {
    text-align: right;
}

.fb-form-zone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 26px;
    min-width: 0;
}

.fb-form-zone .btn {
    align-self: flex-start;
}

.fb-intro {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0 0 14px;
}

.fb-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface2);
    align-self: flex-start;
}

.fb-legend {
    display: flex;
    justify-content: space-between;
    width: 218px;
    margin: 5px 0 16px;
    font-size: 10px;
    color: var(--text-dimmer);
}

.fb-stars input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.fb-stars label {
    font-size: 32px;
    line-height: 1;
    color: var(--border2);
    cursor: pointer;
    transition: color .12s, transform .12s;
}

.fb-stars label:hover,
.fb-stars label:hover ~ label,
.fb-stars input:checked ~ label {
    color: #f5a623;
}

.fb-stars label:hover {
    transform: scale(1.12);
}

.fb-stars input:focus-visible + label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.fb-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-dimmer);
    font-size: 10px;
}

.fb-gate {
    text-align: center;
    padding: 10px 0;
}

.fb-gate-icon {
    font-size: 36px;
    color: #f5a623;
}

.fb-gate p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 460px;
    margin: 8px auto 16px;
}

.fb-gate .download-gate-actions {
    justify-content: center;
}

.fb-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 22px 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.fb-list-head .mdi {
    color: var(--accent);
    margin-right: 4px;
}

.fb-list-count {
    font-weight: 400;
    font-size: 10.5px;
    color: var(--text-dimmer);
}

.fb-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    max-height: 340px;
    overflow-y: auto;
    padding: 2px 8px 2px 2px;
    align-content: start;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
    overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
}

.fb-list::-webkit-scrollbar {
    width: 8px;
}

.fb-list::-webkit-scrollbar-track {
    background: transparent;
}

.fb-list::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 999px;
}

.fb-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-dimmer);
}

.fb-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.fb-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--text-dimmer);
}

.fb-item-author {
    font-weight: 600;
    color: var(--text);
}

.fb-item-stars {
    color: #f5a623;
    font-size: 13px;
}

.fb-item-date {
    margin-left: auto;
}

.fb-item-text {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

@media (max-width: 820px) {
    .fb-wrap {
        grid-template-columns: 1fr;
    }
}

.fb-admin-stars {
    color: #f5a623;
    font-size: 13px;
    white-space: nowrap;
}

.badge-version {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1px 7px;
}

.badge-version.old {
    background: rgba(244, 33, 46, .12);
    border: 1px solid rgba(244, 33, 46, .25);
    color: var(--err);
}

.badge-version.now {
    background: rgba(0, 186, 124, .12);
    border: 1px solid rgba(0, 186, 124, .25);
    color: #00875a;
}

.fli-date {
    font-size: 10.5px;
    color: var(--text-dimmer);
    margin-bottom: 10px;
}

.fli-date .mdi {
    color: var(--accent);
}

.version-content p {
    font-size: 11.5px;
    line-height: 1.75;
    color: var(--text-dim);
    margin: 0 0 4px;
}

.version-content strong {
    color: var(--text);
}

.version-content ul {
    margin: 4px 0 10px;
    padding-left: 20px;
}

.version-content li {
    font-size: 11.5px;
    line-height: 1.75;
    color: var(--text-dim);
    margin-bottom: 3px;
}

.version-content pre.code-block {
    margin: 10px 0 14px;
}

.cbk-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 14px;
}

.cbk-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    color: rgb(var(--c));
    background: rgba(var(--c), .1);
    border: 1px solid rgba(var(--c), .3);
}

.cbk-chip .mdi {
    font-size: 13px;
}

.cbk-caption {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-dimmer);
    margin: 0 0 4px;
}

.cbk-caption .mdi {
    color: var(--accent);
    font-size: 14px;
}