:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f9fbfd;
    --field: #ffffff;
    --topbar: rgba(255, 255, 255, 0.94);
    --ink: #132033;
    --ink-heading: #0d1728;
    --article-text: #2c3849;
    --muted: #667085;
    --line: #d9e2ec;
    --brand: #0f4ca8;
    --brand-2: #007c89;
    --danger: #b4233a;
    --success: #157347;
    --active-bg: #eaf1fb;
    --notice-bg: #eef3f8;
    --danger-bg: #fff0f3;
    --success-bg: #edf8f1;
    --shadow: 0 18px 46px rgba(19, 32, 51, 0.08);
}

html[data-theme="dark"] {
    --bg: #070b12;
    --surface: #111827;
    --surface-soft: #0b1220;
    --field: #0f172a;
    --topbar: rgba(15, 23, 42, 0.94);
    --ink: #f6f8fb;
    --ink-heading: #ffffff;
    --article-text: #d8e2ef;
    --muted: #9aa8bb;
    --line: rgba(148, 163, 184, 0.22);
    --brand: #67b7ff;
    --brand-2: #20c997;
    --danger: #ff6b6b;
    --success: #20c997;
    --active-bg: rgba(103, 183, 255, 0.13);
    --notice-bg: rgba(148, 163, 184, 0.12);
    --danger-bg: rgba(255, 107, 107, 0.12);
    --success-bg: rgba(32, 201, 151, 0.12);
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

body.help-body {
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
}

body.help-body .main.help-main {
    min-height: 100vh;
    margin-left: var(--sidebar-collapsed, 74px);
    padding: 0;
    transition: margin-left 0.18s ease;
}

body.help-body .sidebar:hover ~ .main.help-main {
    margin-left: var(--sidebar-expanded, 260px);
}

@media (max-width: 900px) {
    body.help-body .main.help-main,
    body.help-body .sidebar:hover ~ .main.help-main {
        margin-left: 0;
    }
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.help-brand,
.help-nav a,
.category-card,
.article-row,
.primary-link,
.quiet-link,
.admin-button-main,
.admin-button-secondary,
.form-actions a,
.row-actions a,
.help-footer a,
.admin-topbar-new a {
    text-decoration: none;
}

.help-brand:hover,
.help-nav a:hover,
.category-card:hover,
.article-row:hover,
.primary-link:hover,
.quiet-link:hover,
.admin-button-main:hover,
.admin-button-secondary:hover,
.form-actions a:hover,
.row-actions a:hover,
.help-footer a:hover,
.admin-topbar-new a:hover {
    text-decoration: none;
}

input,
select,
textarea,
button {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.help-topbar,
.admin-topbar-new {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 66px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--topbar);
    backdrop-filter: blur(14px);
}

.help-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
}

.help-brand:hover {
    text-decoration: none;
}

.help-brand span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 0.8rem;
}

.top-search {
    flex: 1 1 380px;
    max-width: 560px;
}

.top-search input,
.hero-search input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.panel-title input,
.comment-form input,
.comment-form textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--field);
    color: var(--ink);
    padding: 9px 12px;
    outline: none;
}

.top-search input:focus,
.hero-search input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.panel-title input:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(15, 76, 168, 0.12);
}

.help-nav,
.admin-topbar-new nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-link {
    color: var(--muted);
}

.help-shell,
.admin-shell-new {
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px 22px 76px;
}

.help-shell.narrow,
.admin-shell-new.narrow {
    max-width: 820px;
}

.hero {
    text-align: center;
    padding: 38px 0 42px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand-2);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.page-intro h1,
.article-header h1,
.admin-hero h1,
.admin-panel h1 {
    margin: 0;
    color: var(--ink-heading);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
}

.hero p,
.page-intro p,
.article-header p,
.admin-hero p,
.muted {
    color: var(--muted);
}

.hero > p {
    max-width: 680px;
    margin: 16px auto 0;
    font-size: 1.12rem;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 760px;
    margin: 28px auto 0;
}

.hero-search input {
    min-height: 58px;
    padding-inline: 18px;
    font-size: 1.04rem;
    box-shadow: 0 12px 30px rgba(19, 32, 51, 0.08);
}

