/* Invest Assistance / FAQ • v2. Self-contained, no feed selectors. */
.ih {
    --ih-bg: #10151e;
    --ih-bg-alt: #141b26;
    --ih-line: rgba(203, 218, 244, .10);
    --ih-line-strong: rgba(203, 218, 244, .18);
    --ih-text: #f4f7fc;
    --ih-muted: #91a0b5;
    --ih-accent: #7aabff;
    --ih-accent-glow: rgba(65, 125, 245, .11);
    --ih-shadow: 0 22px 60px rgba(0, 0, 0, .26);
    color: var(--ih-text);
    font: inherit;
    min-height: 70vh;
    padding: 36px 22px 90px
}

body[data-site-theme="white"] .ih {
    --ih-bg: #fff;
    --ih-bg-alt: #f6f8fc;
    --ih-line: #e8ecf4;
    --ih-line-strong: #d4dce9;
    --ih-text: #151c2a;
    --ih-muted: #69768b;
    --ih-accent: #2563eb;
    --ih-accent-glow: rgba(37, 99, 235, .08);
    --ih-shadow: 0 22px 55px rgba(22, 40, 70, .12)
}

.ih *, .ih *::before, .ih *::after {
    box-sizing: border-box
}

.ih button, .ih input, .ih textarea, .ih select {
    font: inherit
}

.ih button {
    cursor: pointer
}

.ih a {
    text-decoration: none
}

.ih svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none
}

.ih [hidden] {
    display: none !important
}

.ih__shell {
    max-width: 1080px;
    margin: auto
}

.ih-hero {
    padding: 0 0 53px;
    border-bottom: 1px solid var(--ih-line)
}

.ih-hero__crumb {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ih-muted);
    font-size: 12px;
    margin-bottom: 52px
}

.ih-hero__crumb a {
    color: inherit
}

.ih-hero__crumb a:hover {
    color: var(--ih-text)
}

.ih-crumb-chevron {
    opacity: .4
}

.ih-hero__label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ih-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .19em;
    margin-bottom: 14px
}

.ih-hero__dot {
    width: 7px;
    height: 7px;
    background: var(--ih-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--ih-accent-glow)
}

.ih-hero__main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px
}

.ih-hero h1 {
    font-size: clamp(32px, 4.7vw, 54px);
    line-height: 1.13;
    letter-spacing: -.065em;
    font-weight: 750;
    margin: 0;
    color: var(--ih-text)
}

.ih-hero__accent {
    color: var(--ih-accent)
}

.ih-hero p {
    color: var(--ih-muted);
    font-size: 14px;
    margin: 17px 0 0;
    line-height: 1.7
}

.ih-hero__buttons {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-bottom: 5px
}

.ih-btn {
    min-height: 43px;
    padding: 11px 17px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    font-size: 12px !important;
    font-weight: 650 !important;
    white-space: nowrap;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s
}

.ih-btn:hover:not(:disabled) {
    transform: translateY(-1px)
}

.ih-btn:disabled {
    opacity: .55;
    cursor: wait
}

.ih-btn svg {
    width: 16px;
    height: 16px
}

.ih-btn--primary {
    background: #397dec;
    color: #fff;
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 6px 18px rgba(48, 101, 220, .16)
}

.ih-btn--primary:hover:not(:disabled) {
    background: #4b8bfa;
    box-shadow: 0 8px 26px rgba(48, 101, 220, .25)
}

.ih-btn--subtle {
    color: var(--ih-text);
    background: var(--ih-bg);
    border-color: var(--ih-line-strong)
}

.ih-btn--subtle:hover:not(:disabled), .ih-btn--subtle[aria-pressed=true] {
    background: var(--ih-accent-glow);
    border-color: rgba(100, 155, 250, .34);
    color: var(--ih-accent)
}

.ih-btn--danger {
    color: #e38d9b;
    background: transparent;
    border-color: transparent;
    margin-right: auto
}

.ih-btn--danger:hover {
    background: rgba(215, 60, 100, .08)
}

.ih-layout {
    display: grid;
    grid-template-columns:220px minmax(0, 1fr);
    gap: 68px;
    padding-top: 49px
}

.ih-sidebar__sticky {
    position: sticky;
    top: 100px
}

.ih-sidebar__title, .ih-section__eyebrow, .ih-docs__label, .ih-modal__eyebrow {
    color: var(--ih-muted);
    letter-spacing: .18em;
    font-size: 10px;
    font-weight: 750
}

.ih-sidebar__title {
    margin: 5px 0 22px 15px
}

.ih-nav {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.ih-nav__item {
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--ih-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background .18s, color .18s
}

.ih-nav__item:hover {
    color: var(--ih-text);
    background: var(--ih-accent-glow)
}

.ih-nav__item.is-active {
    color: var(--ih-text);
    background: var(--ih-bg-alt);
    box-shadow: inset 2px 0 0 var(--ih-accent)
}

.ih-nav__number {
    font-size: 11px;
    color: var(--ih-muted);
    font-variant-numeric: tabular-nums
}

.ih-sidebar__add {
    margin-top: 12px;
    padding: 12px 14px;
    background: transparent;
    color: var(--ih-accent);
    font-size: 12px;
    text-align: left
}

.ih-sidebar__add:hover {
    text-decoration: underline
}

.ih-sidebar__note {
    margin: 30px 14px 0;
    padding-top: 18px;
    border-top: 1px solid var(--ih-line);
    font-size: 11px;
    line-height: 1.65;
    color: var(--ih-muted)
}

.ih-sections {
    min-width: 0
}

.ih-section {
    padding: 0 0 44px;
    scroll-margin-top: 100px
}

.ih-section + .ih-section {
    padding-top: 31px;
    border-top: 1px solid var(--ih-line)
}

.ih-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 22px
}

.ih-section__text {
    min-width: 0;
    flex: 1
}

.ih-section__eyebrow {
    margin: 1px 0 11px
}

.ih-section__heading h2 {
    font-size: 20px;
    font-weight: 680;
    line-height: 1.3;
    letter-spacing: -.035em;
    margin: 0;
    color: var(--ih-text)
}

.ih-section__heading p {
    color: var(--ih-muted);
    font-size: 12px;
    margin: 9px 0 0;
    line-height: 1.6
}

.ih-section__manage {
    display: flex;
    gap: 3px
}

.ih-icon-btn, .ih-grip {
    display: inline-grid;
    place-items: center;
    width: 31px;
    height: 31px;
    flex-shrink: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ih-muted)
}

.ih-icon-btn:hover, .ih-grip:hover {
    color: var(--ih-accent);
    background: var(--ih-accent-glow)
}

.ih-icon-btn svg {
    width: 16px;
    height: 16px
}

.ih-grip svg {
    height: 15px;
    width: 15px;
    fill: currentColor;
    stroke: none
}

.ih-grip {
    cursor: grab;
    touch-action: none;
    user-select: none
}

.ih-grip:active {
    cursor: grabbing
}

.ih-grip--category {
    margin-top: 15px
}

.ih-question-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 12px
}

.ih-question {
    position: relative;
    background: var(--ih-bg);
    border: 1px solid var(--ih-line);
    border-radius: 15px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .018);
    transition: border-color .18s, background .18s, box-shadow .18s;
    scroll-margin-top: 100px
}

