.nuz-tool {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nuz-hero,
.nuz-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(25, 52, 40, .96), rgba(12, 24, 20, .98));
    box-shadow: var(--shadow);
}

.nuz-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 18px;
    align-items: stretch;
    padding: 22px;
}

.nuz-hero h2,
.nuz-section-heading h2 {
    margin: 0;
    color: #fff;
    letter-spacing: 0;
}

.nuz-hero h2 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.02;
}

.nuz-lede {
    max-width: 820px;
    margin: 12px 0 0;
    color: #c7d8cf;
    font-size: 16px;
}

.nuz-quick-facts,
.nuz-links,
.nuz-progress,
.nuz-controls,
.nuz-ledger-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nuz-quick-facts {
    margin-top: 18px;
}

.nuz-quick-facts span,
.nuz-links a,
.nuz-count {
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(8, 16, 13, .62);
    color: #dbe7df;
}

.nuz-quick-facts span {
    padding: 7px 10px;
    font-weight: 800;
}

.nuz-starter-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(226, 180, 67, .42);
    border-radius: 8px;
    background: rgba(8, 16, 13, .68);
}

.nuz-starter-card strong {
    color: var(--gold-2);
    font-size: 18px;
}

.nuz-starter-card p {
    margin: 0;
    color: #c7d8cf;
}

.nuz-sprite-strip {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.nuz-sprite-strip img {
    width: 72px;
    height: 72px;
    image-rendering: pixelated;
    object-fit: contain;
}

.nuz-links a {
    padding: 8px 10px;
    font-weight: 800;
}

.nuz-links a:hover {
    border-color: var(--gold);
    color: #fff;
}

.nuz-panel {
    padding: 18px;
}

.nuz-section-heading {
    margin-bottom: 14px;
}

.nuz-section-heading h2 {
    font-size: 22px;
}

.nuz-rules-grid,
.nuz-encounter-grid,
.nuz-arc-grid,
.nuz-grid {
    display: grid;
    gap: 12px;
}

.nuz-rules-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nuz-encounter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nuz-arc-grid,
.nuz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nuz-rules-grid article,
.nuz-arc-grid article,
.nuz-encounter-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .54);
    padding: 14px;
}

.nuz-rules-grid strong,
.nuz-arc-grid strong,
.nuz-encounter-card strong {
    display: block;
    color: #fff;
    font-size: 16px;
}

.nuz-rules-grid p,
.nuz-arc-grid p,
.nuz-encounter-card p {
    margin: 6px 0 0;
    color: #b7c9c0;
}

.nuz-controls {
    align-items: end;
    margin-bottom: 12px;
}

.nuz-controls label,
.nuz-ledger-form label {
    display: flex;
    flex: 1 1 180px;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    color: var(--muted);
    font-weight: 800;
}

.nuz-controls select,
.nuz-controls input,
.nuz-ledger-form input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #0a1511;
    color: #fff;
    padding: 8px 10px;
}

.nuz-count {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    font-weight: 800;
}

.nuz-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.nuz-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.nuz-table th,
.nuz-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.nuz-table th {
    color: var(--gold-2);
    background: #0a1511;
    font-size: 12px;
    text-transform: uppercase;
}

.nuz-table td {
    color: #dbe7df;
}

.nuz-table tr:last-child td {
    border-bottom: 0;
}

.nuz-encounter-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.nuz-encounter-card img {
    width: 54px;
    height: 54px;
    image-rendering: pixelated;
    object-fit: contain;
}

.nuz-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(68, 201, 130, .15);
    color: #82e7b1;
    font-size: 12px;
    font-weight: 900;
}

.nuz-check-list {
    display: grid;
    gap: 9px;
}

.nuz-check-list label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(8, 16, 13, .44);
    color: #cfddd5;
}

.nuz-check-list input {
    margin-top: 3px;
    accent-color: var(--gold);
}

.nuz-progress {
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.nuz-progress span {
    color: var(--gold-2);
    font-weight: 900;
}

.nuz-progress button,
.nuz-ledger-form button,
.nuz-ledger-item button {
    min-height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #173428;
    color: #fff;
    cursor: pointer;
    font-weight: 850;
}

.nuz-progress button {
    padding: 7px 10px;
}

.nuz-ledger-form {
    align-items: end;
}

.nuz-ledger-form button {
    flex: 0 0 auto;
    padding: 8px 14px;
}

.nuz-ledger-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.nuz-ledger-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(8, 16, 13, .52);
}

.nuz-ledger-item strong {
    color: #fff;
}

.nuz-ledger-item span {
    display: block;
    color: #aebfb7;
    overflow-wrap: anywhere;
}

.nuz-ledger-item button {
    width: 34px;
}

@media (max-width: 900px) {
    .nuz-hero,
    .nuz-rules-grid,
    .nuz-encounter-grid,
    .nuz-arc-grid,
    .nuz-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nuz-hero,
    .nuz-panel {
        padding: 14px;
    }

    .nuz-sprite-strip img {
        width: 58px;
        height: 58px;
    }

    .nuz-hero h2 {
        font-size: 30px;
    }

    .nuz-links a {
        flex: 1 1 44%;
        text-align: center;
    }
}
