.nomorator-page {
    --nm-ink: #061631;
    --nm-muted: #8795b0;
    --nm-soft-muted: #9ba9c4;
    --nm-line: #d8e2ef;
    --nm-line-soft: #edf2f8;
    --nm-surface: #ffffff;
    --nm-soft: #f7f9fc;
    --nm-blue: #4f46e5;
    --nm-blue-strong: #2563eb;
    --nm-blue-soft: #eef2ff;
    --nm-green: #10b981;
    --nm-red: #f43f5e;
    --nm-red-soft: #fff1f2;
    --nm-orange-soft: #fffbeb;
    --nm-orange-line: #facc15;
    --nm-shadow: 0 14px 30px rgba(20, 33, 61, 0.12);
    padding: 18px 0 30px;
    color: var(--nm-ink);
    background: #f5f8fc;
}

.nomorator-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

.nomorator-page .nm-card,
.nomorator-page .nm-stat-card {
    background: var(--nm-surface);
    border: 1px solid var(--nm-line);
    border-radius: 12px;
    box-shadow: var(--nm-shadow);
}

.nomorator-page .nm-card {
    padding: 24px;
    margin-bottom: 24px;
}

.nomorator-page .nm-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nm-ink);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.nomorator-page .nm-title-mark {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: var(--nm-blue);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.nomorator-page .nm-divider {
    height: 1px;
    margin: 20px 0;
    background: var(--nm-line-soft);
}

.nomorator-page .nm-input-grid,
.nomorator-page .nm-stepper-grid,
.nomorator-page .nm-method-grid,
.nomorator-page .nm-export-actions,
.nomorator-page .nm-stats-row {
    display: grid;
    gap: 14px;
}

.nomorator-page .nm-input-grid-two,
.nomorator-page .nm-stepper-grid,
.nomorator-page .nm-method-grid,
.nomorator-page .nm-export-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nomorator-page .nm-input-grid-three,
.nomorator-page .nm-stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nomorator-page label,
.nomorator-page .nm-field {
    display: block;
    margin: 0;
}

.nomorator-page label span,
.nomorator-page .nm-stepper > span,
.nomorator-page .nm-block-head span {
    display: block;
    margin-bottom: 8px;
    color: var(--nm-soft-muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nomorator-page input,
.nomorator-page .nm-select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #cbd8ea;
    border-radius: 10px;
    background: var(--nm-soft);
    color: var(--nm-ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nomorator-page input:focus,
.nomorator-page .nm-select:focus {
    border-color: var(--nm-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.nomorator-page .nm-range-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 52px;
    margin-top: 22px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--nm-soft);
    color: #263a61;
    font-size: 11px;
    font-weight: 800;
}

.nomorator-page .nm-range-preview strong {
    font-family: Consolas, Monaco, monospace;
    font-weight: 900;
}

.nomorator-page .nm-range-preview i {
    color: var(--nm-blue);
    text-align: center;
}

.nomorator-page .nm-range-preview > strong {
    text-align: right;
}

.nomorator-page .nm-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.nomorator-page .nm-block-head span {
    margin-bottom: 0;
}

.nomorator-page .nm-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--nm-blue);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}

.nomorator-page .nm-stepper-grid {
    margin-top: 14px;
}

.nomorator-page .nm-stepper > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    min-height: 34px;
    overflow: hidden;
    border: 1px solid #cbd8ea;
    border-radius: 999px;
    background: var(--nm-soft);
}

.nomorator-page .nm-stepper button {
    border: 0;
    background: transparent;
    color: #7d8ba8;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

.nomorator-page .nm-stepper input {
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
    text-align: center;
}

.nomorator-page .nm-stepper input::-webkit-outer-spin-button,
.nomorator-page .nm-stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.nomorator-page .nm-method-btn,
.nomorator-page .nm-export-btn,
.nomorator-page .nm-tabs button,
.nomorator-page .nm-icon-btn,
.nomorator-page .nm-small-btn {
    border: 1px solid #cbd8ea;
    background: var(--nm-soft);
    color: #182946;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nomorator-page .nm-method-btn {
    display: flex;
    min-height: 76px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
}

.nomorator-page .nm-method-btn i {
    color: #8da0bd;
    font-size: 16px;
}

.nomorator-page .nm-method-btn.is-active {
    border-color: var(--nm-blue);
    background: #fff;
    color: var(--nm-blue);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12);
}

.nomorator-page .nm-method-btn.is-active i {
    color: var(--nm-blue);
}

.nomorator-page .nm-hint-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 12px;
    background: var(--nm-soft);
    color: #5f6f8c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.nomorator-page .nm-hint-line i {
    margin-top: 2px;
    color: #8da0bd;
}