.hero-search button,
.comment-form button,
.admin-form button,
.admin-button-main,
.feedback-card button {
    min-height: 42px;
    border: 1px solid var(--brand);
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 800;
}

.hero-search.compact {
    margin: 18px 0 0;
}

.help-section {
    margin-top: 38px;
}

.section-heading,
.panel-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 16px;
}

.section-heading h2,
.panel-title h2,
.comments h2,
.image-annotator h2,
.existing-images h2 {
    margin: 0;
    font-size: 1.42rem;
    line-height: 1.2;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.category-card,
.article-row,
.admin-panel,
.feedback-card,
.comment,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 2px 0 rgba(19, 32, 51, 0.02);
}

.category-card {
    display: grid;
    gap: 8px;
    min-height: 136px;
    padding: 18px;
    color: var(--ink);
}

.category-card:hover,
.article-row:hover {
    border-color: #9eb7df;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.category-card strong {
    font-size: 1.08rem;
}

.category-card span,
.article-row small {
    color: var(--muted);
}

.article-list {
    display: grid;
    gap: 10px;
}

.article-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    color: var(--ink);
}

.article-row strong,
.article-row small {
    display: block;
}

.article-row em {
    color: var(--brand-2);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.breadcrumb a::after {
    content: "/";
    margin-left: 8px;
    color: #aab6c4;
}

.page-intro,
.article-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.page-intro h1,
.article-header h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) 260px;
    gap: 36px;
    align-items: start;
}

.article-page {
    min-width: 0;
}

.article-content {
    font-size: 1.02rem;
}

.article-content h2,
.article-content h3 {
    margin: 30px 0 10px;
    line-height: 1.2;
}

.article-content p,
.article-content li {
    color: var(--article-text);
}

.article-content img {
    max-width: 100%;
}

.article-side {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border-left: 1px solid var(--line);
}

.article-side strong {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.article-side a {
    padding: 7px 8px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.article-side a.active,
.article-side a:hover {
    background: var(--active-bg);
    color: var(--brand);
    text-decoration: none;
}

.annotated-block {
    margin: 28px 0;
}

.annotated-image,
.annotation-preview {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--field);
    box-shadow: 0 12px 30px rgba(19, 32, 51, 0.08);
}

.annotated-image img,
.annotation-preview img {
    display: block;
    max-width: 100%;
    height: auto;
}

.annotation-preview {
    display: none;
    margin-top: 10px;
}

.annotation-preview.is-visible {
    display: inline-block;
}

.pin,
.annotation-pin {
    position: absolute;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(19, 32, 51, 0.2);
}

.caption {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.instruction-list {
    margin-top: 12px;
    padding-left: 24px;
}

.feedback-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 34px;
    padding: 16px;
}

.feedback-card div {
    display: flex;
    gap: 8px;
}

.feedback-card button {
    min-height: 38px;
    background: var(--field);
    color: var(--brand);
}

.article-admin-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin: 22px 0 28px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.article-admin-card > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.article-admin-card > div:first-child {
    display: grid;
    gap: 2px;
}

.article-admin-card b {
    color: var(--ink-heading);
}

.article-admin-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.article-admin-card form {
    margin: 0;
}

.comments {
    margin-top: 34px;
}

.comment-form,
.admin-form {
    display: grid;
    gap: 14px;
}

.comment-form {
    margin: 14px 0 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.comment-user {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.comment-user strong {
    color: var(--ink);
}

.comment-login {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 14px 0 22px;
}

.comment-form label,
.admin-form label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-weight: 800;
}

.admin-form .check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
}

.admin-form .check-row input {
    width: auto;
    min-height: auto;
}

.comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

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

.comment {
    padding: 14px;
}

.comment span {
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.notice {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--notice-bg);
    font-weight: 700;
}

.notice.success {
    border-color: #a7d8bd;
    background: var(--success-bg);
    color: var(--success);
}

.notice.error {
    border-color: #e6a6b2;
    background: var(--danger-bg);
    color: var(--danger);
}

.empty-state {
    padding: 18px;
    color: var(--muted);
}

.wiki-empty-state,
.admin-empty-card {
    display: grid;
    gap: 12px;
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.wiki-empty-state h2,
.admin-empty-card h2 {
    margin: 0;
    color: var(--ink-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
}

.wiki-empty-state p,
.admin-empty-card p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.wiki-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.primary-link,
.quiet-link,
.admin-button-secondary,
.form-actions a,
.row-actions a,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--field);
    color: var(--brand);
    font-weight: 800;
}

.help-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 26px 22px 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.admin-body {
    background: var(--bg);
}

.admin-login {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 22px;
}

.login-panel {
    max-width: 560px;
}

.admin-panel {
    padding: 22px;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}

.admin-hero h1,
.admin-panel h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.admin-hero p {
    max-width: 680px;
}

.admin-hero-actions,
.form-actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-delete-form {
    margin: 0;
}

.danger-button,
.admin-form button.danger-button,
.inline-delete-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(180, 35, 58, 0.32);
    border-radius: 8px;
    background: var(--danger-bg);
    color: var(--danger);
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 2px 0 rgba(180, 35, 58, 0.06);
}

