#mk {
    --p: #8f5aff;
    --p-ink: #5b2fd6;
    --surface: #f5f6f8;
    --surface-strong: #eceef1;
    --line-strong: #d4d8df;
    --line: #e2e5ea;
    --line-2: #edf0f3;
    --ink: #20242c;
    --ink-2: #4b5563;
    --ink-3: #666f7e;
    --c-com: #1baf7a;
    --c-inf: #2a78d6;
    --c-mix: #eb6834;
    --ok: #12805c;
    --warn: #b26a00;
    --bad: #c43d3d;
    --r: 12px;
    --mk-header-offset: 72px;
    color: var(--ink);
}

#mk *,
#mk *::before,
#mk *::after {
    box-sizing: border-box;
}

#mk [hidden] {
    display: none !important;
}

.mk-s2 {
    display: inline-flex;
    align-items: center;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: #fff4dc;
    color: #8a5a00;
    border: 1px solid #f0d9a4;
    border-radius: 999px;
    padding: 1px 7px;
    vertical-align: middle;
    margin-left: 6px;
    white-space: nowrap;
}

.mk-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 18px;
}

.mk-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
    line-height: 1.2;
}

.mk-head__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-strong);
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mk-head__icon svg {
    width: 24px;
    height: 24px;
}

.mk-lead {
    color: var(--ink-2);
    margin: 6px 0 0;
    font-size: .95rem;
}

.mk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.mk-meta span {
    font-size: .78rem;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-2);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

.mk-head--form {
    flex-wrap: nowrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

#mk .page-indexation__quota {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 14rem;
    padding: .75rem 1rem;
    background: rgba(143, 90, 255, .08);
    border: 1px solid #8f5aff;
    border-radius: .5rem;
    color: #000;
}

#mk .page-indexation__quota-label {
    color: #5f5f5f;
    font-size: .75rem;
    margin-bottom: .125rem;
}

.mk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mk-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: 0 1px 2px rgba(29, 26, 38, .04);
}

.mk-card__body {
    padding: 20px;
}

.mk-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.mk-card__sub {
    font-size: .82rem;
    color: var(--ink-3);
    margin: 0;
}

.mk-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 9px;
    font-size: .86rem;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: border-color .12s, background .12s;
}

.mk-btn:hover:not(:disabled) {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}

.mk-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.mk-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.mk-btn--primary {
    background: var(--p);
    border-color: var(--p);
    color: #fff;
}

.mk-btn--primary:hover:not(:disabled) {
    background: #7d45f5;
    border-color: #7d45f5;
    color: #fff;
}

.mk-btn--lg {
    padding: 12px 18px;
    font-size: .95rem;
    border-radius: 10px;
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
}

.mk-btn--sm {
    padding: 5px 10px;
    font-size: .78rem;
    border-radius: 8px;
}

.mk-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.mk-step {
    display: flex;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid var(--line-2);
}

.mk-step:last-child {
    border-bottom: 0;
}

.mk-step__n {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-strong);
    color: var(--ink-2);
    font-weight: 700;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mk-step__body {
    flex: 1;
    min-width: 0;
}

.mk-step__title {
    font-weight: 700;
    font-size: 1rem;
    margin: 3px 0 12px;
}

.mk-step__title[for] {
    display: block;
}

.mk-field-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-2);
    margin: 0 0 6px;
}

.mk-hint {
    font-size: .78rem;
    color: var(--ink-3);
    margin-top: 6px;
}

.mk-error {
    font-size: .78rem;
    color: var(--bad);
    font-weight: 600;
    margin-top: 6px;
}

#mk textarea.form-control,
#mk input.form-control,
#mk select.form-control {
    border-radius: 9px;
    border-color: #dcd8e5;
    font-size: .9rem;
}

#mk textarea.form-control {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

#mk #mk-kw {
    min-height: 21.875rem;
}

#mk .form-control:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 3px rgba(143, 90, 255, .15);
}

.mk-src {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.mk-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mk-tile {
    position: relative;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    padding: 12px 12px 12px 40px;
    cursor: pointer;
    margin: 0;
    background: #fff;
    transition: border-color .12s, box-shadow .12s, background .12s;
}

.mk-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mk-tile::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 14px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #c9c4d6;
    background: #fff;
}

.mk-tile.is-on {
    border-color: var(--p);
    background: var(--surface);
}

.mk-tile.is-on::before {
    border: 5px solid var(--p);
}

