:root {
    --ui-accent: #7567e8;
    --ui-accent-strong: #6555df;
    --ui-accent-soft: rgba(117, 103, 232, 0.14);
    --ui-success: #42c995;
    --ui-danger: #f87171;
    --ui-overlay: rgba(4, 5, 9, 0.72);
}

html.dark:not(.m-html) {
    --bg-page: #0c0b14;
    --bg-surface: #14131f;
    --bg-elevated: #1c1a2b;
    --bg-hover: #232036;
    --border-subtle: #272436;
    --border-strong: #3c3752;
    --text-primary: #f2f0fa;
    --text-secondary: #b1adc3;
    --text-tertiary: #9690ac;
    --accent: #9b80ff;
    --accent-hover: #b6a0ff;
    --radius: 14px;
    --radius-sm: 9px;
}

html.theme-light:not(.m-html) {
    --bg-page: #f5f4fa;
    --bg-surface: #ffffff;
    --bg-elevated: #f0edf8;
    --bg-hover: #ebe6f6;
    --border-subtle: #e5e0ee;
    --border-strong: #cdc3df;
    --text-primary: #211a34;
    --text-secondary: #5c536f;
    --text-tertiary: #726682;
    --accent: #7050d4;
    --accent-hover: #5c3bb9;
    --radius: 14px;
    --radius-sm: 9px;
}

body:not(.m-body) .sidebar,
body:not(.m-body) .app-header {
    background: var(--bg-page) !important;
    border-color: var(--border-subtle);
}

body:not(.m-body) .app-header {
    height: 68px;
    flex-shrink: 0;
}

body:not(.m-body) .sidebar-brand {
    margin: 16px 16px 10px;
    padding: 16px 12px;
}

body:not(.m-body) .nav-item {
    margin: 3px 12px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
    transition: background-color 150ms ease, color 150ms ease;
}

body:not(.m-body) .nav-item.active {
    background: var(--bg-hover);
    color: var(--text-primary);
}

body:not(.m-body) .nav-item.active::before {
    left: -12px;
    height: 22px;
    background: var(--accent);
}

body:not(.m-body) .nav-item.active :is(i, svg) {
    color: var(--accent);
}

body:not(.m-body) .nav-section-label {
    padding-top: 14px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}

body:not(.m-body) .content-wrap {
    background: var(--bg-page) !important;
}

.content-wrap :is(h1, .section-title) {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.3;
}

.content-wrap :is(.card, .card-elevated, .panel) {
    border-radius: 14px;
    border-color: var(--border-subtle);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

html.theme-light .content-wrap :is(.card, .card-elevated, .panel) {
    box-shadow: 0 3px 14px rgba(33, 26, 52, 0.04);
}

.content-wrap .stat-strip {
    border-radius: 14px;
    background: var(--bg-surface);
    border-color: var(--border-subtle);
}

.content-wrap .stat-cell {
    padding: 18px 20px;
    border-color: var(--border-subtle);
}

.content-wrap .stat-value {
    color: var(--text-primary);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.04em;
}

html body:not(.m-body) :is(.btn-primary, .btn-primary-sm) {
    background: #7855da;
    border-color: #7855da;
    border-radius: 9px;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(120, 85, 218, 0.14);
}

html body:not(.m-body) :is(.btn-primary, .btn-primary-sm):hover {
    background: #6541c4;
    border-color: #6541c4;
}

.content-wrap :is(.btn-secondary, .btn-secondary-sm, .btn-ghost) {
    border-radius: 9px;
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

.content-wrap :is(.btn-secondary, .btn-secondary-sm, .btn-ghost):hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

html body:not(.m-body) .content-wrap :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="range"]):not([type="color"]),
    select,
    textarea
):not(.beacon-input) {
    border-radius: 9px;
    background-color: var(--bg-elevated) !important;
    border-color: var(--border-strong);
    color: var(--text-primary);
}

html body:not(.m-body) .content-wrap :is(input, select, textarea):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

body:not(.m-body) .app-header input[type="search"] {
    height: 36px;
    background: var(--bg-surface) !important;
    border-color: var(--border-subtle);
    border-radius: 9px;
}

.content-wrap .table-modern {
    border-spacing: 0;
    border-collapse: separate;
}

