:root {
    --nzt-bg: #020617;
    --nzt-card: rgba(15, 23, 42, 0.88);
    --nzt-card-2: rgba(2, 6, 23, 0.52);
    --nzt-border: rgba(148, 163, 184, 0.25);
    --nzt-cyan: #22d3ee;
    --nzt-green: #22c55e;
    --nzt-red: #ef4444;
    --nzt-yellow: #f59e0b;
    --nzt-text: #e5e7eb;
    --nzt-muted: #94a3b8;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.10), transparent 32%),
        linear-gradient(180deg, #020617, #000000);
    color: var(--nzt-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    padding: 18px;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
    font: inherit;
}

.nzt-page {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
}

.nzt-topbar {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    margin-bottom: 14px;
}

.nzt-title-block {
    text-align: center;
    display: grid;
    gap: 3px;
}

.nzt-title-block span {
    color: var(--nzt-cyan);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.22em;
}

.nzt-title-block strong {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 850;
}

.nzt-icon-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.34);
    background: rgba(2, 6, 23, 0.62);
    color: #e5e7eb;
    text-decoration: none;
}

.nzt-icon-button:hover {
    color: #ffffff;
    border-color: var(--nzt-cyan);
}

.nzt-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 24px;
    border: 1px solid rgba(34, 211, 238, 0.34);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 38%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
    padding: 22px;
    margin-bottom: 14px;
}

.nzt-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nzt-cyan);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nzt-hero h1 {
    margin: 0;
    color: #f8fafc;
    font-size: 2rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.nzt-hero p {
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 0.92rem;
}

.nzt-hero-pill {
    min-width: 210px;
    border-radius: 18px;
    border: 1px solid rgba(34, 211, 238, 0.32);
    background: rgba(2, 6, 23, 0.46);
    padding: 14px 16px;
}

.nzt-hero-pill span {
    display: block;
    color: var(--nzt-muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nzt-hero-pill strong {
    display: block;
    margin-top: 4px;
    color: #f8fafc;
    font-size: 1rem;
}

.nzt-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.nzt-summary-card {
    border-radius: 18px;
    border: 1px solid var(--nzt-border);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 42%),
        rgba(15, 23, 42, 0.82);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
    padding: 16px;
}

.nzt-summary-card span {
    display: block;
    color: var(--nzt-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.nzt-summary-card strong {
    display: block;
    color: #f8fafc;
    font-size: 1.35rem;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.nzt-layout {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.nzt-layout-lower {
    margin-top: 14px;
}

.nzt-card {
    border-radius: 22px;
    border: 1px solid var(--nzt-border);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.07), transparent 38%),
        rgba(15, 23, 42, 0.88);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.nzt-card-head {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.nzt-card-head span {
    display: block;
    color: var(--nzt-cyan);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.nzt-card-head h2 {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 1.15rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.nzt-card > .nzt-field,
.nzt-card > .nzt-grid-two,
.nzt-card > .nzt-switch-line,
.nzt-card > .nzt-actions,
.nzt-card > .nzt-error-box,
.nzt-card > .nzt-focus-box {
    margin-left: 17px;
    margin-right: 17px;
}

.nzt-card > .nzt-field:first-of-type,
.nzt-card > .nzt-error-box:first-of-type,
.nzt-card > .nzt-focus-box:first-of-type {
    margin-top: 17px;
}

.nzt-field {
    display: grid;
    gap: 6px;
    margin-bottom: 13px;
}

.nzt-field label {
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 780;
}

.nzt-field input,
.nzt-field select {
    width: 100%;
    min-height: 43px;
    border-radius: 14px;
    border: 1px solid rgba(75, 85, 99, 0.96);
    background: #111827;
    color: #f8fafc;
    outline: none;
    padding: 0 12px;
    font-size: 0.9rem;
}

.nzt-field input:focus,
.nzt-field select:focus {
    border-color: var(--nzt-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.nzt-field input::placeholder {
    color: rgba(148, 163, 184, 0.76);
}

input[type="date"] {
    color-scheme: dark;
}

.nzt-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nzt-switch-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.84rem;
    margin-bottom: 15px;
}

.nzt-switch-line input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nzt-switch-line span {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.46);
    background: rgba(2, 6, 23, 0.76);
    position: relative;
    flex: 0 0 44px;
}

.nzt-switch-line span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #94a3b8;
    transform: translateY(-50%);
    transition: transform 0.16s ease, background 0.16s ease;
}

.nzt-switch-line input:checked + span {
    border-color: rgba(34, 197, 94, 0.62);
    background: rgba(20, 83, 45, 0.42);
}

.nzt-switch-line input:checked + span::before {
    transform: translate(20px, -50%);
    background: #bbf7d0;
}

.nzt-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    padding-bottom: 17px;
}

.nzt-primary-button,
.nzt-soft-button {
    min-height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 850;
    cursor: pointer;
    padding: 0 15px;
}

.nzt-primary-button {
    border: 1px solid rgba(34, 211, 238, 0.72);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.92), rgba(34, 211, 238, 0.92));
    color: #020617;
}

.nzt-soft-button {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(2, 6, 23, 0.52);
    color: #e5e7eb;
}

.nzt-soft-button:hover {
    border-color: rgba(34, 211, 238, 0.42);
}

.nzt-primary-button:disabled,
.nzt-soft-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.nzt-hidden {
    display: none !important;
}

.nzt-error-box {
    display: none;
    border: 1px solid rgba(239, 68, 68, 0.52);
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
    border-radius: 14px;
    padding: 11px 12px;
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 13px;
}

.nzt-error-box.show {
    display: block;
}

.nzt-focus-box {
    border-radius: 18px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.09), transparent 42%),
        rgba(2, 6, 23, 0.42);
    padding: 16px;
    margin-bottom: 17px;
}

.nzt-focus-title {
    color: #f8fafc;
    font-size: 1.12rem;
    line-height: 1.15;
    font-weight: 950;
}

.nzt-focus-sub {
    color: var(--nzt-muted);
    font-size: 0.82rem;
    margin-top: 6px;
}

.nzt-progress {
    width: 100%;
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.13);
    margin: 15px 0;
}

.nzt-progress div {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #22d3ee);
    transition: width 0.25s ease;
}

.nzt-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.nzt-mini-stat {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.56);
    padding: 11px;
}