.ih-question:hover {
    border-color: var(--ih-line-strong)
}

.ih-question.is-open {
    border-color: rgba(122, 171, 255, .32);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .07)
}

.ih-question__row {
    display: flex;
    align-items: center;
    min-height: 66px;
    padding: 0 17px 0 20px;
    gap: 6px
}

.ih-question__toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    min-width: 0;
    min-height: 66px;
    width: 100%;
    padding: 17px 0;
    border: 0;
    background: none;
    text-align: left;
    color: var(--ih-text);
    font-size: 14px !important;
    font-weight: 620 !important;
    line-height: 1.5
}

.ih-question__toggle > span {
    min-width: 0
}

.ih-question__toggle svg {
    margin-left: auto;
    color: var(--ih-muted);
    width: 17px;
    height: 17px;
    transition: transform .25s, color .2s
}

.ih-question.is-open .ih-question__toggle svg {
    transform: rotate(180deg);
    color: var(--ih-accent)
}

.ih-question__edit {
    margin-left: 5px
}

.ih-question__answer {
    border-top: 1px solid var(--ih-line);
    padding: 22px 24px 26px 24px
}

.ih-question__answer .ih-rich {
    color: var(--ih-text);
    font-size: 13.5px;
    line-height: 1.85;
    overflow-wrap: anywhere
}

.ih-question--draft {
    border-style: dashed
}

.ih-badge {
    vertical-align: middle;
    border: 1px solid var(--ih-line-strong);
    font-size: 10px;
    font-weight: 600;
    color: var(--ih-muted);
    border-radius: 5px;
    padding: 3px 6px;
    margin-left: 6px;
    letter-spacing: 0
}

.ih-section__empty {
    padding: 16px 20px;
    border: 1px dashed var(--ih-line-strong);
    border-radius: 12px;
    color: var(--ih-muted);
    font-size: 12px
}

.ih-section__empty button {
    color: var(--ih-accent)
}

.ih-footer {
    margin-top: 4px;
    border-top: 1px solid var(--ih-line);
    padding: 29px 0;
    color: var(--ih-muted);
    font-size: 12px
}

.ih-footer a {
    color: var(--ih-accent);
    margin-left: 5px;
    font-weight: 600
}

.ih-footer a span {
    margin-left: 5px
}

.ih-empty {
    padding: 75px 30px;
    text-align: center
}

.ih-empty__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--ih-bg-alt);
    font-size: 30px;
    color: var(--ih-accent);
    font-weight: 600;
    margin: 0 auto 18px
}

.ih-empty h2 {
    font-size: 20px;
    letter-spacing: -.03em
}

.ih-empty p {
    font-size: 13px;
    color: var(--ih-muted);
    margin: 11px 0 22px
}

/* Read-only article body; content sanitized by Django prior to rendering. */
.ih-rich > :first-child {
    margin-top: 0
}

.ih-rich > :last-child {
    margin-bottom: 0
}

.ih-rich p {
    margin: 0 0 14px
}

.ih-rich h1, .ih-rich h2, .ih-rich h3 {
    line-height: 1.35;
    margin: 24px 0 10px;
    letter-spacing: -.03em;
    font-weight: 700;
    color: var(--ih-text)
}

.ih-rich h1 {
    font-size: 24px
}

.ih-rich h2 {
    font-size: 19px
}

.ih-rich h3 {
    font-size: 16px
}

.ih-rich ul, .ih-rich ol {
    margin: 10px 0 18px;
    padding-left: 25px
}

.ih-rich li {
    margin: 4px 0
}

.ih-rich strong {
    font-weight: 750
}

.ih-rich blockquote {
    border-left: 2px solid var(--ih-accent);
    padding: 5px 0 5px 17px;
    margin: 15px 0;
    color: var(--ih-muted)
}

.ih-rich a {
    color: var(--ih-accent);
    text-decoration: underline;
    text-underline-offset: 3px
}

.ih-rich img, .ih-rich video {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 540px;
    height: auto;
    border-radius: 12px;
    margin: 13px auto
}

.ih-rich video {
    width: min(100%, 700px)
}

.ih-rich pre {
    margin: 15px 0;
    padding: 17px;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--ih-bg-alt);
    border: 1px solid var(--ih-line);
    border-radius: 11px;
    font-family: monospace;
    font-size: 12px
}

.ih-rich code {
    font-family: monospace
}

.ih-rich table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 16px 0;
    max-width: 100%
}

.ih-rich th, .ih-rich td {
    border: 1px solid var(--ih-line-strong);
    padding: 9px 12px;
    min-width: 55px
}

.ih-rich hr {
    border: 0;
    border-top: 1px solid var(--ih-line);
    margin: 20px 0
}

.ih-docs {
    border-top: 1px solid var(--ih-line);
    margin-top: 25px;
    padding-top: 23px
}

.ih-docs__label {
    margin-bottom: 14px
}

.ih-doc {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 13px;
    border: 1px solid var(--ih-line);
    border-radius: 10px;
    margin: 8px 0;
    color: var(--ih-text);
    background: var(--ih-bg-alt);
    transition: border-color .2s
}

.ih-doc:hover {
    border-color: var(--ih-accent)
}

.ih-doc__icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 10px;
    color: var(--ih-accent);
    background: var(--ih-accent-glow)
}

.ih-doc__name {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere
}

.ih-doc__name small {
    display: block;
    font-size: 10px;
    color: var(--ih-muted);
    margin-top: 3px;
    font-weight: 400
}

.ih-doc__download {
    width: 16px !important;
    height: 16px !important;
    color: var(--ih-muted)
}

/* Editor mode • drag handles are completely removed for normal readers. */
.ih:not(.is-managing) .ih-grip, .ih:not(.is-managing) .ih-question__edit, .ih:not(.is-managing) .ih-section__manage, .ih:not(.is-managing) .ih-section__empty, .ih:not(.is-managing) .ih-sidebar__add {
    display: none
}

.ih:not(.is-managing) .ih-section__heading {
    gap: 0
}

.ih:not(.is-managing) .ih-question__row {
    gap: 0
}

.ih:not(.is-managing) .ih-section__eyebrow {
    margin-left: 0
}

.ih.is-managing .ih-question__row {
    padding-left: 8px
}

.ih.is-managing .ih-grip {
    touch-action: none
}

.ih.is-dragging, .ih.is-dragging * {
    user-select: none !important
}

.ih .ih-drag-source {
    opacity: .32 !important;
    border-color: var(--ih-accent) !important;
    border-style: dashed !important
}

.ih-drag-ghost {
    position: fixed;
    pointer-events: none !important;
    z-index: 99999;
    width: 310px;
    max-width: 80vw;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(130, 175, 250, .42);
    background: #182334;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .97;
    transform: translate(-15px, -15px)
}

/* Modals */
body.ih-modal-open {
    overflow: hidden
}

.ih-modal {
    position: fixed;
    inset: 0;
    z-index: 3800;
    display: grid;
    place-items: center;
    padding: 14px
}

.ih-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 5, 12, .75);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px)
}

.ih-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: min(94dvh, 920px);
    width: min(100%, 980px);
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--ih-line-strong);
    background: var(--ih-bg);
    box-shadow: var(--ih-shadow)
}