html body .content-wrap .table-modern thead th {
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.content-wrap .table-modern thead th:first-child { border-radius: 9px 0 0 9px; }
.content-wrap .table-modern thead th:last-child { border-radius: 0 9px 9px 0; }
.content-wrap .table-modern td { padding: 15px 16px; }
html body .content-wrap .table-modern tbody tr:hover td { background: var(--bg-hover); }

.content-wrap :is(.tab, .tab-btn, .settings-tab, .tab-link).active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--ui-accent-soft);
}

html.m-html {
    --m-bg: #0c0b14;
    --m-bg-2: #14131f;
    --m-surface: #14131f;
    --m-surface-2: #1c1a2b;
    --m-surface-3: #232036;
    --m-border: #272436;
    --m-border-strong: #3c3752;
    --m-border-focus: #9b80ff;
    --m-text: #f2f0fa;
    --m-text-dim: #b1adc3;
    --m-text-faint: #9690ac;
    --m-primary: #7855da;
    --m-primary-2: #7855da;
    --m-primary-hover: #6541c4;
    --m-accent: #a68aff;
    --m-radius: 14px;
    --m-radius-sm: 9px;
    --m-radius-lg: 16px;
}

html.m-html.theme-light {
    --m-bg: #f5f4fa;
    --m-bg-2: #ffffff;
    --m-surface: #ffffff;
    --m-surface-2: #f0edf8;
    --m-surface-3: #ebe6f6;
    --m-border: #e5e0ee;
    --m-border-strong: #cdc3df;
    --m-border-focus: #7050d4;
    --m-text: #211a34;
    --m-text-dim: #5c536f;
    --m-text-faint: #726682;
    --m-accent: #7050d4;
}

.m-html .m-header,
.m-html .m-tabbar {
    background: var(--m-bg-2);
    border-color: var(--m-border);
}

.m-html .m-card {
    border-radius: 14px;
    background: var(--m-surface);
    border-color: var(--m-border);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

.m-html.theme-light .m-card {
    box-shadow: 0 3px 14px rgba(33, 26, 52, 0.04);
}

html.m-html .m-btn:not(.m-btn-ghost) {
    border-radius: 10px;
    color: #ffffff;
}

.m-html .m-btn-ghost {
    color: var(--m-text);
    background: var(--m-surface-2);
    border-color: var(--m-border-strong);
}

.m-html .m-tab-active,
.m-html .m-section-title a {
    color: var(--m-accent);
}

.m-html :is(.m-input, .m-select, .m-textarea) {
    border-radius: 10px;
    background: var(--m-surface-2);
    border-color: var(--m-border-strong);
}

html.theme-light {
    --ui-accent: #5d50cf;
    --ui-accent-strong: #4f43bd;
    --ui-accent-soft: rgba(93, 80, 207, 0.11);
    --ui-success: #087b55;
    --ui-danger: #b91c1c;
    --ui-overlay: rgba(15, 23, 42, 0.48);
}

html.mtp-themed-page {
    --bg-page: #0d0d12;
    --bg-surface: #17171d;
    --bg-elevated: #202027;
    --bg-hover: #292932;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text-primary: #ededf1;
    --text-secondary: #b0b0bb;
    --text-tertiary: #9393a1;
    --bg: var(--bg-page);
    --panel: var(--bg-surface);
    --line: var(--border-subtle);
    --txt: var(--text-primary);
    --muted: var(--text-secondary);
    --dim: var(--text-tertiary);
}

html.dark:not(.mtp-themed-page) {
    --text-tertiary: #92929c;
}

.m-html:not(.theme-light) {
    --m-text-faint: #92929c;
}

.changelog-card[hidden],
.m-changelog-card[hidden],
#m-changelog-empty[hidden] {
    display: none !important;
}

html.mtp-themed-page.theme-light {
    --bg-page: #f5f4fa;
    --bg-surface: #ffffff;
    --bg-elevated: #f0edf8;
    --bg-hover: #ebe6f6;
    --border-subtle: #e5e0ee;
    --border-strong: #cdc3df;
    --text-primary: #211a34;
    --text-secondary: #5c536f;
    --text-tertiary: #726682;
}

.mtp-themed-page body {
    background-color: var(--bg-page) !important;
    color: var(--text-primary) !important;
}

