/* Page Studio — ночная панель замен */

:root {
    color-scheme: dark;
    --bg: #0a0c10;
    --surface: #12161d;
    --surface-2: #171c25;
    --surface-3: #1d2430;
    --ink: #f1eee7;
    --muted: #a1a7b3;
    --faint: #6d7582;
    --line: #252c37;
    --line-strong: #3a4352;
    --accent: #58c99a;
    --accent-2: #3f9f7a;
    --accent-soft: rgba(88, 201, 154, 0.12);
    --accent-ink: #06140f;
    --green: #6fd3a6;
    --green-soft: rgba(111, 211, 166, 0.1);
    --red: #ff7b72;
    --red-soft: rgba(255, 123, 114, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow: 0 30px 70px -32px rgba(0, 0, 0, 0.95), 0 4px 14px rgba(0, 0, 0, 0.35);
    --radius: 16px;
    --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
}

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

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    scrollbar-color: #313a48 transparent;
    scrollbar-width: thin;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(1000px 520px at 88% -12%, rgba(88, 201, 154, 0.11), transparent 62%),
        radial-gradient(900px 560px at -12% 108%, rgba(58, 160, 128, 0.08), transparent 60%),
        radial-gradient(700px 400px at 52% -20%, rgba(255, 255, 255, 0.025), transparent 70%);
    background-attachment: fixed;
    font: 400 15px/1.5 var(--sans);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border: 2px solid var(--bg);
    border-radius: 10px;
    background: #2d3542;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a4556;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    margin: 0;
}

code {
    font-family: var(--mono);
    font-size: 0.92em;
}

.icon {
    flex: none;
    vertical-align: -0.14em;
}

/* ------------------------------------------------------------------ */
/* Шапка                                                              */
/* ------------------------------------------------------------------ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 12, 16, 0.84);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 0 28px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: none;
    color: inherit;
    text-decoration: none;
}

.brand__logo {
    display: block;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 0 24px rgba(88, 201, 154, 0.2);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name {
    font-family: var(--serif);
    font-size: 17px;
    letter-spacing: 0.01em;
}

.brand__tag {
    color: var(--faint);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
}

.topnav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.topnav a .icon {
    color: var(--faint);
}

.topnav a:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.topnav a.is-active {
    background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(88, 201, 154, 0.24), 0 0 24px rgba(88, 201, 154, 0.06);
}

.topnav a.is-active .icon {
    color: var(--accent);
}

.topnav a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(88, 201, 154, 0.7);
    transform: translateX(-50%);
}

.topbar__logout {
    margin: 0;
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

/* ------------------------------------------------------------------ */
/* Каркас                                                             */
/* ------------------------------------------------------------------ */

.shell {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: 34px 28px 96px;
}