.ih-modal__dialog--small {
    max-width: 460px
}

.ih-modal__dialog form {
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1
}

.ih-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 27px 30px 22px;
    border-bottom: 1px solid var(--ih-line)
}

.ih-modal__header h2 {
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -.04em;
    color: var(--ih-text);
    margin: 9px 0 0;
    font-weight: 700
}

.ih-modal__close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid var(--ih-line);
    border-radius: 10px;
    background: var(--ih-bg-alt);
    color: var(--ih-muted)
}

.ih-modal__close:hover {
    color: var(--ih-text)
}

.ih-modal__close svg {
    width: 17px;
    height: 17px
}

.ih-modal__scroll {
    overflow-y: auto;
    min-height: 0;
    padding: 24px 30px 30px;
    overscroll-behavior: contain
}

.ih-form-grid {
    display: grid;
    grid-template-columns:minmax(0, 1.5fr) minmax(170px, 1fr);
    gap: 15px;
    margin-bottom: 24px
}

.ih-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    margin-bottom: 14px
}

.ih-field span, .ih-form-label {
    font-weight: 660;
    font-size: 12px;
    color: var(--ih-text)
}

.ih-form-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px
}

.ih-form-label span, .ih-attachments__title span {
    font-size: 11px;
    font-weight: 400;
    color: var(--ih-muted)
}

.ih-field input, .ih-field select, .ih-field textarea {
    min-height: 43px;
    max-width: 100%;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--ih-line-strong);
    background: var(--ih-bg-alt);
    color: var(--ih-text);
    border-radius: 10px;
    outline: none;
    font-size: 13px;
    resize: vertical
}

.ih-field input:focus, .ih-field select:focus, .ih-field textarea:focus {
    border-color: var(--ih-accent);
    box-shadow: 0 0 0 3px var(--ih-accent-glow)
}

.ih-field input::placeholder, .ih-field textarea::placeholder {
    color: var(--ih-muted);
    opacity: .8
}

.ih-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    background: var(--ih-bg-alt);
    border: 1px solid var(--ih-line-strong);
    border-radius: 12px 12px 0 0;
    padding: 9px 10px
}

.ih-editor-toolbar button {
    width: 31px;
    height: 31px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--ih-muted);
    background: transparent;
    border-radius: 7px;
    font-size: 13px
}

.ih-editor-toolbar button:hover, .ih-editor-toolbar button:focus-visible {
    color: var(--ih-text);
    background: var(--ih-accent-glow)
}

.ih-editor-toolbar select {
    height: 31px;
    min-width: 116px;
    background: transparent;
    color: var(--ih-text);
    border: none;
    padding: 0 7px;
    font-size: 12px;
    outline: none
}

.ih-editor-toolbar select option {
    background: var(--ih-bg);
    color: var(--ih-text)
}

.ih-toolbar-divider {
    height: 19px;
    width: 1px;
    background: var(--ih-line-strong);
    margin: 0 5px
}

.ih-color {
    display: flex;
    align-items: center
}

.ih-color input {
    width: 24px;
    height: 27px;
    border: 0;
    background: none;
    cursor: pointer
}

.ih-editor-toolbar .ih-toolbar-upload {
    width: auto;
    padding: 0 11px;
    margin-left: auto;
    background: var(--ih-accent-glow);
    color: var(--ih-accent);
    font-weight: 650;
    font-size: 11px;
    gap: 5px;
    display: flex
}

.ih-toolbar-upload svg {
    width: 15px;
    height: 15px
}

.ih-editor-surface {
    min-height: 200px;
    max-height: 35dvh;
    overflow: auto;
    padding: 19px 20px;
    outline: none;
    border: 1px solid var(--ih-line-strong);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: var(--ih-bg);
    color: var(--ih-text);
    font-size: 13.5px;
    line-height: 1.8;
    word-break: break-word
}

.ih-editor-surface:focus {
    border-color: rgba(122, 171, 255, .55)
}

.ih-editor-surface:empty::before {
    content: attr(data-placeholder);
    color: var(--ih-muted);
    pointer-events: none
}

.ih-editor-hint {
    font-size: 10px;
    line-height: 1.7;
    color: var(--ih-muted);
    margin: 11px 0 20px
}

.ih-attachments {
    border-top: 1px solid var(--ih-line);
    padding-top: 18px
}

.ih-attachments__title {
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px
}

.ih-attachments__list {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.ih-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 10px;
    background: var(--ih-bg-alt);
    border: 1px solid var(--ih-line);
    font-size: 12px
}

.ih-attachment__type {
    flex-shrink: 0;
    color: var(--ih-accent);
    font-weight: 700;
    font-size: 10px
}

.ih-attachment__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.ih-attachment__size {
    color: var(--ih-muted);
    font-size: 10px
}

.ih-attachment button {
    color: var(--ih-muted);
    font-size: 18px;
    padding: 2px 7px
}

.ih-attachment button:hover {
    color: #f38a94
}

.ih-attachments__empty {
    color: var(--ih-muted);
    font-size: 11px;
    padding: 9px 0
}

.ih-modal__footer {
    border-top: 1px solid var(--ih-line);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 30px;
    background: var(--ih-bg)
}

.ih-publish {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--ih-text);
    white-space: nowrap
}

.ih-publish input {
    accent-color: #397dec
}

.ih-save-state {
    font-size: 11px;
    color: var(--ih-muted);
    margin: 0 auto 0 8px;
    max-width: 260px;
    line-height: 1.4
}

.ih-save-state.is-error {
    color: #f0929b
}

.ih-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4500;
    padding: 12px 20px;
    border-radius: 10px;
    background: #1c2a3f;
    border: 1px solid #45638e;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 12px 50px #0006;
    max-width: 90vw
}

.ih-input-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    max-width: calc(100vw - 40px);
    width: 360px;
    padding: 24px;
    border: 1px solid var(--ih-line-strong);
    border-radius: 16px;
    background: var(--ih-bg);
    color: var(--ih-text);
    box-shadow: var(--ih-shadow)
}

.ih-input-dialog::backdrop {
    background: rgba(0, 0, 0, .6)
}

.ih-input-dialog h3 {
    font-size: 18px;
    margin: 0 0 18px;
    letter-spacing: -.03em
}

.ih-input-dialog label {
    display: block;
    font-size: 12px;
    margin: 10px 0 7px
}

.ih-input-dialog input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--ih-line-strong);
    border-radius: 9px;
    background: var(--ih-bg-alt);
    color: var(--ih-text);
    outline: none
}

.ih-input-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px
}

.ih-input-dialog__actions button {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--ih-accent);
    border-radius: 8px;
    background: var(--ih-bg-alt)
}

#ih-insert-error {
    color: #e88a8a;
    font-size: 11px;
    margin: 8px 0
}

@media (max-width: 850px) {
    .ih-layout {
        gap: 33px;
        grid-template-columns:175px minmax(0, 1fr)
    }

    .ih-hero__crumb {
        margin-bottom: 35px
    }

    .ih-hero h1 {
        font-size: 38px
    }
}

