:root {
    --im-ink: #1a1a1a; --im-ink2: #3a3a3a; --im-ink3: #6b6b6b;
    --im-btn: #86198f; --im-btn-dark: #701a75;
    --im-accent: #d946ef; --im-accent-bg: #fdf4ff;
    --im-surface: #f8f6fb; --im-border: #e6e3ee;
    --im-ground: #0a0713; --im-ground-2: #08060f;
    --im-header-h: 56px;
    --im-font: 'Inter', 'Segoe UI', Arial, sans-serif;
    --im-serif: 'Libre Baskerville', Georgia, serif;
    --ink: #1a1a1a; --ink2: #3a3a3a; --ink3: #6b6b6b;
    --btn: #86198f; --btn-dark: #701a75;
    --accent: #d946ef; --accent-dark: #c026d3; --accent-bg: #fdf4ff;
    --surface: #f8f6fb; --border: #e6e3ee;
    --ground: #0a0713; --ground-2: #08060f;
}
:root body .im-li { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--im-btn) !important; border-color: var(--im-btn) !important; color: #fff !important; }
:root body .im-li:hover { background: var(--im-btn-dark) !important; border-color: var(--im-btn-dark) !important; color: #fff !important; text-decoration: none !important; }
.im-li-logo { display: block; flex: none; width: 1.1em; height: 1.1em; fill: currentColor; }
.im-members-tag { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border-radius: 7px; background: linear-gradient(135deg, #86198f, #4c1d95); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); color: #fff; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
.im-members-tag svg { display: block; flex: none; width: 14px; height: 14px; }
.im-downloads-s .im-members-tag, .im-library-head .im-members-tag { margin-bottom: 16px; }
.im-lock-badge, .im-member-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #86198f, #4c1d95); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 12px rgba(26, 16, 51, 0.22); color: #fff; }
.im-lock-badge svg, .im-member-badge svg { display: block; width: 14px; height: 14px; }
.im-download-cover .im-lock-badge, .im-library-cover .im-lock-badge, .im-download-cover .im-member-badge, .im-library-cover .im-member-badge { position: absolute; top: 8px; left: 8px; }
.im-locked { position: relative; }
.im-locked .im-lock-badge { position: absolute; top: -10px; right: -10px; width: 22px; height: 22px; border-radius: 6px; }
.im-locked .im-lock-badge svg { width: 12px; height: 12px; }
.im-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.im-visitor .im-prose a[href^="/media/files/"]::after { content: "Members only"; display: inline-block; margin-left: 8px; padding: 0 8px 0 22px; border-radius: 5px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") no-repeat 7px 50% / 11px 11px, linear-gradient(135deg, #86198f, #4c1d95); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 20px; text-transform: none; vertical-align: 1px; }


:where(.im-skip, .im-header, .im-footer), :where(.im-header, .im-footer) *, :where(.im-header, .im-footer) *::before, :where(.im-header, .im-footer) *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--im-ink); font-family: var(--im-font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { max-width: 100%; }
main { display: block; min-height: 60vh; }
:where(main) :where(h1, h2, h3, h4) { font-family: var(--im-font); line-height: 1.2; }

.im-skip { position: absolute; left: 12px; top: -48px; z-index: 1000; padding: 10px 16px; border-radius: 6px; background: #fff; color: var(--im-ink); font-weight: 700; font-size: 14px; text-decoration: none; transition: top .15s ease; }
.im-skip:focus { top: 10px; }

.im-header { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--im-header-h); background: rgba(8, 6, 15, 0.96); border-bottom: 1px solid rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); }
.im-header-inner { max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.im-logo { display: flex; align-items: center; flex-shrink: 0; }
.im-logo img { display: block; height: 30px; width: auto; }
.im-nav { display: flex; align-items: center; gap: 4px; }
.im-nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 6px; color: rgba(255, 255, 255, 0.82); font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
.im-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.im-nav a.active { color: #fff; box-shadow: inset 0 -2px 0 var(--im-accent); border-radius: 0; }
.im-nav a:focus-visible, .im-menu-btn:focus-visible, .im-logo:focus-visible { outline: 2px solid var(--im-accent); outline-offset: 2px; }
.im-nav a.im-nav-ext span { margin-left: 4px; font-size: 12px; opacity: 0.7; }
.im-nav a.im-nav-join { gap: 8px; height: 34px; margin-left: 8px; padding: 0 14px; border-radius: 6px; }
.im-nav a.im-nav-member { gap: 8px; height: 32px; margin-left: 10px; padding: 0 12px 0 10px; border: 1px solid rgba(240, 171, 252, 0.34); border-radius: 8px; background: linear-gradient(135deg, rgba(134, 25, 143, 0.6), rgba(76, 29, 149, 0.6)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); color: #fff; transition: border-color .15s ease; }
.im-nav a.im-nav-member:hover { border-color: rgba(240, 171, 252, 0.6); background: linear-gradient(135deg, rgba(160, 32, 172, 0.7), rgba(94, 40, 178, 0.7)); }
.im-nav-member-icon { display: block; flex: none; width: 16px; height: 16px; color: #f5d0fe; }
.im-nav-member-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 600; }
.im-nav-member-tag { color: rgba(245, 208, 254, 0.78); font-size: 12.5px; font-weight: 500; }
.im-nav-member-name + .im-nav-member-tag::before { content: "\00b7"; margin-right: 5px; }
.im-header.im-header--member { background: rgba(24, 17, 40, 0.97); border-bottom-color: transparent; }
.im-header--member::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, rgba(217, 70, 239, 0) 0%, rgba(217, 70, 239, 0.9) 28%, rgba(123, 92, 255, 0.9) 72%, rgba(123, 92, 255, 0) 100%); pointer-events: none; }
.im-menu-btn { display: none; width: 42px; height: 42px; margin-right: -8px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.im-menu-btn svg { display: block; margin: auto; }
.im-menu-btn .im-close { display: none; }

@media (max-width: 1260px) {
    .im-menu-btn { display: block; }
    .im-nav { display: none; position: absolute; top: var(--im-header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--im-ground-2); border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); max-height: calc(100vh - var(--im-header-h)); overflow-y: auto; }
    .im-header[data-open] .im-nav { display: flex; }
    .im-header[data-open] .im-menu-btn .im-open { display: none; }
    .im-header[data-open] .im-menu-btn .im-close { display: block; }
    .im-nav a { height: 48px; padding: 0 8px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0; }
    .im-nav a.active { box-shadow: inset 3px 0 0 var(--im-accent); padding-left: 14px; }
    .im-nav a.im-nav-join { justify-content: center; height: 46px; margin: 10px 0 0; border-bottom: 0; border-radius: 6px; }
    .im-nav a.im-nav-member { gap: 10px; height: 54px; margin: 12px 0 0; padding: 0 16px 0 14px; border-radius: 12px; }
    .im-nav-member-icon { width: 20px; height: 20px; }
    .im-nav-member-name { max-width: none; font-size: 16px; }
    .im-nav-member-tag { font-size: 14px; }
}

.im-footer { position: relative; background: var(--im-ground-2); color: rgba(244, 242, 251, 0.72); font-size: 15px; line-height: 1.5; }
.im-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(224, 72, 240, 0.5), rgba(123, 92, 255, 0.5), transparent); }
.im-footer a { color: rgba(244, 242, 251, 0.72); text-decoration: none; }
.im-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.im-footer-inner { max-width: 1200px; margin: 0 auto; padding: 60px 28px 28px; }
.im-footer-top { display: grid; grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.im-footer-col { display: grid; align-content: start; gap: 26px; }
.im-footer-brand img { display: block; height: 28px; width: auto; margin-bottom: 18px; }
.im-footer-brand p { margin: 0 0 18px; max-width: 30ch; font-size: 14.5px; color: rgba(244, 242, 251, 0.6); }
.im-footer-brand .im-footer-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 6px; border: 1.5px solid rgba(217, 70, 239, 0.55); color: #fff; font-weight: 700; font-size: 14px; }
.im-footer-brand .im-footer-cta:hover { background: var(--im-btn); border-color: var(--im-btn); text-decoration: none; }
.im-footer-title { margin: 0 0 10px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.im-footer ul { list-style: none; margin: 0; padding: 0; }
.im-footer li { margin: 0 0 5px; font-size: 14px; }
.im-footer-bottom { display: grid; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13.5px; color: rgba(244, 242, 251, 0.5); }
.im-footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.im-footer-bottom li { margin: 0; font-size: 13.5px; }
.im-footer-bottom p { margin: 0; }
.im-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.im-footer-sep { color: rgba(244, 242, 251, 0.28); }
.im-footer-member { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 48px; padding: 24px 28px; border: 1px solid rgba(217, 70, 239, 0.28); border-radius: 14px; background: rgba(217, 70, 239, 0.06); }
.im-footer-member p { margin: 0; max-width: 72ch; font-size: 14.5px; color: rgba(244, 242, 251, 0.72); }
.im-footer-member .im-footer-member-title { margin-bottom: 6px; color: #fff; font-size: 16px; font-weight: 700; }
.im-footer-member-btn { flex: none; display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 6px; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.im-footer-member .im-footer-member-li { margin-top: 6px; color: rgba(244, 242, 251, 0.5); font-size: 13px; }
.im-footer-member--in { padding: 16px 22px; }
.im-footer-member--in strong { color: #fff; }
.im-footer-member--in a { flex: none; color: #f0abfc; font-weight: 700; white-space: nowrap; }


@media (max-width: 1100px) {
    .im-footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .im-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .im-footer-inner { padding: 56px 20px 28px; }
    .im-footer-member { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
    .im-footer-links { display: grid; gap: 8px; }
    .im-footer-sep { display: none; }
    .im-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}

.im-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.im-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink) !important; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.im-card:hover { transform: translateY(-3px); border-color: rgba(134, 25, 143, 0.35); box-shadow: 0 18px 44px rgba(26, 16, 51, 0.10); }
.pm a.im-card, .pm a.im-card:hover, a.im-card:hover { text-decoration: none !important; }
.pm .im-card:hover h3 { color: var(--btn) !important; }
.im-card h3 { transition: color .15s ease; }
.im-card-media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #1a1033, #0a0713); overflow: hidden; }
.im-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.im-card-topic { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--btn); }
.im-card h3 { font-size: 19px !important; line-height: 1.3 !important; }
.im-card p { font-size: 15px !important; line-height: 1.5 !important; color: var(--ink2) !important; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 0 1 auto; }
.im-card-meta { font-size: 13px; color: var(--ink3); margin-top: auto; }
.im-card--large { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-top: 14px; }
.im-card--large .im-card-media { aspect-ratio: auto; min-height: 340px; }
.im-card--large .im-card-body { justify-content: center; padding: 40px; gap: 14px; }
.im-card--large h3 { font-size: clamp(24px, 2.6vw, 32px) !important; line-height: 1.2 !important; }
.im-card--large p { -webkit-line-clamp: 5; line-clamp: 5; font-size: 16.5px !important; }
.im-card--large .im-card-meta { margin-top: 0; }
@media (max-width: 960px) {
    .im-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .im-card--large { grid-template-columns: 1fr; }
    .im-card--large .im-card-media { min-height: 0; aspect-ratio: 16 / 9; }
    .im-card--large .im-card-body { padding: 26px; }
}
@media (max-width: 640px) {
    .im-grid { grid-template-columns: 1fr; }
}
.im-related-more { margin-top: 28px !important; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; font-size: 15px; }

.im-downloads-s { border-top: 1px solid var(--border); }
.im-downloads-s .pm-c { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.im-downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 24px; margin-top: 28px; }
.im-download { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 22px; align-items: start; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.im-download-cover { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(26, 16, 51, 0.10); background: #fff; }
.im-download-cover img { display: block; width: 100%; height: auto; }
.im-download-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.im-download-meta { font-size: 11.5px !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--btn) !important; }
.im-download h3 { font-size: 18px !important; line-height: 1.3 !important; }
.im-download h3 a { color: var(--ink) !important; }
.im-download h3 a:hover { color: var(--btn) !important; }
.im-download p { font-size: 15px !important; line-height: 1.5 !important; color: var(--ink2) !important; }
.im-download .pm-btn { margin-top: 4px; padding: 10px 18px; font-size: 14px !important; white-space: nowrap; }
.im-downloads-join { margin-top: 8px !important; max-width: 72ch; color: var(--ink2) !important; font-size: 15px !important; }
.im-downloads-join a { font-weight: 700; }
.pm-s.im-invite-s { padding-top: 0; }
.im-invite-s .pm-c { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.im-invite { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 30px 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.im-invite-text { max-width: 70ch; }
.im-invite h2 { margin: 6px 0 10px !important; font-size: 24px !important; }
.im-invite p { margin: 0 !important; color: var(--ink2) !important; font-size: 15px !important; line-height: 1.55 !important; }
.im-invite-btn { flex: none; white-space: nowrap; }
.im-invite p.im-invite-li { margin-top: 8px !important; color: var(--ink3) !important; font-size: 13.5px !important; }
.im-download-cover { position: relative; }
@media (max-width: 640px) {
    .im-downloads-s .pm-c { padding: 0 20px; }
    .im-downloads { grid-template-columns: 1fr; }
    .im-download { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; }
    .im-invite-s .pm-c { padding: 0 20px; }
    .im-invite { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 22px; }
}

.pm-cont-s .pm-c, .pm-author-s .pm-c { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.pm-cont-s { padding: 58px 0 62px !important; }
.pm-author-s { padding: 50px 0 62px !important; }
.pm-cont-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.pm-cont { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: 12px; text-decoration: none !important; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.pm-cont:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 26px rgba(134,25,143,0.10); text-decoration: none !important; }
.pm-cont-kind { font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--ink3) !important; }
.pm-cont-name { font-size: 16px !important; font-weight: 700 !important; color: var(--ink) !important; line-height: 1.3 !important; }
.pm-cont:hover .pm-cont-name { color: var(--btn) !important; }
.pm-cont-note { margin-top: 18px; font-size: 15px !important; color: var(--ink3) !important; }
.pm-author-s .pm-author-compact { margin-top: 18px; }
.pm-author-updated { margin-top: 10px !important; font-size: 13px !important; color: var(--ink3) !important; }
.im-band .im-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.im-band h2 { margin-bottom: 10px !important; }
.im-band p { color: rgba(244, 242, 251, 0.72) !important; max-width: 60ch; }
@media (max-width: 700px) {
    .pm-cont-s { padding: 40px 0 44px !important; }
    .pm-author-s { padding: 34px 0 44px !important; }
    .pm-cont-grid { grid-template-columns: 1fr; }
    .pm-author-compact { flex-direction: column; gap: 18px; }
}

details.pm-faq-item > summary { list-style: none; }
details.pm-faq-item > summary::-webkit-details-marker { display: none; }
details.pm-faq-item .pm-faq-a { display: block; }
details.pm-faq-item[open] .pm-faq-icon { transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
    , *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