.nzt-mini-stat span {
    display: block;
    color: var(--nzt-muted);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.nzt-mini-stat strong {
    display: block;
    color: #f8fafc;
    font-size: 0.94rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.nzt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.34);
    background: rgba(8, 47, 73, 0.28);
    color: #bae6fd;
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.nzt-badge.ok {
    border-color: rgba(34, 197, 94, 0.42);
    background: rgba(20, 83, 45, 0.24);
    color: #bbf7d0;
}

.nzt-badge.warn {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(120, 53, 15, 0.24);
    color: #fde68a;
}

.nzt-badge.off {
    border-color: rgba(239, 68, 68, 0.42);
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
}

.nzt-filter-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
    align-items: end;
    padding: 17px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.nzt-filter-row .nzt-field {
    margin: 0;
}

.nzt-metas-list {
    display: grid;
    gap: 10px;
    padding: 17px;
}

.nzt-meta-item {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.07), transparent 44%),
        rgba(2, 6, 23, 0.34);
    padding: 13px;
    cursor: pointer;
}

.nzt-meta-item:hover,
.nzt-meta-item.active {
    border-color: rgba(34, 211, 238, 0.64);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
}

.nzt-meta-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.nzt-meta-name {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.2;
}

.nzt-meta-money {
    margin-top: 5px;
    color: #bbf7d0;
    font-size: 0.8rem;
    font-weight: 820;
    font-variant-numeric: tabular-nums;
}

.nzt-meta-sub {
    color: var(--nzt-muted);
    font-size: 0.78rem;
    margin-top: 8px;
}

.nzt-meta-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 11px;
}

.nzt-icon-action,
.nzt-state-action {
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.78);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 820;
    padding: 0 10px;
}

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

.nzt-icon-action:hover {
    border-color: var(--nzt-cyan);
    color: var(--nzt-cyan);
}

.nzt-icon-action.danger:hover {
    border-color: var(--nzt-red);
    color: #fecaca;
}

.nzt-state-action.pause {
    border-color: rgba(245, 158, 11, 0.36);
    color: #fde68a;
}

.nzt-state-action.play {
    border-color: rgba(34, 197, 94, 0.36);
    color: #bbf7d0;
}

.nzt-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.nzt-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.nzt-table th {
    background: rgba(2, 6, 23, 0.72);
    color: var(--nzt-muted);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 13px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.15);
}

.nzt-table td {
    color: #e5e7eb;
    font-size: 0.84rem;
    padding: 13px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.88);
    background: rgba(15, 23, 42, 0.52);
}

.nzt-table tr:nth-child(even) td {
    background: rgba(30, 41, 59, 0.44);
}

.nzt-text-end {
    text-align: right;
}

.nzt-money {
    color: #bbf7d0;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.nzt-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    text-align: center;
    color: var(--nzt-muted);
    padding: 24px;
}

.nzt-empty i {
    color: var(--nzt-cyan);
    font-size: 2rem;
}

@media (max-width: 1180px) {
    .nzt-layout {
        grid-template-columns: 1fr;
    }

    .nzt-summary-grid,
    .nzt-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body {
        padding: 12px;
    }

    .nzt-hero h1 {
        font-size: 1.55rem;
    }

    .nzt-summary-grid,
    .nzt-mini-grid,
    .nzt-grid-two,
    .nzt-filter-row {
        grid-template-columns: 1fr;
    }

    .nzt-hero-pill {
        width: 100%;
    }

    .nzt-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .nzt-actions {
        flex-direction: column;
    }

    .nzt-primary-button,
    .nzt-soft-button {
        width: 100%;
    }

    .nzt-table {
        min-width: 0;
    }

    .nzt-table thead {
        display: none;
    }

    .nzt-table,
    .nzt-table tbody,
    .nzt-table tr,
    .nzt-table td {
        display: block;
        width: 100%;
    }

    .nzt-table tr {
        border-bottom: 1px solid rgba(34, 211, 238, 0.16);
    }

    .nzt-table td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px;
    }

    .nzt-table td::before {
        content: attr(data-label);
        color: var(--nzt-muted);
        font-size: 0.66rem;
        font-weight: 950;
        letter-spacing: 0.10em;
        text-transform: uppercase;
    }

    .nzt-table td[colspan] {
        display: block;
    }

    .nzt-table td[colspan]::before {
        display: none;
        content: none;
    }

    .nzt-text-end {
        text-align: left;
    }
}