.mk-tile strong {
    display: block;
    font-size: .9rem;
}

.mk-tile small {
    display: block;
    color: var(--ink-3);
    font-size: .76rem;
    line-height: 1.35;
    margin-top: 3px;
}

.mk-tile__heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 8px;
}

.mk-tile strong {
    overflow-wrap: anywhere;
}

.mk-tile em {
    font-style: normal;
    font-size: .66rem;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--surface-strong);
    border-radius: 999px;
    padding: 1px 7px;
}

.mk-tile:focus-within {
    outline: 2px solid var(--p);
    outline-offset: 2px;
}

.mk-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.mk-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mk-mode-pic {
    display: block;
    margin: 8px 0 2px;
    height: 34px;
    max-width: 120px;
}

.mk-seg {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
    flex-wrap: wrap;
}

.mk-seg button {
    border: 0;
    background: transparent;
    padding: 5px 12px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink-2);
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
}

.mk-seg button.is-on {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(29, 26, 38, .12);
}

.mk-checks {
    display: grid;
    gap: 8px;
}

.mk-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .88rem;
    margin: 0;
    cursor: pointer;
}

.mk-check input {
    margin-top: 3px;
    accent-color: #8f5aff;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mk-check small {
    display: block;
    color: var(--ink-3);
    font-size: .76rem;
}

.mk-check code {
    color: var(--p-ink);
    background: var(--surface);
    padding: 0 5px;
    border-radius: 4px;
    font-size: .8rem;
}

.mk-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 6px;
    vertical-align: 1px;
}

.mk-tag--free {
    background: #e5f6ef;
    color: var(--ok);
}

.mk-tag--paid {
    background: #f3f4f6;
    color: var(--ink-2);
}

/* Searchable Region Picker */
.mk-region-wrap {
    position: relative;
}

.mk-region-pop {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(29, 26, 38, .14);
    z-index: 60;
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
}

.mk-region-pop.is-up {
    top: auto;
    bottom: calc(100% + 4px);
}

.mk-region-opt {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: .86rem;
    color: var(--ink);
    cursor: pointer;
}

.mk-region-opt:hover,
.mk-region-opt.is-on {
    background: var(--surface);
    color: var(--p-ink);
}

#sc-search-settings,
#mk-detail {
    scroll-margin-top: calc(var(--mk-header-offset) + 12px);
}

.mk-mobile-launch {
    display: none;
}

/* Sidebar */
.mk-summary {
    position: sticky;
    top: calc(var(--mk-header-offset) + 16px);
}

.mk-summary__sec {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-2);
}

.mk-summary__sec:last-child {
    border-bottom: 0;
}

.mk-summary h3 {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-3);
    font-weight: 700;
    margin: 0 0 10px;
}

.mk-kv {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .86rem;
    padding: 3px 0;
}

.mk-kv span:first-child {
    color: var(--ink-2);
}

.mk-kv b {
    font-variant-numeric: tabular-nums;
}

.mk-kv--minus b {
    color: var(--ink-3);
    font-weight: 600;
}

.mk-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 2px 0 4px;
}

.mk-total strong {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

.mk-total span {
    color: var(--ink-2);
    font-size: .85rem;
}

.mk-flag {
    display: flex;
    gap: 8px;
    font-size: .8rem;
    color: var(--ink-2);
    background: #fff8eb;
    border: 1px solid #f3e1bd;
    border-radius: 9px;
    padding: 8px 10px;
    margin-top: 10px;
    line-height: 1.4;
}

.mk-flag b {
    color: #7a4b00;
}

.mk-gets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 7px;
}

.mk-gets li {
    display: flex;
    gap: 8px;
    font-size: .83rem;
    color: var(--ink-2);
    line-height: 1.4;
}

.mk-gets svg {
    width: 16px;
    height: 16px;
    color: var(--ink-3);
    flex-shrink: 0;
    margin-top: 1px;
}

.mk-hist {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}

.mk-hist th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-3);
    font-weight: 700;
    padding: 0 12px 10px 0;
    text-align: left;
    white-space: nowrap;
}

.mk-hist td {
    padding: 11px 12px 11px 0;
    border-top: 1px solid var(--line-2);
    white-space: nowrap;
}

.mk-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
}

.mk-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/* Progress screen */
.mk-prog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}

.mk-big {
    display: flex;
    align-items: center;
    gap: 22px;
}