.mtp-themed-page .card,
.mtp-themed-page .panel,
.mtp-themed-page .box {
    background: var(--bg-surface);
    border-color: var(--border-subtle);
    color: var(--text-primary);
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

.mtp-themed-page .muted,
.mtp-themed-page .sub,
.mtp-themed-page label.lbl {
    color: var(--text-secondary);
}

.mtp-themed-page .bar {
    background: var(--bg-surface);
    border-color: var(--border-subtle);
}

.mtp-themed-page input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.mtp-themed-page select,
.mtp-themed-page textarea {
    border-color: var(--border-strong);
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.mtp-themed-page .btn-ghost,
.mtp-themed-page .ghost {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    color: var(--text-secondary);
}

html.mtp-themed-page.theme-light .text-white:not([class*="bg-"]):not(.btn-primary),
html.mtp-themed-page.theme-light .gradient-text {
    color: var(--text-primary) !important;
}

html.mtp-themed-page.theme-light .panel-glow {
    background: radial-gradient(ellipse at 28% 12%, rgba(99, 102, 241, 0.12), transparent 58%), #eef0f8;
}

html.mtp-themed-page.theme-light .grid-bg {
    background-image: linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

html.mtp-theme-switching *,
html.mtp-theme-switching *::before,
html.mtp-theme-switching *::after {
    transition: none !important;
}

html,
body {
    color-scheme: dark;
}

html.theme-light,
html.theme-light body {
    color-scheme: light;
}

.sidebar-brand {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.sidebar-brand img {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: contain;
}

html.theme-light .sidebar-brand .text-white {
    color: var(--text-primary, #111827) !important;
}

@keyframes mtp-page-enter {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mtp-nav-progress {
    from { transform: translateX(-100%); }
    to { transform: translateX(260%); }
}

.content-wrap,
.m-main {
    animation: mtp-page-enter 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.mtp-navigating body::after {
    content: "";
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    width: 34%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ui-accent), transparent);
    animation: mtp-nav-progress 700ms ease-in-out infinite;
    pointer-events: none;
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 90ms ease-out both fade-out;
}

::view-transition-new(root) {
    animation: 160ms ease-out both mtp-page-enter;
}

@keyframes fade-out {
    to { opacity: 0; }
}

html.theme-light body:not(.m-body) {
    background-color: var(--bg-page, #f5f6f8) !important;
    color: var(--text-primary, #111827);
}

html.theme-light .bg-zinc-950,
html.theme-light .bg-slate-950,
html.theme-light .bg-gray-950 {
    background-color: #f5f6f8 !important;
    color: #111827 !important;
}

html.theme-light .bg-zinc-900,
html.theme-light .bg-slate-900,
html.theme-light .bg-gray-900 {
    background-color: #ffffff !important;
    color: #111827 !important;
}

html.theme-light .bg-zinc-800,
html.theme-light .bg-slate-800,
html.theme-light .bg-gray-800 {
    background-color: #eef0f3 !important;
    color: #111827 !important;
}

html.theme-light .border-white\/5,
html.theme-light .border-white\/10,
html.theme-light .border-white\/15,
html.theme-light .border-white\/20 {
    border-color: rgba(15, 23, 42, 0.12) !important;
}

html.theme-light .text-zinc-100,
html.theme-light .text-gray-100,
html.theme-light .text-slate-100 {
    color: #111827 !important;
}

html.theme-light .text-zinc-200,
html.theme-light .text-gray-200,
html.theme-light .text-slate-200 {
    color: #1f2937 !important;
}

html.theme-light .text-zinc-500,
html.theme-light .text-gray-500,
html.theme-light .text-slate-500 {
    color: #6b7280 !important;
}

html.theme-light [style*="background:#0a0a0a" i]:not(button):not(.btn-primary):not(.m-btn),
html.theme-light [style*="background: #0a0a0a" i]:not(button):not(.btn-primary):not(.m-btn),
html.theme-light [style*="background:#11151f" i]:not(button):not(.btn-primary):not(.m-btn),
html.theme-light [style*="background: #11151f" i]:not(button):not(.btn-primary):not(.m-btn),
html.theme-light [style*="background:#14141c" i]:not(button):not(.btn-primary):not(.m-btn),
html.theme-light [style*="background: #14141c" i]:not(button):not(.btn-primary):not(.m-btn),
html.theme-light [style*="background:#151515" i]:not(button):not(.btn-primary):not(.m-btn),
html.theme-light [style*="background: #151515" i]:not(button):not(.btn-primary):not(.m-btn),
html.theme-light [style*="background:#18181f" i]:not(button):not(.btn-primary):not(.m-btn),
html.theme-light [style*="background: #18181f" i]:not(button):not(.btn-primary):not(.m-btn),
html.theme-light [style*="background:#1e1e1e" i]:not(button):not(.btn-primary):not(.m-btn),
html.theme-light [style*="background: #1e1e1e" i]:not(button):not(.btn-primary):not(.m-btn) {
    background-color: #ffffff !important;
    color: #111827 !important;
}

html.theme-light [style*="color:#e4e4e7" i],
html.theme-light [style*="color: #e4e4e7" i],
html.theme-light [style*="color:#ededed" i],
html.theme-light [style*="color: #ededed" i],
html.theme-light [style*="color:#fff" i]:not(.btn-primary):not(.m-btn):not([class*="bg-"]),
html.theme-light [style*="color: #fff" i]:not(.btn-primary):not(.m-btn):not([class*="bg-"]) {
    color: #111827 !important;
}

html.theme-light [style*="color:#9b9b9b" i],
html.theme-light [style*="color: #9b9b9b" i],
html.theme-light [style*="color:#a1a1aa" i],
html.theme-light [style*="color: #a1a1aa" i],
html.theme-light [style*="color:#d4d4d8" i],
html.theme-light [style*="color: #d4d4d8" i] {
    color: #4b5563 !important;
}

html.theme-light input,
html.theme-light select,
html.theme-light textarea {
    color-scheme: light;
}

html.theme-light .m-avatar {
    background: #e5e7eb;
    color: #111827;
}

html.theme-light .m-page-finder {
    background: rgba(15, 23, 42, 0.38) !important;
}

html.theme-light .m-page-finder-panel,
html.theme-light .m-page-finder-input {
    background: var(--m-surface, #ffffff) !important;
    color: var(--m-text, #111827) !important;
}

.mtp-changelog-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--ui-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mtp-changelog-modal {
    position: relative;
    width: min(620px, 100%);
    max-height: min(84vh, 760px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text-primary, var(--m-text, #ededed));
    background:
        radial-gradient(circle at 82% -12%, rgba(117, 103, 232, 0.22), transparent 42%),
        var(--bg-surface, var(--m-surface, #151515));
    border: 1px solid var(--border-strong, var(--m-border-strong, rgba(255, 255, 255, 0.16)));
    border-radius: 22px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.mtp-changelog-head {
    position: relative;
    padding: 28px 30px 20px;
    border-bottom: 1px solid var(--border-subtle, var(--m-border, rgba(255, 255, 255, 0.09)));
}

.mtp-changelog-kicker,
.changelog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ui-accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
}

.mtp-changelog-kicker::before,
.changelog-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px var(--ui-accent-soft);
}

.mtp-changelog-title {
    margin: 12px 42px 5px 0;
    color: var(--text-primary, var(--m-text, #ededed));
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 680;
    letter-spacing: -0.035em;
}

.mtp-changelog-subtitle {
    margin: 0;
    color: var(--text-tertiary, var(--m-text-faint, #8c8c94));
    font-size: 0.82rem;
}

.mtp-changelog-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-subtle, var(--m-border, rgba(255, 255, 255, 0.09)));
    border-radius: 11px;
    background: var(--bg-elevated, var(--m-surface-2, #1e1e1e));
    color: var(--text-secondary, var(--m-text-dim, #a1a1aa));
    cursor: pointer;
}

.mtp-changelog-close:hover {
    color: var(--text-primary, var(--m-text, #ededed));
    border-color: var(--border-strong, var(--m-border-strong, rgba(255, 255, 255, 0.16)));
}

.mtp-changelog-scroll {
    overflow-y: auto;
    padding: 12px 30px 6px;
}

.mtp-changelog-entry {
    position: relative;
    padding: 18px 0 20px 26px;
    border-bottom: 1px solid var(--border-subtle, var(--m-border, rgba(255, 255, 255, 0.09)));
}

.mtp-changelog-entry:last-child {
    border-bottom: 0;
}

.mtp-changelog-entry::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ui-accent);
    box-shadow: 0 0 0 6px var(--ui-accent-soft);
}

.mtp-changelog-entry h3 {
    margin: 0 0 6px;
    color: var(--text-primary, var(--m-text, #ededed));
    font: 650 0.98rem/1.35 Poppins, Inter, sans-serif;
    letter-spacing: -0.02em;
}

.mtp-changelog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-tertiary, var(--m-text-faint, #8c8c94));
    font-size: 0.7rem;
}

.mtp-changelog-version {
    padding: 3px 7px;
    border: 1px solid rgba(117, 103, 232, 0.25);
    border-radius: 999px;
    color: var(--ui-accent);
    background: var(--ui-accent-soft);
    font-weight: 750;
}

.mtp-changelog-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mtp-changelog-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    color: var(--text-secondary, var(--m-text-dim, #b7b7bd));
    font-size: 0.86rem;
    line-height: 1.55;
}

.mtp-changelog-check {
    flex: none;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(66, 201, 149, 0.12);
    color: var(--ui-success);
    font-size: 0.65rem;
    font-weight: 800;
}

.mtp-changelog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 30px 24px;
    border-top: 1px solid var(--border-subtle, var(--m-border, rgba(255, 255, 255, 0.09)));
}

.mtp-changelog-history {
    color: var(--text-secondary, var(--m-text-dim, #a1a1aa));
    font-size: 0.8rem;
    font-weight: 600;
}

.mtp-changelog-button {
    min-width: 130px;
    padding: 10px 18px;
    border: 1px solid var(--ui-accent);
    border-radius: 11px;
    background: var(--ui-accent);
    color: #ffffff;
    font: 650 0.86rem/1 Inter, sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(101, 85, 223, 0.24);
}

.mtp-changelog-button:hover {
    background: var(--ui-accent-strong);
}

.changelog-page {
    max-width: 980px;
}

.changelog-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--border-subtle, var(--m-border));
    border-radius: 20px;
    background:
        radial-gradient(circle at 84% 18%, rgba(117, 103, 232, 0.2), transparent 34%),
        var(--bg-surface, var(--m-surface));
}

.changelog-hero::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -90px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(117, 103, 232, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(117, 103, 232, 0.04), 0 0 0 70px rgba(117, 103, 232, 0.025);
    pointer-events: none;
}

.changelog-hero h1 {
    position: relative;
    z-index: 1;
    margin: 15px 0 8px;
    font-size: clamp(2rem, 6vw, 3.4rem);
    letter-spacing: -0.055em;
}

.changelog-hero p {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0;
    color: var(--text-secondary, var(--m-text-dim));
}

.changelog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.changelog-search-wrap {
    position: relative;
    flex: 1 1 280px;
}

.changelog-search-wrap i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--text-tertiary, var(--m-text-faint));
}

.changelog-search {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border-subtle, var(--m-border));
    border-radius: 12px;
    background: var(--bg-surface, var(--m-surface));
    color: var(--text-primary, var(--m-text));
    font-size: 0.88rem;
}

.changelog-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle, var(--m-border));
    border-radius: 12px;
    background: var(--bg-surface, var(--m-surface));
    color: var(--text-secondary, var(--m-text-dim));
    font-size: 0.78rem;
    font-weight: 650;
}

.changelog-action:hover {
    color: var(--text-primary, var(--m-text));
    border-color: var(--border-strong, var(--m-border-strong));
}

.changelog-timeline {
    position: relative;
    display: grid;
    gap: 14px;
}

.changelog-card-upgraded {
    position: relative;
    overflow: hidden;
    padding: 22px 24px 22px 30px;
    border: 1px solid var(--border-subtle, var(--m-border));
    border-radius: 16px;
    background: var(--bg-surface, var(--m-surface));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.changelog-card-upgraded::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--ui-accent), rgba(117, 103, 232, 0.12));
}

.changelog-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.changelog-card-head h2 {
    margin: 0;
    color: var(--text-primary, var(--m-text));
    font: 650 1.05rem/1.35 Poppins, Inter, sans-serif;
    letter-spacing: -0.025em;
}

.changelog-card-meta {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--text-tertiary, var(--m-text-faint));
    font-size: 0.7rem;
}

.changelog-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.changelog-lines li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    color: var(--text-secondary, var(--m-text-dim));
    font-size: 0.875rem;
    line-height: 1.55;
}

.changelog-lines li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--ui-accent);
    box-shadow: 0 0 0 4px var(--ui-accent-soft);
}

.m-changelog-summary {
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid var(--m-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 0%, rgba(117, 103, 232, 0.2), transparent 42%),
        var(--m-surface);
}

.m-changelog-summary h2 {
    margin: 10px 0 4px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.m-changelog-summary p {
    margin: 0;
    color: var(--m-text-dim);
    font-size: 12.5px;
}

.m-changelog-search {
    position: sticky;
    z-index: 4;
    top: 0;
    margin-bottom: 14px;
    padding-top: 2px;
}

.m-changelog-search input {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px 11px 40px;
    border: 1px solid var(--m-border);
    border-radius: 12px;
    background: var(--m-surface);
    color: var(--m-text);
}

.m-changelog-search i {
    position: absolute;
    top: calc(50% + 1px);
    left: 14px;
    transform: translateY(-50%);
    color: var(--m-text-faint);
}

.m-changelog-card {
    position: relative;
    margin-bottom: 12px;
    padding: 18px 17px 18px 21px;
    overflow: hidden;
    border: 1px solid var(--m-border);
    border-radius: 14px;
    background: var(--m-surface);
}

.m-changelog-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--ui-accent);
}

.m-changelog-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.m-changelog-card h3 {
    margin: 0;
    color: var(--m-text);
    font-size: 15px;
    line-height: 1.35;
}

.m-changelog-card time {
    display: block;
    margin-top: 4px;
    color: var(--m-text-faint);
    font-size: 11.5px;
}

.m-changelog-card ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.m-changelog-card li {
    position: relative;
    margin: 8px 0;
    padding-left: 15px;
    color: var(--m-text-dim);
    font-size: 13px;
    line-height: 1.55;
}

.m-changelog-card li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ui-accent);
}

.mtp-tour-dim,
.m-tour-dim {
    position: fixed;
    background: rgba(4, 5, 9, 0.7);
    backdrop-filter: blur(1px);
}

#mtp-tour-ring,
#m-tour-ring {
    position: fixed;
    border-radius: 14px;
    box-shadow: 0 0 0 2px var(--ui-accent), 0 0 0 8px rgba(117, 103, 232, 0.25), 0 18px 50px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: all 180ms ease;
}

#mtp-tour-card,
#m-tour-card {
    position: fixed;
    overflow: hidden;
    color: var(--text-primary, var(--m-text));
    background:
        radial-gradient(circle at 92% -5%, rgba(117, 103, 232, 0.21), transparent 42%),
        var(--bg-surface, var(--m-surface));
    border: 1px solid var(--border-strong, var(--m-border-strong));
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.46);
}

#mtp-tour-card {
    width: 380px;
    max-width: calc(100vw - 24px);
}

#m-tour-card {
    left: 12px;
    right: 12px;
}

#mtp-tour-progress,
#m-tour-progress {
    height: 3px;
    overflow: hidden;
    margin: -20px -20px 18px;
    background: var(--ui-accent-soft);
}