@media (max-width: 670px) {
    .ih {
        padding: 24px 15px 85px
    }

    .ih-hero {
        padding-bottom: 32px
    }

    .ih-hero__main {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px
    }

    .ih-hero h1 {
        font-size: 35px
    }

    .ih-hero p {
        font-size: 13px;
        margin-top: 11px
    }

    .ih-hero__crumb {
        margin-bottom: 32px
    }

    .ih-hero__buttons {
        justify-content: flex-start
    }

    .ih-layout {
        display: block;
        padding-top: 24px
    }

    .ih-sidebar__sticky {
        position: static
    }

    .ih-sidebar__title, .ih-sidebar__note {
        display: none
    }

    .ih-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 2px 0 18px;
        scrollbar-width: none
    }

    .ih-nav::-webkit-scrollbar {
        display: none
    }

    .ih-nav__item {
        flex: 0 0 auto;
        white-space: nowrap;
        border: 1px solid var(--ih-line);
        padding: 9px 12px
    }

    .ih-nav__item.is-active {
        box-shadow: none;
        border-color: var(--ih-accent)
    }

    .ih-sidebar__add {
        margin: -5px 0 20px
    }

    .ih-section {
        padding-bottom: 32px
    }

    .ih-section + .ih-section {
        padding-top: 26px
    }

    .ih-question__row {
        min-height: 61px;
        padding-right: 12px;
        padding-left: 15px
    }

    .ih-question__toggle {
        font-size: 13px !important;
        min-height: 59px;
        padding: 13px 0
    }

    .ih-question__answer {
        padding: 18px
    }

    .ih-modal {
        padding: 0
    }

    .ih-modal__dialog {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0
    }

    .ih-modal__header {
        padding: 19px 19px 16px
    }

    .ih-modal__scroll {
        padding: 20px 16px;
        flex: 1
    }

    .ih-form-grid {
        grid-template-columns:1fr;
        gap: 0
    }

    .ih-form-label {
        display: block
    }

    .ih-form-label span {
        display: block;
        margin-top: 5px
    }

    .ih-modal__footer {
        padding: 12px 14px;
        gap: 7px;
        flex-wrap: wrap
    }

    .ih-modal__footer .ih-btn {
        padding: 10px 12px
    }

    .ih-modal__footer .ih-save-state {
        order: 5;
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
        margin: 0;
        text-align: right
    }

    .ih-modal__footer .ih-btn--danger {
        margin-right: auto
    }

    .ih-editor-surface {
        min-height: 220px;
        max-height: 45dvh
    }

    .ih-editor-toolbar select {
        min-width: 93px
    }

    .ih-attachments__title {
        align-items: flex-start;
        flex-direction: column
    }
}

@media (prefers-reduced-motion: reduce) {
    .ih *, .ih *::before, .ih *::after {
        transition: none !important;
        scroll-behavior: auto !important
    }
}


/* =====================================================================
   FAQ V3 — единая лента вопросов, мягкий glass hero, анимация ответов.
   Стили редактора из v2 выше сохранены без изменений.
   ===================================================================== */
.ih {
    --ih-bg: #101722;
    --ih-bg-alt: #151d2a;
    --ih-line: rgba(190, 211, 245, 0.11);
    --ih-line-strong: rgba(190, 211, 245, 0.18);
    --ih-accent: #86b0ff;
    --ih-text: #f3f6fc;
    --ih-muted: #9baac0;
    --ih-accent-glow: rgba(66, 126, 235, 0.13);
    padding: 34px 20px 84px;
}

body[data-site-theme="white"] .ih {
    --ih-bg: #fff;
    --ih-bg-alt: #f5f8fd;
    --ih-line: #e6ecf5;
    --ih-line-strong: #d7e1f0;
    --ih-text: #152136;
    --ih-muted: #67778f;
    --ih-accent: #2563eb;
    --ih-accent-glow: rgba(37, 99, 235, 0.08);
}

.ih__shell {
    width: min(100%, 960px);
    max-width: none;
    margin: 0 auto;
}

/* Верхняя плашка */
.ih-hero {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    padding: 34px 38px 38px;
    margin-bottom: 23px;
    /*border: 1px solid rgba(130, 169, 241, 0.20);*/
    border-radius: 26px;
    /*background: radial-gradient(ellipse at 15% 5%, rgba(47, 108, 217, 0.24), transparent 62%),*/
    /*radial-gradient(ellipse at 90% 85%, rgba(32, 95, 187, 0.13), transparent 56%),*/
    /*linear-gradient(135deg, rgba(18, 28, 47, 0.93), rgba(9, 15, 27, 0.95));*/
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    /*box-shadow: 0 18px 58px rgba(0, 0, 0, .21), inset 0 1px 0 rgba(255, 255, 255, .045);*/
}

.ih-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -140px;
    right: -90px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(61, 124, 235, .15), transparent 70%);
    pointer-events: none;
}

body[data-site-theme="white"] .ih-hero {
    background: radial-gradient(ellipse at 13% 2%, rgba(99, 152, 250, 0.14), transparent 61%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(241, 246, 254, .98));
    border-color: rgba(83, 123, 197, .18);
    box-shadow: 0 15px 44px rgba(35, 64, 121, .08);
}

.ih-hero__label {
    margin: 0 0 20px;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .17em;
}

.ih-hero__main {
    align-items: center;
    gap: 26px;
}

.ih-hero__intro {
    min-width: 0;
}

.ih-hero h1 {
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.09;
    letter-spacing: -.055em;
    font-weight: 760;
}

.ih-hero p {
    font-size: 14px;
    line-height: 1.65;
    margin: 14px 0 0;
    max-width: 560px;
}

.ih-hero__buttons {
    padding: 0;
    gap: 9px;
    align-self: center;
}

.ih-btn {
    border-radius: 12px;
}

.ih-btn--subtle {
    background: rgba(255, 255, 255, .035);
}

.ih-btn--primary {
    background: linear-gradient(135deg, #4d93ff, #306fe6);
}

/* Категории не отображаются посетителям; только управление в режиме редактора */
.ih-manage-bar {
    display: none;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 16px;
    border: 1px solid var(--ih-line);
    border-radius: 14px;
    background: var(--ih-bg);
}

.ih.is-managing .ih-manage-bar {
    display: flex;
}

.ih-manage-bar__hint {
    font-size: 12px;
    color: var(--ih-muted);
}

.ih-manage-bar__categories {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.ih-manage-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--ih-line-strong);
    border-radius: 8px;
    color: var(--ih-muted);
    background: transparent;
    font-size: 11px !important;
}

.ih-manage-category:hover {
    color: var(--ih-accent);
    background: var(--ih-accent-glow);
}

.ih-manage-category--add {
    color: var(--ih-accent);
}

/* Никаких заголовков разделов или боковых колонок */
.ih-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    min-width: 0;
}

.ih-section,
.ih-section + .ih-section {
    padding: 0 !important;
    margin: 0;
    border: none !important;
}

.ih-question-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.ih-section:has(.ih-question-list:empty) {
    display: none;
}

.ih-section__empty {
    display: none;
}

.ih.is-managing .ih-section__empty {
    display: block;
}

/* FAQ карточки */
.ih-question {
    overflow: hidden;
    border: 1px solid var(--ih-line-strong);
    border-radius: 17px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .07);
    transition: border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