.mk-ring {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.mk-ring svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.mk-ring div {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mk-ring b {
    font-size: 1.6rem;
    font-variant-numeric: tabular-nums;
}

.mk-ring span {
    font-size: .72rem;
    color: var(--ink-3);
}

.mk-stages {
    margin-top: 18px;
}

.mk-stage {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line-2);
}

.mk-stage__dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    background: #edf0f3;
    color: var(--ink-3);
}

.mk-stage__dot.done {
    background: #e5f6ef;
    color: var(--ok);
}

.mk-stage__dot.run {
    background: var(--p);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(143, 90, 255, .18);
}

.mk-stage strong {
    font-size: .92rem;
    display: block;
}

.mk-stage small {
    color: var(--ink-3);
    font-size: .78rem;
}

.mk-stage__val {
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.mk-bar-line {
    height: 6px;
    background: #efecf5;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}

.mk-bar-line i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--p);
    border-radius: 99px;
    transition: width .3s ease;
}

.mk-feed {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .82rem;
}

.mk-feed li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--line-2);
    align-items: center;
}

.mk-feed li:first-child {
    border-top: 0;
}

.mk-feed time {
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
    font-size: .74rem;
}

.mk-feed .ok {
    color: var(--ok);
}

.mk-feed .bad {
    color: var(--bad);
}

.mk-feed .retry {
    color: var(--warn);
}

.mk-feed span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Result KPIs, Tune & Ladder */
.mk-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.mk-kpi {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px 16px;
}

.mk-kpi__v {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.mk-kpi__l {
    font-size: .8rem;
    color: var(--ink-2);
    margin-top: 2px;
}

.mk-kpi__s {
    font-size: .74rem;
    color: var(--ink-3);
    margin-top: 6px;
}

.mk-kpi--warn .mk-kpi__v {
    color: var(--bad);
}

.mk-tune {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 18px 28px;
    align-items: start;
    padding: 16px 20px;
}

.mk-tune__lbl {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-3);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.mk-ladder {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 64px;
}

.mk-ladder button {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    position: relative;
    min-width: 30px;
}

.mk-ladder i {
    display: block;
    max-height: calc(100% - 18px);
    flex-shrink: 0;
    width: 100%;
    max-width: 44px;
    border-radius: 4px 4px 0 0;
    background: var(--line-strong);
    transition: background .12s, height .2s;
}

.mk-ladder button:hover i {
    background: #aeb7c4;
}

.mk-ladder button.is-on i {
    background: var(--p);
}

.mk-ladder b {
    line-height: 16px;
    margin-bottom: 2px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.mk-ladder-x {
    display: flex;
    gap: 6px;
    border-top: 1px solid var(--line);
    padding-top: 4px;
}

.mk-ladder-x span {
    flex: 1;
    min-width: 30px;
    text-align: center;
    font-size: .72rem;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.mk-ladder-x span.is-on {
    color: var(--p-ink);
    font-weight: 700;
}

.mk-tune__opts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mk-recalc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--ok);
    font-weight: 600;
    margin-top: 10px;
}

.mk-recalc i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    flex-shrink: 0;
}

/* Views & Master-Detail */
.mk-views {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 12px;
}

.mk-views .mk-seg button .n {
    font-weight: 700;
    color: var(--ink-3);
    margin-left: 5px;
    font-variant-numeric: tabular-nums;
}

.mk-views .mk-seg button.is-on .n {
    color: var(--p-ink);
}

.mk-md {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 16px;
    align-items: start;
}

.mk-list-tools {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--line-2);
    flex-wrap: wrap;
}

.mk-list-tools input {
    flex: 1 1 140px;
    width: auto;
}

.mk-list-tools select {
    flex: 0 0 auto;
    width: auto !important;
}

.mk-filter {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-2);
    flex-wrap: wrap;
}

.mk-chip {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    padding: 3px 10px;
    color: var(--ink-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mk-chip.is-on {
    border-color: var(--p);
    background: var(--surface);
    color: var(--p-ink);
}

.mk-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.mk-dot--com {
    background: var(--c-com);
}

.mk-dot--info {
    background: var(--c-inf);
}

.mk-dot--mix {
    background: var(--c-mix);
}

.mk-item__name .mk-dot {
    margin-right: 6px;
    vertical-align: middle;
}

.mk-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.mk-pill--com {
    background: #eaf8f2;
    color: var(--ok);
}

.mk-pill--info {
    background: #eef4fc;
    color: var(--c-inf);
}

.mk-pill--mix {
    background: #fff4e8;
    color: var(--warn);
}

.mk-list {
    max-height: 660px;
    overflow-y: auto;
}

.mk-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--line-2);
    background: #fff;
    padding: 12px 14px 12px 16px;
    cursor: pointer;
    position: relative;
}