.nomorator-page .nm-export-card p {
    margin: 0 0 24px;
    color: #263a61;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.65;
}

.nomorator-page .nm-export-actions {
    gap: 16px;
}

.nomorator-page .nm-export-btn {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-color: #b8c8df;
    border-radius: 10px;
    background: #fff;
    color: #31527d;
    box-shadow: 0 8px 18px rgba(20, 33, 61, 0.06);
}

.nomorator-page .nm-export-btn:hover,
.nomorator-page .nm-export-btn:focus {
    border-color: var(--nm-blue);
    color: var(--nm-blue);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.14);
    outline: none;
}

.nomorator-page .nm-export-btn:nth-child(2) {
    border-color: var(--nm-blue);
    background: var(--nm-blue);
    color: #fff;
}

.nomorator-page .nm-export-btn:nth-child(2):hover,
.nomorator-page .nm-export-btn:nth-child(2):focus {
    background: #4338ca;
    color: #fff;
}

.nomorator-page .nm-export-btn.is-success {
    border-color: var(--nm-green);
    background: #ecfdf5;
    color: #047857;
}

.nomorator-page .nm-export-btn:nth-child(2).is-success {
    border-color: var(--nm-green);
    background: var(--nm-green);
    color: #fff;
}

.nomorator-page .nm-stats-row {
    margin-bottom: 24px;
}

.nomorator-page .nm-stat-card {
    min-height: 124px;
    padding: 22px 24px;
}

.nomorator-page .nm-stat-card span,
.nomorator-page .nm-output-head span {
    display: block;
    color: var(--nm-soft-muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nomorator-page .nm-stat-card strong {
    display: block;
    margin-top: 8px;
    color: var(--nm-blue);
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.nomorator-page .nm-stat-card .nm-green {
    color: var(--nm-green);
}

.nomorator-page .nm-stat-card .nm-muted-value {
    color: #9aa8bc;
}

.nomorator-page .nm-stat-card small {
    display: block;
    margin-top: 9px;
    color: #7f8faa;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.nomorator-page .nm-output-card {
    padding: 32px;
}

.nomorator-page .nm-output-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.nomorator-page .nm-output-head span {
    color: var(--nm-blue);
}

.nomorator-page .nm-output-head h3 {
    margin: 8px 0 0;
    color: var(--nm-ink);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.nomorator-page .nm-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(98px, 1fr));
    min-height: 42px;
    padding: 4px;
    border-radius: 12px;
    background: var(--nm-soft);
}

.nomorator-page .nm-tabs button {
    min-height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #9aa8bc;
    white-space: nowrap;
}

.nomorator-page .nm-tabs button.is-active {
    background: #fff;
    color: var(--nm-ink);
    box-shadow: 0 3px 10px rgba(20, 33, 61, 0.08);
}

.nomorator-page .nm-sheet-toolbar {
    display: grid;
    grid-template-columns: 38px auto 38px minmax(120px, 1fr) auto auto;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--nm-soft);
}

.nomorator-page .nm-sheet-toolbar strong {
    color: var(--nm-ink);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.nomorator-page .nm-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff;
    color: #7f8faa;
}

.nomorator-page .nm-icon-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.nomorator-page .nm-small-btn {
    min-height: 30px;
    padding: 0 14px;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 9px;
}

.nomorator-page input[type="range"] {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: var(--nm-blue-strong);
}

.nomorator-page .nm-sheet-stage {
    position: relative;
    display: flex;
    min-height: 690px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 32px;
    border: 1px dashed #cbd8ea;
    border-radius: 12px;
    background: #fbfdff;
    overflow: hidden;
}

.nomorator-page .nm-stage-label {
    position: absolute;
    top: 20px;
    left: 22px;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.nomorator-page .nm-paper {
    position: relative;
    width: min(520px, 92%);
    aspect-ratio: 0.68;
    padding: 34px 22px 24px;
    border: 1px solid var(--nm-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 26px 44px rgba(20, 33, 61, 0.14);
}

.nomorator-page .nm-grip-label {
    position: absolute;
    top: 10px;
    left: 22px;
    right: 22px;
    padding-top: 2px;
    border-top: 1px dashed #d8e2ef;
    color: #c1ccdd;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.nomorator-page .nm-slot-grid {
    display: grid;
    width: 100%;
    height: 100%;
    gap: var(--nm-slot-gap, 12px);
}

.nomorator-page .nm-slot {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 110px;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--nm-line-soft);
    border-radius: 9px;
    background: #fff;
    color: var(--nm-ink);
}

.nomorator-page .nm-slot.is-blank {
    background: #fafafa;
    color: #9aa8bc;
}

.nomorator-page .nm-slot-grid.is-dense .nm-slot {
    min-height: 0;
    padding: 16px 8px;
}

.nomorator-page .nm-slot-grid.is-very-dense .nm-slot {
    padding: 12px 5px;
    border-radius: 7px;
}

.nomorator-page .nm-slot-top {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #c3cde0;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.nomorator-page .nm-slot-top strong {
    color: var(--nm-blue);
    font-family: Consolas, Monaco, monospace;
}

.nomorator-page .nm-slot-grid.is-dense .nm-slot-top {
    top: 8px;
    left: 8px;
    right: 8px;
    font-size: 7px;
}

.nomorator-page .nm-slot-grid.is-very-dense .nm-slot-top {
    font-size: 6px;
}

.nomorator-page .nm-slot-number {
    display: block;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: clip;
    white-space: nowrap;
    word-break: normal;
    color: var(--nm-ink);
    font-family: Consolas, Monaco, monospace;
    font-size: var(--nm-slot-font-size, clamp(12px, 1.3vw, 17px));
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.nomorator-page .nm-slot small {
    position: absolute;
    right: 14px;
    bottom: 12px;
    color: #8a9ab4;
    font-size: 8px;
    font-weight: 800;
}

.nomorator-page .nm-slot-grid.is-dense .nm-slot small {
    right: 8px;
    bottom: 8px;
    font-size: 6px;
}

.nomorator-page .nm-slot-grid.is-very-dense .nm-slot small {
    display: none;
}

.nomorator-page .nm-table-wrap {
    max-height: 620px;
    overflow: auto;
    border: 1px solid var(--nm-line);
    border-radius: 12px;
    background: #fff;
}

.nomorator-page .nm-data-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    color: var(--nm-ink);
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    font-weight: 900;
}

.nomorator-page .nm-data-table th,
.nomorator-page .nm-data-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--nm-line-soft);
    text-align: left;
    white-space: nowrap;
}

