.belia-help {
    max-inline-size: 70rem;
    margin-inline: auto;
    padding: 20px var(--gutter) 32px;
}
.belia-help > h1 { margin-block-end: 15px; }
.belia-help h2 { margin: 0; font-size: 1.25rem; }
.belia-help__toolbar { margin-block-end: 12px; }
.belia-help__article-title { margin: 0 0 18px; font-size: clamp(1.75rem, 2.6vw, 2.25rem); overflow-wrap: anywhere; }
.belia-help__sections {
    display: grid;
    gap: 22px;
    margin-inline: var(--card-text-inset);
}
.belia-help__section {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    border-block-start: 1px solid var(--line);
}
.belia-help .belia-help__group {
    margin: 0;
    padding-block-start: 8px;
    font-size: 1.375rem;
    overflow-wrap: anywhere;
}
.belia-help__questions {
    margin: 0;
    padding: 0;
    list-style: none;
    border-block-start: 1px solid var(--line);
}
.belia-help__section .belia-help__questions { border-block-start: 0; }
.belia-help__question { border-block-end: 1px solid var(--line); }
.belia-help__questions > li:last-child > .belia-help__question { border-block-end: 0; }
.belia-help__question > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-block: 5px;
    list-style: none;
    cursor: pointer;
}
.belia-help__question > summary::-webkit-details-marker { display: none; }
.belia-help__question > summary:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.belia-help__question-title { min-inline-size: 0; font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.belia-help__toggle { --control: 44px; }
.belia-help__question[open] .belia-help__expand,
.belia-help__question:not([open]) .belia-help__collapse { display: none; }
.belia-help__answer { padding-block: 2px 14px; }
@media (max-width: 699px) {
    .belia-help__section { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .belia-help .belia-help__group { font-size: 1.1875rem; }
}
.belia-help__panel {
    padding: var(--card-padding);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}
.belia-help__panel ul { list-style: none; padding: 0; margin: 8px 0 0; }
.belia-help__panel li + li { border-block-start: 1px solid var(--line); }
.belia-help__panel a { display: flex; align-items: center; min-block-size: 44px; padding-block: 6px; color: var(--action); }
.belia-help__body { max-inline-size: 74ch; line-height: 1.55; overflow-wrap: anywhere; }
.belia-help__body p { margin: 0 0 12px; white-space: pre-line; }
.belia-help__body p:last-child { margin-block-end: 0; }
.belia-help__body a { display: inline-block; min-block-size: auto; padding: 0; }
.belia-help__html {
    max-inline-size: 100%;
    overflow-x: auto;
    font: inherit;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.belia-help__html > :first-child { margin-block-start: 0; }
.belia-help__html > :last-child { margin-block-end: 0; }
.belia-help__content > * + .belia-help__html,
.belia-help__content > .belia-help__html + .belia-help__body { margin-block-start: 16px; }
.belia-help__html table { border-collapse: collapse; margin-block: .75em; }
.belia-help__html :is(th, td) { padding: .5em .7em; border: 1px solid var(--line); text-align: start; }
.belia-help__html th { background: var(--background, #f2f5fa); }
.belia-help__html img { inline-size: 1.3em; block-size: 1.3em; object-fit: contain; vertical-align: -.25em; }
.belia-help__html :is(small,th,td) { font-size: inherit; }
.belia-help__html a { display: inline; min-block-size: 0; padding: 0; }
.belia-help__html pre { white-space: pre-wrap; }
.belia-help__symbol-guide .belia-help__html > h3:has(+ ul > li > span > img) {
    margin-block: 1.75rem .5rem;
    font-size: 1.25rem;
}
.belia-help__symbol-guide .belia-help__html > h3:first-child { margin-block-start: 0; }
.belia-help__symbol-guide .belia-help__html > ul:has(> li > span > img) {
    list-style: none;
    padding: 0;
    margin: 0;
    border-block-start: 1px solid var(--line);
}
.belia-help__symbol-guide .belia-help__html > ul > li:has(> span > img) {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-block-size: 5.25rem;
    padding-block: .875rem;
    border-block-end: 1px solid var(--line);
    border-block-start: 0;
    line-height: 1.5;
}
.belia-help__symbol-guide .belia-help__html li:has(> span > img) > span:first-child {
    display: grid;
    place-items: center;
    inline-size: 3.5rem;
    block-size: 3.5rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f2f5fa;
}
.belia-help__symbol-guide .belia-help__html li > span > img {
    inline-size: 2.375rem;
    block-size: 2.375rem;
    filter: brightness(0);
}
.belia-help__symbol-guide .belia-help__html li:has(> span > img) strong { font-size: 1.0625em; }
.belia-help__figure {
    --marker-start: 0px;
    --marker-end: 0px;
    position: relative;
    inline-size: fit-content;
    max-inline-size: min(100%, calc(48rem + var(--marker-start) + var(--marker-end)));
    padding-inline: var(--marker-start) var(--marker-end);
    margin: 18px auto 0;
}
.belia-help__figure:has(.belia-help__marker[data-placement="outside-left"]) { --marker-start: 32px; }
.belia-help__figure:has(.belia-help__marker[data-placement="outside-right"]) { --marker-end: 32px; }
.belia-help__screenshot {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
    clip-path: var(--help-image-clip, none);
}
.belia-help__markers {
    position: absolute;
    inset: 0;
    inset-inline: var(--marker-start) var(--marker-end);
    container-type: inline-size;
    pointer-events: none;
}
.belia-help__marker {
    --marker-size: clamp(13px, 4.3cqi, 28px);
    --marker-inset: min(calc(var(--marker-size) / 2 + 1px), 50%);
    position: absolute;
    left: clamp(var(--marker-inset), var(--marker-x), calc(100% - var(--marker-inset)));
    top: clamp(var(--marker-inset), var(--marker-y), calc(100% - var(--marker-inset)));
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    inline-size: var(--marker-size);
    block-size: var(--marker-size);
    border: 1px solid white;
    border-radius: 50%;
    background: #1853a0;
    color: white;
    font-size: clamp(.625rem, 2.2cqi, .9375rem);
    font-weight: 700;
    line-height: 1;
}
.belia-help__figure:has(.belia-help__marker[data-placement="above"]) { margin-block-start: 36px; }
.belia-help__figure:has(.belia-help__marker[data-placement="below"]) { margin-block-end: 38px; }
.belia-help__marker[data-placement="above"] {
    top: calc(var(--marker-y) - var(--marker-gap));
    transform: translate(-50%, -100%);
}
.belia-help__marker[data-placement="below"] {
    top: calc(var(--marker-y) + var(--marker-gap));
    transform: translateX(-50%);
}
.belia-help__marker[data-placement="right"] {
    left: calc(var(--marker-x) + var(--marker-gap));
    transform: translateY(-50%);
}
.belia-help__marker:is([data-placement="outside-left"], [data-placement="outside-right"]) {
    --marker-size: clamp(17px, 4.3cqi, 28px);
    transform: translateY(-50%);
}
.belia-help__marker[data-placement="outside-left"] {
    left: auto;
    right: calc(100% + 4px);
}
.belia-help__marker[data-placement="outside-right"] { left: calc(100% + 4px); }
.belia-help__marker:not([data-placement=""])::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: calc(var(--marker-gap) + 1px);
    transform: translateX(-50%);
    background: #1853a0;
}
.belia-help__marker[data-placement="above"]::after { top: 100%; }
.belia-help__marker[data-placement="below"]::after { bottom: 100%; }
.belia-help__marker[data-placement="right"]::after {
    inset: 50% 100% auto auto;
    width: calc(var(--marker-gap) + 1px);
    height: 2px;
    transform: translateY(-50%);
}
.belia-help__marker:is([data-placement="outside-left"], [data-placement="outside-right"])::after {
    inset: 50% auto auto;
    width: calc(var(--marker-reach) + 5px);
    height: 2px;
    transform: translateY(-50%);
}
.belia-help__marker[data-placement="outside-left"]::after { left: 100%; }
.belia-help__marker[data-placement="outside-right"]::after { right: 100%; }

.admin-help-form label { display: grid; gap: 4px; }
.admin-help-form input[type="checkbox"] { min-block-size: auto; }

.belia-help__tree-item > strong { display: block; padding-block: 10px 4px; }
.belia-help__tree-item > ul { margin-block-start: 0; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.belia-help__content .belia-help__subheading { margin-block: 20px 10px; }
.belia-help__content > .belia-help__subheading:first-child,
.belia-help__content > .belia-help__figure:first-child { margin-block-start: 0; }
.belia-help__content > :is(.belia-help__figure, .belia-help__body) + .belia-help__body { margin-block-start: 16px; }

.admin-help-category { color: var(--action); }
.admin-help-tree .admin-record-actions :is(form, details) > .icon-button {
    --control: var(--admin-record-action-size);
}
.admin-help-position { position: relative; }
.admin-help-position > summary { list-style: none; }
.admin-help-position > summary::-webkit-details-marker { display: none; }
.admin-help-position form {
    position: absolute;
    inset: calc(100% + 4px) 0 auto auto;
    z-index: 3;
    display: flex;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 4px 16px #20264320;
}
.admin-help-dialog .admin-help-form { max-inline-size: none; display: grid; gap: 16px; }
.admin-help-dialog .admin-keyword-dialog__heading { margin-block-end: 0; }
.admin-help-editor-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.admin-help-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.admin-help-title > label { grid-column: 1; }
.admin-help-form .admin-help-check { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; }
.admin-help-settings { max-inline-size: none; }
.admin-help-settings label { min-inline-size: 0; grid-template-columns: minmax(0, 1fr); }
.admin-help-settings select { inline-size: 100%; min-inline-size: 0; }
.admin-help-blocks__header { justify-content: space-between; align-items: center; }
.admin-help-blocks__header h3 { margin: 0; }
.admin-help-blocks__insert { gap: 6px; }
[data-help-blocks] { display: grid; gap: 10px; margin-block-start: 12px; }
.admin-help-block {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.admin-help-block__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.admin-help-block__type img { display: block; inline-size: 22px; block-size: 22px; }
.admin-help-html-hint { color: var(--muted); }
.admin-help-form [data-help-save-error] { color: #9f383b; white-space: pre-line; }
.admin-help-block__heading .icon-button { --control: 32px; }
[data-help-draft-translation][hidden] { display: none; }
[data-help-draft-upload][hidden], [data-help-draft-upload] .icon-button[hidden] { display: none; }
.admin-help-image-variant textarea { inline-size: 100%; padding: 6px 8px; font: inherit; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.admin-help-block textarea { min-block-size: 90px; resize: vertical; }
.admin-help-block img.belia-help__screenshot { max-block-size: 250px; margin-block-start: 0; }
.admin-help-block img.belia-help__screenshot[hidden] { display: none; }
.admin-help-image-drop small { display: block; color: var(--muted); }
.admin-page .admin-help-form .admin-help-image-drop[hidden] { display: none; }
.admin-help-image-file { overflow-wrap: anywhere; }
.admin-help-image-file[data-invalid] { color: #9f383b; }
.admin-help-image-translations { inline-size: min(530px, calc(100% - 2 * var(--gutter))); }
.admin-help-image-variant { min-inline-size: 0; margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.admin-help-image-variant legend { font-weight: 600; }
.admin-help-image-variant > label { display: grid; gap: 4px; margin-block-start: 6px; }
.admin-help-image-variant > label input { inline-size: 100%; padding: 6px 8px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.admin-help-image-variant__upload { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.admin-help-image-variant__upload .icon-button { --control: 34px; position: relative; }
.admin-help-image-variant__upload .icon-button img { transform: rotate(180deg); }
.admin-help-image-variant__upload .icon-button:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.admin-help-image-variant__upload input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; cursor: pointer; }
.admin-help-image-variant__upload output { overflow-wrap: anywhere; }
.admin-help-image-variant__upload > img { inline-size: 54px; block-size: 40px; object-fit: contain; }
[data-help-image-translation-error] { color: #9f383b; white-space: pre-line; }

@media (max-width: 440px) {
    .admin-help-settings { grid-template-columns: minmax(0, 1fr); }
    .admin-help-tree { --admin-record-action-size: 32px; }
    .admin-help-tree .admin-keyword-tree__entry { --keyword-indent-step: 12px; }
    .admin-help-tree .admin-record-actions { gap: 3px; }
    .admin-help-tree .admin-record-actions .icon-button img { inline-size: 18px; block-size: 18px; }
}