.mk-item:hover {
    background: #f7f8fa;
}

.mk-item.is-on {
    background: var(--surface);
}

.mk-item.is-on::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--p);
}

.mk-item__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.mk-item__name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.mk-item__freq {
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mk-item__meter {
    height: 4px;
    background: #edf0f3;
    border-radius: 99px;
    margin: 7px 0;
    overflow: hidden;
}

.mk-item__meter i {
    display: block;
    height: 100%;
    background: #818b9b;
    border-radius: 99px;
    opacity: .85;
}

.mk-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: .75rem;
    color: var(--ink-3);
    align-items: center;
}

.mk-item__meta .own {
    color: var(--ok);
    font-weight: 600;
}

.mk-item__meta .noown {
    color: var(--bad);
    font-weight: 600;
}

.mk-item__meta .mixwarn {
    color: var(--warn);
    font-weight: 600;
}

/* Detail panel */
.mk-detail {
    position: sticky;
    top: 16px;
    overflow: hidden;
}

.mk-detail__head {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line-2);
}

.mk-detail__eyebrow {
    font-size: .74rem;
    color: var(--ink-3);
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.mk-detail__name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 4px 0 2px;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

.mk-detail__main {
    font-size: .82rem;
    color: var(--ink-2);
}

.mk-detail__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mk-detail__stats > div {
    background: #faf9fc;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    padding: 9px 11px;
    min-width: 0;
}

.mk-detail__stats b {
    display: block;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mk-detail__stats span {
    display: block;
    font-size: .72rem;
    color: var(--ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mk-intentbar {
    display: flex;
    height: 8px;
    border-radius: 99px;
    overflow: hidden;
    gap: 2px;
    margin-top: 6px;
}

.mk-intentbar i {
    display: block;
    height: 100%;
    border-radius: 2px;
}

.mk-intent-legend {
    display: flex;
    gap: 14px;
    font-size: .74rem;
    color: var(--ink-2);
    margin-top: 6px;
    flex-wrap: wrap;
}

.mk-intent-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mk-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.mk-tabs2 {
    display: flex;
    gap: 2px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line-2);
    overflow-x: auto;
}

.mk-tabs2 button {
    border: 0;
    background: none;
    padding: 12px 8px 10px;
    margin: 0 4px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink-3);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.mk-tabs2 button.is-on {
    color: var(--ink);
    border-bottom-color: var(--p);
}

.mk-pane {
    padding: 6px 20px 18px;
}

.mk-q {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.mk-q th {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-3);
    font-weight: 700;
    padding: 10px 8px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

.mk-q td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--line-2);
    vertical-align: middle;
}

.mk-q tr:last-child td {
    border-bottom: 0;
}

.mk-q .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mk-q th.num {
    text-align: right;
}

.mk-q tr.is-hit td {
    background: #fffbea;
}

.mk-kw {
    border: 0;
    background: none;
    padding: 0;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.mk-kw:hover {
    color: var(--p-ink);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
}

.mk-badge {
    display: inline-block;
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-radius: 5px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: 1px;
}

.mk-badge--main,
.mk-badge--p {
    background: var(--surface-strong);
    color: var(--p-ink);
}

.mk-badge--man {
    background: #e8f0fe;
    color: #2753a8;
}

.mk-link {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
}

.mk-link i {
    width: 4px;
    height: 11px;
    border-radius: 1px;
    background: #e1e5ea;
}

.mk-link i.on {
    background: #667080;
}

.mk-pos {
    display: inline-block;
    min-width: 26px;
    text-align: center;
    border-radius: 6px;
    font-size: .76rem;
    font-weight: 700;
    padding: 2px 5px;
    font-variant-numeric: tabular-nums;
}

.mk-pos--a {
    background: #e5f6ef;
    color: var(--ok);
}

.mk-pos--b {
    background: #fff4dc;
    color: #8a5a00;
}

.mk-pos--c {
    color: #b8b4c4;
}

.mk-rowmenu {
    border: 0;
    background: none;
    color: var(--ink-3);
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
}

.mk-rowmenu:hover {
    background: #f3f4f6;
    color: var(--ink);
}

.mk-pop {
    position: fixed;
    z-index: 1060;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(29, 26, 38, .16);
    padding: 5px;
    width: min(320px, calc(100% - 24px));
    max-height: 340px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mk-pop input {
    flex: 0 0 auto;
    margin: 4px 0;
}

.mk-pop__groups {
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 36px;
}

.mk-pop button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: none;
    padding: 7px 10px;
    overflow-wrap: anywhere;
    font-size: .84rem;
    border-radius: 7px;
    color: var(--ink);
    cursor: pointer;
}

.mk-pop button:hover {
    background: var(--surface);
}

.mk-pop hr {
    margin: 4px 0;
    border-color: var(--line-2);
}

.mk-pop small {
    display: block;
    padding: 4px 10px 2px;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-3);
    font-weight: 700;
}

/* Matrix ("Почему вместе") */
.mk-matrix-wrap {
    overflow-x: auto;
    margin-top: 10px;
}

.mk-matrix {
    border-collapse: separate;
    border-spacing: 3px;
    font-size: .78rem;
}

.mk-matrix th.mc {
    height: 132px;
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    vertical-align: bottom;
    padding: 0 0 4px;
    font-weight: 600;
    color: var(--ink-2);
}

.mk-matrix th.mc div {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    width: 16px;
    height: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .7rem;
    line-height: 16px;
    margin: 0 auto;
    text-align: left;
}

.mk-matrix th.mc.own div {
    color: var(--ok);
    font-weight: 700;
}

.mk-matrix th.mr {
    text-align: left;
    font-weight: 500;
    padding-right: 8px;
}

.mk-matrix th.mr div {
    width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mk-matrix th.mr.main {
    font-weight: 700;
}

.mk-matrix td {
    width: 26px;
    min-width: 26px;
    height: 24px;
    border-radius: 5px;
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: #f5f3f8;
    color: transparent;
}

.mk-matrix td.on {
    color: #fff;
}

.mk-matrix td.on.light {
    color: var(--p-ink);
}

.mk-matrix td.excl {
    background: repeating-linear-gradient(
        -45deg,
        #f2f4f7,
        #f2f4f7 3px,
        #e4e7ec 3px,
        #e4e7ec 6px
    );
    color: var(--ink-3);
}

.mk-matrix tr.cnt td {
    background: none;
    color: var(--ink-3);
    font-weight: 600;
    height: auto;
    padding-top: 4px;
    font-size: .64rem;
}

.mk-scale {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .74rem;
    color: var(--ink-3);
    margin-top: 10px;
    flex-wrap: wrap;
}

.mk-scale__ramp {
    display: flex;
    gap: 2px;
}

.mk-scale__ramp i {
    width: 18px;
    height: 10px;
    border-radius: 2px;
}

.mk-scale__excl {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
}

.mk-scale__excl::before {
    content: "";
    width: 18px;
    height: 10px;
    border-radius: 2px;
    background: repeating-linear-gradient(
        -45deg,
        #f2f4f7,
        #f2f4f7 3px,
        #e4e7ec 3px,
        #e4e7ec 6px
    );
}

/* Competitors */
.mk-comp {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.mk-comp td,
.mk-comp th {
    padding: 9px 8px;
    border-bottom: 1px solid var(--line-2);
}

.mk-comp th {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-3);
    font-weight: 700;
    text-align: left;
    border-bottom-color: var(--line);
    white-space: nowrap;
}

.mk-comp .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mk-share {
    display: inline-block;
    width: 80px;
    height: 6px;
    background: #edf0f3;
    border-radius: 99px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 8px;
}

.mk-share i {
    display: block;
    height: 100%;
    background: var(--p);
}

/* Treemap */
.mk-tree {
    position: relative;
    width: 100%;
    height: 520px;
}

.mk-tree__t {
    position: absolute;
    border-radius: 6px;
    padding: 9px 10px;
    color: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: filter .12s;
}

.mk-tree__t:hover {
    filter: brightness(1.07);
}

.mk-tree__t:focus-visible {
    outline: 2px solid var(--p-ink);
    outline-offset: 2px;
}

.mk-tree__t b {
    display: block;
    font-size: .86rem;
    line-height: 1.25;
}

.mk-tree__t span {
    display: block;
    font-size: .74rem;
    opacity: .95;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.mk-tree__t .own,
.mk-tree__t .noown {
    position: absolute;
    left: 10px;
    bottom: 8px;
    font-size: .66rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .94);
    border-radius: 99px;
    padding: 1px 7px;
    opacity: 1;
}

.mk-tree__t .own {
    color: var(--ok);
}

.mk-tree__t .noown {
    color: var(--bad);
}

.mk-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .8rem;
    color: var(--ink-2);
}

.mk-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mk-legend i {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.mk-tip {
    position: fixed;
    z-index: 1070;
    pointer-events: none;
    background: #20242c;
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .78rem;
    line-height: 1.45;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    display: none;
    max-width: 280px;
}

.mk-tip span {
    color: #c9c4d6;
}

/* Singles & Problems */
.mk-single {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 18px;
    border-top: 1px solid var(--line-2);
}

.mk-single__hint {
    font-size: .78rem;
    color: var(--ink-3);
    margin-top: 3px;
}

.mk-prob {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-2);
}

.mk-prob__ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .95rem;
}

.mk-prob__ic.warn {
    background: #fff4dc;
    color: var(--warn);
}

.mk-prob__ic.bad {
    background: #fdecec;
    color: var(--bad);
}

.mk-prob strong {
    display: block;
    font-size: .93rem;
    margin-bottom: 3px;
}

.mk-prob p {
    font-size: .84rem;
    color: var(--ink-2);
    margin: 0;
}

.mk-own-chip {
    display: inline-block;
    font-size: .76rem;
    background: #e5f6ef;
    color: var(--ok);
    border-radius: 6px;
    padding: 1px 7px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Drawer */
.mk-veil {
    position: fixed;
    inset: 0;
    background: rgba(24, 32, 51, .38);
    z-index: 1055;
    display: none;
}

.mk-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(560px, 100%);
    background: #fff;
    z-index: 1056;
    box-shadow: -10px 0 40px rgba(24, 32, 51, .2);
    transform: translateX(102%);
    transition: transform .22s ease;
    display: flex;
    flex-direction: column;
}

.mk-drawer.is-open {
    transform: none;
}

.mk-drawer__head {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line-2);
}