.nomorator-page .nm-data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    color: var(--nm-blue);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nomorator-page .nm-data-table td:first-child {
    color: #8da0bd;
}

.nomorator-page .nm-data-table td.is-blank {
    color: #a8b4c7;
}

.nomorator-page .nm-table-foot {
    padding: 18px;
    background: var(--nm-soft);
    color: #8392ad;
    font-size: 11px;
    font-weight: 900;
    font-style: italic;
    text-align: center;
    text-transform: uppercase;
}

.nomorator-page .nm-production-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid #fecdd3;
    border-radius: 14px;
    background: var(--nm-red-soft);
    color: #9f1239;
}

.nomorator-page .nm-production-note i {
    margin-top: 2px;
    color: var(--nm-red);
    font-size: 16px;
}

.nomorator-page .nm-production-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.nomorator-page .nm-production-note p {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.55;
}

@media (max-width: 1199.98px) {
    .nomorator-page .nm-card {
        padding: 20px;
    }

    .nomorator-page .nm-stat-card {
        padding: 20px;
    }

    .nomorator-page .nm-stat-card strong {
        font-size: 31px;
    }

    .nomorator-page .nm-sheet-stage {
        min-height: 620px;
    }
}

@media (max-width: 991.98px) {
    .nomorator-page .nm-stats-row {
        margin-top: 4px;
    }
}

@media (max-width: 767.98px) {
    .nomorator-shell {
        padding: 0 12px;
    }

    .nomorator-page .nm-card,
    .nomorator-page .nm-output-card {
        padding: 18px;
    }

    .nomorator-page .nm-input-grid-two,
    .nomorator-page .nm-input-grid-three,
    .nomorator-page .nm-stepper-grid,
    .nomorator-page .nm-method-grid,
    .nomorator-page .nm-export-actions,
    .nomorator-page .nm-stats-row {
        grid-template-columns: 1fr;
    }

    .nomorator-page .nm-output-head {
        display: block;
    }

    .nomorator-page .nm-tabs {
        width: 100%;
        margin-top: 16px;
    }

    .nomorator-page .nm-sheet-toolbar {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        padding: 14px;
    }

    .nomorator-page .nm-sheet-toolbar input[type="range"],
    .nomorator-page .nm-sheet-toolbar .nm-small-btn {
        grid-column: 1 / -1;
    }

    .nomorator-page .nm-sheet-stage {
        min-height: 510px;
        padding: 24px 14px;
    }

    .nomorator-page .nm-paper {
        width: 96%;
        padding: 32px 12px 16px;
    }

    .nomorator-page .nm-slot-grid {
        gap: var(--nm-slot-gap, 7px);
    }

    .nomorator-page .nm-slot {
        min-height: 88px;
        padding: 16px 8px;
    }

    .nomorator-page .nm-slot-number {
        font-size: var(--nm-slot-font-size, 11px);
    }
}