.is-editor .shell {
    width: min(100%, 1600px);
    padding-top: 26px;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.page-head--editor {
    align-items: flex-start;
    margin-bottom: 22px;
}

.crumbs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.page-head h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--serif);
    font-size: clamp(30px, 3.1vw, 43px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.page-head h1 > .icon {
    color: var(--accent);
}

.page-head--editor h1 {
    font-size: clamp(26px, 2.5vw, 36px);
}

.page-lead {
    max-width: 660px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.page-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12.5px;
}

.head-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.mono {
    font-family: var(--mono);
    font-size: 0.92em;
}

.muted {
    color: var(--muted);
}

.hint {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.hint code {
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #0d1117;
    color: var(--accent);
}

.hint b {
    color: var(--ink);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    margin-bottom: 10px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.back-link:hover {
    border-color: rgba(88, 201, 154, 0.42);
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(88, 201, 154, 0.08);
}

/* ------------------------------------------------------------------ */
/* Кнопки                                                             */
/* ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--ink);
    font: 500 13.5px/1 var(--sans);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn .icon {
    opacity: 0.82;
}

.btn:hover {
    border-color: var(--line-strong);
    background: var(--surface-3);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 1px;
    border-color: var(--accent);
}

.btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
    box-shadow: 0 10px 26px -14px rgba(88, 201, 154, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--primary .icon {
    opacity: 1;
}

.btn--primary:hover {
    background: linear-gradient(135deg, #7fe3bb, #49b98f);
    border-color: transparent;
    color: var(--accent-ink);
    box-shadow: 0 14px 32px -14px rgba(88, 201, 154, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--ghost {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.btn--ghost:hover {
    border-color: var(--line);
    background: var(--surface-2);
    color: var(--ink);
}

.btn--danger {
    border-color: rgba(255, 123, 114, 0.22);
    background: var(--red-soft);
    color: #ff928a;
}

.btn--danger:hover {
    border-color: rgba(255, 123, 114, 0.4);
    background: rgba(255, 123, 114, 0.16);
    color: #ffb0aa;
}

.btn--sm {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12.5px;
}

.btn--tiny {
    height: 27px;
    padding: 0 9px;
    border-radius: 7px;
    font-size: 11.5px;
}

.btn--block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn.is-active {
    border-color: rgba(88, 201, 154, 0.35);
    background: var(--accent-soft);
    color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Поля                                                               */
/* ------------------------------------------------------------------ */

.input {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0d1117;
    color: var(--ink);
    font: 400 14px/1.45 var(--sans);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input::placeholder {
    color: var(--faint);
}

.input:hover {
    border-color: var(--line-strong);
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    background: #0b0f14;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

select.input {
    padding-right: 30px;
}

.label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.label--style1 {
    font-size: 11px;
    letter-spacing: 0.01em;
    text-transform: none;
}

.field-inline {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.field-inline--id {
    max-width: 150px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.check input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Сообщения и карточки                                               */
/* ------------------------------------------------------------------ */

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow-sm);
    font-size: 13.5px;
}

.flash__dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(88, 201, 154, 0.55);
}

.flash a {
    color: var(--accent);
    text-decoration: underline;
}

.flash--success {
    border-color: rgba(111, 211, 166, 0.2);
    background: rgba(111, 211, 166, 0.06);
}

.flash--success .flash__dot {
    background: var(--green);
    box-shadow: 0 0 10px rgba(111, 211, 166, 0.55);
}

.flash--error {
    border-color: rgba(255, 123, 114, 0.22);
    background: rgba(255, 123, 114, 0.06);
}

.flash--error .flash__dot {
    background: var(--red);
    box-shadow: 0 0 10px rgba(255, 123, 114, 0.55);
}

.flash--info {
    border-color: rgba(180, 204, 90, 0.2);
    background: rgba(180, 204, 90, 0.05);
}

.flash--info .flash__dot {
    background: #d6e58a;
    box-shadow: 0 0 10px rgba(180, 204, 90, 0.5);
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(20, 25, 33, 0.98), rgba(16, 20, 27, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), var(--shadow-sm);
}

.section-block {
    margin-top: 42px;
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.section-title h2 {
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.section-title p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    height: 22px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
}

.status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.status--ok {
    color: #7ee2b5;
    background: rgba(111, 211, 166, 0.09);
    border-color: rgba(111, 211, 166, 0.2);
}

.status--warn {
    color: #d6e58a;
    background: rgba(180, 204, 90, 0.09);
    border-color: rgba(180, 204, 90, 0.2);
}

.status--muted {
    color: #aeb4c0;
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
}

.status--danger {
    color: #ff928a;
    background: rgba(255, 123, 114, 0.09);
    border-color: rgba(255, 123, 114, 0.2);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 23px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 10.5px;
    white-space: nowrap;
}

.chip .icon {
    opacity: 0.8;
}

.chip--ok {
    color: #7ee2b5;
    background: rgba(111, 211, 166, 0.08);
    border-color: rgba(111, 211, 166, 0.18);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge--required {
    border: 1px solid rgba(180, 204, 90, 0.22);
    background: rgba(180, 204, 90, 0.1);
    color: #d6e58a;
}

.badge--muted {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--faint);
}

/* ------------------------------------------------------------------ */
/* Создание страницы                                                  */
/* ------------------------------------------------------------------ */

.create-card {
    padding: 22px 24px;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(88, 201, 154, 0.08), transparent 70%),
        linear-gradient(180deg, rgba(23, 28, 37, 0.98), rgba(16, 20, 27, 0.98));
}

.create-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(200px, 1.1fr) minmax(130px, 0.75fr) auto auto;
    align-items: end;
    gap: 14px;
}

.create-form .input {
    height: 38px;
    min-height: 38px;
    font-size: 13px;
}

.create-form__submit {
    height: 40px;
}

.create-form__remember {
    height: 38px;
}

.create-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px dashed var(--line);
}

.create-path {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.create-path .icon {
    color: var(--accent);
}

.create-path code {
    padding: 3px 7px;
    border: 1px solid rgba(88, 201, 154, 0.2);
    border-radius: 7px;
    background: rgba(88, 201, 154, 0.07);
    color: var(--accent);
    font-size: 12px;
}

/* ------------------------------------------------------------------ */
/* Страницы                                                           */
/* ------------------------------------------------------------------ */

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.page-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(300px 140px at 100% 0%, rgba(88, 201, 154, 0.035), transparent 70%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow-sm);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 201, 154, 0.26);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(88, 201, 154, 0.05);
}

.page-card__top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.page-card__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(88, 201, 154, 0.18);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.page-card__title {
    flex: 1;
    min-width: 0;
}

.page-card__title h3 {
    overflow: hidden;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-card__path {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--faint);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--muted);
    font-size: 11px;
}