.mk-drawer__body {
    padding: 8px 20px 90px;
    overflow-y: auto;
    flex: 1;
}

.mk-close {
    border: 0;
    background: #f3f4f6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--ink-2);
}

.mk-prof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.mk-prof div {
    background: #faf9fc;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: .72rem;
    color: var(--ink-3);
}

.mk-prof b {
    display: block;
    font-size: 1.05rem;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.mk-serp {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mk-serp li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
    border-radius: 10px;
    margin-top: 4px;
}

.mk-serp li.shared {
    background: #f8f5ff;
}

.mk-serp li.own {
    background: #ecf8f2;
}

.mk-serp__pos {
    font-weight: 700;
    color: var(--ink-3);
    text-align: right;
    font-variant-numeric: tabular-nums;
    padding-top: 1px;
}

.mk-serp__url {
    font-size: .76rem;
    color: #1b7a50;
    overflow-wrap: anywhere;
}

.mk-serp__title {
    font-weight: 600;
    color: #1a0dab;
    font-size: .93rem;
    margin: 1px 0 2px;
    overflow-wrap: anywhere;
    display: block;
}

.mk-serp__snip {
    font-size: .8rem;
    color: #4d5156;
}

.mk-serp__tags {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mk-type {
    font-size: .68rem;
    font-weight: 700;
    border-radius: 5px;
    padding: 1px 6px;
    background: #edf0f3;
    color: var(--ink-2);
}

.mk-type--aggregator {
    background: #fff0e0;
    color: #9a5a00;
}

.mk-type--info {
    background: #e8f0fe;
    color: #2753a8;
}

.mk-type--forum {
    background: #fbeaf3;
    color: #9b2c68;
}

.mk-type--video {
    background: #fdeaea;
    color: #a83232;
}

.mk-type--own {
    background: #e5f6ef;
    color: var(--ok);
}

.mk-type--shared {
    background: var(--surface-strong);
    color: var(--p-ink);
}

.mk-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #20242c;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: .86rem;
    z-index: 1080;
    display: none;
    max-width: calc(100% - 32px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}

.mk-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--ink-3);
    font-size: .9rem;
}

