:root {
    color-scheme: dark;
    --page: #0c1015;
    --surface: #171d24;
    --surface-raised: #1d252e;
    --line: #303a45;
    --text: #f2f5f8;
    --muted: #aab4c0;
    --blue: #68b4ff;
    --blue-dark: #132b5b;
    --green: #83d6a3;
    --amber: #f2ce86;
    --radius: 1.2rem;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--page);
    color: var(--text);
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 20rem; background: radial-gradient(ellipse at top left, #111a24 0, var(--page) 40rem); line-height: 1.6; }
a { color: var(--blue); }
a:hover { color: #b4ddff; }
code { padding: .1rem .35rem; border: 1px solid var(--line); border-radius: .35rem; background: #10151b; color: #d6eaff; overflow-wrap: anywhere; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .55rem; font-size: clamp(2.8rem, 7vw, 5.3rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { margin-bottom: .4rem; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.2; }
h3 { margin-bottom: .45rem; font-size: 1.07rem; }
p:last-child { margin-bottom: 0; }

.skip-link { position: absolute; z-index: 10; top: -5rem; left: 1rem; padding: .7rem 1rem; border-radius: .5rem; background: var(--blue); color: #07111b; }
.skip-link:focus { top: 1rem; }
.help-header { border-bottom: 1px solid var(--line); background: #0d1116; }
.help-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1280px; margin: auto; padding: 2.2rem clamp(1.2rem, 5vw, 4rem) 2.6rem; }
.help-header-inner > div { max-width: 46rem; }
.eyebrow, .section-number { margin-bottom: .65rem; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lead { max-width: 42rem; margin: 0; color: var(--muted); font-size: clamp(1.1rem, 2.4vw, 1.35rem); }
.primary-link { flex: 0 0 auto; padding: .75rem 1.05rem; border-radius: .7rem; background: #2989e8; color: white; text-decoration: none; font-weight: 650; }
.primary-link:hover { background: #49a3ff; color: white; }
.back-link { display: inline-block; margin: 0 0 .8rem; color: var(--blue); font-weight: 650; text-decoration: none; }
.back-link:hover { color: #b4ddff; text-decoration: underline; }

.help-navigation { position: sticky; z-index: 5; top: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; padding: .75rem clamp(.7rem, 3vw, 2rem); border-bottom: 1px solid var(--line); background: rgb(13 17 22 / 94%); backdrop-filter: blur(12px); }
.help-navigation a { padding: .35rem .72rem; border: 1px solid #303944; border-radius: 99px; background: #171d24; color: #d6dee7; font-size: .84rem; text-decoration: none; white-space: nowrap; }
.help-navigation a:hover, .help-navigation a:focus-visible { border-color: var(--blue); color: white; }
.help-content { display: grid; gap: 1.35rem; max-width: 1280px; margin: auto; padding: 2.8rem clamp(.9rem, 4vw, 3rem) 3rem; }
.help-card, .welcome-card { scroll-margin-top: 6.8rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #303942; border-radius: var(--radius); background: linear-gradient(145deg, #1a2027, #151a20); box-shadow: 0 12px 35px rgb(0 0 0 / 16%); }
.welcome-card { display: grid; grid-template-columns: 1.25fr .8fr; align-items: center; gap: 2.2rem; padding: clamp(1.5rem, 4vw, 2.8rem); }
.welcome-card p { max-width: 48rem; }
.welcome-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 13rem; border: 1px solid #35485a; border-radius: 1rem; background: linear-gradient(150deg, #132333, #101821); color: #7fc4ff; }
.welcome-art span { display: grid; place-items: center; width: 7.2rem; height: 5.8rem; margin: -.5rem; border: .35rem solid #e7f3ff; border-radius: .5rem; background: linear-gradient(165deg, #4d91bd 0 46%, #315e3e 47% 100%); color: transparent; font-size: 3rem; box-shadow: 0 .8rem 1.2rem rgb(0 0 0 / 30%); transform: rotate(-7deg); }
.welcome-art span:nth-child(2) { transform: translateY(-.6rem) rotate(7deg); }
.welcome-art span:nth-child(3) { transform: translateY(.5rem) rotate(1deg); }
.welcome-art b { position: absolute; right: 1rem; bottom: .65rem; color: var(--blue); }
.section-number { display: inline-block; min-width: 2.8rem; margin: 0 0 .8rem; padding: .3rem .5rem; border: 1px solid #4e8ec1; border-radius: .55rem; text-align: center; letter-spacing: .04em; }
.section-lead { margin: .25rem 0 1.2rem; color: var(--muted); }
.help-grid { display: grid; gap: .85rem; }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.help-panel { min-width: 0; padding: 1rem 1.1rem; border: 1px solid #303a45; border-radius: .85rem; background: #141a20; }
.help-panel p { color: #d3dbe4; }
.step-list, .compact-list { display: grid; gap: .55rem; padding-left: 1.4rem; }
.step-list { margin: 1rem 0; }
.compact-list { margin-bottom: 0; }
.help-callout { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: .65rem; }
.help-callout-warning { border: 1px solid #675638; background: #2a2418; color: #f4e3bc; }
.help-callout-success { border: 1px solid #315f48; background: #15251d; color: #d5f0df; }
.ui-demo { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 1rem 0; padding: .85rem; border: 1px solid #35414c; border-radius: .85rem; background: #10161c; color: #dce5ef; }
.demo-gallery { display: grid; grid-template-columns: repeat(2, minmax(10rem, 13rem)); }
.demo-card { position: relative; display: grid; min-height: 12rem; padding: .6rem; align-content: end; gap: .2rem; overflow: hidden; border: 1px solid #4f91c7; border-radius: .8rem; background: linear-gradient(160deg, #577f9e 0 48%, #27533c 49% 100%); box-shadow: inset 0 -5rem 3rem rgb(0 0 0 / 50%); }
.demo-photo { position: absolute; top: .7rem; left: .8rem; color: #f1d783; font-size: 4rem; }
.demo-video { color: white; }
.demo-icons { position: absolute; top: .5rem; right: .4rem; padding: .16rem .35rem; border-radius: .4rem; background: rgb(8 15 22 / 75%); color: white; }
.demo-card b, .demo-card small { position: relative; }
.selection-demo span { padding: .3rem .5rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--surface-raised); }
.publication-message { padding: .55rem .75rem; border-radius: .5rem; background: #132b5b; color: #e8f1ff; }
.publication-demo > span:not(.publication-message) { color: var(--muted); }
.viewer-demo { display: block; }
.viewer-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.viewer-picture { display: grid; min-height: 9rem; margin: .7rem 0; place-items: center; border-radius: .55rem; background: linear-gradient(150deg, #466c82, #1f382a); color: #e6edf4; }
.viewer-comment { display: flex; justify-content: space-between; gap: 1rem; }
.viewer-comment small { color: var(--muted); }
.demo-chat { display: grid; max-width: 36rem; }
.chat-author { color: var(--blue); font-weight: 700; }
.chat-bubble { justify-self: start; margin: 0; padding: .55rem .8rem; border-radius: .8rem; background: #223240; }
.chat-reactions, .chat-input { padding: .55rem .7rem; border: 1px solid #303a45; border-radius: .6rem; color: var(--muted); }
.troubleshooting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.security-card { border-color: #354956; }
.safety-list { display: grid; gap: .55rem; padding-left: 1.35rem; }
.help-footer { display: flex; justify-content: space-between; gap: 1rem; max-width: 1280px; margin: auto; padding: 1.2rem clamp(1rem, 4vw, 3rem) 2.5rem; color: var(--muted); }
.help-footer a { text-decoration: none; }
:focus-visible { outline: 3px solid #77bdff; outline-offset: 3px; }

@media (max-width: 48rem) {
    .help-header-inner { align-items: flex-start; flex-direction: column; }
    .primary-link { align-self: flex-start; }
    .welcome-card { grid-template-columns: 1fr; }
    .three-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .two-columns, .troubleshooting-grid { grid-template-columns: 1fr; }
    .help-navigation { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}

@media (max-width: 32rem) {
    .three-columns, .demo-gallery { grid-template-columns: 1fr; }
    .welcome-art { min-height: 10rem; }
    .help-content { padding-top: 1.1rem; }
    .viewer-comment { flex-direction: column; gap: .2rem; }
    .help-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
    :root { color-scheme: light; background: white; color: #111; }
    body { background: white; color: #111; }
    .help-header, .help-card, .welcome-card, .help-panel { background: white; color: #111; box-shadow: none; }
    .help-navigation, .primary-link, .skip-link { display: none; }
    .help-card, .welcome-card { break-inside: avoid; border-color: #bbb; }
    a { color: #111; text-decoration: underline; }
}