.page-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.page-card__meta .icon {
    color: var(--faint);
}

.page-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 2px;
}

.page-card__actions form {
    margin: 0;
}

.page-card__actions .btn {
    flex: none;
    padding-right: 10px;
    padding-left: 10px;
}

.page-card__actions .btn--icon {
    width: 34px;
    padding: 0;
}

.btn--icon {
    width: 34px;
    padding: 0;
}

.btn.is-copied {
    border-color: rgba(88, 201, 154, 0.4);
    background: rgba(88, 201, 154, 0.12);
    color: #7fe3bb;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
}

.pagination .btn {
    min-width: 34px;
}

.pagination__dots {
    padding: 0 3px;
    color: var(--faint);
    font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* Пустое состояние                                                   */
/* ------------------------------------------------------------------ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 46px 24px;
    text-align: center;
}

.empty-state__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 4px;
    border: 1px solid rgba(88, 201, 154, 0.18);
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
}

.empty-state__icon .icon {
    width: 24px;
    height: 24px;
}

.empty-state h2,
.empty-state h3 {
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 400;
}

.empty-state p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.empty-state code {
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent);
}

.empty-state .btn {
    margin-top: 8px;
}

/* ------------------------------------------------------------------ */
/* Редактор                                                           */
/* ------------------------------------------------------------------ */

.editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 46%);
    gap: 20px;
    align-items: start;
}

.editor__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.editor__side {
    position: sticky;
    top: 84px;
    height: calc(100vh - 108px);
    min-height: 540px;
}

.replacements-card {
    padding: 20px 22px;
    border-color: rgba(88, 201, 154, 0.2);
    background:
        radial-gradient(480px 220px at 100% -20%, rgba(88, 201, 154, 0.12), transparent 70%) padding-box,
        linear-gradient(180deg, rgba(22, 27, 36, 0.99), rgba(16, 20, 27, 0.99)) padding-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-sm);
}

.replacements-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.replacements-card__title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.replacements-card__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(88, 201, 154, 0.24);
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

.replacements-card__title h2 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
}

.replacements-card__title p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11.5px;
}

.replacements-list {
    margin-top: 8px;
}

.replacement-field {
    padding: 15px 0;
    border-top: 1px dashed var(--line);
}

.replacement-field:first-child {
    border-top: 0;
}

.replacement-field__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.replacement-field__label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
}

.replacement-field__icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--accent);
}

.replacement-field__input {
    font-size: 14px;
}

.replacement-field__input--readonly {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    cursor: default;
}

.replacement-field--readonly .replacement-field__icon {
    color: var(--faint);
}

.replacement-field .hint {
    margin-top: 6px;
}

/* Предпросмотр */

.preview-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow-sm);
}

.preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: none;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.preview-title i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 9px rgba(111, 211, 166, 0.6);
}

.preview-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 3px;
}

.preview-frame {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #07090c;
}

.preview-stage {
    position: absolute;
    inset: 10px;
    overflow: hidden;
}

.preview-stage iframe {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 14px 40px rgba(0, 0, 0, 0.55);
}

.preview-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
    margin: 0;
    padding: 9px 12px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.preview-hint .icon {
    color: var(--faint);
}

/* ------------------------------------------------------------------ */
/* Вход / установка                                                   */
/* ------------------------------------------------------------------ */

.auth-page {
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 540px at 82% -10%, rgba(88, 201, 154, 0.14), transparent 60%),
        radial-gradient(760px 540px at -8% 108%, rgba(58, 160, 128, 0.09), transparent 60%);
}

.auth {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px;
}