body[data-site-theme="white"] .ih-question {
    background: #fff;
    box-shadow: 0 8px 26px rgba(37, 61, 99, .035);
}

.ih-question:hover {
    border-color: rgba(127, 172, 246, .42);
}

.ih-question.is-open {
    border-color: rgba(127, 172, 246, .35);
    box-shadow: 0 14px 33px rgba(0, 0, 0, .12);
}

.ih-question__row {
    min-height: 72px;
    padding: 0 20px 0 23px;
}

.ih-question__toggle {
    min-height: 72px;
    padding: 19px 0;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.48;
}

.ih-question__toggle svg {
    width: 19px;
    height: 19px;
    transition: transform .34s ease, color .24s ease;
}

.ih-question.is-open .ih-question__toggle svg {
    transform: rotate(180deg);
}

.ih.is-managing .ih-question__row {
    padding-left: 8px;
}

.ih-question:focus-within {
    border-color: rgba(122, 171, 255, .5);
}

/* Раскрытие происходит без display:none: поэтому видна анимация */
.ih-question__answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    border: 0;
    transition: grid-template-rows .38s cubic-bezier(.22, .61, .36, 1),
    opacity .22s ease,
    visibility 0s linear .38s;
}

.ih-question.is-open .ih-question__answer {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition: grid-template-rows .38s cubic-bezier(.22, .61, .36, 1),
    opacity .25s ease,
    visibility 0s;
}

.ih-answer-inner {
    min-height: 0;
    overflow: hidden;
}

.ih-answer-content {
    padding: 24px 25px 25px;
    border-top: 1px solid var(--ih-line);
}

.ih-question__answer .ih-rich {
    font-size: 14px;
    line-height: 1.85;
}

.ih-question__answer .ih-rich img,
.ih-question__answer .ih-rich video {
    max-width: 100%;
    height: auto;
    border-radius: 11px;
}

/* Файлы находятся просто в конце ответа, без заголовка */
.ih-docs {
    display: grid;
    gap: 8px;
    margin-top: 19px;
    padding-top: 0;
    border: none;
}

.ih-doc {
    padding: 12px 14px;
    margin: 0;
    border-radius: 12px;
    background: var(--ih-bg-alt);
    border: 1px solid var(--ih-line);
    transition: border-color .18s ease, transform .18s ease;
}

.ih-doc:hover {
    transform: translateY(-1px);
    border-color: rgba(122, 171, 255, .43);
}

.ih-doc__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.ih-doc__name {
    font-size: 13px;
}

.ih-footer {
    border-top: 0;
    padding: 25px 2px 0;
    font-size: 12px;
}