#mtp-tour-progress span,
#m-tour-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--ui-accent), #9b8cff);
    transition: width 200ms ease;
}

#mtp-tour-count,
#m-tour-count {
    margin-bottom: 8px;
    color: var(--ui-accent);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

#mtp-tour-title,
#m-tour-title {
    margin: 0 0 8px;
    color: var(--text-primary, var(--m-text));
    font-family: Poppins, Inter, sans-serif;
    font-size: 1.08rem;
    font-weight: 680;
    letter-spacing: -0.025em;
}

#mtp-tour-body,
#m-tour-body {
    margin: 0;
    color: var(--text-secondary, var(--m-text-dim));
    font-size: 0.84rem;
    line-height: 1.62;
}

#mtp-tour-actions,
#m-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

#mtp-tour-actions button,
#m-tour-actions button {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 650 0.78rem/1 Inter, sans-serif;
    cursor: pointer;
}

#mtp-tour-skip,
#m-tour-skip {
    padding-left: 0 !important;
    background: transparent;
    color: var(--text-tertiary, var(--m-text-faint));
}

#mtp-tour-skip:hover,
#m-tour-skip:hover {
    color: var(--text-primary, var(--m-text));
}

#mtp-tour-back,
#m-tour-back {
    border-color: var(--border-strong, var(--m-border-strong)) !important;
    background: var(--bg-elevated, var(--m-surface-2));
    color: var(--text-secondary, var(--m-text-dim));
}