.auth__card {
    width: min(430px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(420px 200px at 100% 0%, rgba(88, 201, 154, 0.08), transparent 70%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    color: inherit;
    text-decoration: none;
}

.auth__brand .brand__text {
    display: flex;
    flex-direction: column;
}

.auth__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: 31px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.auth__title .icon {
    color: var(--accent);
}

.auth__lead {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.auth__foot {
    margin: 18px 0 0;
    color: var(--faint);
    font-size: 10.5px;
    text-align: center;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stack .btn {
    margin-top: 6px;
}

.password-wrap {
    position: relative;
}

.password-wrap .input {
    padding-right: 88px;
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    padding: 6px 8px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--muted);
    font: 500 10.5px var(--sans);
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.narrow {
    width: min(100%, 540px);
}

.narrow.card,
.card.stack {
    padding: 22px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

/* ------------------------------------------------------------------ */
/* Почта                                                              */
/* ------------------------------------------------------------------ */

.mail-top-card {
    padding: 18px 20px;
}

.mail-layout {
    grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.mail-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 16px;
    align-items: start;
}

.mail-top-grid .mail-sender-picker-block {
    margin-bottom: 0;
}

.mail-template-field {
    margin-top: 14px;
}

.mail-subject-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mail-subject-value {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 11px 13px;
    border: 1px solid rgba(88, 201, 154, 0.18);
    border-left: 3px solid rgba(88, 201, 154, 0.55);
    border-radius: 10px;
    background: rgba(88, 201, 154, 0.06);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mail-subject-value.is-empty {
    border-style: dashed;
    color: var(--faint);
}

.mail-template-status {
    margin-top: 10px;
}

.mail-template-status.is-ok {
    color: var(--green);
}

.mail-template-status.is-error {
    color: #ff928a;
}

.mail-compose {
    padding: 20px 22px;
}

.mail-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mail-sender-picker-block {
    margin-bottom: 16px;
}

.mail-top-grid > .mail-sender-picker-block,
.mail-top-grid > .mail-subject-box {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(280px 120px at 100% 0%, rgba(88, 201, 154, 0.08), transparent 70%),
        var(--surface-2);
}

.mail-sender-select {
    position: relative;
}

.mail-sender-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0d1117;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mail-sender-trigger:hover {
    border-color: var(--line-strong);
}

.mail-sender-trigger:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.mail-sender-trigger .icon {
    color: var(--muted);
    transform: rotate(90deg);
    transition: transform 0.15s ease;
}

.mail-sender-select.is-open .mail-sender-trigger .icon {
    transform: rotate(-90deg);
}

.mail-sender-trigger__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mail-sender-trigger__email {
    overflow-wrap: anywhere;
    font-size: 13.5px;
    font-weight: 600;
}

.mail-sender-trigger__name {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.4;
}

.mail-sender-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.mail-sender-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mail-sender-item:hover {
    background: var(--surface-3);
}

.mail-sender-item:has(input:checked) {
    background: var(--accent-soft);
}

.mail-sender-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mail-sender-item__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.mail-sender-item__email {
    overflow-wrap: anywhere;
    font-size: 12.5px;
    font-weight: 600;
}

.mail-sender-item__name {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.mail-sender-item__check {
    display: none;
    color: var(--accent);
}

.mail-sender-item:has(input:checked) .mail-sender-item__check {
    display: inline-flex;
}

.mail-link-field {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.mail-link-field .input {
    font-size: 13px;
}

.mail-link-field.is-unchanged .input {
    border-color: rgba(240, 165, 74, 0.42);
    background: rgba(240, 165, 74, 0.06);
}

.mail-link-field.is-changed .input {
    border-color: rgba(88, 201, 154, 0.38);
}

.mail-link-field.is-unchanged .hint {
    color: #e6b36a;
}

.mail-link-field.is-changed .hint {
    color: var(--green);
}

.mail-links-error {
    margin: 8px 0 0;
    color: #ff928a;
    font-size: 12px;
}

.mail-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.mail-fields--single {
    grid-template-columns: 1fr;
}

.mail-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.mail-send-error {
    margin: 10px 0 0;
    color: #ff928a;
    font-size: 12px;
}

.mail-send-result {
    margin: 10px 0 0;
    font-size: 12px;
}

.mail-send-result.is-success {
    color: var(--green);
}

.mail-send-result.is-error {
    color: #ff928a;
}

.mail-edit-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.mail-edit-badge {
    padding: 3px 8px;
    border: 1px solid rgba(88, 201, 154, 0.28);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    line-height: 1.4;
    white-space: nowrap;
}

.mail-edit-badge.is-dirty {
    border-color: rgba(230, 196, 106, 0.35);
    background: rgba(230, 196, 106, 0.1);
    color: #e6c46a;
}

.mail-edit-badge.is-sent {
    border-color: rgba(111, 211, 166, 0.45);
    background: rgba(111, 211, 166, 0.12);
    color: var(--green);
}

.mail-preview-card .preview-stage iframe {
    cursor: text;
}

.mail-preview-note {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
    padding: 7px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(240, 165, 74, 0.06);
    color: #e6b36a;
    font-size: 10.5px;
}

.mail-preview-note span {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(240, 165, 74, 0.65);
}

.mail-log-block {
    margin-top: 26px;
    scroll-margin-top: 88px;
}

.mail-log {
    overflow: hidden;
}

.mail-log__row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
}

.mail-log__row:first-child {
    border-top: 0;
}

.mail-log__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mail-log__body strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-log__body .mono {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-log__error {
    color: #ff928a;
    font-size: 11.5px;
}

.mail-log__sender {
    color: var(--faint);
    font-size: 10.5px;
}

.mail-log__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: var(--faint);
    font-size: 10.5px;
    text-align: right;
}

.mail-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mail-settings-card {
    padding: 22px;
}

.mail-card-head {
    margin-bottom: 16px;
}

.mail-card-head h2 {
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.mail-card-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12.5px;
}

.mail-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.field-inline--wide {
    grid-column: 1 / -1;
}

.mail-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.mail-radio {
    display: flex;
    flex: 1 1 240px;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.mail-radio:hover {
    border-color: var(--line-strong);
}

.mail-radio:has(input:checked) {
    border-color: rgba(88, 201, 154, 0.42);
    background: var(--accent-soft);
}

.mail-radio input {
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.mail-radio > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mail-radio strong {
    font-size: 13px;
    font-weight: 600;
}

.mail-radio > span > span {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.4;
}

.mail-template-settings {
    display: flex;
    flex-direction: column;
}

.mail-senders {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mail-senders-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 2px 2px;
    color: var(--faint);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mail-sender-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.mail-sender-row .btn--icon {
    height: 40px;
}

.mail-senders-actions {
    margin-top: 8px;
}

.mail-template-setting {
    display: grid;
    grid-template-columns: minmax(160px, 0.7fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
    gap: 12px;
    align-items: end;
    padding: 12px 0;
    border-top: 1px dashed var(--line);
}

.mail-template-setting:first-child {
    padding-top: 0;
    border-top: 0;
}

.mail-template-setting__file {
    min-width: 0;
    padding-bottom: 8px;
}

.mail-template-setting__file strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--ink);
    font: 600 12.5px/1.4 var(--mono);
}

.mail-template-setting__file span {
    display: block;
    margin-top: 2px;
    color: var(--faint);
    font-size: 10.5px;
}

.mail-log__template {
    color: var(--muted);
}

.mail-log__text-btn {
    margin-top: 4px;
    border-color: rgba(138, 166, 255, 0.38);
    background: rgba(108, 141, 255, 0.13);
    color: #b3c5ff;
    box-shadow: none;
}

.mail-log__text-btn:hover {
    border-color: rgba(138, 166, 255, 0.66);
    background: rgba(108, 141, 255, 0.22);
    color: #d3ddff;
}

.mail-log__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.mail-log__page {
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    font: 600 12px/1 var(--sans);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.mail-log__page:hover:not(:disabled) {
    border-color: var(--line-strong);
    background: var(--surface-3);
    color: var(--ink);
}

.mail-log__page.is-active {
    border-color: rgba(88, 201, 154, 0.4);
    background: var(--accent-soft);
    color: var(--accent);
}

.mail-log__page:disabled {
    opacity: 0.35;
    cursor: default;
}

.mail-text-dialog {
    width: min(50vw, 680px);
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.mail-text-dialog[open] {
    display: flex;
    flex-direction: column;
}

.mail-text-dialog::backdrop {
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
}

.mail-text-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
}

.mail-text-dialog__title {
    color: var(--muted);
}

.mail-text-dialog__body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0d1117;
}

.mail-text-dialog__preview {
    position: relative;
    flex: none;
    max-width: 100%;
    overflow: hidden;
    background: #fff;
}

.mail-text-dialog__preview.is-loading {
    width: 100%;
    height: min(45vh, 420px);
}

.mail-text-dialog__frame {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border: 0;
    background: #fff;
    transform-origin: top left;
}

.mail-text-dialog__text {
    width: 100%;
    max-height: min(70vh, 640px);
    overflow: auto;
    margin: 0;
    padding: 16px;
    background: #0d1117;
    color: #dfe5ec;
    font: 12px/1.6 var(--mono);
    white-space: pre-wrap;
}

@media (max-width: 820px) {
    .mail-text-dialog {
        width: calc(100vw - 24px);
        max-width: none;
    }
}

/* ------------------------------------------------------------------ */
/* Адаптив                                                            */
/* ------------------------------------------------------------------ */

@media (max-width: 1280px) {
    .editor {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
    }

    .mail-layout {
        grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    }

    .create-form {
        grid-template-columns: minmax(170px, 1fr) minmax(190px, 1fr) minmax(140px, 0.8fr);
    }

    .create-form__remember {
        grid-column: 1 / 2;
    }

    .create-form__submit {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

@media (max-width: 1080px) {
    .editor {
        grid-template-columns: 1fr;
    }

    .editor__side {
        position: static;
        height: 68vh;
        min-height: 480px;
    }
}

@media (max-width: 860px) {
    .topbar__inner {
        gap: 14px;
        padding: 0 18px;
    }

    .brand__tag {
        display: none;
    }

    .shell {
        padding: 26px 18px 72px;
    }

    .create-form {
        grid-template-columns: 1fr 1fr;
    }

    .create-form__remember {
        grid-column: 1 / -1;
    }

    .create-form__submit {
        grid-column: 1 / -1;
        width: 100%;
    }

    .pages-grid {
        grid-template-columns: 1fr;
    }

    .replacements-card {
        padding: 17px;
    }

    .replacements-card__head {
        flex-direction: column;
        gap: 10px;
    }

    .mail-top-grid {
        grid-template-columns: 1fr;
    }

    .mail-fields,
    .mail-settings-grid {
        grid-template-columns: 1fr;
    }

    .field-inline--wide {
        grid-column: auto;
    }

    .mail-template-setting {
        grid-template-columns: 1fr;
    }

    .mail-actions-row {
        align-items: flex-start;
    }

    .mail-senders-head {
        display: none;
    }

    .mail-sender-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mail-sender-row [data-sender-email],
    .mail-sender-row [data-sender-name] {
        grid-column: 1;
    }

    .mail-sender-row .btn--icon {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .mail-log__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .mail-log__meta {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .topbar__inner {
        height: 58px;
        gap: 10px;
    }

    .brand__text {
        display: none;
    }

    .topnav {
        gap: 0;
        margin-left: auto;
    }

    .topnav .icon,
    .topbar__logout .icon {
        display: none;
    }

    .topnav a {
        padding: 7px 8px;
        font-size: 12px;
    }

    .topbar__logout {
        margin-left: 0;
        padding-left: 8px;
    }

    .topbar__logout .btn {
        height: 30px;
        padding: 0 9px;
        font-size: 11.5px;
    }

    .brand__logo {
        width: 32px;
        height: 32px;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .page-head h1 {
        display: block;
        font-size: 31px;
    }

    .page-head h1 > .icon {
        margin-right: 7px;
        vertical-align: -3px;
    }

    .head-actions {
        width: 100%;
    }

    .head-actions .btn {
        flex: 1;
    }

    .create-card {
        padding: 18px;
    }

    .create-form {
        grid-template-columns: 1fr;
    }

    .field-inline--id {
        max-width: none;
    }

    .create-form__remember,
    .create-form__submit {
        grid-column: auto;
    }

    .create-form__submit {
        width: 100%;
    }

    .create-card__foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-card {
        padding: 16px;
    }

    .page-card__actions form {
        margin-left: 0;
    }

    .page-card__actions .btn {
        flex: 1;
    }

    .editor__side {
        height: 62vh;
        min-height: 420px;
    }

    .preview-actions .btn {
        padding: 0 7px;
    }

    .replacements-card {
        padding: 15px;
    }

    .replacements-card__title h2 {
        font-size: 22px;
    }

    .replacement-field__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .replacement-field__label {
        font-size: 12.5px;
    }

    .auth__card {
        padding: 26px 22px;
    }

    .mail-top-card,
    .mail-compose,
    .mail-settings-card {
        padding: 16px;
    }

    .mail-subject-value {
        min-height: 38px;
    }

    .mail-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .mail-actions-row .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