/* Modals (source collector & rename) */
.mk-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(24, 32, 51, .42);
    z-index: 1075;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mk-modal {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    width: min(540px, 100%);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 48px rgba(24, 32, 51, .22);
}

.mk-modal__hd {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.sc-dialog-open {
    overflow: hidden;
}

.mk-source-choice {
    width: 100%;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 8px;
    white-space: normal;
}

.mk-source-choice__text {
    min-width: 0;
    display: grid;
    overflow-wrap: anywhere;
}

.mk-source-choice .mk-badge {
    flex-shrink: 0;
    white-space: nowrap;
}

.mk-ai-feedback {
    max-width: 19rem;
}

.mk-ai-feedback.is-error {
    color: var(--bad);
}

.mk-ai-more {
    align-self: flex-start;
    white-space: normal;
}

.mk-modal__body {
    padding: 14px 18px;
    overflow-y: auto;
}

@media (max-width: 991.98px) {
    .mk-mobile-launch {
        display: grid;
        gap: 8px;
        margin-top: 16px;
    }

    .mk-mobile-launch__info {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 4px 12px;
        font-size: .8rem;
    }

    #mk-run {
        display: none;
    }

    #mk #mk-kw {
        min-height: 12rem;
        height: 12rem;
    }

    .mk-form-grid,
    .mk-prog-grid,
    .mk-md {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-summary,
    .mk-detail {
        position: static;
    }

    .mk-tune {
        grid-template-columns: 1fr 1fr;
    }

    .mk-tune__ladder {
        grid-column: 1 / -1;
    }

    .mk-list {
        max-height: 420px;
    }
}