#mtp-tour-next,
#m-tour-next {
    min-width: 78px;
    border-color: var(--ui-accent) !important;
    background: var(--ui-accent);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(101, 85, 223, 0.22);
}

#mtp-tour-actions button:focus-visible,
#m-tour-actions button:focus-visible,
.mtp-changelog-close:focus-visible,
.mtp-changelog-button:focus-visible {
    outline: 3px solid rgba(117, 103, 232, 0.35);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .mtp-changelog-overlay {
        align-items: flex-end;
        padding: 10px;
    }

    .mtp-changelog-modal {
        max-height: 88vh;
        border-radius: 20px 20px 14px 14px;
    }

    .mtp-changelog-head {
        padding: 23px 20px 17px;
    }

    .mtp-changelog-close {
        top: 18px;
        right: 17px;
    }

    .mtp-changelog-scroll {
        padding: 8px 20px 4px;
    }

    .mtp-changelog-foot {
        padding: 15px 20px 20px;
    }

    .changelog-card-head {
        display: block;
    }

    .changelog-card-meta {
        justify-content: flex-start;
        margin-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-wrap,
    .m-main,
    html.mtp-navigating body::after,
    #mtp-tour-ring,
    #m-tour-ring,
    #mtp-tour-progress span,
    #m-tour-progress span {
        animation: none !important;
        transition: none !important;
    }
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
}