@media (max-width: 760px) {
    .ih {
        padding: 20px 12px 85px;
    }

    .ih-hero {
        padding: 26px 24px;
        border-radius: 20px;
    }

    .ih-hero__main {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .ih-hero h1 {
        font-size: clamp(32px, 7vw, 43px);
    }

    .ih-hero__buttons {
        align-self: stretch;
        justify-content: flex-start;
    }

    .ih-manage-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .ih-manage-bar__categories {
        justify-content: flex-start;
    }

    .ih-question__row {
        min-height: 65px;
        padding: 0 14px 0 17px;
    }

    .ih-question__toggle {
        min-height: 65px;
        padding: 15px 0;
        font-size: 14px !important;
    }

    .ih-answer-content {
        padding: 18px 18px 21px;
    }

    .ih-doc {
        padding: 10px;
    }
}

@media (max-width: 420px) {
    .ih-hero {
        padding: 24px 18px;
    }

    .ih-hero__buttons .ih-btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ih-question__answer {
        transition: none !important;
    }

    .ih-question__toggle svg {
        transition: none !important;
    }
}


/* The platform header is above the page; reserve room for it. */
.ih {
    --ih-bg: #0e1116;
    --ih-bg-alt: #12161c;
    --ih-line: rgba(255, 255, 255, 0.065);
    --ih-line-strong: rgba(255, 255, 255, 0.10);
    --ih-text: #e9edf3;
    --ih-muted: #8d97a5;
    --ih-accent: #8aaeff;
    --ih-accent-glow: transparent;
    --ih-shadow: none;
    padding: calc(90px + env(safe-area-inset-top, 0px)) 20px 76px;
}

body[data-site-theme="white"] .ih {
    --ih-bg: #ffffff;
    --ih-bg-alt: #f6f7f9;
    --ih-line: rgba(20, 35, 55, 0.075);
    --ih-line-strong: rgba(20, 35, 55, 0.12);
    --ih-text: #19212d;
    --ih-muted: #737d8b;
    --ih-accent: #285fce;
    --ih-accent-glow: transparent;
    --ih-shadow: none;
}

.ih__shell {
    width: min(100%, 960px);
}

/* Plain surfaces rather than glass and gradients. */
.ih-hero,
body[data-site-theme="white"] .ih-hero {
    padding: 27px 30px 29px;
    margin-bottom: 15px;
    /*border: 1px solid var(--ih-line-strong);*/
    border-radius: 14px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body[data-site-theme="white"] .ih-hero {
    background: rgb(231 7 7 / 0);
}

.ih-hero::before,
.ih-hero::after {
    display: none;
    content: none;
}

.ih-hero__label {
    margin-bottom: 15px;
    color: var(--ih-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .13em;
}

.ih-hero__dot {
    width: 5px;
    height: 5px;
    background: var(--ih-muted);
    box-shadow: none;
}

.ih-hero__main {
    align-items: center;
    gap: 22px;
}

.ih-hero h1 {
    font-size: clamp(30px, 3.4vw, 43px);
    letter-spacing: -.045em;
    font-weight: 720;
    line-height: 1.16;
}

.ih-hero__accent {
    color: var(--ih-text);
}

.ih-hero p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.65;
}

.ih-hero__buttons {
    gap: 8px;
}

.ih-btn,
.ih-btn:hover:not(:disabled) {
    min-height: 39px;
    padding: 9px 14px;
    border-radius: 9px;
    box-shadow: none;
    transform: none;
}

.ih-btn--subtle {
    background: transparent;
    border: 1px solid var(--ih-line-strong);
    color: var(--ih-text);
}


.ih-btn--subtle:hover:not(:disabled),
.ih-btn--subtle[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--ih-text);
}

body[data-site-theme="white"] .ih-btn--subtle:hover:not(:disabled),
body[data-site-theme="white"] .ih-btn--subtle[aria-pressed="true"] {
    background: rgba(20, 35, 55, 0.04);
    border-color: var(--ih-line-strong);
}

.ih-btn--primary {
    background: #2d66c8;
    border-color: #2d66c8;
    color: #fff;
    box-shadow: none;
}

.ih-btn--primary:hover:not(:disabled) {
    background: #3573da;
    border-color: #3573da;
    box-shadow: none;
}

/* Questions: barely visible fill, hairline borders, no raised cards. */
.ih-sections,
.ih-question-list {
    gap: 9px;
}

.ih-question,
body[data-site-theme="white"] .ih-question {
    border-radius: 12px;
    border: 1px solid var(--ih-line);

    box-shadow: none;
    scroll-margin-top: 94px;
    transition: border-color .2s ease, background .2s ease;
}

body[data-site-theme="white"] .ih-question {
    background: rgba(255, 255, 255, 0.78);
}

.ih-question:hover,
.ih-question.is-open,
.ih-question:focus-within {
    border-color: var(--ih-line-strong);
    box-shadow: none;
}

body[data-site-theme="white"] .ih-question:hover,
body[data-site-theme="white"] .ih-question.is-open,
body[data-site-theme="white"] .ih-question:focus-within {
    border-color: var(--ih-line-strong);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
}

.ih-question__row {
    min-height: 61px;
    padding: 0 17px 0 19px;
}

.ih-question__toggle {
    min-height: 61px;
    padding: 16px 0;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.ih-question__toggle svg,
.ih-question.is-open .ih-question__toggle svg {
    color: var(--ih-muted);
}

.ih-answer-content {
    padding: 20px 20px 23px;
    border-top-color: var(--ih-line);
}

.ih-question__answer .ih-rich {
    font-size: 13.5px;
    line-height: 1.8;
}

/* Files directly below the answer, without a heading or accent glow. */
.ih-docs {
    margin-top: 17px;
    gap: 7px;
}

.ih-doc,
.ih-doc:hover {
    padding: 11px 12px;
    border: 1px solid var(--ih-line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
    transform: none;
}

.ih-doc:hover {
    border-color: var(--ih-line-strong);
    background: rgba(255, 255, 255, 0.035);
}

body[data-site-theme="white"] .ih-doc {
    background: rgba(20, 35, 55, 0.025);
}

body[data-site-theme="white"] .ih-doc:hover {
    background: rgba(20, 35, 55, 0.045);
}

.ih-doc__icon {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--ih-muted);
}

body[data-site-theme="white"] .ih-doc__icon {
    background: rgba(20, 35, 55, 0.05);
}

.ih-manage-bar,
.ih-manage-category,
.ih-attachment,
.ih-editor-toolbar,
.ih-field input,
.ih-field select,
.ih-field textarea {
    box-shadow: none;
}

.ih-manage-bar {
    background: rgba(255, 255, 255, 0.018);
    border-radius: 10px;
}

.ih-manage-category {
    background: transparent;
}

.ih-manage-category:hover,
.ih-icon-btn:hover,
.ih-grip:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Editors get the same restrained treatment. */
.ih-modal__backdrop {
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ih-modal__dialog,
.ih-input-dialog {
    background: var(--ih-bg);
    border: 1px solid var(--ih-line-strong);
    border-radius: 13px;
    box-shadow: none;
}

.ih-modal__close,
.ih-field input,
.ih-field select,
.ih-field textarea,
.ih-editor-toolbar,
.ih-editor-surface,
.ih-attachment,
.ih-input-dialog input {
    border-radius: 8px;
}

.ih-field input:focus,
.ih-field select:focus,
.ih-field textarea:focus {
    box-shadow: none;
}

.ih-drag-ghost,
.ih-toast {
    border-radius: 9px;
    box-shadow: none;
}

@media (max-width: 760px) {
    .ih {
        padding: calc(79px + env(safe-area-inset-top, 0px)) 12px 72px;
    }

    .ih-hero {
        padding: 23px 20px;
        border-radius: 12px;
    }

    .ih-hero__main {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .ih-hero h1 {
        font-size: clamp(30px, 7vw, 37px);
    }

    .ih-hero__buttons {
        align-self: stretch;
        justify-content: flex-start;
    }

    .ih-question__row {
        min-height: 59px;
        padding: 0 13px 0 15px;
    }

    .ih-question__toggle {
        min-height: 59px;
        font-size: 13.5px !important;
        padding: 13px 0;
    }

    .ih-answer-content {
        padding: 17px;
    }
}

@media (max-width: 420px) {
    .ih-hero {
        padding: 21px 17px;
    }
}


/* Installation library */
.ih .ih-card-icon svg {
    width: 100%;
    height: 100%;
    margin: 0;
    transform: none !important
}

.ih .ih__shell {
    max-width: 1120px
}

.ih .ih-hero {
    padding: 42px 0 38px;
    background: none;
    border: 0;
    border-radius: 0
}

.ih .ih-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -.045em;
    margin: 18px 0
}

.ih .ih-hero h1 span {
    color: var(--ih-accent)
}

.ih .ih-hero p {
    font-size: 15px;
    line-height: 1.7;
    max-width: 600px
}

.ih-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--ih-muted)
}

.ih .ih-hero__buttons {
    align-self: flex-end;
    padding-bottom: 8px
}

.ih-finder {

    border-radius: 20px;
    padding: 26px;
    margin-bottom: 38px
}


.ih-finder h2 {
    text-align: center;
}


.ih-library-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.ih-finder h2, .ih-library-head h2 {
    font-size: 23px;
    letter-spacing: -.025em;
    margin: 8px 0 22px
}

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

.ih-platform {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    text-align: left;
    background-color: var(--ih-platform-bg, var(--ih-bg-alt));
    border: 1px solid var(--ih-line);
    color: var(--ih-text);
    border-radius: 13px;
    padding: 20px 16px;
    transition: background-color .2s ease, border-color .2s ease
}

.ih-platform__icon {
    display: block;
    width: 32px;
    height: 32px;
    margin-bottom: 12px
}

.ih-platform strong {
    font-size: 14px
}

.ih-platform small {
    font-size: 11px;
    color: var(--ih-muted)
}

.ih-platform:hover {
    background-color: var(--ih-platform-hover, var(--ih-bg-alt));
    border-color: var(--ih-accent)
}

.ih-platform[aria-pressed="true"] {
    background-color: var(--ih-platform-selected, var(--ih-accent-glow));
    border-color: var(--ih-accent)
}

.ih [data-icon] svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke: none;
    fill: currentColor
}

.ih-platform__icon img,
.ih-card-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.ih-library-head {
    margin-bottom: 4px
}

.ih-library-head > span {
    color: var(--ih-muted);
    font-size: 12px
}

.ih .ih-question {
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden
}

.ih .ih-question__row {
    padding: 0 22px;
    min-height: 90px
}

.ih .ih-question__toggle {
    gap: 16px;
    min-height: 90px;
    padding: 18px 0;
    font-size: 15px !important
}

.ih-card-icon {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--ih-line);
    background: var(--ih-bg-alt);
    border-radius: 12px
}

.ih-card-heading {
    flex: 1;
    text-align: left;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere
}

.ih-card-heading small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--ih-muted);
    margin-bottom: 5px
}

.ih .ih-answer-content {
    --ih-instruction-image-width: 720px;
    --ih-instruction-image-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(12px, 2vw, 20px);
    padding: 24px
}

.ih-answer-content > .ih-docs {
    margin-top: 0
}

.ih-file-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    background: var(--ih-bg-alt);
    border: 1px solid var(--ih-line);
    border-radius: 12px;
    padding: 16px
}

.ih-file-type {
    font-size: 10px;
    color: #ff8b8b;
    background: #e35e5e16;
    border: 1px solid #e35e5e33;
    border-radius: 8px;
    padding: 15px 8px;
    font-weight: 700
}

.ih-file-name {
    line-height: 1.5
}