@media (max-width: 767.98px) {
    .mk-q--queries,
    .mk-q--queries tbody,
    .mk-q--queries td {
        display: block;
    }

    .mk-q--queries thead {
        position: absolute;
        clip-path: inset(50%);
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .mk-q--queries tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
        gap: 6px 10px;
        padding: 12px 0;
        border-bottom: 1px solid var(--line-2);
    }

    .mk-q--queries td {
        padding: 0;
        border-bottom: 0;
        min-width: 0;
    }

    .mk-q--queries .mk-query-keyword {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .mk-q--queries .mk-query-actions {
        grid-column: 3;
        grid-row: 2 / span 2;
        align-self: center;
    }

    .mk-q--queries .mk-rowmenu {
        min-width: 36px;
        min-height: 36px;
        background: var(--surface);
    }

    .mk-q--queries td.num {
        text-align: left;
    }

    .mk-q--queries td[data-label] {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .mk-q--queries td[data-label]::before {
        content: attr(data-label);
        display: block;
        color: var(--ink-3);
        font-size: .73rem;
    }

    .mk-views .mk-seg {
        flex-wrap: wrap;
    }

    .mk-matrix th.mr div {
        width: 130px;
    }

    .mk-head h1 {
        font-size: 1.4rem;
    }

    .mk-head--form {
        flex-direction: column;
    }

    #mk .page-indexation__quota {
        width: 100%;
        min-width: 0;
    }

    .mk-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .mk-kpi__v {
        font-size: 1.35rem;
    }

    .mk-tiles,
    .mk-modes,
    .mk-row2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-tune {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
    }

    .mk-detail__stats {
        grid-template-columns: 1fr 1fr;
    }

    .mk-step {
        padding: 16px 14px;
        gap: 10px;
    }

    .mk-card__body {
        padding: 16px 14px;
    }

    .mk-pane {
        padding: 4px 12px 14px;
    }

    .mk-detail__head {
        padding: 16px 14px 12px;
    }

    .mk-tree {
        height: 440px;
    }

    .mk-big {
        flex-direction: column;
        align-items: flex-start;
    }

    .mk-hide-sm {
        display: none;
    }

    .mk-single {
        grid-template-columns: minmax(0, 1fr);
    }
}

.mk-prob-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#mk-run:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.mk-ring--night b {
    font-size: 1.25rem;
}

.mk-night-copy .mk-lead {
    margin: 8px 0 12px;
}

.mk-night-copy,
.mk-night-copy form,
#sc-cancel-live {
    min-width: 0;
    max-width: 100%;
}

.mk-night-copy .mk-btn,
#sc-cancel-live .mk-btn {
    white-space: normal;
    text-align: center;
}

.mk-terminal-notice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    margin-bottom: 18px;
}

.mk-terminal-notice h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.mk-terminal-notice p {
    margin: 0;
    color: var(--ink-2);
    font-size: .92rem;
}
