.novel-workbench {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nw-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.nw-head h1 {
    margin: 3px 0 6px;
    font-size: 26px;
    line-height: 1.2;
}

.nw-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.nw-eyebrow {
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.nw-head-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nw-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.nw-stat {
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.nw-stat span,
.nw-stat small {
    display: block;
    color: #64748b;
}

.nw-stat span {
    font-size: 13px;
    font-weight: 600;
}

.nw-stat strong {
    display: block;
    margin: 7px 0 3px;
    color: #0f172a;
    font-size: 27px;
    line-height: 1;
}

.nw-stat small {
    font-size: 11px;
}

.nw-panel,
.nw-table-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.nw-filter-panel {
    padding: 18px;
}

.nw-panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.nw-panel-title strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.nw-panel-title span {
    color: #94a3b8;
    font-size: 12px;
}

.nw-result-count {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.nw-filter {
    display: grid;
    grid-template-columns:
        minmax(220px, 2fr)
        repeat(3, minmax(130px, 1fr))
        90px
        auto;
    gap: 10px;
    align-items: end;
}

.nw-field label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.nw-field input,
.nw-field select,
.nw-bulk-actions select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
}

.nw-field input {
    padding: 0 11px;
}

.nw-filter-actions,
.nw-bulk-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nw-bulkbar {
    position: sticky;
    top: 72px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding: 11px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 5px 18px rgba(15,23,42,.05);
}

.nw-bulk-left,
.nw-check-all {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nw-check-all {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.nw-selected {
    padding-left: 10px;
    border-left: 1px solid #e2e8f0;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.nw-bulk-actions select {
    width: 180px;
}

.nw-table-card {
    overflow: hidden;
}

.nw-table {
    width: 100%;
    border-collapse: collapse;
}

.nw-table th {
    padding: 11px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}

.nw-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    font-size: 13px;
    vertical-align: middle;
}

.nw-table tbody tr:hover {
    background: #f8fbff;
}

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

.nw-check-column {
    width: 38px;
}

.nw-actions-column {
    width: 95px;
}

.nw-id {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.nw-book {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.nw-book-icon {
    display: grid;
    width: 34px;
    height: 40px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 7px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.nw-book-info {
    min-width: 0;
}

.nw-book-title {
    display: block;
    overflow: hidden;
    max-width: 280px;
    color: #0f172a;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nw-book-info small {
    display: block;
    overflow: hidden;
    max-width: 250px;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nw-category,
.nw-source {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.nw-source {
    background: #eff6ff;
    color: #2563eb;
}

.nw-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.nw-status.is-completed {
    background: #ecfdf5;
    color: #059669;
}

.nw-status.is-serializing {
    background: #eff6ff;
    color: #2563eb;
}

.nw-status.is-paused {
    background: #fff7ed;
    color: #ea580c;
}

.nw-number {
    text-align: right !important;
}

.nw-time {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.nw-row-actions {
    display: flex;
    gap: 10px;
}

.nw-row-actions a {
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.nw-empty {
    padding: 60px 20px !important;
    text-align: center;
}

.nw-empty strong,
.nw-empty span {
    display: block;
}

.nw-empty span {
    margin-top: 5px;
    color: #94a3b8;
}

.nw-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 1200px) {
    .nw-filter {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .nw-head,
    .nw-bulkbar,
    .nw-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .nw-stats,
    .nw-filter {
        grid-template-columns: 1fr;
    }

    .nw-head-actions,
    .nw-bulk-actions,
    .nw-filter-actions {
        flex-wrap: wrap;
    }

    .nw-bulkbar {
        position: static;
    }
}