.danger-button:hover,
.inline-delete-form button:hover {
    border-color: var(--danger);
    text-decoration: none;
}

.swal2-popup {
    border-radius: 12px;
}

.swal-lite-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 11, 18, 0.52);
}

.swal-lite-popup {
    width: min(420px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    text-align: center;
    box-shadow: var(--shadow);
}

.swal-lite-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border: 3px solid var(--danger);
    border-radius: 50%;
    color: var(--danger);
    font-size: 1.7rem;
    font-weight: 800;
}

.swal-lite-popup h2 {
    margin: 0;
    color: var(--ink-heading);
    font-size: 1.45rem;
}

.swal-lite-popup p {
    margin: 10px 0 0;
    color: var(--muted);
}

.swal-lite-input {
    width: 100%;
    min-height: 44px;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--field);
    color: var(--ink);
    padding: 10px 12px;
    outline: none;
}

.swal-lite-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(15, 76, 168, 0.12);
}

.swal-lite-validation {
    display: none;
    margin-top: 8px;
    color: var(--danger);
    font-weight: 800;
    font-size: 0.88rem;
}

.swal-lite-validation.is-visible {
    display: block;
}

.swal-lite-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.swal-lite-actions button {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.swal-lite-cancel {
    border: 1px solid var(--line);
    background: var(--field);
    color: var(--ink);
}

.swal-lite-confirm {
    border: 1px solid var(--danger);
    background: var(--danger);
    color: #fff;
}

html[data-theme="dark"] .swal2-popup {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
}

html[data-theme="dark"] .swal2-title,
html[data-theme="dark"] .swal2-html-container {
    color: var(--ink);
}

.admin-grid-new {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
}

.admin-list {
    display: grid;
    gap: 9px;
}

.admin-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.admin-list-row strong,
.admin-list-row small {
    display: block;
}

.admin-list-row small {
    color: var(--muted);
}

.panel-title input {
    max-width: 260px;
}

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

.admin-form textarea {
    min-height: 140px;
    resize: vertical;
}

.admin-form .code-textarea {
    min-height: 360px;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 0.92rem;
}

.image-annotator,
.existing-images {
    display: grid;
    gap: 12px;
    margin-top: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.annotation-items {
    display: grid;
    gap: 8px;
}

.annotation-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.annotation-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-weight: 800;
}

.image-delete {
    grid-template-columns: 86px minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.image-delete img {
    width: 86px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

@media (max-width: 980px) {
    .help-nav {
        display: none;
    }

    .article-layout,
    .admin-grid-new {
        grid-template-columns: 1fr;
    }

    .article-side {
        position: static;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .help-topbar,
    .admin-topbar-new {
        padding: 10px 14px;
    }

    .top-search {
        display: none;
    }

    .help-shell,
    .admin-shell-new {
        padding: 30px 14px 58px;
    }

    .hero {
        text-align: left;
    }

    .hero-search,
    .article-row,
    .admin-list-row,
    .feedback-card,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .panel-title,
    .admin-hero {
        display: block;
    }

    .panel-title input,
    .admin-hero-actions {
        margin-top: 12px;
    }

    .article-row em {
        justify-self: start;
    }

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

/* 2026 knowledge-centre redesign */
.help-body{--ink:#10233f;--muted:#607086;--navy:#0c2e5a;--blue:#1769e0;--sky:#eaf3ff;--paper:#fff;--soft:#f4f7fb;--border:#dce4ef;margin:0;background:var(--soft);color:var(--ink);font-family:Inter,system-ui,sans-serif}.guide-topbar{height:72px;padding:0 4vw;display:flex;align-items:center;gap:32px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}.guide-logo{display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none;white-space:nowrap}.guide-logo span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:var(--navy);color:#fff;font-weight:800}.guide-logo b{font-size:18px}.guide-logo em{font-style:normal;color:var(--muted);border-left:1px solid var(--border);padding-left:10px}.guide-search{display:flex;max-width:620px;flex:1;margin:auto}.guide-search input{width:100%;border:1px solid var(--border);border-radius:10px 0 0 10px;padding:11px 14px;background:#f8fafc}.guide-search button,.hero-guide-search button{border:0;background:var(--blue);color:#fff;font-weight:700;padding:0 18px;border-radius:0 10px 10px 0}.language-switcher{position:relative}.language-switcher>button{border:1px solid var(--border);background:#fff;border-radius:9px;padding:10px 13px}.language-switcher>div{display:none;position:absolute;right:0;top:44px;background:#fff;padding:7px;border:1px solid var(--border);box-shadow:0 14px 35px #0d294229;border-radius:10px;min-width:140px}.language-switcher:hover>div,.language-switcher:focus-within>div{display:grid}.language-switcher a{padding:9px 10px;text-decoration:none;color:var(--ink);border-radius:7px}.language-switcher a:hover,.language-switcher a.active{background:var(--sky);color:var(--blue)}.guide-shell{max-width:1240px;margin:auto;padding:54px 28px 90px}.guide-shell.narrow{max-width:980px}.guide-hero{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:60px;align-items:center;background:linear-gradient(125deg,#071f3e,#0e3970);color:#fff;border-radius:26px;padding:64px;box-shadow:0 24px 70px #0824422b}.guide-kicker,.guide-section header span,.category-hero>div>p,.search-hero>p{font-size:12px;font-weight:800;letter-spacing:.14em;color:#69a8ff}.guide-hero h1{font-size:clamp(40px,5vw,68px);line-height:1.03;letter-spacing:-.045em;margin:15px 0}.guide-hero h1 span{color:#73b0ff}.guide-hero>div>p:not(.guide-kicker){max-width:720px;color:#c9d9ec;font-size:18px;line-height:1.7}.hero-guide-search{display:flex;max-width:630px;margin-top:28px}.hero-guide-search input{flex:1;border:0;padding:17px;border-radius:12px 0 0 12px;font-size:15px}.hero-meta{display:flex;gap:20px;flex-wrap:wrap;margin-top:20px;color:#a9c5e5;font-size:12px}.guide-hero aside{background:#fff;color:var(--ink);padding:28px;border-radius:18px}.guide-hero aside span{font-size:10px;font-weight:800;color:var(--blue);letter-spacing:.12em}.guide-hero aside b{display:block;font-size:24px;margin:12px 0}.guide-hero aside p{color:var(--muted);line-height:1.6}.guide-hero aside a,.path-card b{color:var(--blue);font-weight:800;text-decoration:none}.path-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:28px}.path-card{padding:34px;border-radius:20px;color:var(--ink);text-decoration:none;border:1px solid var(--border);background:#fff;transition:.2s}.path-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px #17385d16}.path-card.cargo{background:#092a2d;color:#fff;border-color:#164d4b}.path-card>span{font-size:11px;font-weight:800;letter-spacing:.12em;color:#4c8ee8}.path-card h2{font-size:28px;margin:12px 0}.path-card p{color:var(--muted);line-height:1.6}.path-card.cargo p{color:#b9d3d1}.path-card.cargo b{color:#4bd6b7}.guide-section{margin-top:64px}.guide-section header{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px}.guide-section header h2{font-size:32px;letter-spacing:-.03em;margin:6px 0}.guide-section header p{color:var(--muted)}.topic-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.topic-grid>a,.guide-row{display:grid;align-items:center;background:#fff;border:1px solid var(--border);border-radius:14px;text-decoration:none;color:var(--ink)}.topic-grid>a{grid-template-columns:52px 1fr 30px;padding:20px}.topic-grid i,.guide-row-icon{width:40px;height:40px;border-radius:10px;background:var(--sky);color:var(--blue);display:grid;place-items:center;font-style:normal;font-size:20px}.topic-grid small,.guide-row small{display:block;color:var(--muted);margin-top:5px;line-height:1.45}.guide-list{display:grid;gap:10px}.guide-row{grid-template-columns:54px 1fr auto;padding:18px 20px}.guide-row:hover,.topic-grid>a:hover{border-color:#91b8ec}.guide-row em{font-size:12px;color:var(--muted);font-style:normal}.crumb{display:flex;gap:10px;align-items:center;margin-bottom:28px;font-size:13px;color:var(--muted)}.crumb a{color:var(--blue);text-decoration:none}.category-hero{display:flex;gap:28px;align-items:center;background:var(--navy);color:#fff;border-radius:22px;padding:42px;margin-bottom:28px}.category-hero>span{font-size:44px}.category-hero h1,.search-hero h1{font-size:40px;margin:5px 0}.category-hero>div>p:last-child{color:#c5d7eb}.search-hero{padding:25px 0 35px}.search-hero span{color:var(--muted)}.article-shell{max-width:1180px;margin:auto;padding:42px 28px 90px;display:grid;grid-template-columns:minmax(0,800px) 260px;gap:70px}.modern-article>header{padding:30px 0 38px;border-bottom:1px solid var(--border)}.article-badge{font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--blue)}.modern-article h1{font-size:clamp(38px,5vw,58px);line-height:1.07;letter-spacing:-.045em;margin:16px 0}.modern-article>header>p{font-size:19px;color:var(--muted);line-height:1.65}.modern-article>header>div{display:flex;gap:20px;font-size:12px;color:var(--muted)}.article-body{font-size:16px;line-height:1.75;color:#2b3c52}.article-body h2{font-size:29px;color:var(--ink);letter-spacing:-.025em;margin:52px 0 15px;scroll-margin-top:100px}.article-body p{margin:0 0 18px}.article-callout{background:#eaf3ff;border-left:4px solid var(--blue);padding:22px 24px;border-radius:0 12px 12px 0;margin:26px 0}.article-callout.cargo{background:#e8f8f4;border-color:#159b7d}.article-callout.warning{background:#fff7df;border-color:#efaa17}.article-callout b{font-size:15px;color:var(--ink)}.article-callout p{margin:5px 0 0}.numbered-steps{list-style:none;padding:0;counter-reset:steps}.numbered-steps li{counter-increment:steps;display:grid;grid-template-columns:44px 1fr;column-gap:14px;margin:22px 0}.numbered-steps li:before{content:counter(steps);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:800;grid-row:1/3}.numbered-steps b{color:var(--ink)}.numbered-steps span{grid-column:2;color:var(--muted);margin-top:3px}.check-list{list-style:none;padding:0}.check-list li{padding:10px 0 10px 30px;position:relative}.check-list li:before{content:'✓';position:absolute;left:0;color:#159b7d;font-weight:900}.inline-shot,.pro-shot{margin:32px 0}.inline-shot img,.pro-shot img{display:block;width:100%;border-radius:14px;border:1px solid var(--border);box-shadow:0 15px 45px #173b5c1f}.inline-shot figcaption,.pro-shot figcaption{font-size:12px;color:var(--muted);padding:12px}.trouble-list dt{font-weight:800;color:var(--ink);margin-top:18px}.trouble-list dd{margin:5px 0;color:var(--muted)}.article-toc{position:sticky;top:105px;height:max-content;border-left:1px solid var(--border);padding-left:24px;display:grid;gap:12px;font-size:12px}.article-toc>span,.article-toc>b{font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--ink)}.article-toc a{color:var(--muted);text-decoration:none;line-height:1.4}.article-toc a:hover{color:var(--blue)}.feedback-card{margin-top:55px}.guide-footer{padding:35px 5vw;border-top:1px solid var(--border);background:#fff;display:flex;gap:18px;color:var(--muted);font-size:13px}.guide-footer b{color:var(--ink)}.guide-footer a{margin-left:auto;color:var(--blue)}
@media(max-width:900px){.guide-search{display:none}.guide-hero,.article-shell{grid-template-columns:1fr}.guide-hero{padding:40px}.article-toc{display:none}.path-grid,.topic-grid{grid-template-columns:1fr}}
@media(max-width:600px){.guide-topbar{padding:0 16px}.guide-logo em{display:none}.guide-shell,.article-shell{padding:28px 16px 60px}.guide-hero{padding:28px}.guide-hero aside{display:none}.guide-hero h1{font-size:40px}.hero-guide-search{display:block}.hero-guide-search input,.hero-guide-search button{width:100%;box-sizing:border-box;border-radius:10px;padding:14px}.hero-guide-search button{margin-top:8px}.guide-row{grid-template-columns:45px 1fr}.guide-row em{display:none}.modern-article h1{font-size:38px}.guide-footer span{display:none}}

/* Portal-native theme bridge. Keep this final so the shared portal tokens win. */
body.help-body{--ink:var(--text);--muted:rgba(10,20,40,.62);--navy:var(--accent);--blue:var(--accent2);--sky:rgba(30,94,255,.10);--paper:var(--panel);--soft:var(--bg);--border:rgba(10,20,40,.12);background:var(--bg);color:var(--text)}
.guide-topbar{background:var(--sidebar-bg);border-color:var(--border);box-shadow:var(--sidebar-shadow);backdrop-filter:blur(16px)}
.guide-logo,.guide-logo b,.guide-logo em,.language-switcher>button{color:var(--text)}
.guide-logo span{background:var(--accent)}
.guide-search input,.hero-guide-search input{background:var(--panel);border-color:var(--border);color:var(--text)}
.guide-search input::placeholder,.hero-guide-search input::placeholder{color:var(--muted)}
.language-switcher>button,.language-switcher>div{background:var(--panel);border-color:var(--border)}
.language-switcher a,.guide-row,.topic-grid>a,.path-card{color:var(--text)}
.language-switcher a:hover,.language-switcher a.active{background:rgba(30,94,255,.12)}
.topic-grid>a,.guide-row,.path-card,.guide-footer{background:var(--panel);border-color:var(--border)}
.guide-section header h2,.path-card h2,.search-hero h1,.modern-article h1,.article-body h2,.article-callout b,.numbered-steps b,.trouble-list dt,.article-toc>span,.article-toc>b,.guide-footer b{color:var(--text)}
.modern-article>header,.article-toc,.guide-footer{border-color:var(--border)}
.modern-article>header>p,.modern-article>header>div,.article-body,.article-body p,.numbered-steps span,.trouble-list dd,.article-toc a,.guide-row small,.topic-grid small,.guide-row em,.guide-section header p,.path-card p,.crumb,.guide-footer{color:var(--muted)}
.article-callout{background:rgba(30,94,255,.10);color:var(--text);border-color:var(--accent2)}
.article-callout.cargo{background:rgba(32,201,151,.10);border-color:var(--good)}
.article-callout.warning{background:rgba(255,193,7,.10);border-color:var(--warn)}
.article-callout p{color:var(--text)}
.inline-shot img,.pro-shot img{border-color:var(--border);background:var(--panel);box-shadow:var(--shadow)}
.feedback-card{background:var(--panel);border-color:var(--border);color:var(--text)}
.feedback-card button{background:var(--bg);border-color:var(--border);color:var(--text)}
html[data-theme="dark"] body.help-body{--muted:rgba(255,255,255,.68);--border:rgba(255,255,255,.12)}
html[data-theme="dark"] .guide-hero{background:linear-gradient(135deg,#101722,#14243a);border:1px solid var(--border);box-shadow:var(--shadow)}
html[data-theme="dark"] .guide-hero aside{background:#182231;color:var(--text);border:1px solid var(--border)}
html[data-theme="dark"] .guide-hero aside p{color:var(--muted)}
html[data-theme="dark"] .path-card.cargo{background:#102722;border-color:rgba(32,201,151,.28)}
html[data-theme="dark"] .category-hero{background:#101d30;border:1px solid var(--border)}
html[data-theme="dark"] .topic-grid i,html[data-theme="dark"] .guide-row-icon{background:rgba(103,183,255,.13);color:#67b7ff}