.ih-file-name strong {
    display: block;
    font-size: 13px;
    overflow-wrap: anywhere
}

.ih-file-name small {
    color: var(--ih-muted);
    font-size: 11px
}

.ih-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: clamp(12px, 2vw, 20px)
}

.ih-gallery__item {
    display: block;
    max-width: min(100%, var(--ih-instruction-image-width));
    border: 1px solid var(--ih-line);
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--ih-bg-alt)
}

.ih-gallery__item:hover {
    border-color: var(--ih-accent)
}

.ih-gallery__item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: var(--ih-instruction-image-height)
}

.ih-question__answer .ih-rich img {
    max-width: min(100%, var(--ih-instruction-image-width));
    max-height: var(--ih-instruction-image-height)
}

.ih-answer-content .ih-rich img[role="button"] {
    cursor: zoom-in
}

.ih-no-results {
    padding: 32px;
    text-align: center;
    color: var(--ih-muted);
    border: 1px dashed var(--ih-line);
    border-radius: 14px
}

.ih button:focus-visible,
.ih a:focus-visible,
.ih input:focus-visible,
.ih-answer-content .ih-rich img[role="button"]:focus-visible {
    outline: 2px solid var(--ih-accent);
    outline-offset: 4px
}

html.ih-viewer-open {
    overflow: hidden;
    scrollbar-gutter: auto
}

.ih-viewer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: Inter, sans-serif;
    user-select: none
}

.ih-viewer[open] {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    animation: ih-viewer-fade-in 220ms ease
}

.ih-viewer.is-closing {
    animation: ih-viewer-fade-out 220ms ease forwards;
    pointer-events: none
}

@keyframes ih-viewer-fade-in {
    from { opacity: 0 }
}

@keyframes ih-viewer-fade-out {
    to { opacity: 0 }
}

.ih-viewer::backdrop {
    background: transparent
}

.ih-viewer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 3;
    height: calc(80px + env(safe-area-inset-top));
    background: linear-gradient(to bottom, rgba(0, 0, 0, .8), rgba(0, 0, 0, .55) 65%, transparent);
    pointer-events: none
}

.ih-viewer__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: contain
}

.ih-viewer__stage:focus-visible {
    outline: none
}

.ih-viewer__image {
    display: block;
    flex: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    will-change: transform;
    cursor: pointer;
    -webkit-user-drag: none
}

.ih-viewer.is-image-zoomed .ih-viewer__image {
    cursor: grab
}

.ih-viewer.is-image-dragging .ih-viewer__image {
    cursor: grabbing
}

.ih-viewer__count {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    left: max(24px, env(safe-area-inset-left));
    z-index: 6;
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    pointer-events: none
}

.ih-viewer__count--compact {
    display: none
}

.ih .ih-viewer__close {
    position: absolute;
    top: max(8px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 7;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0 0 3px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font: 400 30px/1 Inter, sans-serif;
    transition: background 160ms ease
}

.ih-viewer__close:hover {
    background: rgba(255, 255, 255, .08)
}

.ih-viewer__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 48px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    transform: translateY(-50%);
    transition: color 160ms ease, background 160ms ease
}

.ih-viewer__nav:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06)
}

.ih-viewer__nav--prev {
    left: max(8px, env(safe-area-inset-left))
}

.ih-viewer__nav--next {
    right: max(8px, env(safe-area-inset-right))
}

.ih-viewer__nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8
}

.ih .ih-viewer__close:focus-visible,
.ih .ih-viewer__nav:focus-visible {
    outline: 1px solid rgba(255, 255, 255, .8);
    outline-offset: 0
}

.ih-viewer__status {
    position: absolute;
    display: grid;
    place-items: center;
    width: min(78vw, 960px);
    height: min(66dvh, 640px);
    min-height: 180px;
    padding: 16px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ih-viewer-loading-bg, #161c2391);
    color: var(--ih-viewer-loading-text, #a3b3c6);
    font: 14px/1.5 system-ui, sans-serif;
    text-align: center
}

body[data-site-theme="white"] .ih-viewer {
    --ih-viewer-loading-bg: #e6edf5;
    --ih-viewer-loading-text: #52647a;
    --ih-viewer-loading-shine: rgba(255, 255, 255, .7)
}

.ih-viewer[aria-busy="true"] .ih-viewer__status::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 15%, var(--ih-viewer-loading-shine, rgba(153, 187, 224, .13)) 48%, transparent 80%);
    transform: translateX(-100%);
    animation: ih-viewer-shimmer 1.8s ease-in-out infinite;
    pointer-events: none
}

@keyframes ih-viewer-shimmer {
    to { transform: translateX(100%) }
}

@media (max-width: 768px), (pointer: coarse) {
    .ih-viewer__count {
        left: max(16px, env(safe-area-inset-left));
        color: rgba(255, 255, 255, .85)
    }

    .ih-viewer__count--full,
    .ih-viewer__nav {
        display: none
    }

    .ih-viewer__count--compact {
        display: inline
    }
}

@media (prefers-reduced-motion: reduce) {
    .ih-viewer[aria-busy="true"] .ih-viewer__status::after {
        animation: none
    }
}

@media (max-width: 760px) {
    .ih {
        padding-top: 85px
    }

    .ih .ih-hero {
        padding: 20px 4px 28px
    }

    .ih .ih-hero__buttons {
        align-self: stretch
    }

    .ih-finder {
        padding: 18px 14px;
        border-radius: 16px;
        margin-bottom: 28px
    }

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

    .ih-platform {
        padding: 14px
    }

    .ih-platform:first-child {
        grid-column: 1/-1;
        display: grid;
        grid-template-columns:32px 1fr;
        column-gap: 12px;
        align-items: center
    }

    .ih-platform:first-child .ih-platform__icon {
        grid-row: span 2;
        margin: 0
    }

    .ih-platform__icon {
        margin-bottom: 6px
    }

    .ih-library-head {
        align-items: flex-start
    }

    .ih-library-head h2 {
        font-size: 20px
    }

    .ih-library-head > span {
        padding-top: 24px;
        white-space: nowrap;
        font-size: 10px
    }

    .ih .ih-question__row {
        padding: 0 14px
    }

    .ih .ih-question__toggle {
        font-size: 14px !important;
        gap: 12px
    }

    .ih .ih-answer-content {
        padding: 18px 14px
    }

    .ih-file-card {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 12px;
        gap: 10px
    }

    .ih-file-download {
        grid-column: 2;
        justify-self: end
    }

    .ih-file-name strong {
        font-size: 12px
    }

}

@media (prefers-reduced-motion: reduce) {
    .ih * {
        transition: none !important;
        animation: none !important
    }
}

/* ТЁМНАЯ — прозрачный перламутр */
body:not([data-site-theme="white"]) .ih {
    --surface-hero: rgba(180, 200, 235, 0.025);
    --surface-panel: rgba(180, 200, 235, 0.035);

    --surface-card: linear-gradient(
        135deg,
        rgba(210, 222, 240, 0.085),
        rgba(210, 222, 240, 0.025)
    );

    --surface-detail: rgba(210, 222, 240, 0.045);

    --surface-hover: linear-gradient(
        135deg,
        rgba(210, 222, 240, 0.13),
        rgba(210, 222, 240, 0.05)
    );

    --ih-platform-bg: rgba(210, 222, 240, .06);
    --ih-platform-hover: rgba(210, 222, 240, .11);
    --ih-platform-selected: rgba(130, 175, 245, .18);
}