@media print {
    .mtp-themed-page body,
    .mtp-themed-page .card,
    .mtp-themed-page .panel,
    .mtp-themed-page .box {
        background: #ffffff !important;
        color: #000000 !important;
        border-color: #dddddd !important;
    }
}

body:not(.m-body) .app-header{gap:16px;min-height:64px;height:auto}
.app-search{display:none;flex:none}
.app-search-control{display:flex;align-items:center;gap:10px;height:36px;width:clamp(180px,24vw,300px);padding:0 12px;border:1px solid var(--border-subtle);border-radius:10px;background:var(--bg-surface);color:var(--text-tertiary)}
.app-search-icon{display:inline-flex;align-items:center;flex:none;position:static;pointer-events:none}
html body:not(.m-body) .app-header .app-search-control input{flex:1;min-width:0;width:100%;height:34px;margin:0;padding:0!important;border:0!important;border-radius:0;outline:none!important;box-shadow:none!important;background:transparent!important;color:var(--text-primary);font-size:12px}
.app-search-control:focus-within{outline:2px solid var(--ui-accent);outline-offset:2px}
.app-company-switcher{min-width:0;flex:none}
body:not(.m-body) .app-header .app-company-switcher select{height:36px;max-width:180px;min-width:110px;padding:0 30px 0 10px;font-size:12px;border-radius:10px}
.app-company-switcher>span{display:inline-flex;align-items:center;flex:none}
html body:not(.m-body) input.pl-7{padding-left:1.75rem!important}
html body:not(.m-body) input.pl-8{padding-left:2rem!important}
html body:not(.m-body) input.pl-9{padding-left:2.25rem!important}
html body:not(.m-body) input.pl-10{padding-left:2.5rem!important}
html body:not(.m-body) input.pl-11{padding-left:2.75rem!important}
html body:not(.m-body) input.pl-12{padding-left:3rem!important}
html body:not(.m-body) input.pl-14{padding-left:3.5rem!important}
html body:not(.m-body) input.pl-16{padding-left:4rem!important}
html body:not(.m-body) input.pr-7{padding-right:1.75rem!important}
html body:not(.m-body) input.pr-8{padding-right:2rem!important}
html body:not(.m-body) input.pr-9{padding-right:2.25rem!important}
html body:not(.m-body) input.pr-10{padding-right:2.5rem!important}
html body:not(.m-body) input.pr-12{padding-right:3rem!important}
@media(min-width:640px){.app-search{display:block}}
@media(max-width:1280px){body:not(.m-body) .app-header #cmdk-btn{display:none}.app-search-control{width:clamp(170px,21vw,260px)}}
@media(max-width:1000px){body:not(.m-body) .app-header .header-username{display:none}.app-search-control{width:190px}.app-company-switcher>span{display:none}.app-company-switcher select{max-width:145px}}
@media(max-width:767px){.app-company-switcher{display:none!important}.app-search-control{width:min(240px,40vw)}}
