/* ===== Техработы ===== */
.mnt-page [hidden] {
    display: none !important;
}

.mnt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}

.mnt-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.mnt-aside {
    position: sticky;
    top: 1rem;
}

.mnt-count {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #e9d7fe;
    border-radius: 999px;
    background: #f4f0ff;
    font-size: 12px;
    font-weight: 700;
    color: #6d28d9;
    font-variant-numeric: tabular-nums;
}

/* Mode cards */
.mnt-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#adm-page .mnt-mode {
    --mnt-tone: #12b76a;
    --mnt-soft: #ecfdf3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 72px;
    padding: 12px 14px 12px 12px;
    border: 1.5px solid #eaecf0;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

#adm-page .mnt-mode--maintenance {
    --mnt-tone: #f79009;
    --mnt-soft: #fffaeb;
}

#adm-page .mnt-mode--development {
    --mnt-tone: #2e90fa;
    --mnt-soft: #eff8ff;
}

#adm-page .mnt-mode--migrated {
    --mnt-tone: #7c3aed;
    --mnt-soft: #f4f0ff;
}

#adm-page .mnt-mode:hover {
    border-color: #d0d5dd;
}

#adm-page .mnt-mode:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

#adm-page .mnt-mode.is-active {
    border-color: #7c3aed;
    background: #f4f0ff;
}

#adm-page .mnt-mode.is-active .mnt-mode__icon {
    background: var(--mnt-tone);
    color: #fff;
}

#adm-page .mnt-mode.is-active .mnt-mode__title {
    color: #5b21b6;
}

.mnt-mode__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--mnt-soft);
    color: var(--mnt-tone);
    font-size: 17px;
}

.mnt-mode__icon i,
.mnt-mode__state i {
    display: inline-flex;
    line-height: 1;
}

.mnt-mode__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.mnt-mode__title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    color: #101828;
}

.mnt-mode__state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #667085;
}

.mnt-mode__state i {
    font-size: 11px;
}

.mnt-mode__state.is-open i {
    color: #12b76a;
}

.mnt-mode__state.is-lock i {
    color: #d92d20;
}

.mnt-mode__live {
    margin-left: auto;
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ecfdf3;
    font-size: 11px;
    font-weight: 700;
    color: #067647;
}


/* Fields */
.mnt-texts textarea.adm-input,
.mnt-page textarea.adm-input {
    min-height: 84px;
    resize: vertical;
}

.mnt-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
}

.mnt-url {
    position: relative;
    display: flex;
    align-items: center;
}

.mnt-url__tag {
    position: absolute;
    left: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f2f4f7;
    font-size: 10.5px;
    font-weight: 700;
    color: #475467;
    pointer-events: none;
}

#adm-page .mnt-url .adm-input {
    width: 100%;
    padding-left: 68px;
}

.mnt-page .prm-switch-row {
    margin-bottom: 1rem;
}

/* Save bar */
.mnt-savebar {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
}

.mnt-savebar__dirty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    font-size: 12px;
    font-weight: 600;
    color: #b54708;
}

.mnt-savebar__dirty i {
    display: inline-flex;
    line-height: 1;
}

/* Phone preview */
.mnt-phone {
    position: relative;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
    aspect-ratio: 9 / 18.5;
    padding: 10px;
    border-radius: 42px;
    background: #101828;
}

.mnt-phone__notch {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 2;
    width: 84px;
    height: 22px;
    margin-left: -42px;
    border-radius: 999px;
    background: #101828;
}

.mnt-phone__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 33px;
    background: #fff;
}

.mnt-phone__app,
.mnt-phone__lock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.mnt-phone[data-mode="normal"] .mnt-phone__lock,
.mnt-phone:not([data-mode="normal"]) .mnt-phone__app {
    display: none;
}

.mnt-phone__app {
    gap: 12px;
    padding: 46px 14px 14px;
    background: #f8fafc;
}

.mnt-phone__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mnt-phone__logo-sm {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.mnt-sk {
    display: block;
    border-radius: 10px;
    background: #e9edf3;
}

.mnt-sk--pill {
    width: 56px;
    height: 22px;
    border-radius: 999px;
}

.mnt-sk--search {
    height: 34px;
}

.mnt-phone__tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mnt-sk--tile {
    aspect-ratio: 1 / 0.8;
    border-radius: 14px;
}

.mnt-phone__ok {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 6px;
    margin-top: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ecfdf3;
    font-size: 11.5px;
    font-weight: 700;
    color: #067647;
}

.mnt-phone__ok i {
    display: inline-flex;
    line-height: 1;
}

.mnt-phone__lock {
    align-items: center;
    justify-content: center;
    padding: 40px 22px 26px;
    text-align: center;
}

.mnt-phone__logo {
    position: absolute;
    top: 48px;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    border-radius: 11px;
    object-fit: cover;
}

.mnt-phone__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 20px;
    font-size: 26px;
    background: #fffaeb;
    color: #f79009;
}

.mnt-phone__badge i {
    display: inline-flex;
    line-height: 1;
}

.mnt-phone[data-mode="development"] .mnt-phone__badge {
    background: #eff8ff;
    color: #2e90fa;
}

.mnt-phone[data-mode="migrated"] .mnt-phone__badge {
    background: #f4f0ff;
    color: #7c3aed;
}

.mnt-phone__title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    color: #101828;
    overflow-wrap: anywhere;
}

.mnt-phone__msg {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #667085;
    overflow-wrap: anywhere;
}

.mnt-phone__cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
}

.mnt-phone__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: #7c3aed;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.mnt-phone__stores {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.mnt-phone__stores span {
    padding: 2px 8px;
    border-radius: 999px;
    background: #f2f4f7;
    font-size: 10.5px;
    font-weight: 700;
    color: #475467;
}

.mnt-phone__stores span.is-off {
    background: #fef3f2;
    color: #d92d20;
    text-decoration: line-through;
}

.mnt-phone__support {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #98a2b3;
}

.mnt-phone__support i {
    display: inline-flex;
    line-height: 1;
}

@media (max-width: 1100px) {
    .mnt-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .mnt-aside {
        position: static;
        order: -1;
    }

    .mnt-phone {
        max-width: 240px;
    }
}

@media (max-width: 640px) {
    .mnt-modes {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Dark */
html.dark #adm-page .mnt-mode {
    border-color: #344054;
    background: #111827;
}

html.dark #adm-page .mnt-mode.is-active {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.16);
}

html.dark #adm-page .mnt-mode.is-active .mnt-mode__title {
    color: #d6bbfb;
}

html.dark .mnt-mode__title {
    color: #f2f4f7;
}

html.dark .mnt-url__tag {
    border-color: #344054;
    background: #0b1220;
    color: #98a2b3;
}


html.dark .mnt-savebar {
    border-color: #344054;
    background: rgba(17, 24, 39, 0.94);
}