/* СВЕТЛАЯ — фарфор */
body[data-site-theme="white"] .ih {
    --surface-hero: #ffffff;
    --surface-panel: #f9fafc;
    --surface-card: #e9edf3;
    --surface-detail: #edf1f6;
    --surface-hover: #dfe5ee;
    --ih-platform-bg: var(--surface-card);
    --ih-platform-hover: var(--surface-hover);
    --ih-platform-selected: #d8e5fc;
}




body[data-site-theme] .ih .ih-question {
    background: var(--surface-card);
}

body[data-site-theme] .ih :is(
    .ih-card-icon,
    .ih-file-card,
    .ih-doc,
    .ih-doc__icon,
    .ih-gallery__item
) {
    background: var(--surface-detail);
}

/* Наведение */
body[data-site-theme] .ih .ih-question:hover,
body[data-site-theme] .ih .ih-question.is-open,
body[data-site-theme] .ih .ih-question:focus-within {
    background: var(--surface-hover);
}

#help-app .ih-card-icon {
    border: 0;
    background: transparent;
}

#help-app .ih-card-icon img,
#help-app .ih-platform__icon img {
    border-radius: 6px;
}

#help-app .ih-gallery__item,
#help-app .ih-question__answer .ih-rich img {
    border-radius: 16px;
}



body #help-app {
    --ih-bg: #191c22;
    --ih-bg-alt: #20242c;
    --ih-hover: #212630;
    --ih-line: #303641;
    --ih-line-strong: #515d70;
    --ih-text: #edf1f7;
    --ih-muted: #a9b6c7;
    --ih-accent: #a2c1ff;
    --ih-selected: #26354b;
    --ih-selected-line: #688abe;
    --ih-primary: #a5c3fa;
    --ih-primary-hover: #bfd4ff;
    --ih-on-primary: #172745;
}

body[data-site-theme="white"]:has(#help-app) {
    --site-bg: #f6f7f9;
}

body[data-site-theme="white"] #help-app {
    --ih-bg: #ffffff;
    --ih-bg-alt: #f0f3f7;
    --ih-hover: #f5f7fb;
    --ih-line: #dde3eb;
    --ih-line-strong: #b9c5d6;
    --ih-text: #202a38;
    --ih-muted: #536174;
    --ih-accent: #285a9f;
    --ih-selected: #eaf1fb;
    --ih-selected-line: #8daedb;
    --ih-primary: #2d5c9f;
    --ih-primary-hover: #224b86;
    --ih-on-primary: #ffffff;
}



#help-app {
    --ih-accent-glow: var(--ih-selected);
}

#help-app .ih__shell {
    max-width: 1000px;
}

#help-app .ih-hero {
    padding: 28px 0;
    margin-bottom: 26px;
    background: transparent;
    border-bottom: 1px solid var(--ih-line);
    border-radius: 0;
    box-shadow: none;
}

#help-app .ih-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(31px, 4.6vw, 49px);
}

#help-app .ih-hero p {
    color: var(--ih-muted);
    font-size: 14px;
}

#help-app .ih-finder {
    padding: 0;
    margin: 0 0 28px;
    border: 0;
    background: transparent;
}

#help-app :is(.ih-finder, .ih-library-head) h2 {
    margin: 0;
    font-size: 20px;
}

#help-app .ih-platforms {
    gap: 8px;
    margin-top: 14px;
}

#help-app .ih-platform {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--ih-line);
    border-radius: 10px;
    background: var(--ih-bg);
}

#help-app .ih-platform strong {
    font-size: 13px;
}

#help-app .ih-platform small {
    display: none;
}

#help-app .ih-platform__icon {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    margin: 0;
}

#help-app .ih-platform:hover {
    background: var(--ih-hover);
}

#help-app .ih-platform[aria-pressed="true"] {
    background: var(--ih-selected);
    border-color: var(--ih-selected-line);
    color: var(--ih-accent);
}

#help-app .ih-library-head {
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 12px;
}

#help-app .ih-library-head > span {
    padding-top: 0;
    font-size: 12px;
}

#help-app .ih-question-list:has(.ih-question:not([hidden])) {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--ih-line);
    border-radius: 14px;
    background: var(--ih-bg);
}

#help-app .ih-question-list > .ih-question {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#help-app .ih-question:not([hidden]) ~ .ih-question:not([hidden]) {
    border-top: 1px solid var(--ih-line);
}

#help-app .ih-question-list > .ih-question:is(:hover, :focus-within, .is-open) {
    background: var(--ih-hover);
}

#help-app .ih-question__row {
    min-height: 64px;
    padding-inline: clamp(12px, 2vw, 18px);
}

#help-app .ih-question__toggle {
    min-height: 64px;
    padding-block: 11px;
    gap: 12px;
}

#help-app .ih-question__toggle:focus-visible {
    outline-offset: -2px;
}

#help-app .ih-card-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    padding: 3px;
    color: var(--ih-muted);
}

#help-app .ih-card-heading small {
    margin-bottom: 2px;
    font-size: 12px;
}

#help-app :is(.ih-file-card, .ih-gallery__item) {
    background: var(--ih-bg-alt);
}

#help-app .ih-btn--primary {
    border-color: transparent;
    background: var(--ih-primary);
    color: var(--ih-on-primary);
}

#help-app .ih-btn--primary:hover:not(:disabled) {
    background: var(--ih-primary-hover);
}

#help-app .ih-btn--subtle:is(:hover:not(:disabled), [aria-pressed="true"]) {
    background: var(--ih-hover);
    border-color: var(--ih-line-strong);
    color: var(--ih-text);
}

@media (max-width: 760px) {
    #help-app .ih-hero {
        padding: 18px 0 24px;
        margin-bottom: 22px;
    }

    #help-app :is(.ih-finder, .ih-library-head) h2 {
        font-size: 18px;
    }
}

#help-app #ih-results {
    display: none;
}

body:not([data-site-theme="white"]) #help-app .ih-platform {
    --ih-bg: transparent;
    --ih-line: #405069;
    --ih-hover: #192635;
    --ih-selected: #23364e;
    --ih-selected-line: #6e90bc;
    --ih-accent: #b9d1f1;
}

body:not([data-site-theme="white"])
    #help-app .ih-question-list:has(.ih-question:not([hidden])) {
    --ih-hover: #142236;
    gap: 4px;
    background: transparent;
    border: 0;
}

body:not([data-site-theme="white"])
    #help-app .ih-question-list > .ih-question {
    border-inline-start: 2px solid transparent;
    border-radius: 8px;
}

body:not([data-site-theme="white"])
    #help-app .ih-question:not([hidden]) ~ .ih-question:not([hidden]) {
    border-top-color: transparent;
}

body:not([data-site-theme="white"])
    #help-app .ih-question-list > .ih-question.is-open {
    background: #1b2c43;
    border-inline-start-color: #7898c0;
}


body[data-site-theme="white"]:has(#help-app)::before,
body[data-site-theme="white"]:has(#help-app)::after {
    display: none;
}